@getvision/core 0.1.0 → 0.1.1-b47357d-develop
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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/ui/assets/index-BeeicREV.js +390 -0
- package/dist/ui/assets/index-DMZqM8ic.css +1 -0
- package/dist/ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/ui/assets/index-CHIdHkAp.js +0 -243
- package/dist/ui/assets/index-CapYotGq.css +0 -1
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
var uN=Object.defineProperty;var wb=r=>{throw TypeError(r)};var oN=(r,t,e)=>t in r?uN(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var pe=(r,t,e)=>oN(r,typeof t!="symbol"?t+"":t,e),Hm=(r,t,e)=>t.has(r)||wb("Cannot "+e);var L=(r,t,e)=>(Hm(r,t,"read from private field"),e?e.call(r):t.get(r)),Se=(r,t,e)=>t.has(r)?wb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),De=(r,t,e,n)=>(Hm(r,t,"write to private field"),n?n.call(r,e):t.set(r,e),e),Ie=(r,t,e)=>(Hm(r,t,"access private method"),e);var ih=(r,t,e,n)=>({set _(a){De(r,t,a,e)},get _(){return L(r,t,n)}});function lN(r,t){for(var e=0;e<t.length;e++){const n=t[e];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in r)){const u=Object.getOwnPropertyDescriptor(n,a);u&&Object.defineProperty(r,a,u.get?u:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(r,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"]'))n(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const l of u.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function e(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function n(a){if(a.ep)return;a.ep=!0;const u=e(a);fetch(a.href,u)}})();var Nb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function R0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Vm={exports:{}},$l={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Bb;function cN(){if(Bb)return $l;Bb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function e(n,a,u){var l=null;if(u!==void 0&&(l=""+u),a.key!==void 0&&(l=""+a.key),"key"in a){u={};for(var p in a)p!=="key"&&(u[p]=a[p])}else u=a;return a=u.ref,{$$typeof:r,type:n,key:l,ref:a!==void 0?a:null,props:u}}return $l.Fragment=t,$l.jsx=e,$l.jsxs=e,$l}var Pb;function pN(){return Pb||(Pb=1,Vm.exports=cN()),Vm.exports}var _0=pN();const gt=_0.Fragment,E=_0.jsx,k=_0.jsxs;var Jm={exports:{}},Le={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var kb;function hN(){if(kb)return Le;kb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),l=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),g=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=g&&j[g]||j["@@iterator"],typeof j=="function"?j:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function v(j,ee,fe){this.props=j,this.context=ee,this.refs=S,this.updater=fe||b}v.prototype.isReactComponent={},v.prototype.setState=function(j,ee){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,ee,"setState")},v.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function F(){}F.prototype=v.prototype;function w(j,ee,fe){this.props=j,this.context=ee,this.refs=S,this.updater=fe||b}var T=w.prototype=new F;T.constructor=w,C(T,v.prototype),T.isPureReactComponent=!0;var B=Array.isArray;function _(){}var V={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function Y(j,ee,fe){var he=fe.ref;return{$$typeof:r,type:j,key:ee,ref:he!==void 0?he:null,props:fe}}function O(j,ee){return Y(j.type,ee,j.props)}function H(j){return typeof j=="object"&&j!==null&&j.$$typeof===r}function re(j){var ee={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(fe){return ee[fe]})}var X=/\/+/g;function ge(j,ee){return typeof j=="object"&&j!==null&&j.key!=null?re(""+j.key):ee.toString(36)}function Be(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(_,_):(j.status="pending",j.then(function(ee){j.status==="pending"&&(j.status="fulfilled",j.value=ee)},function(ee){j.status==="pending"&&(j.status="rejected",j.reason=ee)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function J(j,ee,fe,he,Ce){var Oe=typeof j;(Oe==="undefined"||Oe==="boolean")&&(j=null);var Ue=!1;if(j===null)Ue=!0;else switch(Oe){case"bigint":case"string":case"number":Ue=!0;break;case"object":switch(j.$$typeof){case r:case t:Ue=!0;break;case m:return Ue=j._init,J(Ue(j._payload),ee,fe,he,Ce)}}if(Ue)return Ce=Ce(j),Ue=he===""?"."+ge(j,0):he,B(Ce)?(fe="",Ue!=null&&(fe=Ue.replace(X,"$&/")+"/"),J(Ce,ee,fe,"",function(en){return en})):Ce!=null&&(H(Ce)&&(Ce=O(Ce,fe+(Ce.key==null||j&&j.key===Ce.key?"":(""+Ce.key).replace(X,"$&/")+"/")+Ue)),ee.push(Ce)),1;Ue=0;var Mt=he===""?".":he+":";if(B(j))for(var ht=0;ht<j.length;ht++)he=j[ht],Oe=Mt+ge(he,ht),Ue+=J(he,ee,fe,Oe,Ce);else if(ht=x(j),typeof ht=="function")for(j=ht.call(j),ht=0;!(he=j.next()).done;)he=he.value,Oe=Mt+ge(he,ht++),Ue+=J(he,ee,fe,Oe,Ce);else if(Oe==="object"){if(typeof j.then=="function")return J(Be(j),ee,fe,he,Ce);throw ee=String(j),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return Ue}function ce(j,ee,fe){if(j==null)return j;var he=[],Ce=0;return J(j,he,"","",function(Oe){return ee.call(fe,Oe,Ce++)}),he}function oe(j){if(j._status===-1){var ee=j._result;ee=ee(),ee.then(function(fe){(j._status===0||j._status===-1)&&(j._status=1,j._result=fe)},function(fe){(j._status===0||j._status===-1)&&(j._status=2,j._result=fe)}),j._status===-1&&(j._status=0,j._result=ee)}if(j._status===1)return j._result.default;throw j._result}var ve=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},be={map:ce,forEach:function(j,ee,fe){ce(j,function(){ee.apply(this,arguments)},fe)},count:function(j){var ee=0;return ce(j,function(){ee++}),ee},toArray:function(j){return ce(j,function(ee){return ee})||[]},only:function(j){if(!H(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Le.Activity=D,Le.Children=be,Le.Component=v,Le.Fragment=e,Le.Profiler=a,Le.PureComponent=w,Le.StrictMode=n,Le.Suspense=h,Le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Le.__COMPILER_RUNTIME={__proto__:null,c:function(j){return V.H.useMemoCache(j)}},Le.cache=function(j){return function(){return j.apply(null,arguments)}},Le.cacheSignal=function(){return null},Le.cloneElement=function(j,ee,fe){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var he=C({},j.props),Ce=j.key;if(ee!=null)for(Oe in ee.key!==void 0&&(Ce=""+ee.key),ee)!U.call(ee,Oe)||Oe==="key"||Oe==="__self"||Oe==="__source"||Oe==="ref"&&ee.ref===void 0||(he[Oe]=ee[Oe]);var Oe=arguments.length-2;if(Oe===1)he.children=fe;else if(1<Oe){for(var Ue=Array(Oe),Mt=0;Mt<Oe;Mt++)Ue[Mt]=arguments[Mt+2];he.children=Ue}return Y(j.type,Ce,he)},Le.createContext=function(j){return j={$$typeof:l,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:u,_context:j},j},Le.createElement=function(j,ee,fe){var he,Ce={},Oe=null;if(ee!=null)for(he in ee.key!==void 0&&(Oe=""+ee.key),ee)U.call(ee,he)&&he!=="key"&&he!=="__self"&&he!=="__source"&&(Ce[he]=ee[he]);var Ue=arguments.length-2;if(Ue===1)Ce.children=fe;else if(1<Ue){for(var Mt=Array(Ue),ht=0;ht<Ue;ht++)Mt[ht]=arguments[ht+2];Ce.children=Mt}if(j&&j.defaultProps)for(he in Ue=j.defaultProps,Ue)Ce[he]===void 0&&(Ce[he]=Ue[he]);return Y(j,Oe,Ce)},Le.createRef=function(){return{current:null}},Le.forwardRef=function(j){return{$$typeof:p,render:j}},Le.isValidElement=H,Le.lazy=function(j){return{$$typeof:m,_payload:{_status:-1,_result:j},_init:oe}},Le.memo=function(j,ee){return{$$typeof:d,type:j,compare:ee===void 0?null:ee}},Le.startTransition=function(j){var ee=V.T,fe={};V.T=fe;try{var he=j(),Ce=V.S;Ce!==null&&Ce(fe,he),typeof he=="object"&&he!==null&&typeof he.then=="function"&&he.then(_,ve)}catch(Oe){ve(Oe)}finally{ee!==null&&fe.types!==null&&(ee.types=fe.types),V.T=ee}},Le.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Le.use=function(j){return V.H.use(j)},Le.useActionState=function(j,ee,fe){return V.H.useActionState(j,ee,fe)},Le.useCallback=function(j,ee){return V.H.useCallback(j,ee)},Le.useContext=function(j){return V.H.useContext(j)},Le.useDebugValue=function(){},Le.useDeferredValue=function(j,ee){return V.H.useDeferredValue(j,ee)},Le.useEffect=function(j,ee){return V.H.useEffect(j,ee)},Le.useEffectEvent=function(j){return V.H.useEffectEvent(j)},Le.useId=function(){return V.H.useId()},Le.useImperativeHandle=function(j,ee,fe){return V.H.useImperativeHandle(j,ee,fe)},Le.useInsertionEffect=function(j,ee){return V.H.useInsertionEffect(j,ee)},Le.useLayoutEffect=function(j,ee){return V.H.useLayoutEffect(j,ee)},Le.useMemo=function(j,ee){return V.H.useMemo(j,ee)},Le.useOptimistic=function(j,ee){return V.H.useOptimistic(j,ee)},Le.useReducer=function(j,ee,fe){return V.H.useReducer(j,ee,fe)},Le.useRef=function(j){return V.H.useRef(j)},Le.useState=function(j){return V.H.useState(j)},Le.useSyncExternalStore=function(j,ee,fe){return V.H.useSyncExternalStore(j,ee,fe)},Le.useTransition=function(){return V.H.useTransition()},Le.version="19.2.0",Le}var Ib;function j0(){return Ib||(Ib=1,Jm.exports=hN()),Jm.exports}var P=j0();const Is=R0(P),iC=lN({__proto__:null,default:Is},[P]);var Xm={exports:{}},zl={},Gm={exports:{}},Km={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Mb;function dN(){return Mb||(Mb=1,(function(r){function t(J,ce){var oe=J.length;J.push(ce);e:for(;0<oe;){var ve=oe-1>>>1,be=J[ve];if(0<a(be,ce))J[ve]=ce,J[oe]=be,oe=ve;else break e}}function e(J){return J.length===0?null:J[0]}function n(J){if(J.length===0)return null;var ce=J[0],oe=J.pop();if(oe!==ce){J[0]=oe;e:for(var ve=0,be=J.length,j=be>>>1;ve<j;){var ee=2*(ve+1)-1,fe=J[ee],he=ee+1,Ce=J[he];if(0>a(fe,oe))he<be&&0>a(Ce,fe)?(J[ve]=Ce,J[he]=oe,ve=he):(J[ve]=fe,J[ee]=oe,ve=ee);else if(he<be&&0>a(Ce,oe))J[ve]=Ce,J[he]=oe,ve=he;else break e}}return ce}function a(J,ce){var oe=J.sortIndex-ce.sortIndex;return oe!==0?oe:J.id-ce.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var l=Date,p=l.now();r.unstable_now=function(){return l.now()-p}}var h=[],d=[],m=1,D=null,g=3,x=!1,b=!1,C=!1,S=!1,v=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function T(J){for(var ce=e(d);ce!==null;){if(ce.callback===null)n(d);else if(ce.startTime<=J)n(d),ce.sortIndex=ce.expirationTime,t(h,ce);else break;ce=e(d)}}function B(J){if(C=!1,T(J),!b)if(e(h)!==null)b=!0,_||(_=!0,re());else{var ce=e(d);ce!==null&&Be(B,ce.startTime-J)}}var _=!1,V=-1,U=5,Y=-1;function O(){return S?!0:!(r.unstable_now()-Y<U)}function H(){if(S=!1,_){var J=r.unstable_now();Y=J;var ce=!0;try{e:{b=!1,C&&(C=!1,F(V),V=-1),x=!0;var oe=g;try{t:{for(T(J),D=e(h);D!==null&&!(D.expirationTime>J&&O());){var ve=D.callback;if(typeof ve=="function"){D.callback=null,g=D.priorityLevel;var be=ve(D.expirationTime<=J);if(J=r.unstable_now(),typeof be=="function"){D.callback=be,T(J),ce=!0;break t}D===e(h)&&n(h),T(J)}else n(h);D=e(h)}if(D!==null)ce=!0;else{var j=e(d);j!==null&&Be(B,j.startTime-J),ce=!1}}break e}finally{D=null,g=oe,x=!1}ce=void 0}}finally{ce?re():_=!1}}}var re;if(typeof w=="function")re=function(){w(H)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,ge=X.port2;X.port1.onmessage=H,re=function(){ge.postMessage(null)}}else re=function(){v(H,0)};function Be(J,ce){V=v(function(){J(r.unstable_now())},ce)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(J){J.callback=null},r.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<J?Math.floor(1e3/J):5},r.unstable_getCurrentPriorityLevel=function(){return g},r.unstable_next=function(J){switch(g){case 1:case 2:case 3:var ce=3;break;default:ce=g}var oe=g;g=ce;try{return J()}finally{g=oe}},r.unstable_requestPaint=function(){S=!0},r.unstable_runWithPriority=function(J,ce){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var oe=g;g=J;try{return ce()}finally{g=oe}},r.unstable_scheduleCallback=function(J,ce,oe){var ve=r.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ve+oe:ve):oe=ve,J){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=oe+be,J={id:m++,callback:ce,priorityLevel:J,startTime:oe,expirationTime:be,sortIndex:-1},oe>ve?(J.sortIndex=oe,t(d,J),e(h)===null&&J===e(d)&&(C?(F(V),V=-1):C=!0,Be(B,oe-ve))):(J.sortIndex=be,t(h,J),b||x||(b=!0,_||(_=!0,re()))),J},r.unstable_shouldYield=O,r.unstable_wrapCallback=function(J){var ce=g;return function(){var oe=g;g=ce;try{return J.apply(this,arguments)}finally{g=oe}}}})(Km)),Km}var Ob;function fN(){return Ob||(Ob=1,Gm.exports=dN()),Gm.exports}var Qm={exports:{}},lr={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Lb;function mN(){if(Lb)return lr;Lb=1;var r=j0();function t(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function e(){}var n={d:{f:e,r:function(){throw Error(t(522))},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},a=Symbol.for("react.portal");function u(h,d,m){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:D==null?null:""+D,children:h,containerInfo:d,implementation:m}}var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return lr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,lr.createPortal=function(h,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return u(h,d,null,m)},lr.flushSync=function(h){var d=l.T,m=n.p;try{if(l.T=null,n.p=2,h)return h()}finally{l.T=d,n.p=m,n.d.f()}},lr.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,n.d.C(h,d))},lr.prefetchDNS=function(h){typeof h=="string"&&n.d.D(h)},lr.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var m=d.as,D=p(m,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?n.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:D,integrity:g,fetchPriority:x}):m==="script"&&n.d.X(h,{crossOrigin:D,integrity:g,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},lr.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=p(d.as,d.crossOrigin);n.d.M(h,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&n.d.M(h)},lr.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,D=p(m,d.crossOrigin);n.d.L(h,m,{crossOrigin:D,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},lr.preloadModule=function(h,d){if(typeof h=="string")if(d){var m=p(d.as,d.crossOrigin);n.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else n.d.m(h)},lr.requestFormReset=function(h){n.d.r(h)},lr.unstable_batchedUpdates=function(h,d){return h(d)},lr.useFormState=function(h,d,m){return l.H.useFormState(h,d,m)},lr.useFormStatus=function(){return l.H.useHostTransitionStatus()},lr.version="19.2.0",lr}var Rb;function uC(){if(Rb)return Qm.exports;Rb=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Qm.exports=mN(),Qm.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var _b;function yN(){if(_b)return zl;_b=1;var r=fN(),t=j0(),e=uC();function n(s){var i="https://react.dev/errors/"+s;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+s+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function u(s){var i=s,o=s;if(s.alternate)for(;i.return;)i=i.return;else{s=i;do i=s,(i.flags&4098)!==0&&(o=i.return),s=i.return;while(s)}return i.tag===3?o:null}function l(s){if(s.tag===13){var i=s.memoizedState;if(i===null&&(s=s.alternate,s!==null&&(i=s.memoizedState)),i!==null)return i.dehydrated}return null}function p(s){if(s.tag===31){var i=s.memoizedState;if(i===null&&(s=s.alternate,s!==null&&(i=s.memoizedState)),i!==null)return i.dehydrated}return null}function h(s){if(u(s)!==s)throw Error(n(188))}function d(s){var i=s.alternate;if(!i){if(i=u(s),i===null)throw Error(n(188));return i!==s?null:s}for(var o=s,c=i;;){var f=o.return;if(f===null)break;var y=f.alternate;if(y===null){if(c=f.return,c!==null){o=c;continue}break}if(f.child===y.child){for(y=f.child;y;){if(y===o)return h(f),s;if(y===c)return h(f),i;y=y.sibling}throw Error(n(188))}if(o.return!==c.return)o=f,c=y;else{for(var A=!1,N=f.child;N;){if(N===o){A=!0,o=f,c=y;break}if(N===c){A=!0,c=f,o=y;break}N=N.sibling}if(!A){for(N=y.child;N;){if(N===o){A=!0,o=y,c=f;break}if(N===c){A=!0,c=y,o=f;break}N=N.sibling}if(!A)throw Error(n(189))}}if(o.alternate!==c)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?s:i}function m(s){var i=s.tag;if(i===5||i===26||i===27||i===6)return s;for(s=s.child;s!==null;){if(i=m(s),i!==null)return i;s=s.sibling}return null}var D=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),w=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function re(s){return s===null||typeof s!="object"?null:(s=H&&s[H]||s["@@iterator"],typeof s=="function"?s:null)}var X=Symbol.for("react.client.reference");function ge(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===X?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case C:return"Fragment";case v:return"Profiler";case S:return"StrictMode";case B:return"Suspense";case _:return"SuspenseList";case Y:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case b:return"Portal";case w:return s.displayName||"Context";case F:return(s._context.displayName||"Context")+".Consumer";case T:var i=s.render;return s=s.displayName,s||(s=i.displayName||i.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case V:return i=s.displayName||null,i!==null?i:ge(s.type)||"Memo";case U:i=s._payload,s=s._init;try{return ge(s(i))}catch{}}return null}var Be=Array.isArray,J=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ve=[],be=-1;function j(s){return{current:s}}function ee(s){0>be||(s.current=ve[be],ve[be]=null,be--)}function fe(s,i){be++,ve[be]=s.current,s.current=i}var he=j(null),Ce=j(null),Oe=j(null),Ue=j(null);function Mt(s,i){switch(fe(Oe,i),fe(Ce,s),fe(he,null),i.nodeType){case 9:case 11:s=(s=i.documentElement)&&(s=s.namespaceURI)?YE(s):0;break;default:if(s=i.tagName,i=i.namespaceURI)i=YE(i),s=WE(i,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}ee(he),fe(he,s)}function ht(){ee(he),ee(Ce),ee(Oe)}function en(s){s.memoizedState!==null&&fe(Ue,s);var i=he.current,o=WE(i,s.type);i!==o&&(fe(Ce,s),fe(he,o))}function dr(s){Ce.current===s&&(ee(he),ee(Ce)),Ue.current===s&&(ee(Ue),Ll._currentValue=oe)}var bn,du;function hi(s){if(bn===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);bn=i&&i[1]||"",du=-1<o.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+bn+s+du}var Sd=!1;function Td(s,i){if(!s||Sd)return"";Sd=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(Z){var W=Z}Reflect.construct(s,[],ae)}else{try{ae.call()}catch(Z){W=Z}s.call(ae.prototype)}}else{try{throw Error()}catch(Z){W=Z}(ae=s())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(Z){if(Z&&W&&typeof Z.stack=="string")return[Z.stack,W.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),A=y[0],N=y[1];if(A&&N){var R=A.split(`
|
|
44
|
+
`),K=N.split(`
|
|
45
|
+
`);for(f=c=0;c<R.length&&!R[c].includes("DetermineComponentFrameRoot");)c++;for(;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;if(c===R.length||f===K.length)for(c=R.length-1,f=K.length-1;1<=c&&0<=f&&R[c]!==K[f];)f--;for(;1<=c&&0<=f;c--,f--)if(R[c]!==K[f]){if(c!==1||f!==1)do if(c--,f--,0>f||R[c]!==K[f]){var te=`
|
|
46
|
+
`+R[c].replace(" at new "," at ");return s.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",s.displayName)),te}while(1<=c&&0<=f);break}}}finally{Sd=!1,Error.prepareStackTrace=o}return(o=s?s.displayName||s.name:"")?hi(o):""}function _3(s,i){switch(s.tag){case 26:case 27:case 5:return hi(s.type);case 16:return hi("Lazy");case 13:return s.child!==i&&i!==null?hi("Suspense Fallback"):hi("Suspense");case 19:return hi("SuspenseList");case 0:case 15:return Td(s.type,!1);case 11:return Td(s.type.render,!1);case 1:return Td(s.type,!0);case 31:return hi("Activity");default:return""}}function wg(s){try{var i="",o=null;do i+=_3(s,o),o=s,s=s.return;while(s);return i}catch(c){return`
|
|
47
|
+
Error generating stack: `+c.message+`
|
|
48
|
+
`+c.stack}}var wd=Object.prototype.hasOwnProperty,Nd=r.unstable_scheduleCallback,Bd=r.unstable_cancelCallback,j3=r.unstable_shouldYield,$3=r.unstable_requestPaint,_r=r.unstable_now,z3=r.unstable_getCurrentPriorityLevel,Ng=r.unstable_ImmediatePriority,Bg=r.unstable_UserBlockingPriority,qc=r.unstable_NormalPriority,U3=r.unstable_LowPriority,Pg=r.unstable_IdlePriority,q3=r.log,H3=r.unstable_setDisableYieldValue,Go=null,jr=null;function ia(s){if(typeof q3=="function"&&H3(s),jr&&typeof jr.setStrictMode=="function")try{jr.setStrictMode(Go,s)}catch{}}var $r=Math.clz32?Math.clz32:X3,V3=Math.log,J3=Math.LN2;function X3(s){return s>>>=0,s===0?32:31-(V3(s)/J3|0)|0}var Hc=256,Vc=262144,Jc=4194304;function di(s){var i=s&42;if(i!==0)return i;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Xc(s,i,o){var c=s.pendingLanes;if(c===0)return 0;var f=0,y=s.suspendedLanes,A=s.pingedLanes;s=s.warmLanes;var N=c&134217727;return N!==0?(c=N&~y,c!==0?f=di(c):(A&=N,A!==0?f=di(A):o||(o=N&~s,o!==0&&(f=di(o))))):(N=c&~y,N!==0?f=di(N):A!==0?f=di(A):o||(o=c&~s,o!==0&&(f=di(o)))),f===0?0:i!==0&&i!==f&&(i&y)===0&&(y=f&-f,o=i&-i,y>=o||y===32&&(o&4194048)!==0)?i:f}function Ko(s,i){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&i)===0}function G3(s,i){switch(s){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 kg(){var s=Jc;return Jc<<=1,(Jc&62914560)===0&&(Jc=4194304),s}function Pd(s){for(var i=[],o=0;31>o;o++)i.push(s);return i}function Qo(s,i){s.pendingLanes|=i,i!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function K3(s,i,o,c,f,y){var A=s.pendingLanes;s.pendingLanes=o,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=o,s.entangledLanes&=o,s.errorRecoveryDisabledLanes&=o,s.shellSuspendCounter=0;var N=s.entanglements,R=s.expirationTimes,K=s.hiddenUpdates;for(o=A&~o;0<o;){var te=31-$r(o),ae=1<<te;N[te]=0,R[te]=-1;var W=K[te];if(W!==null)for(K[te]=null,te=0;te<W.length;te++){var Z=W[te];Z!==null&&(Z.lane&=-536870913)}o&=~ae}c!==0&&Ig(s,c,0),y!==0&&f===0&&s.tag!==0&&(s.suspendedLanes|=y&~(A&~i))}function Ig(s,i,o){s.pendingLanes|=i,s.suspendedLanes&=~i;var c=31-$r(i);s.entangledLanes|=i,s.entanglements[c]=s.entanglements[c]|1073741824|o&261930}function Mg(s,i){var o=s.entangledLanes|=i;for(s=s.entanglements;o;){var c=31-$r(o),f=1<<c;f&i|s[c]&i&&(s[c]|=i),o&=~f}}function Og(s,i){var o=i&-i;return o=(o&42)!==0?1:kd(o),(o&(s.suspendedLanes|i))!==0?0:o}function kd(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Id(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Lg(){var s=ce.p;return s!==0?s:(s=window.event,s===void 0?32:bb(s.type))}function Rg(s,i){var o=ce.p;try{return ce.p=s,i()}finally{ce.p=o}}var ua=Math.random().toString(36).slice(2),er="__reactFiber$"+ua,Cr="__reactProps$"+ua,fu="__reactContainer$"+ua,Md="__reactEvents$"+ua,Q3="__reactListeners$"+ua,Y3="__reactHandles$"+ua,_g="__reactResources$"+ua,Yo="__reactMarker$"+ua;function Od(s){delete s[er],delete s[Cr],delete s[Md],delete s[Q3],delete s[Y3]}function mu(s){var i=s[er];if(i)return i;for(var o=s.parentNode;o;){if(i=o[fu]||o[er]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(s=ab(s);s!==null;){if(o=s[er])return o;s=ab(s)}return i}s=o,o=s.parentNode}return null}function yu(s){if(s=s[er]||s[fu]){var i=s.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return s}return null}function Wo(s){var i=s.tag;if(i===5||i===26||i===27||i===6)return s.stateNode;throw Error(n(33))}function Du(s){var i=s[_g];return i||(i=s[_g]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Xt(s){s[Yo]=!0}var jg=new Set,$g={};function fi(s,i){gu(s,i),gu(s+"Capture",i)}function gu(s,i){for($g[s]=i,s=0;s<i.length;s++)jg.add(i[s])}var W3=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]*$"),zg={},Ug={};function Z3(s){return wd.call(Ug,s)?!0:wd.call(zg,s)?!1:W3.test(s)?Ug[s]=!0:(zg[s]=!0,!1)}function Gc(s,i,o){if(Z3(i))if(o===null)s.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":s.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){s.removeAttribute(i);return}}s.setAttribute(i,""+o)}}function Kc(s,i,o){if(o===null)s.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(i);return}s.setAttribute(i,""+o)}}function ls(s,i,o,c){if(c===null)s.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(o);return}s.setAttributeNS(i,o,""+c)}}function tn(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function qg(s){var i=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function ew(s,i,o){var c=Object.getOwnPropertyDescriptor(s.constructor.prototype,i);if(!s.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,y=c.set;return Object.defineProperty(s,i,{configurable:!0,get:function(){return f.call(this)},set:function(A){o=""+A,y.call(this,A)}}),Object.defineProperty(s,i,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(A){o=""+A},stopTracking:function(){s._valueTracker=null,delete s[i]}}}}function Ld(s){if(!s._valueTracker){var i=qg(s)?"checked":"value";s._valueTracker=ew(s,i,""+s[i])}}function Hg(s){if(!s)return!1;var i=s._valueTracker;if(!i)return!0;var o=i.getValue(),c="";return s&&(c=qg(s)?s.checked?"true":"false":s.value),s=c,s!==o?(i.setValue(s),!0):!1}function Qc(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var tw=/[\n"\\]/g;function rn(s){return s.replace(tw,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Rd(s,i,o,c,f,y,A,N){s.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?s.type=A:s.removeAttribute("type"),i!=null?A==="number"?(i===0&&s.value===""||s.value!=i)&&(s.value=""+tn(i)):s.value!==""+tn(i)&&(s.value=""+tn(i)):A!=="submit"&&A!=="reset"||s.removeAttribute("value"),i!=null?_d(s,A,tn(i)):o!=null?_d(s,A,tn(o)):c!=null&&s.removeAttribute("value"),f==null&&y!=null&&(s.defaultChecked=!!y),f!=null&&(s.checked=f&&typeof f!="function"&&typeof f!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?s.name=""+tn(N):s.removeAttribute("name")}function Vg(s,i,o,c,f,y,A,N){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(s.type=y),i!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||i!=null)){Ld(s);return}o=o!=null?""+tn(o):"",i=i!=null?""+tn(i):o,N||i===s.value||(s.value=i),s.defaultValue=i}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,s.checked=N?s.checked:!!c,s.defaultChecked=!!c,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(s.name=A),Ld(s)}function _d(s,i,o){i==="number"&&Qc(s.ownerDocument)===s||s.defaultValue===""+o||(s.defaultValue=""+o)}function xu(s,i,o,c){if(s=s.options,i){i={};for(var f=0;f<o.length;f++)i["$"+o[f]]=!0;for(o=0;o<s.length;o++)f=i.hasOwnProperty("$"+s[o].value),s[o].selected!==f&&(s[o].selected=f),f&&c&&(s[o].defaultSelected=!0)}else{for(o=""+tn(o),i=null,f=0;f<s.length;f++){if(s[f].value===o){s[f].selected=!0,c&&(s[f].defaultSelected=!0);return}i!==null||s[f].disabled||(i=s[f])}i!==null&&(i.selected=!0)}}function Jg(s,i,o){if(i!=null&&(i=""+tn(i),i!==s.value&&(s.value=i),o==null)){s.defaultValue!==i&&(s.defaultValue=i);return}s.defaultValue=o!=null?""+tn(o):""}function Xg(s,i,o,c){if(i==null){if(c!=null){if(o!=null)throw Error(n(92));if(Be(c)){if(1<c.length)throw Error(n(93));c=c[0]}o=c}o==null&&(o=""),i=o}o=tn(i),s.defaultValue=o,c=s.textContent,c===o&&c!==""&&c!==null&&(s.value=c),Ld(s)}function Eu(s,i){if(i){var o=s.firstChild;if(o&&o===s.lastChild&&o.nodeType===3){o.nodeValue=i;return}}s.textContent=i}var rw=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 Gg(s,i,o){var c=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?s.setProperty(i,""):i==="float"?s.cssFloat="":s[i]="":c?s.setProperty(i,o):typeof o!="number"||o===0||rw.has(i)?i==="float"?s.cssFloat=o:s[i]=(""+o).trim():s[i]=o+"px"}function Kg(s,i,o){if(i!=null&&typeof i!="object")throw Error(n(62));if(s=s.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?s.setProperty(c,""):c==="float"?s.cssFloat="":s[c]="");for(var f in i)c=i[f],i.hasOwnProperty(f)&&o[f]!==c&&Gg(s,f,c)}else for(var y in i)i.hasOwnProperty(y)&&Gg(s,y,i[y])}function jd(s){if(s.indexOf("-")===-1)return!1;switch(s){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 nw=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"]]),sw=/^[\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 Yc(s){return sw.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function cs(){}var $d=null;function zd(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var bu=null,Au=null;function Qg(s){var i=yu(s);if(i&&(s=i.stateNode)){var o=s[Cr]||null;e:switch(s=i.stateNode,i.type){case"input":if(Rd(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=s;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+rn(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var c=o[i];if(c!==s&&c.form===s.form){var f=c[Cr]||null;if(!f)throw Error(n(90));Rd(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<o.length;i++)c=o[i],c.form===s.form&&Hg(c)}break e;case"textarea":Jg(s,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&xu(s,!!o.multiple,i,!1)}}}var Ud=!1;function Yg(s,i,o){if(Ud)return s(i,o);Ud=!0;try{var c=s(i);return c}finally{if(Ud=!1,(bu!==null||Au!==null)&&(_p(),bu&&(i=bu,s=Au,Au=bu=null,Qg(i),s)))for(i=0;i<s.length;i++)Qg(s[i])}}function Zo(s,i){var o=s.stateNode;if(o===null)return null;var c=o[Cr]||null;if(c===null)return null;o=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(s=s.type,c=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!c;break e;default:s=!1}if(s)return null;if(o&&typeof o!="function")throw Error(n(231,i,typeof o));return o}var ps=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qd=!1;if(ps)try{var el={};Object.defineProperty(el,"passive",{get:function(){qd=!0}}),window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{qd=!1}var oa=null,Hd=null,Wc=null;function Wg(){if(Wc)return Wc;var s,i=Hd,o=i.length,c,f="value"in oa?oa.value:oa.textContent,y=f.length;for(s=0;s<o&&i[s]===f[s];s++);var A=o-s;for(c=1;c<=A&&i[o-c]===f[y-c];c++);return Wc=f.slice(s,1<c?1-c:void 0)}function Zc(s){var i=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&i===13&&(s=13)):s=i,s===10&&(s=13),32<=s||s===13?s:0}function ep(){return!0}function Zg(){return!1}function Fr(s){function i(o,c,f,y,A){this._reactName=o,this._targetInst=f,this.type=c,this.nativeEvent=y,this.target=A,this.currentTarget=null;for(var N in s)s.hasOwnProperty(N)&&(o=s[N],this[N]=o?o(y):y[N]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ep:Zg,this.isPropagationStopped=Zg,this}return D(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ep)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ep)},persist:function(){},isPersistent:ep}),i}var mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tp=Fr(mi),tl=D({},mi,{view:0,detail:0}),aw=Fr(tl),Vd,Jd,rl,rp=D({},tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gd,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==rl&&(rl&&s.type==="mousemove"?(Vd=s.screenX-rl.screenX,Jd=s.screenY-rl.screenY):Jd=Vd=0,rl=s),Vd)},movementY:function(s){return"movementY"in s?s.movementY:Jd}}),e1=Fr(rp),iw=D({},rp,{dataTransfer:0}),uw=Fr(iw),ow=D({},tl,{relatedTarget:0}),Xd=Fr(ow),lw=D({},mi,{animationName:0,elapsedTime:0,pseudoElement:0}),cw=Fr(lw),pw=D({},mi,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),hw=Fr(pw),dw=D({},mi,{data:0}),t1=Fr(dw),fw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mw={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"},yw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dw(s){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(s):(s=yw[s])?!!i[s]:!1}function Gd(){return Dw}var gw=D({},tl,{key:function(s){if(s.key){var i=fw[s.key]||s.key;if(i!=="Unidentified")return i}return s.type==="keypress"?(s=Zc(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?mw[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gd,charCode:function(s){return s.type==="keypress"?Zc(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Zc(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),xw=Fr(gw),Ew=D({},rp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),r1=Fr(Ew),bw=D({},tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gd}),Aw=Fr(bw),Cw=D({},mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fw=Fr(Cw),vw=D({},rp,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Sw=Fr(vw),Tw=D({},mi,{newState:0,oldState:0}),ww=Fr(Tw),Nw=[9,13,27,32],Kd=ps&&"CompositionEvent"in window,nl=null;ps&&"documentMode"in document&&(nl=document.documentMode);var Bw=ps&&"TextEvent"in window&&!nl,n1=ps&&(!Kd||nl&&8<nl&&11>=nl),s1=" ",a1=!1;function i1(s,i){switch(s){case"keyup":return Nw.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u1(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Cu=!1;function Pw(s,i){switch(s){case"compositionend":return u1(i);case"keypress":return i.which!==32?null:(a1=!0,s1);case"textInput":return s=i.data,s===s1&&a1?null:s;default:return null}}function kw(s,i){if(Cu)return s==="compositionend"||!Kd&&i1(s,i)?(s=Wg(),Wc=Hd=oa=null,Cu=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return n1&&i.locale!=="ko"?null:i.data;default:return null}}var Iw={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 o1(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i==="input"?!!Iw[s.type]:i==="textarea"}function l1(s,i,o,c){bu?Au?Au.push(c):Au=[c]:bu=c,i=Vp(i,"onChange"),0<i.length&&(o=new tp("onChange","change",null,o,c),s.push({event:o,listeners:i}))}var sl=null,al=null;function Mw(s){VE(s,0)}function np(s){var i=Wo(s);if(Hg(i))return s}function c1(s,i){if(s==="change")return i}var p1=!1;if(ps){var Qd;if(ps){var Yd="oninput"in document;if(!Yd){var h1=document.createElement("div");h1.setAttribute("oninput","return;"),Yd=typeof h1.oninput=="function"}Qd=Yd}else Qd=!1;p1=Qd&&(!document.documentMode||9<document.documentMode)}function d1(){sl&&(sl.detachEvent("onpropertychange",f1),al=sl=null)}function f1(s){if(s.propertyName==="value"&&np(al)){var i=[];l1(i,al,s,zd(s)),Yg(Mw,i)}}function Ow(s,i,o){s==="focusin"?(d1(),sl=i,al=o,sl.attachEvent("onpropertychange",f1)):s==="focusout"&&d1()}function Lw(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return np(al)}function Rw(s,i){if(s==="click")return np(i)}function _w(s,i){if(s==="input"||s==="change")return np(i)}function jw(s,i){return s===i&&(s!==0||1/s===1/i)||s!==s&&i!==i}var zr=typeof Object.is=="function"?Object.is:jw;function il(s,i){if(zr(s,i))return!0;if(typeof s!="object"||s===null||typeof i!="object"||i===null)return!1;var o=Object.keys(s),c=Object.keys(i);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var f=o[c];if(!wd.call(i,f)||!zr(s[f],i[f]))return!1}return!0}function m1(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function y1(s,i){var o=m1(s);s=0;for(var c;o;){if(o.nodeType===3){if(c=s+o.textContent.length,s<=i&&c>=i)return{node:o,offset:i-s};s=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=m1(o)}}function D1(s,i){return s&&i?s===i?!0:s&&s.nodeType===3?!1:i&&i.nodeType===3?D1(s,i.parentNode):"contains"in s?s.contains(i):s.compareDocumentPosition?!!(s.compareDocumentPosition(i)&16):!1:!1}function g1(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var i=Qc(s.document);i instanceof s.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)s=i.contentWindow;else break;i=Qc(s.document)}return i}function Wd(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i&&(i==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||i==="textarea"||s.contentEditable==="true")}var $w=ps&&"documentMode"in document&&11>=document.documentMode,Fu=null,Zd=null,ul=null,ef=!1;function x1(s,i,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ef||Fu==null||Fu!==Qc(c)||(c=Fu,"selectionStart"in c&&Wd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),ul&&il(ul,c)||(ul=c,c=Vp(Zd,"onSelect"),0<c.length&&(i=new tp("onSelect","select",null,i,o),s.push({event:i,listeners:c}),i.target=Fu)))}function yi(s,i){var o={};return o[s.toLowerCase()]=i.toLowerCase(),o["Webkit"+s]="webkit"+i,o["Moz"+s]="moz"+i,o}var vu={animationend:yi("Animation","AnimationEnd"),animationiteration:yi("Animation","AnimationIteration"),animationstart:yi("Animation","AnimationStart"),transitionrun:yi("Transition","TransitionRun"),transitionstart:yi("Transition","TransitionStart"),transitioncancel:yi("Transition","TransitionCancel"),transitionend:yi("Transition","TransitionEnd")},tf={},E1={};ps&&(E1=document.createElement("div").style,"AnimationEvent"in window||(delete vu.animationend.animation,delete vu.animationiteration.animation,delete vu.animationstart.animation),"TransitionEvent"in window||delete vu.transitionend.transition);function Di(s){if(tf[s])return tf[s];if(!vu[s])return s;var i=vu[s],o;for(o in i)if(i.hasOwnProperty(o)&&o in E1)return tf[s]=i[o];return s}var b1=Di("animationend"),A1=Di("animationiteration"),C1=Di("animationstart"),zw=Di("transitionrun"),Uw=Di("transitionstart"),qw=Di("transitioncancel"),F1=Di("transitionend"),v1=new Map,rf="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(" ");rf.push("scrollEnd");function An(s,i){v1.set(s,i),fi(i,[s])}var sp=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},nn=[],Su=0,nf=0;function ap(){for(var s=Su,i=nf=Su=0;i<s;){var o=nn[i];nn[i++]=null;var c=nn[i];nn[i++]=null;var f=nn[i];nn[i++]=null;var y=nn[i];if(nn[i++]=null,c!==null&&f!==null){var A=c.pending;A===null?f.next=f:(f.next=A.next,A.next=f),c.pending=f}y!==0&&S1(o,f,y)}}function ip(s,i,o,c){nn[Su++]=s,nn[Su++]=i,nn[Su++]=o,nn[Su++]=c,nf|=c,s.lanes|=c,s=s.alternate,s!==null&&(s.lanes|=c)}function sf(s,i,o,c){return ip(s,i,o,c),up(s)}function gi(s,i){return ip(s,null,null,i),up(s)}function S1(s,i,o){s.lanes|=o;var c=s.alternate;c!==null&&(c.lanes|=o);for(var f=!1,y=s.return;y!==null;)y.childLanes|=o,c=y.alternate,c!==null&&(c.childLanes|=o),y.tag===22&&(s=y.stateNode,s===null||s._visibility&1||(f=!0)),s=y,y=y.return;return s.tag===3?(y=s.stateNode,f&&i!==null&&(f=31-$r(o),s=y.hiddenUpdates,c=s[f],c===null?s[f]=[i]:c.push(i),i.lane=o|536870912),y):null}function up(s){if(50<Nl)throw Nl=0,fm=null,Error(n(185));for(var i=s.return;i!==null;)s=i,i=s.return;return s.tag===3?s.stateNode:null}var Tu={};function Hw(s,i,o,c){this.tag=s,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(s,i,o,c){return new Hw(s,i,o,c)}function af(s){return s=s.prototype,!(!s||!s.isReactComponent)}function hs(s,i){var o=s.alternate;return o===null?(o=Ur(s.tag,i,s.key,s.mode),o.elementType=s.elementType,o.type=s.type,o.stateNode=s.stateNode,o.alternate=s,s.alternate=o):(o.pendingProps=i,o.type=s.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=s.flags&65011712,o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,i=s.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=s.sibling,o.index=s.index,o.ref=s.ref,o.refCleanup=s.refCleanup,o}function T1(s,i){s.flags&=65011714;var o=s.alternate;return o===null?(s.childLanes=0,s.lanes=i,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,i=o.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),s}function op(s,i,o,c,f,y){var A=0;if(c=s,typeof s=="function")af(s)&&(A=1);else if(typeof s=="string")A=K8(s,o,he.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case Y:return s=Ur(31,o,i,f),s.elementType=Y,s.lanes=y,s;case C:return xi(o.children,f,y,i);case S:A=8,f|=24;break;case v:return s=Ur(12,o,i,f|2),s.elementType=v,s.lanes=y,s;case B:return s=Ur(13,o,i,f),s.elementType=B,s.lanes=y,s;case _:return s=Ur(19,o,i,f),s.elementType=_,s.lanes=y,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case w:A=10;break e;case F:A=9;break e;case T:A=11;break e;case V:A=14;break e;case U:A=16,c=null;break e}A=29,o=Error(n(130,s===null?"null":typeof s,"")),c=null}return i=Ur(A,o,i,f),i.elementType=s,i.type=c,i.lanes=y,i}function xi(s,i,o,c){return s=Ur(7,s,c,i),s.lanes=o,s}function uf(s,i,o){return s=Ur(6,s,null,i),s.lanes=o,s}function w1(s){var i=Ur(18,null,null,0);return i.stateNode=s,i}function of(s,i,o){return i=Ur(4,s.children!==null?s.children:[],s.key,i),i.lanes=o,i.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},i}var N1=new WeakMap;function sn(s,i){if(typeof s=="object"&&s!==null){var o=N1.get(s);return o!==void 0?o:(i={value:s,source:i,stack:wg(i)},N1.set(s,i),i)}return{value:s,source:i,stack:wg(i)}}var wu=[],Nu=0,lp=null,ol=0,an=[],un=0,la=null,jn=1,$n="";function ds(s,i){wu[Nu++]=ol,wu[Nu++]=lp,lp=s,ol=i}function B1(s,i,o){an[un++]=jn,an[un++]=$n,an[un++]=la,la=s;var c=jn;s=$n;var f=32-$r(c)-1;c&=~(1<<f),o+=1;var y=32-$r(i)+f;if(30<y){var A=f-f%5;y=(c&(1<<A)-1).toString(32),c>>=A,f-=A,jn=1<<32-$r(i)+f|o<<f|c,$n=y+s}else jn=1<<y|o<<f|c,$n=s}function lf(s){s.return!==null&&(ds(s,1),B1(s,1,0))}function cf(s){for(;s===lp;)lp=wu[--Nu],wu[Nu]=null,ol=wu[--Nu],wu[Nu]=null;for(;s===la;)la=an[--un],an[un]=null,$n=an[--un],an[un]=null,jn=an[--un],an[un]=null}function P1(s,i){an[un++]=jn,an[un++]=$n,an[un++]=la,jn=i.id,$n=i.overflow,la=s}var tr=null,Ct=null,Ze=!1,ca=null,on=!1,pf=Error(n(519));function pa(s){var i=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ll(sn(i,s)),pf}function k1(s){var i=s.stateNode,o=s.type,c=s.memoizedProps;switch(i[er]=s,i[Cr]=c,o){case"dialog":Ke("cancel",i),Ke("close",i);break;case"iframe":case"object":case"embed":Ke("load",i);break;case"video":case"audio":for(o=0;o<Pl.length;o++)Ke(Pl[o],i);break;case"source":Ke("error",i);break;case"img":case"image":case"link":Ke("error",i),Ke("load",i);break;case"details":Ke("toggle",i);break;case"input":Ke("invalid",i),Vg(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ke("invalid",i);break;case"textarea":Ke("invalid",i),Xg(i,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||c.suppressHydrationWarning===!0||KE(i.textContent,o)?(c.popover!=null&&(Ke("beforetoggle",i),Ke("toggle",i)),c.onScroll!=null&&Ke("scroll",i),c.onScrollEnd!=null&&Ke("scrollend",i),c.onClick!=null&&(i.onclick=cs),i=!0):i=!1,i||pa(s,!0)}function I1(s){for(tr=s.return;tr;)switch(tr.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:tr=tr.return}}function Bu(s){if(s!==tr)return!1;if(!Ze)return I1(s),Ze=!0,!1;var i=s.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=s.type,o=!(o!=="form"&&o!=="button")||Nm(s.type,s.memoizedProps)),o=!o),o&&Ct&&pa(s),I1(s),i===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));Ct=sb(s)}else if(i===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));Ct=sb(s)}else i===27?(i=Ct,va(s.type)?(s=Mm,Mm=null,Ct=s):Ct=i):Ct=tr?cn(s.stateNode.nextSibling):null;return!0}function Ei(){Ct=tr=null,Ze=!1}function hf(){var s=ca;return s!==null&&(wr===null?wr=s:wr.push.apply(wr,s),ca=null),s}function ll(s){ca===null?ca=[s]:ca.push(s)}var df=j(null),bi=null,fs=null;function ha(s,i,o){fe(df,i._currentValue),i._currentValue=o}function ms(s){s._currentValue=df.current,ee(df)}function ff(s,i,o){for(;s!==null;){var c=s.alternate;if((s.childLanes&i)!==i?(s.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),s===o)break;s=s.return}}function mf(s,i,o,c){var f=s.child;for(f!==null&&(f.return=s);f!==null;){var y=f.dependencies;if(y!==null){var A=f.child;y=y.firstContext;e:for(;y!==null;){var N=y;y=f;for(var R=0;R<i.length;R++)if(N.context===i[R]){y.lanes|=o,N=y.alternate,N!==null&&(N.lanes|=o),ff(y.return,o,s),c||(A=null);break e}y=N.next}}else if(f.tag===18){if(A=f.return,A===null)throw Error(n(341));A.lanes|=o,y=A.alternate,y!==null&&(y.lanes|=o),ff(A,o,s),A=null}else A=f.child;if(A!==null)A.return=f;else for(A=f;A!==null;){if(A===s){A=null;break}if(f=A.sibling,f!==null){f.return=A.return,A=f;break}A=A.return}f=A}}function Pu(s,i,o,c){s=null;for(var f=i,y=!1;f!==null;){if(!y){if((f.flags&524288)!==0)y=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var A=f.alternate;if(A===null)throw Error(n(387));if(A=A.memoizedProps,A!==null){var N=f.type;zr(f.pendingProps.value,A.value)||(s!==null?s.push(N):s=[N])}}else if(f===Ue.current){if(A=f.alternate,A===null)throw Error(n(387));A.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(s!==null?s.push(Ll):s=[Ll])}f=f.return}s!==null&&mf(i,s,o,c),i.flags|=262144}function cp(s){for(s=s.firstContext;s!==null;){if(!zr(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Ai(s){bi=s,fs=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function rr(s){return M1(bi,s)}function pp(s,i){return bi===null&&Ai(s),M1(s,i)}function M1(s,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},fs===null){if(s===null)throw Error(n(308));fs=i,s.dependencies={lanes:0,firstContext:i},s.flags|=524288}else fs=fs.next=i;return o}var Vw=typeof AbortController<"u"?AbortController:function(){var s=[],i=this.signal={aborted:!1,addEventListener:function(o,c){s.push(c)}};this.abort=function(){i.aborted=!0,s.forEach(function(o){return o()})}},Jw=r.unstable_scheduleCallback,Xw=r.unstable_NormalPriority,jt={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yf(){return{controller:new Vw,data:new Map,refCount:0}}function cl(s){s.refCount--,s.refCount===0&&Jw(Xw,function(){s.controller.abort()})}var pl=null,Df=0,ku=0,Iu=null;function Gw(s,i){if(pl===null){var o=pl=[];Df=0,ku=Em(),Iu={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Df++,i.then(O1,O1),i}function O1(){if(--Df===0&&pl!==null){Iu!==null&&(Iu.status="fulfilled");var s=pl;pl=null,ku=0,Iu=null;for(var i=0;i<s.length;i++)(0,s[i])()}}function Kw(s,i){var o=[],c={status:"pending",value:null,reason:null,then:function(f){o.push(f)}};return s.then(function(){c.status="fulfilled",c.value=i;for(var f=0;f<o.length;f++)(0,o[f])(i)},function(f){for(c.status="rejected",c.reason=f,f=0;f<o.length;f++)(0,o[f])(void 0)}),c}var L1=J.S;J.S=function(s,i){xE=_r(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&Gw(s,i),L1!==null&&L1(s,i)};var Ci=j(null);function gf(){var s=Ci.current;return s!==null?s:yt.pooledCache}function hp(s,i){i===null?fe(Ci,Ci.current):fe(Ci,i.pool)}function R1(){var s=gf();return s===null?null:{parent:jt._currentValue,pool:s}}var Mu=Error(n(460)),xf=Error(n(474)),dp=Error(n(542)),fp={then:function(){}};function _1(s){return s=s.status,s==="fulfilled"||s==="rejected"}function j1(s,i,o){switch(o=s[o],o===void 0?s.push(i):o!==i&&(i.then(cs,cs),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw s=i.reason,z1(s),s;default:if(typeof i.status=="string")i.then(cs,cs);else{if(s=yt,s!==null&&100<s.shellSuspendCounter)throw Error(n(482));s=i,s.status="pending",s.then(function(c){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=c}},function(c){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw s=i.reason,z1(s),s}throw vi=i,Mu}}function Fi(s){try{var i=s._init;return i(s._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(vi=o,Mu):o}}var vi=null;function $1(){if(vi===null)throw Error(n(459));var s=vi;return vi=null,s}function z1(s){if(s===Mu||s===dp)throw Error(n(483))}var Ou=null,hl=0;function mp(s){var i=hl;return hl+=1,Ou===null&&(Ou=[]),j1(Ou,s,i)}function dl(s,i){i=i.props.ref,s.ref=i!==void 0?i:null}function yp(s,i){throw i.$$typeof===g?Error(n(525)):(s=Object.prototype.toString.call(i),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":s)))}function U1(s){function i(q,z){if(s){var G=q.deletions;G===null?(q.deletions=[z],q.flags|=16):G.push(z)}}function o(q,z){if(!s)return null;for(;z!==null;)i(q,z),z=z.sibling;return null}function c(q){for(var z=new Map;q!==null;)q.key!==null?z.set(q.key,q):z.set(q.index,q),q=q.sibling;return z}function f(q,z){return q=hs(q,z),q.index=0,q.sibling=null,q}function y(q,z,G){return q.index=G,s?(G=q.alternate,G!==null?(G=G.index,G<z?(q.flags|=67108866,z):G):(q.flags|=67108866,z)):(q.flags|=1048576,z)}function A(q){return s&&q.alternate===null&&(q.flags|=67108866),q}function N(q,z,G,ne){return z===null||z.tag!==6?(z=uf(G,q.mode,ne),z.return=q,z):(z=f(z,G),z.return=q,z)}function R(q,z,G,ne){var we=G.type;return we===C?te(q,z,G.props.children,ne,G.key):z!==null&&(z.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===U&&Fi(we)===z.type)?(z=f(z,G.props),dl(z,G),z.return=q,z):(z=op(G.type,G.key,G.props,null,q.mode,ne),dl(z,G),z.return=q,z)}function K(q,z,G,ne){return z===null||z.tag!==4||z.stateNode.containerInfo!==G.containerInfo||z.stateNode.implementation!==G.implementation?(z=of(G,q.mode,ne),z.return=q,z):(z=f(z,G.children||[]),z.return=q,z)}function te(q,z,G,ne,we){return z===null||z.tag!==7?(z=xi(G,q.mode,ne,we),z.return=q,z):(z=f(z,G),z.return=q,z)}function ae(q,z,G){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=uf(""+z,q.mode,G),z.return=q,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return G=op(z.type,z.key,z.props,null,q.mode,G),dl(G,z),G.return=q,G;case b:return z=of(z,q.mode,G),z.return=q,z;case U:return z=Fi(z),ae(q,z,G)}if(Be(z)||re(z))return z=xi(z,q.mode,G,null),z.return=q,z;if(typeof z.then=="function")return ae(q,mp(z),G);if(z.$$typeof===w)return ae(q,pp(q,z),G);yp(q,z)}return null}function W(q,z,G,ne){var we=z!==null?z.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return we!==null?null:N(q,z,""+G,ne);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return G.key===we?R(q,z,G,ne):null;case b:return G.key===we?K(q,z,G,ne):null;case U:return G=Fi(G),W(q,z,G,ne)}if(Be(G)||re(G))return we!==null?null:te(q,z,G,ne,null);if(typeof G.then=="function")return W(q,z,mp(G),ne);if(G.$$typeof===w)return W(q,z,pp(q,G),ne);yp(q,G)}return null}function Z(q,z,G,ne,we){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return q=q.get(G)||null,N(z,q,""+ne,we);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:return q=q.get(ne.key===null?G:ne.key)||null,R(z,q,ne,we);case b:return q=q.get(ne.key===null?G:ne.key)||null,K(z,q,ne,we);case U:return ne=Fi(ne),Z(q,z,G,ne,we)}if(Be(ne)||re(ne))return q=q.get(G)||null,te(z,q,ne,we,null);if(typeof ne.then=="function")return Z(q,z,G,mp(ne),we);if(ne.$$typeof===w)return Z(q,z,G,pp(z,ne),we);yp(z,ne)}return null}function Ae(q,z,G,ne){for(var we=null,st=null,Fe=z,je=z=0,Ye=null;Fe!==null&&je<G.length;je++){Fe.index>je?(Ye=Fe,Fe=null):Ye=Fe.sibling;var at=W(q,Fe,G[je],ne);if(at===null){Fe===null&&(Fe=Ye);break}s&&Fe&&at.alternate===null&&i(q,Fe),z=y(at,z,je),st===null?we=at:st.sibling=at,st=at,Fe=Ye}if(je===G.length)return o(q,Fe),Ze&&ds(q,je),we;if(Fe===null){for(;je<G.length;je++)Fe=ae(q,G[je],ne),Fe!==null&&(z=y(Fe,z,je),st===null?we=Fe:st.sibling=Fe,st=Fe);return Ze&&ds(q,je),we}for(Fe=c(Fe);je<G.length;je++)Ye=Z(Fe,q,je,G[je],ne),Ye!==null&&(s&&Ye.alternate!==null&&Fe.delete(Ye.key===null?je:Ye.key),z=y(Ye,z,je),st===null?we=Ye:st.sibling=Ye,st=Ye);return s&&Fe.forEach(function(Ba){return i(q,Ba)}),Ze&&ds(q,je),we}function Pe(q,z,G,ne){if(G==null)throw Error(n(151));for(var we=null,st=null,Fe=z,je=z=0,Ye=null,at=G.next();Fe!==null&&!at.done;je++,at=G.next()){Fe.index>je?(Ye=Fe,Fe=null):Ye=Fe.sibling;var Ba=W(q,Fe,at.value,ne);if(Ba===null){Fe===null&&(Fe=Ye);break}s&&Fe&&Ba.alternate===null&&i(q,Fe),z=y(Ba,z,je),st===null?we=Ba:st.sibling=Ba,st=Ba,Fe=Ye}if(at.done)return o(q,Fe),Ze&&ds(q,je),we;if(Fe===null){for(;!at.done;je++,at=G.next())at=ae(q,at.value,ne),at!==null&&(z=y(at,z,je),st===null?we=at:st.sibling=at,st=at);return Ze&&ds(q,je),we}for(Fe=c(Fe);!at.done;je++,at=G.next())at=Z(Fe,q,je,at.value,ne),at!==null&&(s&&at.alternate!==null&&Fe.delete(at.key===null?je:at.key),z=y(at,z,je),st===null?we=at:st.sibling=at,st=at);return s&&Fe.forEach(function(iN){return i(q,iN)}),Ze&&ds(q,je),we}function mt(q,z,G,ne){if(typeof G=="object"&&G!==null&&G.type===C&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case x:e:{for(var we=G.key;z!==null;){if(z.key===we){if(we=G.type,we===C){if(z.tag===7){o(q,z.sibling),ne=f(z,G.props.children),ne.return=q,q=ne;break e}}else if(z.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===U&&Fi(we)===z.type){o(q,z.sibling),ne=f(z,G.props),dl(ne,G),ne.return=q,q=ne;break e}o(q,z);break}else i(q,z);z=z.sibling}G.type===C?(ne=xi(G.props.children,q.mode,ne,G.key),ne.return=q,q=ne):(ne=op(G.type,G.key,G.props,null,q.mode,ne),dl(ne,G),ne.return=q,q=ne)}return A(q);case b:e:{for(we=G.key;z!==null;){if(z.key===we)if(z.tag===4&&z.stateNode.containerInfo===G.containerInfo&&z.stateNode.implementation===G.implementation){o(q,z.sibling),ne=f(z,G.children||[]),ne.return=q,q=ne;break e}else{o(q,z);break}else i(q,z);z=z.sibling}ne=of(G,q.mode,ne),ne.return=q,q=ne}return A(q);case U:return G=Fi(G),mt(q,z,G,ne)}if(Be(G))return Ae(q,z,G,ne);if(re(G)){if(we=re(G),typeof we!="function")throw Error(n(150));return G=we.call(G),Pe(q,z,G,ne)}if(typeof G.then=="function")return mt(q,z,mp(G),ne);if(G.$$typeof===w)return mt(q,z,pp(q,G),ne);yp(q,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,z!==null&&z.tag===6?(o(q,z.sibling),ne=f(z,G),ne.return=q,q=ne):(o(q,z),ne=uf(G,q.mode,ne),ne.return=q,q=ne),A(q)):o(q,z)}return function(q,z,G,ne){try{hl=0;var we=mt(q,z,G,ne);return Ou=null,we}catch(Fe){if(Fe===Mu||Fe===dp)throw Fe;var st=Ur(29,Fe,null,q.mode);return st.lanes=ne,st.return=q,st}finally{}}}var Si=U1(!0),q1=U1(!1),da=!1;function Ef(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bf(s,i){s=s.updateQueue,i.updateQueue===s&&(i.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function fa(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function ma(s,i,o){var c=s.updateQueue;if(c===null)return null;if(c=c.shared,(ut&2)!==0){var f=c.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),c.pending=i,i=up(s),S1(s,null,o),i}return ip(s,c,i,o),up(s)}function fl(s,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var c=i.lanes;c&=s.pendingLanes,o|=c,i.lanes=o,Mg(s,o)}}function Af(s,i){var o=s.updateQueue,c=s.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var f=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var A={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?f=y=A:y=y.next=A,o=o.next}while(o!==null);y===null?f=y=i:y=y.next=i}else f=y=i;o={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},s.updateQueue=o;return}s=o.lastBaseUpdate,s===null?o.firstBaseUpdate=i:s.next=i,o.lastBaseUpdate=i}var Cf=!1;function ml(){if(Cf){var s=Iu;if(s!==null)throw s}}function yl(s,i,o,c){Cf=!1;var f=s.updateQueue;da=!1;var y=f.firstBaseUpdate,A=f.lastBaseUpdate,N=f.shared.pending;if(N!==null){f.shared.pending=null;var R=N,K=R.next;R.next=null,A===null?y=K:A.next=K,A=R;var te=s.alternate;te!==null&&(te=te.updateQueue,N=te.lastBaseUpdate,N!==A&&(N===null?te.firstBaseUpdate=K:N.next=K,te.lastBaseUpdate=R))}if(y!==null){var ae=f.baseState;A=0,te=K=R=null,N=y;do{var W=N.lane&-536870913,Z=W!==N.lane;if(Z?(Qe&W)===W:(c&W)===W){W!==0&&W===ku&&(Cf=!0),te!==null&&(te=te.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Ae=s,Pe=N;W=i;var mt=o;switch(Pe.tag){case 1:if(Ae=Pe.payload,typeof Ae=="function"){ae=Ae.call(mt,ae,W);break e}ae=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Pe.payload,W=typeof Ae=="function"?Ae.call(mt,ae,W):Ae,W==null)break e;ae=D({},ae,W);break e;case 2:da=!0}}W=N.callback,W!==null&&(s.flags|=64,Z&&(s.flags|=8192),Z=f.callbacks,Z===null?f.callbacks=[W]:Z.push(W))}else Z={lane:W,tag:N.tag,payload:N.payload,callback:N.callback,next:null},te===null?(K=te=Z,R=ae):te=te.next=Z,A|=W;if(N=N.next,N===null){if(N=f.shared.pending,N===null)break;Z=N,N=Z.next,Z.next=null,f.lastBaseUpdate=Z,f.shared.pending=null}}while(!0);te===null&&(R=ae),f.baseState=R,f.firstBaseUpdate=K,f.lastBaseUpdate=te,y===null&&(f.shared.lanes=0),Ea|=A,s.lanes=A,s.memoizedState=ae}}function H1(s,i){if(typeof s!="function")throw Error(n(191,s));s.call(i)}function V1(s,i){var o=s.callbacks;if(o!==null)for(s.callbacks=null,s=0;s<o.length;s++)H1(o[s],i)}var Lu=j(null),Dp=j(0);function J1(s,i){s=Fs,fe(Dp,s),fe(Lu,i),Fs=s|i.baseLanes}function Ff(){fe(Dp,Fs),fe(Lu,Lu.current)}function vf(){Fs=Dp.current,ee(Lu),ee(Dp)}var qr=j(null),ln=null;function ya(s){var i=s.alternate;fe(Ot,Ot.current&1),fe(qr,s),ln===null&&(i===null||Lu.current!==null||i.memoizedState!==null)&&(ln=s)}function Sf(s){fe(Ot,Ot.current),fe(qr,s),ln===null&&(ln=s)}function X1(s){s.tag===22?(fe(Ot,Ot.current),fe(qr,s),ln===null&&(ln=s)):Da()}function Da(){fe(Ot,Ot.current),fe(qr,qr.current)}function Hr(s){ee(qr),ln===s&&(ln=null),ee(Ot)}var Ot=j(0);function gp(s){for(var i=s;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||km(o)||Im(o)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ys=0,_e=null,dt=null,$t=null,xp=!1,Ru=!1,Ti=!1,Ep=0,Dl=0,_u=null,Qw=0;function Pt(){throw Error(n(321))}function Tf(s,i){if(i===null)return!1;for(var o=0;o<i.length&&o<s.length;o++)if(!zr(s[o],i[o]))return!1;return!0}function wf(s,i,o,c,f,y){return ys=y,_e=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,J.H=s===null||s.memoizedState===null?Bx:qf,Ti=!1,y=o(c,f),Ti=!1,Ru&&(y=K1(i,o,c,f)),G1(s),y}function G1(s){J.H=El;var i=dt!==null&&dt.next!==null;if(ys=0,$t=dt=_e=null,xp=!1,Dl=0,_u=null,i)throw Error(n(300));s===null||zt||(s=s.dependencies,s!==null&&cp(s)&&(zt=!0))}function K1(s,i,o,c){_e=s;var f=0;do{if(Ru&&(_u=null),Dl=0,Ru=!1,25<=f)throw Error(n(301));if(f+=1,$t=dt=null,s.updateQueue!=null){var y=s.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}J.H=Px,y=i(o,c)}while(Ru);return y}function Yw(){var s=J.H,i=s.useState()[0];return i=typeof i.then=="function"?gl(i):i,s=s.useState()[0],(dt!==null?dt.memoizedState:null)!==s&&(_e.flags|=1024),i}function Nf(){var s=Ep!==0;return Ep=0,s}function Bf(s,i,o){i.updateQueue=s.updateQueue,i.flags&=-2053,s.lanes&=~o}function Pf(s){if(xp){for(s=s.memoizedState;s!==null;){var i=s.queue;i!==null&&(i.pending=null),s=s.next}xp=!1}ys=0,$t=dt=_e=null,Ru=!1,Dl=Ep=0,_u=null}function fr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?_e.memoizedState=$t=s:$t=$t.next=s,$t}function Lt(){if(dt===null){var s=_e.alternate;s=s!==null?s.memoizedState:null}else s=dt.next;var i=$t===null?_e.memoizedState:$t.next;if(i!==null)$t=i,dt=s;else{if(s===null)throw _e.alternate===null?Error(n(467)):Error(n(310));dt=s,s={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},$t===null?_e.memoizedState=$t=s:$t=$t.next=s}return $t}function bp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gl(s){var i=Dl;return Dl+=1,_u===null&&(_u=[]),s=j1(_u,s,i),i=_e,($t===null?i.memoizedState:$t.next)===null&&(i=i.alternate,J.H=i===null||i.memoizedState===null?Bx:qf),s}function Ap(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return gl(s);if(s.$$typeof===w)return rr(s)}throw Error(n(438,String(s)))}function kf(s){var i=null,o=_e.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var c=_e.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=bp(),_e.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(s),c=0;c<s;c++)o[c]=O;return i.index++,o}function Ds(s,i){return typeof i=="function"?i(s):i}function Cp(s){var i=Lt();return If(i,dt,s)}function If(s,i,o){var c=s.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=o;var f=s.baseQueue,y=c.pending;if(y!==null){if(f!==null){var A=f.next;f.next=y.next,y.next=A}i.baseQueue=f=y,c.pending=null}if(y=s.baseState,f===null)s.memoizedState=y;else{i=f.next;var N=A=null,R=null,K=i,te=!1;do{var ae=K.lane&-536870913;if(ae!==K.lane?(Qe&ae)===ae:(ys&ae)===ae){var W=K.revertLane;if(W===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ae===ku&&(te=!0);else if((ys&W)===W){K=K.next,W===ku&&(te=!0);continue}else ae={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},R===null?(N=R=ae,A=y):R=R.next=ae,_e.lanes|=W,Ea|=W;ae=K.action,Ti&&o(y,ae),y=K.hasEagerState?K.eagerState:o(y,ae)}else W={lane:ae,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},R===null?(N=R=W,A=y):R=R.next=W,_e.lanes|=ae,Ea|=ae;K=K.next}while(K!==null&&K!==i);if(R===null?A=y:R.next=N,!zr(y,s.memoizedState)&&(zt=!0,te&&(o=Iu,o!==null)))throw o;s.memoizedState=y,s.baseState=A,s.baseQueue=R,c.lastRenderedState=y}return f===null&&(c.lanes=0),[s.memoizedState,c.dispatch]}function Mf(s){var i=Lt(),o=i.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=s;var c=o.dispatch,f=o.pending,y=i.memoizedState;if(f!==null){o.pending=null;var A=f=f.next;do y=s(y,A.action),A=A.next;while(A!==f);zr(y,i.memoizedState)||(zt=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),o.lastRenderedState=y}return[y,c]}function Q1(s,i,o){var c=_e,f=Lt(),y=Ze;if(y){if(o===void 0)throw Error(n(407));o=o()}else o=i();var A=!zr((dt||f).memoizedState,o);if(A&&(f.memoizedState=o,zt=!0),f=f.queue,Rf(Z1.bind(null,c,f,s),[s]),f.getSnapshot!==i||A||$t!==null&&$t.memoizedState.tag&1){if(c.flags|=2048,ju(9,{destroy:void 0},W1.bind(null,c,f,o,i),null),yt===null)throw Error(n(349));y||(ys&127)!==0||Y1(c,i,o)}return o}function Y1(s,i,o){s.flags|=16384,s={getSnapshot:i,value:o},i=_e.updateQueue,i===null?(i=bp(),_e.updateQueue=i,i.stores=[s]):(o=i.stores,o===null?i.stores=[s]:o.push(s))}function W1(s,i,o,c){i.value=o,i.getSnapshot=c,ex(i)&&tx(s)}function Z1(s,i,o){return o(function(){ex(i)&&tx(s)})}function ex(s){var i=s.getSnapshot;s=s.value;try{var o=i();return!zr(s,o)}catch{return!0}}function tx(s){var i=gi(s,2);i!==null&&Nr(i,s,2)}function Of(s){var i=fr();if(typeof s=="function"){var o=s;if(s=o(),Ti){ia(!0);try{o()}finally{ia(!1)}}}return i.memoizedState=i.baseState=s,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:s},i}function rx(s,i,o,c){return s.baseState=o,If(s,dt,typeof c=="function"?c:Ds)}function Ww(s,i,o,c,f){if(Sp(s))throw Error(n(485));if(s=i.action,s!==null){var y={payload:f,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){y.listeners.push(A)}};J.T!==null?o(!0):y.isTransition=!1,c(y),o=i.pending,o===null?(y.next=i.pending=y,nx(i,y)):(y.next=o.next,i.pending=o.next=y)}}function nx(s,i){var o=i.action,c=i.payload,f=s.state;if(i.isTransition){var y=J.T,A={};J.T=A;try{var N=o(f,c),R=J.S;R!==null&&R(A,N),sx(s,i,N)}catch(K){Lf(s,i,K)}finally{y!==null&&A.types!==null&&(y.types=A.types),J.T=y}}else try{y=o(f,c),sx(s,i,y)}catch(K){Lf(s,i,K)}}function sx(s,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){ax(s,i,c)},function(c){return Lf(s,i,c)}):ax(s,i,o)}function ax(s,i,o){i.status="fulfilled",i.value=o,ix(i),s.state=o,i=s.pending,i!==null&&(o=i.next,o===i?s.pending=null:(o=o.next,i.next=o,nx(s,o)))}function Lf(s,i,o){var c=s.pending;if(s.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=o,ix(i),i=i.next;while(i!==c)}s.action=null}function ix(s){s=s.listeners;for(var i=0;i<s.length;i++)(0,s[i])()}function ux(s,i){return i}function ox(s,i){if(Ze){var o=yt.formState;if(o!==null){e:{var c=_e;if(Ze){if(Ct){t:{for(var f=Ct,y=on;f.nodeType!==8;){if(!y){f=null;break t}if(f=cn(f.nextSibling),f===null){f=null;break t}}y=f.data,f=y==="F!"||y==="F"?f:null}if(f){Ct=cn(f.nextSibling),c=f.data==="F!";break e}}pa(c)}c=!1}c&&(i=o[0])}}return o=fr(),o.memoizedState=o.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ux,lastRenderedState:i},o.queue=c,o=Tx.bind(null,_e,c),c.dispatch=o,c=Of(!1),y=Uf.bind(null,_e,!1,c.queue),c=fr(),f={state:i,dispatch:null,action:s,pending:null},c.queue=f,o=Ww.bind(null,_e,f,y,o),f.dispatch=o,c.memoizedState=s,[i,o,!1]}function lx(s){var i=Lt();return cx(i,dt,s)}function cx(s,i,o){if(i=If(s,i,ux)[0],s=Cp(Ds)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=gl(i)}catch(A){throw A===Mu?dp:A}else c=i;i=Lt();var f=i.queue,y=f.dispatch;return o!==i.memoizedState&&(_e.flags|=2048,ju(9,{destroy:void 0},Zw.bind(null,f,o),null)),[c,y,s]}function Zw(s,i){s.action=i}function px(s){var i=Lt(),o=dt;if(o!==null)return cx(i,o,s);Lt(),i=i.memoizedState,o=Lt();var c=o.queue.dispatch;return o.memoizedState=s,[i,c,!1]}function ju(s,i,o,c){return s={tag:s,create:o,deps:c,inst:i,next:null},i=_e.updateQueue,i===null&&(i=bp(),_e.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=s.next=s:(c=o.next,o.next=s,s.next=c,i.lastEffect=s),s}function hx(){return Lt().memoizedState}function Fp(s,i,o,c){var f=fr();_e.flags|=s,f.memoizedState=ju(1|i,{destroy:void 0},o,c===void 0?null:c)}function vp(s,i,o,c){var f=Lt();c=c===void 0?null:c;var y=f.memoizedState.inst;dt!==null&&c!==null&&Tf(c,dt.memoizedState.deps)?f.memoizedState=ju(i,y,o,c):(_e.flags|=s,f.memoizedState=ju(1|i,y,o,c))}function dx(s,i){Fp(8390656,8,s,i)}function Rf(s,i){vp(2048,8,s,i)}function e8(s){_e.flags|=4;var i=_e.updateQueue;if(i===null)i=bp(),_e.updateQueue=i,i.events=[s];else{var o=i.events;o===null?i.events=[s]:o.push(s)}}function fx(s){var i=Lt().memoizedState;return e8({ref:i,nextImpl:s}),function(){if((ut&2)!==0)throw Error(n(440));return i.impl.apply(void 0,arguments)}}function mx(s,i){return vp(4,2,s,i)}function yx(s,i){return vp(4,4,s,i)}function Dx(s,i){if(typeof i=="function"){s=s();var o=i(s);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return s=s(),i.current=s,function(){i.current=null}}function gx(s,i,o){o=o!=null?o.concat([s]):null,vp(4,4,Dx.bind(null,i,s),o)}function _f(){}function xx(s,i){var o=Lt();i=i===void 0?null:i;var c=o.memoizedState;return i!==null&&Tf(i,c[1])?c[0]:(o.memoizedState=[s,i],s)}function Ex(s,i){var o=Lt();i=i===void 0?null:i;var c=o.memoizedState;if(i!==null&&Tf(i,c[1]))return c[0];if(c=s(),Ti){ia(!0);try{s()}finally{ia(!1)}}return o.memoizedState=[c,i],c}function jf(s,i,o){return o===void 0||(ys&1073741824)!==0&&(Qe&261930)===0?s.memoizedState=i:(s.memoizedState=o,s=bE(),_e.lanes|=s,Ea|=s,o)}function bx(s,i,o,c){return zr(o,i)?o:Lu.current!==null?(s=jf(s,o,c),zr(s,i)||(zt=!0),s):(ys&42)===0||(ys&1073741824)!==0&&(Qe&261930)===0?(zt=!0,s.memoizedState=o):(s=bE(),_e.lanes|=s,Ea|=s,i)}function Ax(s,i,o,c,f){var y=ce.p;ce.p=y!==0&&8>y?y:8;var A=J.T,N={};J.T=N,Uf(s,!1,i,o);try{var R=f(),K=J.S;if(K!==null&&K(N,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var te=Kw(R,c);xl(s,i,te,Xr(s))}else xl(s,i,c,Xr(s))}catch(ae){xl(s,i,{then:function(){},status:"rejected",reason:ae},Xr())}finally{ce.p=y,A!==null&&N.types!==null&&(A.types=N.types),J.T=A}}function t8(){}function $f(s,i,o,c){if(s.tag!==5)throw Error(n(476));var f=Cx(s).queue;Ax(s,f,i,oe,o===null?t8:function(){return Fx(s),o(c)})}function Cx(s){var i=s.memoizedState;if(i!==null)return i;i={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:oe},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:o},next:null},s.memoizedState=i,s=s.alternate,s!==null&&(s.memoizedState=i),i}function Fx(s){var i=Cx(s);i.next===null&&(i=s.alternate.memoizedState),xl(s,i.next.queue,{},Xr())}function zf(){return rr(Ll)}function vx(){return Lt().memoizedState}function Sx(){return Lt().memoizedState}function r8(s){for(var i=s.return;i!==null;){switch(i.tag){case 24:case 3:var o=Xr();s=fa(o);var c=ma(i,s,o);c!==null&&(Nr(c,i,o),fl(c,i,o)),i={cache:yf()},s.payload=i;return}i=i.return}}function n8(s,i,o){var c=Xr();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Sp(s)?wx(i,o):(o=sf(s,i,o,c),o!==null&&(Nr(o,s,c),Nx(o,i,c)))}function Tx(s,i,o){var c=Xr();xl(s,i,o,c)}function xl(s,i,o,c){var f={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Sp(s))wx(i,f);else{var y=s.alternate;if(s.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var A=i.lastRenderedState,N=y(A,o);if(f.hasEagerState=!0,f.eagerState=N,zr(N,A))return ip(s,i,f,0),yt===null&&ap(),!1}catch{}finally{}if(o=sf(s,i,f,c),o!==null)return Nr(o,s,c),Nx(o,i,c),!0}return!1}function Uf(s,i,o,c){if(c={lane:2,revertLane:Em(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Sp(s)){if(i)throw Error(n(479))}else i=sf(s,o,c,2),i!==null&&Nr(i,s,2)}function Sp(s){var i=s.alternate;return s===_e||i!==null&&i===_e}function wx(s,i){Ru=xp=!0;var o=s.pending;o===null?i.next=i:(i.next=o.next,o.next=i),s.pending=i}function Nx(s,i,o){if((o&4194048)!==0){var c=i.lanes;c&=s.pendingLanes,o|=c,i.lanes=o,Mg(s,o)}}var El={readContext:rr,use:Ap,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt,useHostTransitionStatus:Pt,useFormState:Pt,useActionState:Pt,useOptimistic:Pt,useMemoCache:Pt,useCacheRefresh:Pt};El.useEffectEvent=Pt;var Bx={readContext:rr,use:Ap,useCallback:function(s,i){return fr().memoizedState=[s,i===void 0?null:i],s},useContext:rr,useEffect:dx,useImperativeHandle:function(s,i,o){o=o!=null?o.concat([s]):null,Fp(4194308,4,Dx.bind(null,i,s),o)},useLayoutEffect:function(s,i){return Fp(4194308,4,s,i)},useInsertionEffect:function(s,i){Fp(4,2,s,i)},useMemo:function(s,i){var o=fr();i=i===void 0?null:i;var c=s();if(Ti){ia(!0);try{s()}finally{ia(!1)}}return o.memoizedState=[c,i],c},useReducer:function(s,i,o){var c=fr();if(o!==void 0){var f=o(i);if(Ti){ia(!0);try{o(i)}finally{ia(!1)}}}else f=i;return c.memoizedState=c.baseState=f,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:f},c.queue=s,s=s.dispatch=n8.bind(null,_e,s),[c.memoizedState,s]},useRef:function(s){var i=fr();return s={current:s},i.memoizedState=s},useState:function(s){s=Of(s);var i=s.queue,o=Tx.bind(null,_e,i);return i.dispatch=o,[s.memoizedState,o]},useDebugValue:_f,useDeferredValue:function(s,i){var o=fr();return jf(o,s,i)},useTransition:function(){var s=Of(!1);return s=Ax.bind(null,_e,s.queue,!0,!1),fr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,i,o){var c=_e,f=fr();if(Ze){if(o===void 0)throw Error(n(407));o=o()}else{if(o=i(),yt===null)throw Error(n(349));(Qe&127)!==0||Y1(c,i,o)}f.memoizedState=o;var y={value:o,getSnapshot:i};return f.queue=y,dx(Z1.bind(null,c,y,s),[s]),c.flags|=2048,ju(9,{destroy:void 0},W1.bind(null,c,y,o,i),null),o},useId:function(){var s=fr(),i=yt.identifierPrefix;if(Ze){var o=$n,c=jn;o=(c&~(1<<32-$r(c)-1)).toString(32)+o,i="_"+i+"R_"+o,o=Ep++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=Qw++,i="_"+i+"r_"+o.toString(32)+"_";return s.memoizedState=i},useHostTransitionStatus:zf,useFormState:ox,useActionState:ox,useOptimistic:function(s){var i=fr();i.memoizedState=i.baseState=s;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=Uf.bind(null,_e,!0,o),o.dispatch=i,[s,i]},useMemoCache:kf,useCacheRefresh:function(){return fr().memoizedState=r8.bind(null,_e)},useEffectEvent:function(s){var i=fr(),o={impl:s};return i.memoizedState=o,function(){if((ut&2)!==0)throw Error(n(440));return o.impl.apply(void 0,arguments)}}},qf={readContext:rr,use:Ap,useCallback:xx,useContext:rr,useEffect:Rf,useImperativeHandle:gx,useInsertionEffect:mx,useLayoutEffect:yx,useMemo:Ex,useReducer:Cp,useRef:hx,useState:function(){return Cp(Ds)},useDebugValue:_f,useDeferredValue:function(s,i){var o=Lt();return bx(o,dt.memoizedState,s,i)},useTransition:function(){var s=Cp(Ds)[0],i=Lt().memoizedState;return[typeof s=="boolean"?s:gl(s),i]},useSyncExternalStore:Q1,useId:vx,useHostTransitionStatus:zf,useFormState:lx,useActionState:lx,useOptimistic:function(s,i){var o=Lt();return rx(o,dt,s,i)},useMemoCache:kf,useCacheRefresh:Sx};qf.useEffectEvent=fx;var Px={readContext:rr,use:Ap,useCallback:xx,useContext:rr,useEffect:Rf,useImperativeHandle:gx,useInsertionEffect:mx,useLayoutEffect:yx,useMemo:Ex,useReducer:Mf,useRef:hx,useState:function(){return Mf(Ds)},useDebugValue:_f,useDeferredValue:function(s,i){var o=Lt();return dt===null?jf(o,s,i):bx(o,dt.memoizedState,s,i)},useTransition:function(){var s=Mf(Ds)[0],i=Lt().memoizedState;return[typeof s=="boolean"?s:gl(s),i]},useSyncExternalStore:Q1,useId:vx,useHostTransitionStatus:zf,useFormState:px,useActionState:px,useOptimistic:function(s,i){var o=Lt();return dt!==null?rx(o,dt,s,i):(o.baseState=s,[s,o.queue.dispatch])},useMemoCache:kf,useCacheRefresh:Sx};Px.useEffectEvent=fx;function Hf(s,i,o,c){i=s.memoizedState,o=o(c,i),o=o==null?i:D({},i,o),s.memoizedState=o,s.lanes===0&&(s.updateQueue.baseState=o)}var Vf={enqueueSetState:function(s,i,o){s=s._reactInternals;var c=Xr(),f=fa(c);f.payload=i,o!=null&&(f.callback=o),i=ma(s,f,c),i!==null&&(Nr(i,s,c),fl(i,s,c))},enqueueReplaceState:function(s,i,o){s=s._reactInternals;var c=Xr(),f=fa(c);f.tag=1,f.payload=i,o!=null&&(f.callback=o),i=ma(s,f,c),i!==null&&(Nr(i,s,c),fl(i,s,c))},enqueueForceUpdate:function(s,i){s=s._reactInternals;var o=Xr(),c=fa(o);c.tag=2,i!=null&&(c.callback=i),i=ma(s,c,o),i!==null&&(Nr(i,s,o),fl(i,s,o))}};function kx(s,i,o,c,f,y,A){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(c,y,A):i.prototype&&i.prototype.isPureReactComponent?!il(o,c)||!il(f,y):!0}function Ix(s,i,o,c){s=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,c),i.state!==s&&Vf.enqueueReplaceState(i,i.state,null)}function wi(s,i){var o=i;if("ref"in i){o={};for(var c in i)c!=="ref"&&(o[c]=i[c])}if(s=s.defaultProps){o===i&&(o=D({},o));for(var f in s)o[f]===void 0&&(o[f]=s[f])}return o}function Mx(s){sp(s)}function Ox(s){console.error(s)}function Lx(s){sp(s)}function Tp(s,i){try{var o=s.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function Rx(s,i,o){try{var c=s.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Jf(s,i,o){return o=fa(o),o.tag=3,o.payload={element:null},o.callback=function(){Tp(s,i)},o}function _x(s){return s=fa(s),s.tag=3,s}function jx(s,i,o,c){var f=o.type.getDerivedStateFromError;if(typeof f=="function"){var y=c.value;s.payload=function(){return f(y)},s.callback=function(){Rx(i,o,c)}}var A=o.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(s.callback=function(){Rx(i,o,c),typeof f!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})})}function s8(s,i,o,c,f){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=o.alternate,i!==null&&Pu(i,o,f,!0),o=qr.current,o!==null){switch(o.tag){case 31:case 13:return ln===null?jp():o.alternate===null&&kt===0&&(kt=3),o.flags&=-257,o.flags|=65536,o.lanes=f,c===fp?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([c]):i.add(c),Dm(s,c,f)),!1;case 22:return o.flags|=65536,c===fp?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([c]):o.add(c)),Dm(s,c,f)),!1}throw Error(n(435,o.tag))}return Dm(s,c,f),jp(),!1}if(Ze)return i=qr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,c!==pf&&(s=Error(n(422),{cause:c}),ll(sn(s,o)))):(c!==pf&&(i=Error(n(423),{cause:c}),ll(sn(i,o))),s=s.current.alternate,s.flags|=65536,f&=-f,s.lanes|=f,c=sn(c,o),f=Jf(s.stateNode,c,f),Af(s,f),kt!==4&&(kt=2)),!1;var y=Error(n(520),{cause:c});if(y=sn(y,o),wl===null?wl=[y]:wl.push(y),kt!==4&&(kt=2),i===null)return!0;c=sn(c,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,s=f&-f,o.lanes|=s,s=Jf(o.stateNode,c,s),Af(o,s),!1;case 1:if(i=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ba===null||!ba.has(y))))return o.flags|=65536,f&=-f,o.lanes|=f,f=_x(f),jx(f,s,o,c),Af(o,f),!1}o=o.return}while(o!==null);return!1}var Xf=Error(n(461)),zt=!1;function nr(s,i,o,c){i.child=s===null?q1(i,null,o,c):Si(i,s.child,o,c)}function $x(s,i,o,c,f){o=o.render;var y=i.ref;if("ref"in c){var A={};for(var N in c)N!=="ref"&&(A[N]=c[N])}else A=c;return Ai(i),c=wf(s,i,o,A,y,f),N=Nf(),s!==null&&!zt?(Bf(s,i,f),gs(s,i,f)):(Ze&&N&&lf(i),i.flags|=1,nr(s,i,c,f),i.child)}function zx(s,i,o,c,f){if(s===null){var y=o.type;return typeof y=="function"&&!af(y)&&y.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=y,Ux(s,i,y,c,f)):(s=op(o.type,null,c,i,i.mode,f),s.ref=i.ref,s.return=i,i.child=s)}if(y=s.child,!tm(s,f)){var A=y.memoizedProps;if(o=o.compare,o=o!==null?o:il,o(A,c)&&s.ref===i.ref)return gs(s,i,f)}return i.flags|=1,s=hs(y,c),s.ref=i.ref,s.return=i,i.child=s}function Ux(s,i,o,c,f){if(s!==null){var y=s.memoizedProps;if(il(y,c)&&s.ref===i.ref)if(zt=!1,i.pendingProps=c=y,tm(s,f))(s.flags&131072)!==0&&(zt=!0);else return i.lanes=s.lanes,gs(s,i,f)}return Gf(s,i,o,c,f)}function qx(s,i,o,c){var f=c.children,y=s!==null?s.memoizedState:null;if(s===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((i.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,s!==null){for(c=i.child=s.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~y}else c=0,i.child=null;return Hx(s,i,y,o,c)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},s!==null&&hp(i,y!==null?y.cachePool:null),y!==null?J1(i,y):Ff(),X1(i);else return c=i.lanes=536870912,Hx(s,i,y!==null?y.baseLanes|o:o,o,c)}else y!==null?(hp(i,y.cachePool),J1(i,y),Da(),i.memoizedState=null):(s!==null&&hp(i,null),Ff(),Da());return nr(s,i,f,o),i.child}function bl(s,i){return s!==null&&s.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Hx(s,i,o,c,f){var y=gf();return y=y===null?null:{parent:jt._currentValue,pool:y},i.memoizedState={baseLanes:o,cachePool:y},s!==null&&hp(i,null),Ff(),X1(i),s!==null&&Pu(s,i,c,!0),i.childLanes=f,null}function wp(s,i){return i=Bp({mode:i.mode,children:i.children},s.mode),i.ref=s.ref,s.child=i,i.return=s,i}function Vx(s,i,o){return Si(i,s.child,null,o),s=wp(i,i.pendingProps),s.flags|=2,Hr(i),i.memoizedState=null,s}function a8(s,i,o){var c=i.pendingProps,f=(i.flags&128)!==0;if(i.flags&=-129,s===null){if(Ze){if(c.mode==="hidden")return s=wp(i,c),i.lanes=536870912,bl(null,s);if(Sf(i),(s=Ct)?(s=nb(s,on),s=s!==null&&s.data==="&"?s:null,s!==null&&(i.memoizedState={dehydrated:s,treeContext:la!==null?{id:jn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},o=w1(s),o.return=i,i.child=o,tr=i,Ct=null)):s=null,s===null)throw pa(i);return i.lanes=536870912,null}return wp(i,c)}var y=s.memoizedState;if(y!==null){var A=y.dehydrated;if(Sf(i),f)if(i.flags&256)i.flags&=-257,i=Vx(s,i,o);else if(i.memoizedState!==null)i.child=s.child,i.flags|=128,i=null;else throw Error(n(558));else if(zt||Pu(s,i,o,!1),f=(o&s.childLanes)!==0,zt||f){if(c=yt,c!==null&&(A=Og(c,o),A!==0&&A!==y.retryLane))throw y.retryLane=A,gi(s,A),Nr(c,s,A),Xf;jp(),i=Vx(s,i,o)}else s=y.treeContext,Ct=cn(A.nextSibling),tr=i,Ze=!0,ca=null,on=!1,s!==null&&P1(i,s),i=wp(i,c),i.flags|=4096;return i}return s=hs(s.child,{mode:c.mode,children:c.children}),s.ref=i.ref,i.child=s,s.return=i,s}function Np(s,i){var o=i.ref;if(o===null)s!==null&&s.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(n(284));(s===null||s.ref!==o)&&(i.flags|=4194816)}}function Gf(s,i,o,c,f){return Ai(i),o=wf(s,i,o,c,void 0,f),c=Nf(),s!==null&&!zt?(Bf(s,i,f),gs(s,i,f)):(Ze&&c&&lf(i),i.flags|=1,nr(s,i,o,f),i.child)}function Jx(s,i,o,c,f,y){return Ai(i),i.updateQueue=null,o=K1(i,c,o,f),G1(s),c=Nf(),s!==null&&!zt?(Bf(s,i,y),gs(s,i,y)):(Ze&&c&&lf(i),i.flags|=1,nr(s,i,o,y),i.child)}function Xx(s,i,o,c,f){if(Ai(i),i.stateNode===null){var y=Tu,A=o.contextType;typeof A=="object"&&A!==null&&(y=rr(A)),y=new o(c,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Vf,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=c,y.state=i.memoizedState,y.refs={},Ef(i),A=o.contextType,y.context=typeof A=="object"&&A!==null?rr(A):Tu,y.state=i.memoizedState,A=o.getDerivedStateFromProps,typeof A=="function"&&(Hf(i,o,A,c),y.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(A=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),A!==y.state&&Vf.enqueueReplaceState(y,y.state,null),yl(i,c,y,f),ml(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(s===null){y=i.stateNode;var N=i.memoizedProps,R=wi(o,N);y.props=R;var K=y.context,te=o.contextType;A=Tu,typeof te=="object"&&te!==null&&(A=rr(te));var ae=o.getDerivedStateFromProps;te=typeof ae=="function"||typeof y.getSnapshotBeforeUpdate=="function",N=i.pendingProps!==N,te||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(N||K!==A)&&Ix(i,y,c,A),da=!1;var W=i.memoizedState;y.state=W,yl(i,c,y,f),ml(),K=i.memoizedState,N||W!==K||da?(typeof ae=="function"&&(Hf(i,o,ae,c),K=i.memoizedState),(R=da||kx(i,o,R,c,W,K,A))?(te||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=K),y.props=c,y.state=K,y.context=A,c=R):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{y=i.stateNode,bf(s,i),A=i.memoizedProps,te=wi(o,A),y.props=te,ae=i.pendingProps,W=y.context,K=o.contextType,R=Tu,typeof K=="object"&&K!==null&&(R=rr(K)),N=o.getDerivedStateFromProps,(K=typeof N=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(A!==ae||W!==R)&&Ix(i,y,c,R),da=!1,W=i.memoizedState,y.state=W,yl(i,c,y,f),ml();var Z=i.memoizedState;A!==ae||W!==Z||da||s!==null&&s.dependencies!==null&&cp(s.dependencies)?(typeof N=="function"&&(Hf(i,o,N,c),Z=i.memoizedState),(te=da||kx(i,o,te,c,W,Z,R)||s!==null&&s.dependencies!==null&&cp(s.dependencies))?(K||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,Z,R),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,Z,R)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||A===s.memoizedProps&&W===s.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&W===s.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=Z),y.props=c,y.state=Z,y.context=R,c=te):(typeof y.componentDidUpdate!="function"||A===s.memoizedProps&&W===s.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&W===s.memoizedState||(i.flags|=1024),c=!1)}return y=c,Np(s,i),c=(i.flags&128)!==0,y||c?(y=i.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,s!==null&&c?(i.child=Si(i,s.child,null,f),i.child=Si(i,null,o,f)):nr(s,i,o,f),i.memoizedState=y.state,s=i.child):s=gs(s,i,f),s}function Gx(s,i,o,c){return Ei(),i.flags|=256,nr(s,i,o,c),i.child}var Kf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qf(s){return{baseLanes:s,cachePool:R1()}}function Yf(s,i,o){return s=s!==null?s.childLanes&~o:0,i&&(s|=Jr),s}function Kx(s,i,o){var c=i.pendingProps,f=!1,y=(i.flags&128)!==0,A;if((A=y)||(A=s!==null&&s.memoizedState===null?!1:(Ot.current&2)!==0),A&&(f=!0,i.flags&=-129),A=(i.flags&32)!==0,i.flags&=-33,s===null){if(Ze){if(f?ya(i):Da(),(s=Ct)?(s=nb(s,on),s=s!==null&&s.data!=="&"?s:null,s!==null&&(i.memoizedState={dehydrated:s,treeContext:la!==null?{id:jn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},o=w1(s),o.return=i,i.child=o,tr=i,Ct=null)):s=null,s===null)throw pa(i);return Im(s)?i.lanes=32:i.lanes=536870912,null}var N=c.children;return c=c.fallback,f?(Da(),f=i.mode,N=Bp({mode:"hidden",children:N},f),c=xi(c,f,o,null),N.return=i,c.return=i,N.sibling=c,i.child=N,c=i.child,c.memoizedState=Qf(o),c.childLanes=Yf(s,A,o),i.memoizedState=Kf,bl(null,c)):(ya(i),Wf(i,N))}var R=s.memoizedState;if(R!==null&&(N=R.dehydrated,N!==null)){if(y)i.flags&256?(ya(i),i.flags&=-257,i=Zf(s,i,o)):i.memoizedState!==null?(Da(),i.child=s.child,i.flags|=128,i=null):(Da(),N=c.fallback,f=i.mode,c=Bp({mode:"visible",children:c.children},f),N=xi(N,f,o,null),N.flags|=2,c.return=i,N.return=i,c.sibling=N,i.child=c,Si(i,s.child,null,o),c=i.child,c.memoizedState=Qf(o),c.childLanes=Yf(s,A,o),i.memoizedState=Kf,i=bl(null,c));else if(ya(i),Im(N)){if(A=N.nextSibling&&N.nextSibling.dataset,A)var K=A.dgst;A=K,c=Error(n(419)),c.stack="",c.digest=A,ll({value:c,source:null,stack:null}),i=Zf(s,i,o)}else if(zt||Pu(s,i,o,!1),A=(o&s.childLanes)!==0,zt||A){if(A=yt,A!==null&&(c=Og(A,o),c!==0&&c!==R.retryLane))throw R.retryLane=c,gi(s,c),Nr(A,s,c),Xf;km(N)||jp(),i=Zf(s,i,o)}else km(N)?(i.flags|=192,i.child=s.child,i=null):(s=R.treeContext,Ct=cn(N.nextSibling),tr=i,Ze=!0,ca=null,on=!1,s!==null&&P1(i,s),i=Wf(i,c.children),i.flags|=4096);return i}return f?(Da(),N=c.fallback,f=i.mode,R=s.child,K=R.sibling,c=hs(R,{mode:"hidden",children:c.children}),c.subtreeFlags=R.subtreeFlags&65011712,K!==null?N=hs(K,N):(N=xi(N,f,o,null),N.flags|=2),N.return=i,c.return=i,c.sibling=N,i.child=c,bl(null,c),c=i.child,N=s.child.memoizedState,N===null?N=Qf(o):(f=N.cachePool,f!==null?(R=jt._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=R1(),N={baseLanes:N.baseLanes|o,cachePool:f}),c.memoizedState=N,c.childLanes=Yf(s,A,o),i.memoizedState=Kf,bl(s.child,c)):(ya(i),o=s.child,s=o.sibling,o=hs(o,{mode:"visible",children:c.children}),o.return=i,o.sibling=null,s!==null&&(A=i.deletions,A===null?(i.deletions=[s],i.flags|=16):A.push(s)),i.child=o,i.memoizedState=null,o)}function Wf(s,i){return i=Bp({mode:"visible",children:i},s.mode),i.return=s,s.child=i}function Bp(s,i){return s=Ur(22,s,null,i),s.lanes=0,s}function Zf(s,i,o){return Si(i,s.child,null,o),s=Wf(i,i.pendingProps.children),s.flags|=2,i.memoizedState=null,s}function Qx(s,i,o){s.lanes|=i;var c=s.alternate;c!==null&&(c.lanes|=i),ff(s.return,i,o)}function em(s,i,o,c,f,y){var A=s.memoizedState;A===null?s.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:f,treeForkCount:y}:(A.isBackwards=i,A.rendering=null,A.renderingStartTime=0,A.last=c,A.tail=o,A.tailMode=f,A.treeForkCount=y)}function Yx(s,i,o){var c=i.pendingProps,f=c.revealOrder,y=c.tail;c=c.children;var A=Ot.current,N=(A&2)!==0;if(N?(A=A&1|2,i.flags|=128):A&=1,fe(Ot,A),nr(s,i,c,o),c=Ze?ol:0,!N&&s!==null&&(s.flags&128)!==0)e:for(s=i.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Qx(s,o,i);else if(s.tag===19)Qx(s,o,i);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(f){case"forwards":for(o=i.child,f=null;o!==null;)s=o.alternate,s!==null&&gp(s)===null&&(f=o),o=o.sibling;o=f,o===null?(f=i.child,i.child=null):(f=o.sibling,o.sibling=null),em(i,!1,f,o,y,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,f=i.child,i.child=null;f!==null;){if(s=f.alternate,s!==null&&gp(s)===null){i.child=f;break}s=f.sibling,f.sibling=o,o=f,f=s}em(i,!0,o,null,y,c);break;case"together":em(i,!1,null,null,void 0,c);break;default:i.memoizedState=null}return i.child}function gs(s,i,o){if(s!==null&&(i.dependencies=s.dependencies),Ea|=i.lanes,(o&i.childLanes)===0)if(s!==null){if(Pu(s,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(s!==null&&i.child!==s.child)throw Error(n(153));if(i.child!==null){for(s=i.child,o=hs(s,s.pendingProps),i.child=o,o.return=i;s.sibling!==null;)s=s.sibling,o=o.sibling=hs(s,s.pendingProps),o.return=i;o.sibling=null}return i.child}function tm(s,i){return(s.lanes&i)!==0?!0:(s=s.dependencies,!!(s!==null&&cp(s)))}function i8(s,i,o){switch(i.tag){case 3:Mt(i,i.stateNode.containerInfo),ha(i,jt,s.memoizedState.cache),Ei();break;case 27:case 5:en(i);break;case 4:Mt(i,i.stateNode.containerInfo);break;case 10:ha(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Sf(i),null;break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(ya(i),i.flags|=128,null):(o&i.child.childLanes)!==0?Kx(s,i,o):(ya(i),s=gs(s,i,o),s!==null?s.sibling:null);ya(i);break;case 19:var f=(s.flags&128)!==0;if(c=(o&i.childLanes)!==0,c||(Pu(s,i,o,!1),c=(o&i.childLanes)!==0),f){if(c)return Yx(s,i,o);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),fe(Ot,Ot.current),c)break;return null;case 22:return i.lanes=0,qx(s,i,o,i.pendingProps);case 24:ha(i,jt,s.memoizedState.cache)}return gs(s,i,o)}function Wx(s,i,o){if(s!==null)if(s.memoizedProps!==i.pendingProps)zt=!0;else{if(!tm(s,o)&&(i.flags&128)===0)return zt=!1,i8(s,i,o);zt=(s.flags&131072)!==0}else zt=!1,Ze&&(i.flags&1048576)!==0&&B1(i,ol,i.index);switch(i.lanes=0,i.tag){case 16:e:{var c=i.pendingProps;if(s=Fi(i.elementType),i.type=s,typeof s=="function")af(s)?(c=wi(s,c),i.tag=1,i=Xx(null,i,s,c,o)):(i.tag=0,i=Gf(null,i,s,c,o));else{if(s!=null){var f=s.$$typeof;if(f===T){i.tag=11,i=$x(null,i,s,c,o);break e}else if(f===V){i.tag=14,i=zx(null,i,s,c,o);break e}}throw i=ge(s)||s,Error(n(306,i,""))}}return i;case 0:return Gf(s,i,i.type,i.pendingProps,o);case 1:return c=i.type,f=wi(c,i.pendingProps),Xx(s,i,c,f,o);case 3:e:{if(Mt(i,i.stateNode.containerInfo),s===null)throw Error(n(387));c=i.pendingProps;var y=i.memoizedState;f=y.element,bf(s,i),yl(i,c,null,o);var A=i.memoizedState;if(c=A.cache,ha(i,jt,c),c!==y.cache&&mf(i,[jt],o,!0),ml(),c=A.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:A.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=Gx(s,i,c,o);break e}else if(c!==f){f=sn(Error(n(424)),i),ll(f),i=Gx(s,i,c,o);break e}else{switch(s=i.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(Ct=cn(s.firstChild),tr=i,Ze=!0,ca=null,on=!0,o=q1(i,null,c,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Ei(),c===f){i=gs(s,i,o);break e}nr(s,i,c,o)}i=i.child}return i;case 26:return Np(s,i),s===null?(o=lb(i.type,null,i.pendingProps,null))?i.memoizedState=o:Ze||(o=i.type,s=i.pendingProps,c=Jp(Oe.current).createElement(o),c[er]=i,c[Cr]=s,sr(c,o,s),Xt(c),i.stateNode=c):i.memoizedState=lb(i.type,s.memoizedProps,i.pendingProps,s.memoizedState),null;case 27:return en(i),s===null&&Ze&&(c=i.stateNode=ib(i.type,i.pendingProps,Oe.current),tr=i,on=!0,f=Ct,va(i.type)?(Mm=f,Ct=cn(c.firstChild)):Ct=f),nr(s,i,i.pendingProps.children,o),Np(s,i),s===null&&(i.flags|=4194304),i.child;case 5:return s===null&&Ze&&((f=c=Ct)&&(c=L8(c,i.type,i.pendingProps,on),c!==null?(i.stateNode=c,tr=i,Ct=cn(c.firstChild),on=!1,f=!0):f=!1),f||pa(i)),en(i),f=i.type,y=i.pendingProps,A=s!==null?s.memoizedProps:null,c=y.children,Nm(f,y)?c=null:A!==null&&Nm(f,A)&&(i.flags|=32),i.memoizedState!==null&&(f=wf(s,i,Yw,null,null,o),Ll._currentValue=f),Np(s,i),nr(s,i,c,o),i.child;case 6:return s===null&&Ze&&((s=o=Ct)&&(o=R8(o,i.pendingProps,on),o!==null?(i.stateNode=o,tr=i,Ct=null,s=!0):s=!1),s||pa(i)),null;case 13:return Kx(s,i,o);case 4:return Mt(i,i.stateNode.containerInfo),c=i.pendingProps,s===null?i.child=Si(i,null,c,o):nr(s,i,c,o),i.child;case 11:return $x(s,i,i.type,i.pendingProps,o);case 7:return nr(s,i,i.pendingProps,o),i.child;case 8:return nr(s,i,i.pendingProps.children,o),i.child;case 12:return nr(s,i,i.pendingProps.children,o),i.child;case 10:return c=i.pendingProps,ha(i,i.type,c.value),nr(s,i,c.children,o),i.child;case 9:return f=i.type._context,c=i.pendingProps.children,Ai(i),f=rr(f),c=c(f),i.flags|=1,nr(s,i,c,o),i.child;case 14:return zx(s,i,i.type,i.pendingProps,o);case 15:return Ux(s,i,i.type,i.pendingProps,o);case 19:return Yx(s,i,o);case 31:return a8(s,i,o);case 22:return qx(s,i,o,i.pendingProps);case 24:return Ai(i),c=rr(jt),s===null?(f=gf(),f===null&&(f=yt,y=yf(),f.pooledCache=y,y.refCount++,y!==null&&(f.pooledCacheLanes|=o),f=y),i.memoizedState={parent:c,cache:f},Ef(i),ha(i,jt,f)):((s.lanes&o)!==0&&(bf(s,i),yl(i,null,null,o),ml()),f=s.memoizedState,y=i.memoizedState,f.parent!==c?(f={parent:c,cache:c},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),ha(i,jt,c)):(c=y.cache,ha(i,jt,c),c!==f.cache&&mf(i,[jt],o,!0))),nr(s,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(n(156,i.tag))}function xs(s){s.flags|=4}function rm(s,i,o,c,f){if((i=(s.mode&32)!==0)&&(i=!1),i){if(s.flags|=16777216,(f&335544128)===f)if(s.stateNode.complete)s.flags|=8192;else if(vE())s.flags|=8192;else throw vi=fp,xf}else s.flags&=-16777217}function Zx(s,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!fb(i))if(vE())s.flags|=8192;else throw vi=fp,xf}function Pp(s,i){i!==null&&(s.flags|=4),s.flags&16384&&(i=s.tag!==22?kg():536870912,s.lanes|=i,qu|=i)}function Al(s,i){if(!Ze)switch(s.tailMode){case"hidden":i=s.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?s.tail=null:o.sibling=null;break;case"collapsed":o=s.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i||s.tail===null?s.tail=null:s.tail.sibling=null:c.sibling=null}}function Ft(s){var i=s.alternate!==null&&s.alternate.child===s.child,o=0,c=0;if(i)for(var f=s.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=s,f=f.sibling;else for(f=s.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=s,f=f.sibling;return s.subtreeFlags|=c,s.childLanes=o,i}function u8(s,i,o){var c=i.pendingProps;switch(cf(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(i),null;case 1:return Ft(i),null;case 3:return o=i.stateNode,c=null,s!==null&&(c=s.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),ms(jt),ht(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(s===null||s.child===null)&&(Bu(i)?xs(i):s===null||s.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,hf())),Ft(i),null;case 26:var f=i.type,y=i.memoizedState;return s===null?(xs(i),y!==null?(Ft(i),Zx(i,y)):(Ft(i),rm(i,f,null,c,o))):y?y!==s.memoizedState?(xs(i),Ft(i),Zx(i,y)):(Ft(i),i.flags&=-16777217):(s=s.memoizedProps,s!==c&&xs(i),Ft(i),rm(i,f,s,c,o)),null;case 27:if(dr(i),o=Oe.current,f=i.type,s!==null&&i.stateNode!=null)s.memoizedProps!==c&&xs(i);else{if(!c){if(i.stateNode===null)throw Error(n(166));return Ft(i),null}s=he.current,Bu(i)?k1(i):(s=ib(f,c,o),i.stateNode=s,xs(i))}return Ft(i),null;case 5:if(dr(i),f=i.type,s!==null&&i.stateNode!=null)s.memoizedProps!==c&&xs(i);else{if(!c){if(i.stateNode===null)throw Error(n(166));return Ft(i),null}if(y=he.current,Bu(i))k1(i);else{var A=Jp(Oe.current);switch(y){case 1:y=A.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:y=A.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":y=A.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":y=A.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":y=A.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof c.is=="string"?A.createElement("select",{is:c.is}):A.createElement("select"),c.multiple?y.multiple=!0:c.size&&(y.size=c.size);break;default:y=typeof c.is=="string"?A.createElement(f,{is:c.is}):A.createElement(f)}}y[er]=i,y[Cr]=c;e:for(A=i.child;A!==null;){if(A.tag===5||A.tag===6)y.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===i)break e;for(;A.sibling===null;){if(A.return===null||A.return===i)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}i.stateNode=y;e:switch(sr(y,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&xs(i)}}return Ft(i),rm(i,i.type,s===null?null:s.memoizedProps,i.pendingProps,o),null;case 6:if(s&&i.stateNode!=null)s.memoizedProps!==c&&xs(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(n(166));if(s=Oe.current,Bu(i)){if(s=i.stateNode,o=i.memoizedProps,c=null,f=tr,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}s[er]=i,s=!!(s.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||KE(s.nodeValue,o)),s||pa(i,!0)}else s=Jp(s).createTextNode(c),s[er]=i,i.stateNode=s}return Ft(i),null;case 31:if(o=i.memoizedState,s===null||s.memoizedState!==null){if(c=Bu(i),o!==null){if(s===null){if(!c)throw Error(n(318));if(s=i.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(557));s[er]=i}else Ei(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ft(i),s=!1}else o=hf(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=o),s=!0;if(!s)return i.flags&256?(Hr(i),i):(Hr(i),null);if((i.flags&128)!==0)throw Error(n(558))}return Ft(i),null;case 13:if(c=i.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(f=Bu(i),c!==null&&c.dehydrated!==null){if(s===null){if(!f)throw Error(n(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(n(317));f[er]=i}else Ei(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ft(i),f=!1}else f=hf(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(Hr(i),i):(Hr(i),null)}return Hr(i),(i.flags&128)!==0?(i.lanes=o,i):(o=c!==null,s=s!==null&&s.memoizedState!==null,o&&(c=i.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==f&&(c.flags|=2048)),o!==s&&o&&(i.child.flags|=8192),Pp(i,i.updateQueue),Ft(i),null);case 4:return ht(),s===null&&Fm(i.stateNode.containerInfo),Ft(i),null;case 10:return ms(i.type),Ft(i),null;case 19:if(ee(Ot),c=i.memoizedState,c===null)return Ft(i),null;if(f=(i.flags&128)!==0,y=c.rendering,y===null)if(f)Al(c,!1);else{if(kt!==0||s!==null&&(s.flags&128)!==0)for(s=i.child;s!==null;){if(y=gp(s),y!==null){for(i.flags|=128,Al(c,!1),s=y.updateQueue,i.updateQueue=s,Pp(i,s),i.subtreeFlags=0,s=o,o=i.child;o!==null;)T1(o,s),o=o.sibling;return fe(Ot,Ot.current&1|2),Ze&&ds(i,c.treeForkCount),i.child}s=s.sibling}c.tail!==null&&_r()>Lp&&(i.flags|=128,f=!0,Al(c,!1),i.lanes=4194304)}else{if(!f)if(s=gp(y),s!==null){if(i.flags|=128,f=!0,s=s.updateQueue,i.updateQueue=s,Pp(i,s),Al(c,!0),c.tail===null&&c.tailMode==="hidden"&&!y.alternate&&!Ze)return Ft(i),null}else 2*_r()-c.renderingStartTime>Lp&&o!==536870912&&(i.flags|=128,f=!0,Al(c,!1),i.lanes=4194304);c.isBackwards?(y.sibling=i.child,i.child=y):(s=c.last,s!==null?s.sibling=y:i.child=y,c.last=y)}return c.tail!==null?(s=c.tail,c.rendering=s,c.tail=s.sibling,c.renderingStartTime=_r(),s.sibling=null,o=Ot.current,fe(Ot,f?o&1|2:o&1),Ze&&ds(i,c.treeForkCount),s):(Ft(i),null);case 22:case 23:return Hr(i),vf(),c=i.memoizedState!==null,s!==null?s.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(o&536870912)!==0&&(i.flags&128)===0&&(Ft(i),i.subtreeFlags&6&&(i.flags|=8192)):Ft(i),o=i.updateQueue,o!==null&&Pp(i,o.retryQueue),o=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048),s!==null&&ee(Ci),null;case 24:return o=null,s!==null&&(o=s.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),ms(jt),Ft(i),null;case 25:return null;case 30:return null}throw Error(n(156,i.tag))}function o8(s,i){switch(cf(i),i.tag){case 1:return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 3:return ms(jt),ht(),s=i.flags,(s&65536)!==0&&(s&128)===0?(i.flags=s&-65537|128,i):null;case 26:case 27:case 5:return dr(i),null;case 31:if(i.memoizedState!==null){if(Hr(i),i.alternate===null)throw Error(n(340));Ei()}return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 13:if(Hr(i),s=i.memoizedState,s!==null&&s.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Ei()}return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 19:return ee(Ot),null;case 4:return ht(),null;case 10:return ms(i.type),null;case 22:case 23:return Hr(i),vf(),s!==null&&ee(Ci),s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 24:return ms(jt),null;case 25:return null;default:return null}}function eE(s,i){switch(cf(i),i.tag){case 3:ms(jt),ht();break;case 26:case 27:case 5:dr(i);break;case 4:ht();break;case 31:i.memoizedState!==null&&Hr(i);break;case 13:Hr(i);break;case 19:ee(Ot);break;case 10:ms(i.type);break;case 22:case 23:Hr(i),vf(),s!==null&&ee(Ci);break;case 24:ms(jt)}}function Cl(s,i){try{var o=i.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var f=c.next;o=f;do{if((o.tag&s)===s){c=void 0;var y=o.create,A=o.inst;c=y(),A.destroy=c}o=o.next}while(o!==f)}}catch(N){pt(i,i.return,N)}}function ga(s,i,o){try{var c=i.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var y=f.next;c=y;do{if((c.tag&s)===s){var A=c.inst,N=A.destroy;if(N!==void 0){A.destroy=void 0,f=i;var R=o,K=N;try{K()}catch(te){pt(f,R,te)}}}c=c.next}while(c!==y)}}catch(te){pt(i,i.return,te)}}function tE(s){var i=s.updateQueue;if(i!==null){var o=s.stateNode;try{V1(i,o)}catch(c){pt(s,s.return,c)}}}function rE(s,i,o){o.props=wi(s.type,s.memoizedProps),o.state=s.memoizedState;try{o.componentWillUnmount()}catch(c){pt(s,i,c)}}function Fl(s,i){try{var o=s.ref;if(o!==null){switch(s.tag){case 26:case 27:case 5:var c=s.stateNode;break;case 30:c=s.stateNode;break;default:c=s.stateNode}typeof o=="function"?s.refCleanup=o(c):o.current=c}}catch(f){pt(s,i,f)}}function zn(s,i){var o=s.ref,c=s.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(f){pt(s,i,f)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(f){pt(s,i,f)}else o.current=null}function nE(s){var i=s.type,o=s.memoizedProps,c=s.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(f){pt(s,s.return,f)}}function nm(s,i,o){try{var c=s.stateNode;B8(c,s.type,o,i),c[Cr]=i}catch(f){pt(s,s.return,f)}}function sE(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&va(s.type)||s.tag===4}function sm(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||sE(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&va(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function am(s,i,o){var c=s.tag;if(c===5||c===6)s=s.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(s,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(s),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=cs));else if(c!==4&&(c===27&&va(s.type)&&(o=s.stateNode,i=null),s=s.child,s!==null))for(am(s,i,o),s=s.sibling;s!==null;)am(s,i,o),s=s.sibling}function kp(s,i,o){var c=s.tag;if(c===5||c===6)s=s.stateNode,i?o.insertBefore(s,i):o.appendChild(s);else if(c!==4&&(c===27&&va(s.type)&&(o=s.stateNode),s=s.child,s!==null))for(kp(s,i,o),s=s.sibling;s!==null;)kp(s,i,o),s=s.sibling}function aE(s){var i=s.stateNode,o=s.memoizedProps;try{for(var c=s.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);sr(i,c,o),i[er]=s,i[Cr]=o}catch(y){pt(s,s.return,y)}}var Es=!1,Ut=!1,im=!1,iE=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function l8(s,i){if(s=s.containerInfo,Tm=Zp,s=g1(s),Wd(s)){if("selectionStart"in s)var o={start:s.selectionStart,end:s.selectionEnd};else e:{o=(o=s.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var f=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var A=0,N=-1,R=-1,K=0,te=0,ae=s,W=null;t:for(;;){for(var Z;ae!==o||f!==0&&ae.nodeType!==3||(N=A+f),ae!==y||c!==0&&ae.nodeType!==3||(R=A+c),ae.nodeType===3&&(A+=ae.nodeValue.length),(Z=ae.firstChild)!==null;)W=ae,ae=Z;for(;;){if(ae===s)break t;if(W===o&&++K===f&&(N=A),W===y&&++te===c&&(R=A),(Z=ae.nextSibling)!==null)break;ae=W,W=ae.parentNode}ae=Z}o=N===-1||R===-1?null:{start:N,end:R}}else o=null}o=o||{start:0,end:0}}else o=null;for(wm={focusedElem:s,selectionRange:o},Zp=!1,Gt=i;Gt!==null;)if(i=Gt,s=i.child,(i.subtreeFlags&1028)!==0&&s!==null)s.return=i,Gt=s;else for(;Gt!==null;){switch(i=Gt,y=i.alternate,s=i.flags,i.tag){case 0:if((s&4)!==0&&(s=i.updateQueue,s=s!==null?s.events:null,s!==null))for(o=0;o<s.length;o++)f=s[o],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&y!==null){s=void 0,o=i,f=y.memoizedProps,y=y.memoizedState,c=o.stateNode;try{var Ae=wi(o.type,f);s=c.getSnapshotBeforeUpdate(Ae,y),c.__reactInternalSnapshotBeforeUpdate=s}catch(Pe){pt(o,o.return,Pe)}}break;case 3:if((s&1024)!==0){if(s=i.stateNode.containerInfo,o=s.nodeType,o===9)Pm(s);else if(o===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":Pm(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(n(163))}if(s=i.sibling,s!==null){s.return=i.return,Gt=s;break}Gt=i.return}}function uE(s,i,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:As(s,o),c&4&&Cl(5,o);break;case 1:if(As(s,o),c&4)if(s=o.stateNode,i===null)try{s.componentDidMount()}catch(A){pt(o,o.return,A)}else{var f=wi(o.type,i.memoizedProps);i=i.memoizedState;try{s.componentDidUpdate(f,i,s.__reactInternalSnapshotBeforeUpdate)}catch(A){pt(o,o.return,A)}}c&64&&tE(o),c&512&&Fl(o,o.return);break;case 3:if(As(s,o),c&64&&(s=o.updateQueue,s!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{V1(s,i)}catch(A){pt(o,o.return,A)}}break;case 27:i===null&&c&4&&aE(o);case 26:case 5:As(s,o),i===null&&c&4&&nE(o),c&512&&Fl(o,o.return);break;case 12:As(s,o);break;case 31:As(s,o),c&4&&cE(s,o);break;case 13:As(s,o),c&4&&pE(s,o),c&64&&(s=o.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(o=g8.bind(null,o),_8(s,o))));break;case 22:if(c=o.memoizedState!==null||Es,!c){i=i!==null&&i.memoizedState!==null||Ut,f=Es;var y=Ut;Es=c,(Ut=i)&&!y?Cs(s,o,(o.subtreeFlags&8772)!==0):As(s,o),Es=f,Ut=y}break;case 30:break;default:As(s,o)}}function oE(s){var i=s.alternate;i!==null&&(s.alternate=null,oE(i)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(i=s.stateNode,i!==null&&Od(i)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var wt=null,vr=!1;function bs(s,i,o){for(o=o.child;o!==null;)lE(s,i,o),o=o.sibling}function lE(s,i,o){if(jr&&typeof jr.onCommitFiberUnmount=="function")try{jr.onCommitFiberUnmount(Go,o)}catch{}switch(o.tag){case 26:Ut||zn(o,i),bs(s,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Ut||zn(o,i);var c=wt,f=vr;va(o.type)&&(wt=o.stateNode,vr=!1),bs(s,i,o),Il(o.stateNode),wt=c,vr=f;break;case 5:Ut||zn(o,i);case 6:if(c=wt,f=vr,wt=null,bs(s,i,o),wt=c,vr=f,wt!==null)if(vr)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(o.stateNode)}catch(y){pt(o,i,y)}else try{wt.removeChild(o.stateNode)}catch(y){pt(o,i,y)}break;case 18:wt!==null&&(vr?(s=wt,tb(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,o.stateNode),Yu(s)):tb(wt,o.stateNode));break;case 4:c=wt,f=vr,wt=o.stateNode.containerInfo,vr=!0,bs(s,i,o),wt=c,vr=f;break;case 0:case 11:case 14:case 15:ga(2,o,i),Ut||ga(4,o,i),bs(s,i,o);break;case 1:Ut||(zn(o,i),c=o.stateNode,typeof c.componentWillUnmount=="function"&&rE(o,i,c)),bs(s,i,o);break;case 21:bs(s,i,o);break;case 22:Ut=(c=Ut)||o.memoizedState!==null,bs(s,i,o),Ut=c;break;default:bs(s,i,o)}}function cE(s,i){if(i.memoizedState===null&&(s=i.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{Yu(s)}catch(o){pt(i,i.return,o)}}}function pE(s,i){if(i.memoizedState===null&&(s=i.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Yu(s)}catch(o){pt(i,i.return,o)}}function c8(s){switch(s.tag){case 31:case 13:case 19:var i=s.stateNode;return i===null&&(i=s.stateNode=new iE),i;case 22:return s=s.stateNode,i=s._retryCache,i===null&&(i=s._retryCache=new iE),i;default:throw Error(n(435,s.tag))}}function Ip(s,i){var o=c8(s);i.forEach(function(c){if(!o.has(c)){o.add(c);var f=x8.bind(null,s,c);c.then(f,f)}})}function Sr(s,i){var o=i.deletions;if(o!==null)for(var c=0;c<o.length;c++){var f=o[c],y=s,A=i,N=A;e:for(;N!==null;){switch(N.tag){case 27:if(va(N.type)){wt=N.stateNode,vr=!1;break e}break;case 5:wt=N.stateNode,vr=!1;break e;case 3:case 4:wt=N.stateNode.containerInfo,vr=!0;break e}N=N.return}if(wt===null)throw Error(n(160));lE(y,A,f),wt=null,vr=!1,y=f.alternate,y!==null&&(y.return=null),f.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)hE(i,s),i=i.sibling}var Cn=null;function hE(s,i){var o=s.alternate,c=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Sr(i,s),Tr(s),c&4&&(ga(3,s,s.return),Cl(3,s),ga(5,s,s.return));break;case 1:Sr(i,s),Tr(s),c&512&&(Ut||o===null||zn(o,o.return)),c&64&&Es&&(s=s.updateQueue,s!==null&&(c=s.callbacks,c!==null&&(o=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var f=Cn;if(Sr(i,s),Tr(s),c&512&&(Ut||o===null||zn(o,o.return)),c&4){var y=o!==null?o.memoizedState:null;if(c=s.memoizedState,o===null)if(c===null)if(s.stateNode===null){e:{c=s.type,o=s.memoizedProps,f=f.ownerDocument||f;t:switch(c){case"title":y=f.getElementsByTagName("title")[0],(!y||y[Yo]||y[er]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=f.createElement(c),f.head.insertBefore(y,f.querySelector("head > title"))),sr(y,c,o),y[er]=s,Xt(y),c=y;break e;case"link":var A=hb("link","href",f).get(c+(o.href||""));if(A){for(var N=0;N<A.length;N++)if(y=A[N],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){A.splice(N,1);break t}}y=f.createElement(c),sr(y,c,o),f.head.appendChild(y);break;case"meta":if(A=hb("meta","content",f).get(c+(o.content||""))){for(N=0;N<A.length;N++)if(y=A[N],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){A.splice(N,1);break t}}y=f.createElement(c),sr(y,c,o),f.head.appendChild(y);break;default:throw Error(n(468,c))}y[er]=s,Xt(y),c=y}s.stateNode=c}else db(f,s.type,s.stateNode);else s.stateNode=pb(f,c,s.memoizedProps);else y!==c?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,c===null?db(f,s.type,s.stateNode):pb(f,c,s.memoizedProps)):c===null&&s.stateNode!==null&&nm(s,s.memoizedProps,o.memoizedProps)}break;case 27:Sr(i,s),Tr(s),c&512&&(Ut||o===null||zn(o,o.return)),o!==null&&c&4&&nm(s,s.memoizedProps,o.memoizedProps);break;case 5:if(Sr(i,s),Tr(s),c&512&&(Ut||o===null||zn(o,o.return)),s.flags&32){f=s.stateNode;try{Eu(f,"")}catch(Ae){pt(s,s.return,Ae)}}c&4&&s.stateNode!=null&&(f=s.memoizedProps,nm(s,f,o!==null?o.memoizedProps:f)),c&1024&&(im=!0);break;case 6:if(Sr(i,s),Tr(s),c&4){if(s.stateNode===null)throw Error(n(162));c=s.memoizedProps,o=s.stateNode;try{o.nodeValue=c}catch(Ae){pt(s,s.return,Ae)}}break;case 3:if(Kp=null,f=Cn,Cn=Xp(i.containerInfo),Sr(i,s),Cn=f,Tr(s),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Yu(i.containerInfo)}catch(Ae){pt(s,s.return,Ae)}im&&(im=!1,dE(s));break;case 4:c=Cn,Cn=Xp(s.stateNode.containerInfo),Sr(i,s),Tr(s),Cn=c;break;case 12:Sr(i,s),Tr(s);break;case 31:Sr(i,s),Tr(s),c&4&&(c=s.updateQueue,c!==null&&(s.updateQueue=null,Ip(s,c)));break;case 13:Sr(i,s),Tr(s),s.child.flags&8192&&s.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Op=_r()),c&4&&(c=s.updateQueue,c!==null&&(s.updateQueue=null,Ip(s,c)));break;case 22:f=s.memoizedState!==null;var R=o!==null&&o.memoizedState!==null,K=Es,te=Ut;if(Es=K||f,Ut=te||R,Sr(i,s),Ut=te,Es=K,Tr(s),c&8192)e:for(i=s.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(o===null||R||Es||Ut||Ni(s)),o=null,i=s;;){if(i.tag===5||i.tag===26){if(o===null){R=o=i;try{if(y=R.stateNode,f)A=y.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{N=R.stateNode;var ae=R.memoizedProps.style,W=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;N.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(Ae){pt(R,R.return,Ae)}}}else if(i.tag===6){if(o===null){R=i;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(Ae){pt(R,R.return,Ae)}}}else if(i.tag===18){if(o===null){R=i;try{var Z=R.stateNode;f?rb(Z,!0):rb(R.stateNode,!1)}catch(Ae){pt(R,R.return,Ae)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===s)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=s.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,Ip(s,o))));break;case 19:Sr(i,s),Tr(s),c&4&&(c=s.updateQueue,c!==null&&(s.updateQueue=null,Ip(s,c)));break;case 30:break;case 21:break;default:Sr(i,s),Tr(s)}}function Tr(s){var i=s.flags;if(i&2){try{for(var o,c=s.return;c!==null;){if(sE(c)){o=c;break}c=c.return}if(o==null)throw Error(n(160));switch(o.tag){case 27:var f=o.stateNode,y=sm(s);kp(s,y,f);break;case 5:var A=o.stateNode;o.flags&32&&(Eu(A,""),o.flags&=-33);var N=sm(s);kp(s,N,A);break;case 3:case 4:var R=o.stateNode.containerInfo,K=sm(s);am(s,K,R);break;default:throw Error(n(161))}}catch(te){pt(s,s.return,te)}s.flags&=-3}i&4096&&(s.flags&=-4097)}function dE(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var i=s;dE(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),s=s.sibling}}function As(s,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)uE(s,i.alternate,i),i=i.sibling}function Ni(s){for(s=s.child;s!==null;){var i=s;switch(i.tag){case 0:case 11:case 14:case 15:ga(4,i,i.return),Ni(i);break;case 1:zn(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&rE(i,i.return,o),Ni(i);break;case 27:Il(i.stateNode);case 26:case 5:zn(i,i.return),Ni(i);break;case 22:i.memoizedState===null&&Ni(i);break;case 30:Ni(i);break;default:Ni(i)}s=s.sibling}}function Cs(s,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,f=s,y=i,A=y.flags;switch(y.tag){case 0:case 11:case 15:Cs(f,y,o),Cl(4,y);break;case 1:if(Cs(f,y,o),c=y,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(K){pt(c,c.return,K)}if(c=y,f=c.updateQueue,f!==null){var N=c.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)H1(R[f],N)}catch(K){pt(c,c.return,K)}}o&&A&64&&tE(y),Fl(y,y.return);break;case 27:aE(y);case 26:case 5:Cs(f,y,o),o&&c===null&&A&4&&nE(y),Fl(y,y.return);break;case 12:Cs(f,y,o);break;case 31:Cs(f,y,o),o&&A&4&&cE(f,y);break;case 13:Cs(f,y,o),o&&A&4&&pE(f,y);break;case 22:y.memoizedState===null&&Cs(f,y,o),Fl(y,y.return);break;case 30:break;default:Cs(f,y,o)}i=i.sibling}}function um(s,i){var o=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==o&&(s!=null&&s.refCount++,o!=null&&cl(o))}function om(s,i){s=null,i.alternate!==null&&(s=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==s&&(i.refCount++,s!=null&&cl(s))}function Fn(s,i,o,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)fE(s,i,o,c),i=i.sibling}function fE(s,i,o,c){var f=i.flags;switch(i.tag){case 0:case 11:case 15:Fn(s,i,o,c),f&2048&&Cl(9,i);break;case 1:Fn(s,i,o,c);break;case 3:Fn(s,i,o,c),f&2048&&(s=null,i.alternate!==null&&(s=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==s&&(i.refCount++,s!=null&&cl(s)));break;case 12:if(f&2048){Fn(s,i,o,c),s=i.stateNode;try{var y=i.memoizedProps,A=y.id,N=y.onPostCommit;typeof N=="function"&&N(A,i.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(R){pt(i,i.return,R)}}else Fn(s,i,o,c);break;case 31:Fn(s,i,o,c);break;case 13:Fn(s,i,o,c);break;case 23:break;case 22:y=i.stateNode,A=i.alternate,i.memoizedState!==null?y._visibility&2?Fn(s,i,o,c):vl(s,i):y._visibility&2?Fn(s,i,o,c):(y._visibility|=2,$u(s,i,o,c,(i.subtreeFlags&10256)!==0||!1)),f&2048&&um(A,i);break;case 24:Fn(s,i,o,c),f&2048&&om(i.alternate,i);break;default:Fn(s,i,o,c)}}function $u(s,i,o,c,f){for(f=f&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var y=s,A=i,N=o,R=c,K=A.flags;switch(A.tag){case 0:case 11:case 15:$u(y,A,N,R,f),Cl(8,A);break;case 23:break;case 22:var te=A.stateNode;A.memoizedState!==null?te._visibility&2?$u(y,A,N,R,f):vl(y,A):(te._visibility|=2,$u(y,A,N,R,f)),f&&K&2048&&um(A.alternate,A);break;case 24:$u(y,A,N,R,f),f&&K&2048&&om(A.alternate,A);break;default:$u(y,A,N,R,f)}i=i.sibling}}function vl(s,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=s,c=i,f=c.flags;switch(c.tag){case 22:vl(o,c),f&2048&&um(c.alternate,c);break;case 24:vl(o,c),f&2048&&om(c.alternate,c);break;default:vl(o,c)}i=i.sibling}}var Sl=8192;function zu(s,i,o){if(s.subtreeFlags&Sl)for(s=s.child;s!==null;)mE(s,i,o),s=s.sibling}function mE(s,i,o){switch(s.tag){case 26:zu(s,i,o),s.flags&Sl&&s.memoizedState!==null&&Q8(o,Cn,s.memoizedState,s.memoizedProps);break;case 5:zu(s,i,o);break;case 3:case 4:var c=Cn;Cn=Xp(s.stateNode.containerInfo),zu(s,i,o),Cn=c;break;case 22:s.memoizedState===null&&(c=s.alternate,c!==null&&c.memoizedState!==null?(c=Sl,Sl=16777216,zu(s,i,o),Sl=c):zu(s,i,o));break;default:zu(s,i,o)}}function yE(s){var i=s.alternate;if(i!==null&&(s=i.child,s!==null)){i.child=null;do i=s.sibling,s.sibling=null,s=i;while(s!==null)}}function Tl(s){var i=s.deletions;if((s.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];Gt=c,gE(c,s)}yE(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)DE(s),s=s.sibling}function DE(s){switch(s.tag){case 0:case 11:case 15:Tl(s),s.flags&2048&&ga(9,s,s.return);break;case 3:Tl(s);break;case 12:Tl(s);break;case 22:var i=s.stateNode;s.memoizedState!==null&&i._visibility&2&&(s.return===null||s.return.tag!==13)?(i._visibility&=-3,Mp(s)):Tl(s);break;default:Tl(s)}}function Mp(s){var i=s.deletions;if((s.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];Gt=c,gE(c,s)}yE(s)}for(s=s.child;s!==null;){switch(i=s,i.tag){case 0:case 11:case 15:ga(8,i,i.return),Mp(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,Mp(i));break;default:Mp(i)}s=s.sibling}}function gE(s,i){for(;Gt!==null;){var o=Gt;switch(o.tag){case 0:case 11:case 15:ga(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:cl(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,Gt=c;else e:for(o=s;Gt!==null;){c=Gt;var f=c.sibling,y=c.return;if(oE(c),c===o){Gt=null;break e}if(f!==null){f.return=y,Gt=f;break e}Gt=y}}}var p8={getCacheForType:function(s){var i=rr(jt),o=i.data.get(s);return o===void 0&&(o=s(),i.data.set(s,o)),o},cacheSignal:function(){return rr(jt).controller.signal}},h8=typeof WeakMap=="function"?WeakMap:Map,ut=0,yt=null,Ge=null,Qe=0,ct=0,Vr=null,xa=!1,Uu=!1,lm=!1,Fs=0,kt=0,Ea=0,Bi=0,cm=0,Jr=0,qu=0,wl=null,wr=null,pm=!1,Op=0,xE=0,Lp=1/0,Rp=null,ba=null,Ht=0,Aa=null,Hu=null,vs=0,hm=0,dm=null,EE=null,Nl=0,fm=null;function Xr(){return(ut&2)!==0&&Qe!==0?Qe&-Qe:J.T!==null?Em():Lg()}function bE(){if(Jr===0)if((Qe&536870912)===0||Ze){var s=Vc;Vc<<=1,(Vc&3932160)===0&&(Vc=262144),Jr=s}else Jr=536870912;return s=qr.current,s!==null&&(s.flags|=32),Jr}function Nr(s,i,o){(s===yt&&(ct===2||ct===9)||s.cancelPendingCommit!==null)&&(Vu(s,0),Ca(s,Qe,Jr,!1)),Qo(s,o),((ut&2)===0||s!==yt)&&(s===yt&&((ut&2)===0&&(Bi|=o),kt===4&&Ca(s,Qe,Jr,!1)),Un(s))}function AE(s,i,o){if((ut&6)!==0)throw Error(n(327));var c=!o&&(i&127)===0&&(i&s.expiredLanes)===0||Ko(s,i),f=c?m8(s,i):ym(s,i,!0),y=c;do{if(f===0){Uu&&!c&&Ca(s,i,0,!1);break}else{if(o=s.current.alternate,y&&!d8(o)){f=ym(s,i,!1),y=!1;continue}if(f===2){if(y=i,s.errorRecoveryDisabledLanes&y)var A=0;else A=s.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){i=A;e:{var N=s;f=wl;var R=N.current.memoizedState.isDehydrated;if(R&&(Vu(N,A).flags|=256),A=ym(N,A,!1),A!==2){if(lm&&!R){N.errorRecoveryDisabledLanes|=y,Bi|=y,f=4;break e}y=wr,wr=f,y!==null&&(wr===null?wr=y:wr.push.apply(wr,y))}f=A}if(y=!1,f!==2)continue}}if(f===1){Vu(s,0),Ca(s,i,0,!0);break}e:{switch(c=s,y=f,y){case 0:case 1:throw Error(n(345));case 4:if((i&4194048)!==i)break;case 6:Ca(c,i,Jr,!xa);break e;case 2:wr=null;break;case 3:case 5:break;default:throw Error(n(329))}if((i&62914560)===i&&(f=Op+300-_r(),10<f)){if(Ca(c,i,Jr,!xa),Xc(c,0,!0)!==0)break e;vs=i,c.timeoutHandle=ZE(CE.bind(null,c,o,wr,Rp,pm,i,Jr,Bi,qu,xa,y,"Throttled",-0,0),f);break e}CE(c,o,wr,Rp,pm,i,Jr,Bi,qu,xa,y,null,-0,0)}}break}while(!0);Un(s)}function CE(s,i,o,c,f,y,A,N,R,K,te,ae,W,Z){if(s.timeoutHandle=-1,ae=i.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cs},mE(i,y,ae);var Ae=(y&62914560)===y?Op-_r():(y&4194048)===y?xE-_r():0;if(Ae=Y8(ae,Ae),Ae!==null){vs=y,s.cancelPendingCommit=Ae(PE.bind(null,s,i,y,o,c,f,A,N,R,te,ae,null,W,Z)),Ca(s,y,A,!K);return}}PE(s,i,y,o,c,f,A,N,R)}function d8(s){for(var i=s;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var f=o[c],y=f.getSnapshot;f=f.value;try{if(!zr(y(),f))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ca(s,i,o,c){i&=~cm,i&=~Bi,s.suspendedLanes|=i,s.pingedLanes&=~i,c&&(s.warmLanes|=i),c=s.expirationTimes;for(var f=i;0<f;){var y=31-$r(f),A=1<<y;c[y]=-1,f&=~A}o!==0&&Ig(s,o,i)}function _p(){return(ut&6)===0?(Bl(0),!1):!0}function mm(){if(Ge!==null){if(ct===0)var s=Ge.return;else s=Ge,fs=bi=null,Pf(s),Ou=null,hl=0,s=Ge;for(;s!==null;)eE(s.alternate,s),s=s.return;Ge=null}}function Vu(s,i){var o=s.timeoutHandle;o!==-1&&(s.timeoutHandle=-1,I8(o)),o=s.cancelPendingCommit,o!==null&&(s.cancelPendingCommit=null,o()),vs=0,mm(),yt=s,Ge=o=hs(s.current,null),Qe=i,ct=0,Vr=null,xa=!1,Uu=Ko(s,i),lm=!1,qu=Jr=cm=Bi=Ea=kt=0,wr=wl=null,pm=!1,(i&8)!==0&&(i|=i&32);var c=s.entangledLanes;if(c!==0)for(s=s.entanglements,c&=i;0<c;){var f=31-$r(c),y=1<<f;i|=s[f],c&=~y}return Fs=i,ap(),o}function FE(s,i){_e=null,J.H=El,i===Mu||i===dp?(i=$1(),ct=3):i===xf?(i=$1(),ct=4):ct=i===Xf?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Vr=i,Ge===null&&(kt=1,Tp(s,sn(i,s.current)))}function vE(){var s=qr.current;return s===null?!0:(Qe&4194048)===Qe?ln===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?s===ln:!1}function SE(){var s=J.H;return J.H=El,s===null?El:s}function TE(){var s=J.A;return J.A=p8,s}function jp(){kt=4,xa||(Qe&4194048)!==Qe&&qr.current!==null||(Uu=!0),(Ea&134217727)===0&&(Bi&134217727)===0||yt===null||Ca(yt,Qe,Jr,!1)}function ym(s,i,o){var c=ut;ut|=2;var f=SE(),y=TE();(yt!==s||Qe!==i)&&(Rp=null,Vu(s,i)),i=!1;var A=kt;e:do try{if(ct!==0&&Ge!==null){var N=Ge,R=Vr;switch(ct){case 8:mm(),A=6;break e;case 3:case 2:case 9:case 6:qr.current===null&&(i=!0);var K=ct;if(ct=0,Vr=null,Ju(s,N,R,K),o&&Uu){A=0;break e}break;default:K=ct,ct=0,Vr=null,Ju(s,N,R,K)}}f8(),A=kt;break}catch(te){FE(s,te)}while(!0);return i&&s.shellSuspendCounter++,fs=bi=null,ut=c,J.H=f,J.A=y,Ge===null&&(yt=null,Qe=0,ap()),A}function f8(){for(;Ge!==null;)wE(Ge)}function m8(s,i){var o=ut;ut|=2;var c=SE(),f=TE();yt!==s||Qe!==i?(Rp=null,Lp=_r()+500,Vu(s,i)):Uu=Ko(s,i);e:do try{if(ct!==0&&Ge!==null){i=Ge;var y=Vr;t:switch(ct){case 1:ct=0,Vr=null,Ju(s,i,y,1);break;case 2:case 9:if(_1(y)){ct=0,Vr=null,NE(i);break}i=function(){ct!==2&&ct!==9||yt!==s||(ct=7),Un(s)},y.then(i,i);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:_1(y)?(ct=0,Vr=null,NE(i)):(ct=0,Vr=null,Ju(s,i,y,7));break;case 5:var A=null;switch(Ge.tag){case 26:A=Ge.memoizedState;case 5:case 27:var N=Ge;if(A?fb(A):N.stateNode.complete){ct=0,Vr=null;var R=N.sibling;if(R!==null)Ge=R;else{var K=N.return;K!==null?(Ge=K,$p(K)):Ge=null}break t}}ct=0,Vr=null,Ju(s,i,y,5);break;case 6:ct=0,Vr=null,Ju(s,i,y,6);break;case 8:mm(),kt=6;break e;default:throw Error(n(462))}}y8();break}catch(te){FE(s,te)}while(!0);return fs=bi=null,J.H=c,J.A=f,ut=o,Ge!==null?0:(yt=null,Qe=0,ap(),kt)}function y8(){for(;Ge!==null&&!j3();)wE(Ge)}function wE(s){var i=Wx(s.alternate,s,Fs);s.memoizedProps=s.pendingProps,i===null?$p(s):Ge=i}function NE(s){var i=s,o=i.alternate;switch(i.tag){case 15:case 0:i=Jx(o,i,i.pendingProps,i.type,void 0,Qe);break;case 11:i=Jx(o,i,i.pendingProps,i.type.render,i.ref,Qe);break;case 5:Pf(i);default:eE(o,i),i=Ge=T1(i,Fs),i=Wx(o,i,Fs)}s.memoizedProps=s.pendingProps,i===null?$p(s):Ge=i}function Ju(s,i,o,c){fs=bi=null,Pf(i),Ou=null,hl=0;var f=i.return;try{if(s8(s,f,i,o,Qe)){kt=1,Tp(s,sn(o,s.current)),Ge=null;return}}catch(y){if(f!==null)throw Ge=f,y;kt=1,Tp(s,sn(o,s.current)),Ge=null;return}i.flags&32768?(Ze||c===1?s=!0:Uu||(Qe&536870912)!==0?s=!1:(xa=s=!0,(c===2||c===9||c===3||c===6)&&(c=qr.current,c!==null&&c.tag===13&&(c.flags|=16384))),BE(i,s)):$p(i)}function $p(s){var i=s;do{if((i.flags&32768)!==0){BE(i,xa);return}s=i.return;var o=u8(i.alternate,i,Fs);if(o!==null){Ge=o;return}if(i=i.sibling,i!==null){Ge=i;return}Ge=i=s}while(i!==null);kt===0&&(kt=5)}function BE(s,i){do{var o=o8(s.alternate,s);if(o!==null){o.flags&=32767,Ge=o;return}if(o=s.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(s=s.sibling,s!==null)){Ge=s;return}Ge=s=o}while(s!==null);kt=6,Ge=null}function PE(s,i,o,c,f,y,A,N,R){s.cancelPendingCommit=null;do zp();while(Ht!==0);if((ut&6)!==0)throw Error(n(327));if(i!==null){if(i===s.current)throw Error(n(177));if(y=i.lanes|i.childLanes,y|=nf,K3(s,o,y,A,N,R),s===yt&&(Ge=yt=null,Qe=0),Hu=i,Aa=s,vs=o,hm=y,dm=f,EE=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,E8(qc,function(){return LE(),null})):(s.callbackNode=null,s.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=J.T,J.T=null,f=ce.p,ce.p=2,A=ut,ut|=4;try{l8(s,i,o)}finally{ut=A,ce.p=f,J.T=c}}Ht=1,kE(),IE(),ME()}}function kE(){if(Ht===1){Ht=0;var s=Aa,i=Hu,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=J.T,J.T=null;var c=ce.p;ce.p=2;var f=ut;ut|=4;try{hE(i,s);var y=wm,A=g1(s.containerInfo),N=y.focusedElem,R=y.selectionRange;if(A!==N&&N&&N.ownerDocument&&D1(N.ownerDocument.documentElement,N)){if(R!==null&&Wd(N)){var K=R.start,te=R.end;if(te===void 0&&(te=K),"selectionStart"in N)N.selectionStart=K,N.selectionEnd=Math.min(te,N.value.length);else{var ae=N.ownerDocument||document,W=ae&&ae.defaultView||window;if(W.getSelection){var Z=W.getSelection(),Ae=N.textContent.length,Pe=Math.min(R.start,Ae),mt=R.end===void 0?Pe:Math.min(R.end,Ae);!Z.extend&&Pe>mt&&(A=mt,mt=Pe,Pe=A);var q=y1(N,Pe),z=y1(N,mt);if(q&&z&&(Z.rangeCount!==1||Z.anchorNode!==q.node||Z.anchorOffset!==q.offset||Z.focusNode!==z.node||Z.focusOffset!==z.offset)){var G=ae.createRange();G.setStart(q.node,q.offset),Z.removeAllRanges(),Pe>mt?(Z.addRange(G),Z.extend(z.node,z.offset)):(G.setEnd(z.node,z.offset),Z.addRange(G))}}}}for(ae=[],Z=N;Z=Z.parentNode;)Z.nodeType===1&&ae.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<ae.length;N++){var ne=ae[N];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}Zp=!!Tm,wm=Tm=null}finally{ut=f,ce.p=c,J.T=o}}s.current=i,Ht=2}}function IE(){if(Ht===2){Ht=0;var s=Aa,i=Hu,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=J.T,J.T=null;var c=ce.p;ce.p=2;var f=ut;ut|=4;try{uE(s,i.alternate,i)}finally{ut=f,ce.p=c,J.T=o}}Ht=3}}function ME(){if(Ht===4||Ht===3){Ht=0,$3();var s=Aa,i=Hu,o=vs,c=EE;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Ht=5:(Ht=0,Hu=Aa=null,OE(s,s.pendingLanes));var f=s.pendingLanes;if(f===0&&(ba=null),Id(o),i=i.stateNode,jr&&typeof jr.onCommitFiberRoot=="function")try{jr.onCommitFiberRoot(Go,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=J.T,f=ce.p,ce.p=2,J.T=null;try{for(var y=s.onRecoverableError,A=0;A<c.length;A++){var N=c[A];y(N.value,{componentStack:N.stack})}}finally{J.T=i,ce.p=f}}(vs&3)!==0&&zp(),Un(s),f=s.pendingLanes,(o&261930)!==0&&(f&42)!==0?s===fm?Nl++:(Nl=0,fm=s):Nl=0,Bl(0)}}function OE(s,i){(s.pooledCacheLanes&=i)===0&&(i=s.pooledCache,i!=null&&(s.pooledCache=null,cl(i)))}function zp(){return kE(),IE(),ME(),LE()}function LE(){if(Ht!==5)return!1;var s=Aa,i=hm;hm=0;var o=Id(vs),c=J.T,f=ce.p;try{ce.p=32>o?32:o,J.T=null,o=dm,dm=null;var y=Aa,A=vs;if(Ht=0,Hu=Aa=null,vs=0,(ut&6)!==0)throw Error(n(331));var N=ut;if(ut|=4,DE(y.current),fE(y,y.current,A,o),ut=N,Bl(0,!1),jr&&typeof jr.onPostCommitFiberRoot=="function")try{jr.onPostCommitFiberRoot(Go,y)}catch{}return!0}finally{ce.p=f,J.T=c,OE(s,i)}}function RE(s,i,o){i=sn(o,i),i=Jf(s.stateNode,i,2),s=ma(s,i,2),s!==null&&(Qo(s,2),Un(s))}function pt(s,i,o){if(s.tag===3)RE(s,s,o);else for(;i!==null;){if(i.tag===3){RE(i,s,o);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ba===null||!ba.has(c))){s=sn(o,s),o=_x(2),c=ma(i,o,2),c!==null&&(jx(o,c,i,s),Qo(c,2),Un(c));break}}i=i.return}}function Dm(s,i,o){var c=s.pingCache;if(c===null){c=s.pingCache=new h8;var f=new Set;c.set(i,f)}else f=c.get(i),f===void 0&&(f=new Set,c.set(i,f));f.has(o)||(lm=!0,f.add(o),s=D8.bind(null,s,i,o),i.then(s,s))}function D8(s,i,o){var c=s.pingCache;c!==null&&c.delete(i),s.pingedLanes|=s.suspendedLanes&o,s.warmLanes&=~o,yt===s&&(Qe&o)===o&&(kt===4||kt===3&&(Qe&62914560)===Qe&&300>_r()-Op?(ut&2)===0&&Vu(s,0):cm|=o,qu===Qe&&(qu=0)),Un(s)}function _E(s,i){i===0&&(i=kg()),s=gi(s,i),s!==null&&(Qo(s,i),Un(s))}function g8(s){var i=s.memoizedState,o=0;i!==null&&(o=i.retryLane),_E(s,o)}function x8(s,i){var o=0;switch(s.tag){case 31:case 13:var c=s.stateNode,f=s.memoizedState;f!==null&&(o=f.retryLane);break;case 19:c=s.stateNode;break;case 22:c=s.stateNode._retryCache;break;default:throw Error(n(314))}c!==null&&c.delete(i),_E(s,o)}function E8(s,i){return Nd(s,i)}var Up=null,Xu=null,gm=!1,qp=!1,xm=!1,Fa=0;function Un(s){s!==Xu&&s.next===null&&(Xu===null?Up=Xu=s:Xu=Xu.next=s),qp=!0,gm||(gm=!0,A8())}function Bl(s,i){if(!xm&&qp){xm=!0;do for(var o=!1,c=Up;c!==null;){if(s!==0){var f=c.pendingLanes;if(f===0)var y=0;else{var A=c.suspendedLanes,N=c.pingedLanes;y=(1<<31-$r(42|s)+1)-1,y&=f&~(A&~N),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,UE(c,y))}else y=Qe,y=Xc(c,c===yt?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||Ko(c,y)||(o=!0,UE(c,y));c=c.next}while(o);xm=!1}}function b8(){jE()}function jE(){qp=gm=!1;var s=0;Fa!==0&&k8()&&(s=Fa);for(var i=_r(),o=null,c=Up;c!==null;){var f=c.next,y=$E(c,i);y===0?(c.next=null,o===null?Up=f:o.next=f,f===null&&(Xu=o)):(o=c,(s!==0||(y&3)!==0)&&(qp=!0)),c=f}Ht!==0&&Ht!==5||Bl(s),Fa!==0&&(Fa=0)}function $E(s,i){for(var o=s.suspendedLanes,c=s.pingedLanes,f=s.expirationTimes,y=s.pendingLanes&-62914561;0<y;){var A=31-$r(y),N=1<<A,R=f[A];R===-1?((N&o)===0||(N&c)!==0)&&(f[A]=G3(N,i)):R<=i&&(s.expiredLanes|=N),y&=~N}if(i=yt,o=Qe,o=Xc(s,s===i?o:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),c=s.callbackNode,o===0||s===i&&(ct===2||ct===9)||s.cancelPendingCommit!==null)return c!==null&&c!==null&&Bd(c),s.callbackNode=null,s.callbackPriority=0;if((o&3)===0||Ko(s,o)){if(i=o&-o,i===s.callbackPriority)return i;switch(c!==null&&Bd(c),Id(o)){case 2:case 8:o=Bg;break;case 32:o=qc;break;case 268435456:o=Pg;break;default:o=qc}return c=zE.bind(null,s),o=Nd(o,c),s.callbackPriority=i,s.callbackNode=o,i}return c!==null&&c!==null&&Bd(c),s.callbackPriority=2,s.callbackNode=null,2}function zE(s,i){if(Ht!==0&&Ht!==5)return s.callbackNode=null,s.callbackPriority=0,null;var o=s.callbackNode;if(zp()&&s.callbackNode!==o)return null;var c=Qe;return c=Xc(s,s===yt?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),c===0?null:(AE(s,c,i),$E(s,_r()),s.callbackNode!=null&&s.callbackNode===o?zE.bind(null,s):null)}function UE(s,i){if(zp())return null;AE(s,i,!0)}function A8(){M8(function(){(ut&6)!==0?Nd(Ng,b8):jE()})}function Em(){if(Fa===0){var s=ku;s===0&&(s=Hc,Hc<<=1,(Hc&261888)===0&&(Hc=256)),Fa=s}return Fa}function qE(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Yc(""+s)}function HE(s,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,s.id&&o.setAttribute("form",s.id),i.parentNode.insertBefore(o,i),s=new FormData(s),o.parentNode.removeChild(o),s}function C8(s,i,o,c,f){if(i==="submit"&&o&&o.stateNode===f){var y=qE((f[Cr]||null).action),A=c.submitter;A&&(i=(i=A[Cr]||null)?qE(i.formAction):A.getAttribute("formAction"),i!==null&&(y=i,A=null));var N=new tp("action","action",null,c,f);s.push({event:N,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Fa!==0){var R=A?HE(f,A):new FormData(f);$f(o,{pending:!0,data:R,method:f.method,action:y},null,R)}}else typeof y=="function"&&(N.preventDefault(),R=A?HE(f,A):new FormData(f),$f(o,{pending:!0,data:R,method:f.method,action:y},y,R))},currentTarget:f}]})}}for(var bm=0;bm<rf.length;bm++){var Am=rf[bm],F8=Am.toLowerCase(),v8=Am[0].toUpperCase()+Am.slice(1);An(F8,"on"+v8)}An(b1,"onAnimationEnd"),An(A1,"onAnimationIteration"),An(C1,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(zw,"onTransitionRun"),An(Uw,"onTransitionStart"),An(qw,"onTransitionCancel"),An(F1,"onTransitionEnd"),gu("onMouseEnter",["mouseout","mouseover"]),gu("onMouseLeave",["mouseout","mouseover"]),gu("onPointerEnter",["pointerout","pointerover"]),gu("onPointerLeave",["pointerout","pointerover"]),fi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fi("onBeforeInput",["compositionend","keypress","textInput","paste"]),fi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pl="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(" "),S8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pl));function VE(s,i){i=(i&4)!==0;for(var o=0;o<s.length;o++){var c=s[o],f=c.event;c=c.listeners;e:{var y=void 0;if(i)for(var A=c.length-1;0<=A;A--){var N=c[A],R=N.instance,K=N.currentTarget;if(N=N.listener,R!==y&&f.isPropagationStopped())break e;y=N,f.currentTarget=K;try{y(f)}catch(te){sp(te)}f.currentTarget=null,y=R}else for(A=0;A<c.length;A++){if(N=c[A],R=N.instance,K=N.currentTarget,N=N.listener,R!==y&&f.isPropagationStopped())break e;y=N,f.currentTarget=K;try{y(f)}catch(te){sp(te)}f.currentTarget=null,y=R}}}}function Ke(s,i){var o=i[Md];o===void 0&&(o=i[Md]=new Set);var c=s+"__bubble";o.has(c)||(JE(i,s,2,!1),o.add(c))}function Cm(s,i,o){var c=0;i&&(c|=4),JE(o,s,c,i)}var Hp="_reactListening"+Math.random().toString(36).slice(2);function Fm(s){if(!s[Hp]){s[Hp]=!0,jg.forEach(function(o){o!=="selectionchange"&&(S8.has(o)||Cm(o,!1,s),Cm(o,!0,s))});var i=s.nodeType===9?s:s.ownerDocument;i===null||i[Hp]||(i[Hp]=!0,Cm("selectionchange",!1,i))}}function JE(s,i,o,c){switch(bb(i)){case 2:var f=eN;break;case 8:f=tN;break;default:f=jm}o=f.bind(null,i,o,s),f=void 0,!qd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),c?f!==void 0?s.addEventListener(i,o,{capture:!0,passive:f}):s.addEventListener(i,o,!0):f!==void 0?s.addEventListener(i,o,{passive:f}):s.addEventListener(i,o,!1)}function vm(s,i,o,c,f){var y=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var A=c.tag;if(A===3||A===4){var N=c.stateNode.containerInfo;if(N===f)break;if(A===4)for(A=c.return;A!==null;){var R=A.tag;if((R===3||R===4)&&A.stateNode.containerInfo===f)return;A=A.return}for(;N!==null;){if(A=mu(N),A===null)return;if(R=A.tag,R===5||R===6||R===26||R===27){c=y=A;continue e}N=N.parentNode}}c=c.return}Yg(function(){var K=y,te=zd(o),ae=[];e:{var W=v1.get(s);if(W!==void 0){var Z=tp,Ae=s;switch(s){case"keypress":if(Zc(o)===0)break e;case"keydown":case"keyup":Z=xw;break;case"focusin":Ae="focus",Z=Xd;break;case"focusout":Ae="blur",Z=Xd;break;case"beforeblur":case"afterblur":Z=Xd;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=e1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=uw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=Aw;break;case b1:case A1:case C1:Z=cw;break;case F1:Z=Fw;break;case"scroll":case"scrollend":Z=aw;break;case"wheel":Z=Sw;break;case"copy":case"cut":case"paste":Z=hw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=r1;break;case"toggle":case"beforetoggle":Z=ww}var Pe=(i&4)!==0,mt=!Pe&&(s==="scroll"||s==="scrollend"),q=Pe?W!==null?W+"Capture":null:W;Pe=[];for(var z=K,G;z!==null;){var ne=z;if(G=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||G===null||q===null||(ne=Zo(z,q),ne!=null&&Pe.push(kl(z,ne,G))),mt)break;z=z.return}0<Pe.length&&(W=new Z(W,Ae,null,o,te),ae.push({event:W,listeners:Pe}))}}if((i&7)===0){e:{if(W=s==="mouseover"||s==="pointerover",Z=s==="mouseout"||s==="pointerout",W&&o!==$d&&(Ae=o.relatedTarget||o.fromElement)&&(mu(Ae)||Ae[fu]))break e;if((Z||W)&&(W=te.window===te?te:(W=te.ownerDocument)?W.defaultView||W.parentWindow:window,Z?(Ae=o.relatedTarget||o.toElement,Z=K,Ae=Ae?mu(Ae):null,Ae!==null&&(mt=u(Ae),Pe=Ae.tag,Ae!==mt||Pe!==5&&Pe!==27&&Pe!==6)&&(Ae=null)):(Z=null,Ae=K),Z!==Ae)){if(Pe=e1,ne="onMouseLeave",q="onMouseEnter",z="mouse",(s==="pointerout"||s==="pointerover")&&(Pe=r1,ne="onPointerLeave",q="onPointerEnter",z="pointer"),mt=Z==null?W:Wo(Z),G=Ae==null?W:Wo(Ae),W=new Pe(ne,z+"leave",Z,o,te),W.target=mt,W.relatedTarget=G,ne=null,mu(te)===K&&(Pe=new Pe(q,z+"enter",Ae,o,te),Pe.target=G,Pe.relatedTarget=mt,ne=Pe),mt=ne,Z&&Ae)t:{for(Pe=T8,q=Z,z=Ae,G=0,ne=q;ne;ne=Pe(ne))G++;ne=0;for(var we=z;we;we=Pe(we))ne++;for(;0<G-ne;)q=Pe(q),G--;for(;0<ne-G;)z=Pe(z),ne--;for(;G--;){if(q===z||z!==null&&q===z.alternate){Pe=q;break t}q=Pe(q),z=Pe(z)}Pe=null}else Pe=null;Z!==null&&XE(ae,W,Z,Pe,!1),Ae!==null&&mt!==null&&XE(ae,mt,Ae,Pe,!0)}}e:{if(W=K?Wo(K):window,Z=W.nodeName&&W.nodeName.toLowerCase(),Z==="select"||Z==="input"&&W.type==="file")var st=c1;else if(o1(W))if(p1)st=_w;else{st=Lw;var Fe=Ow}else Z=W.nodeName,!Z||Z.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?K&&jd(K.elementType)&&(st=c1):st=Rw;if(st&&(st=st(s,K))){l1(ae,st,o,te);break e}Fe&&Fe(s,W,K),s==="focusout"&&K&&W.type==="number"&&K.memoizedProps.value!=null&&_d(W,"number",W.value)}switch(Fe=K?Wo(K):window,s){case"focusin":(o1(Fe)||Fe.contentEditable==="true")&&(Fu=Fe,Zd=K,ul=null);break;case"focusout":ul=Zd=Fu=null;break;case"mousedown":ef=!0;break;case"contextmenu":case"mouseup":case"dragend":ef=!1,x1(ae,o,te);break;case"selectionchange":if($w)break;case"keydown":case"keyup":x1(ae,o,te)}var je;if(Kd)e:{switch(s){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else Cu?i1(s,o)&&(Ye="onCompositionEnd"):s==="keydown"&&o.keyCode===229&&(Ye="onCompositionStart");Ye&&(n1&&o.locale!=="ko"&&(Cu||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&Cu&&(je=Wg()):(oa=te,Hd="value"in oa?oa.value:oa.textContent,Cu=!0)),Fe=Vp(K,Ye),0<Fe.length&&(Ye=new t1(Ye,s,null,o,te),ae.push({event:Ye,listeners:Fe}),je?Ye.data=je:(je=u1(o),je!==null&&(Ye.data=je)))),(je=Bw?Pw(s,o):kw(s,o))&&(Ye=Vp(K,"onBeforeInput"),0<Ye.length&&(Fe=new t1("onBeforeInput","beforeinput",null,o,te),ae.push({event:Fe,listeners:Ye}),Fe.data=je)),C8(ae,s,K,o,te)}VE(ae,i)})}function kl(s,i,o){return{instance:s,listener:i,currentTarget:o}}function Vp(s,i){for(var o=i+"Capture",c=[];s!==null;){var f=s,y=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||y===null||(f=Zo(s,o),f!=null&&c.unshift(kl(s,f,y)),f=Zo(s,i),f!=null&&c.push(kl(s,f,y))),s.tag===3)return c;s=s.return}return[]}function T8(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function XE(s,i,o,c,f){for(var y=i._reactName,A=[];o!==null&&o!==c;){var N=o,R=N.alternate,K=N.stateNode;if(N=N.tag,R!==null&&R===c)break;N!==5&&N!==26&&N!==27||K===null||(R=K,f?(K=Zo(o,y),K!=null&&A.unshift(kl(o,K,R))):f||(K=Zo(o,y),K!=null&&A.push(kl(o,K,R)))),o=o.return}A.length!==0&&s.push({event:i,listeners:A})}var w8=/\r\n?/g,N8=/\u0000|\uFFFD/g;function GE(s){return(typeof s=="string"?s:""+s).replace(w8,`
|
|
49
|
+
`).replace(N8,"")}function KE(s,i){return i=GE(i),GE(s)===i}function ft(s,i,o,c,f,y){switch(o){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||Eu(s,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&Eu(s,""+c);break;case"className":Kc(s,"class",c);break;case"tabIndex":Kc(s,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Kc(s,o,c);break;case"style":Kg(s,c,y);break;case"data":if(i!=="object"){Kc(s,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||o!=="href")){s.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){s.removeAttribute(o);break}c=Yc(""+c),s.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){s.setAttribute(o,"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 y=="function"&&(o==="formAction"?(i!=="input"&&ft(s,i,"name",f.name,f,null),ft(s,i,"formEncType",f.formEncType,f,null),ft(s,i,"formMethod",f.formMethod,f,null),ft(s,i,"formTarget",f.formTarget,f,null)):(ft(s,i,"encType",f.encType,f,null),ft(s,i,"method",f.method,f,null),ft(s,i,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){s.removeAttribute(o);break}c=Yc(""+c),s.setAttribute(o,c);break;case"onClick":c!=null&&(s.onclick=cs);break;case"onScroll":c!=null&&Ke("scroll",s);break;case"onScrollEnd":c!=null&&Ke("scrollend",s);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(n(61));if(o=c.__html,o!=null){if(f.children!=null)throw Error(n(60));s.innerHTML=o}}break;case"multiple":s.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":s.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){s.removeAttribute("xlink:href");break}o=Yc(""+c),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?s.setAttribute(o,""+c):s.removeAttribute(o);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":c&&typeof c!="function"&&typeof c!="symbol"?s.setAttribute(o,""):s.removeAttribute(o);break;case"capture":case"download":c===!0?s.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?s.setAttribute(o,c):s.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?s.setAttribute(o,c):s.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?s.removeAttribute(o):s.setAttribute(o,c);break;case"popover":Ke("beforetoggle",s),Ke("toggle",s),Gc(s,"popover",c);break;case"xlinkActuate":ls(s,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":ls(s,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":ls(s,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":ls(s,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":ls(s,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":ls(s,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":ls(s,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":ls(s,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":ls(s,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Gc(s,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=nw.get(o)||o,Gc(s,o,c))}}function Sm(s,i,o,c,f,y){switch(o){case"style":Kg(s,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(n(61));if(o=c.__html,o!=null){if(f.children!=null)throw Error(n(60));s.innerHTML=o}}break;case"children":typeof c=="string"?Eu(s,c):(typeof c=="number"||typeof c=="bigint")&&Eu(s,""+c);break;case"onScroll":c!=null&&Ke("scroll",s);break;case"onScrollEnd":c!=null&&Ke("scrollend",s);break;case"onClick":c!=null&&(s.onclick=cs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$g.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(f=o.endsWith("Capture"),i=o.slice(2,f?o.length-7:void 0),y=s[Cr]||null,y=y!=null?y[o]:null,typeof y=="function"&&s.removeEventListener(i,y,f),typeof c=="function")){typeof y!="function"&&y!==null&&(o in s?s[o]=null:s.hasAttribute(o)&&s.removeAttribute(o)),s.addEventListener(i,c,f);break e}o in s?s[o]=c:c===!0?s.setAttribute(o,""):Gc(s,o,c)}}}function sr(s,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ke("error",s),Ke("load",s);var c=!1,f=!1,y;for(y in o)if(o.hasOwnProperty(y)){var A=o[y];if(A!=null)switch(y){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,i));default:ft(s,i,y,A,o,null)}}f&&ft(s,i,"srcSet",o.srcSet,o,null),c&&ft(s,i,"src",o.src,o,null);return;case"input":Ke("invalid",s);var N=y=A=f=null,R=null,K=null;for(c in o)if(o.hasOwnProperty(c)){var te=o[c];if(te!=null)switch(c){case"name":f=te;break;case"type":A=te;break;case"checked":R=te;break;case"defaultChecked":K=te;break;case"value":y=te;break;case"defaultValue":N=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(n(137,i));break;default:ft(s,i,c,te,o,null)}}Vg(s,y,N,R,K,A,f,!1);return;case"select":Ke("invalid",s),c=A=y=null;for(f in o)if(o.hasOwnProperty(f)&&(N=o[f],N!=null))switch(f){case"value":y=N;break;case"defaultValue":A=N;break;case"multiple":c=N;default:ft(s,i,f,N,o,null)}i=y,o=A,s.multiple=!!c,i!=null?xu(s,!!c,i,!1):o!=null&&xu(s,!!c,o,!0);return;case"textarea":Ke("invalid",s),y=f=c=null;for(A in o)if(o.hasOwnProperty(A)&&(N=o[A],N!=null))switch(A){case"value":c=N;break;case"defaultValue":f=N;break;case"children":y=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(n(91));break;default:ft(s,i,A,N,o,null)}Xg(s,c,f,y);return;case"option":for(R in o)if(o.hasOwnProperty(R)&&(c=o[R],c!=null))switch(R){case"selected":s.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:ft(s,i,R,c,o,null)}return;case"dialog":Ke("beforetoggle",s),Ke("toggle",s),Ke("cancel",s),Ke("close",s);break;case"iframe":case"object":Ke("load",s);break;case"video":case"audio":for(c=0;c<Pl.length;c++)Ke(Pl[c],s);break;case"image":Ke("error",s),Ke("load",s);break;case"details":Ke("toggle",s);break;case"embed":case"source":case"link":Ke("error",s),Ke("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in o)if(o.hasOwnProperty(K)&&(c=o[K],c!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,i));default:ft(s,i,K,c,o,null)}return;default:if(jd(i)){for(te in o)o.hasOwnProperty(te)&&(c=o[te],c!==void 0&&Sm(s,i,te,c,o,void 0));return}}for(N in o)o.hasOwnProperty(N)&&(c=o[N],c!=null&&ft(s,i,N,c,o,null))}function B8(s,i,o,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,y=null,A=null,N=null,R=null,K=null,te=null;for(Z in o){var ae=o[Z];if(o.hasOwnProperty(Z)&&ae!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":R=ae;default:c.hasOwnProperty(Z)||ft(s,i,Z,null,c,ae)}}for(var W in c){var Z=c[W];if(ae=o[W],c.hasOwnProperty(W)&&(Z!=null||ae!=null))switch(W){case"type":y=Z;break;case"name":f=Z;break;case"checked":K=Z;break;case"defaultChecked":te=Z;break;case"value":A=Z;break;case"defaultValue":N=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(n(137,i));break;default:Z!==ae&&ft(s,i,W,Z,c,ae)}}Rd(s,A,N,R,K,te,y,f);return;case"select":Z=A=N=W=null;for(y in o)if(R=o[y],o.hasOwnProperty(y)&&R!=null)switch(y){case"value":break;case"multiple":Z=R;default:c.hasOwnProperty(y)||ft(s,i,y,null,c,R)}for(f in c)if(y=c[f],R=o[f],c.hasOwnProperty(f)&&(y!=null||R!=null))switch(f){case"value":W=y;break;case"defaultValue":N=y;break;case"multiple":A=y;default:y!==R&&ft(s,i,f,y,c,R)}i=N,o=A,c=Z,W!=null?xu(s,!!o,W,!1):!!c!=!!o&&(i!=null?xu(s,!!o,i,!0):xu(s,!!o,o?[]:"",!1));return;case"textarea":Z=W=null;for(N in o)if(f=o[N],o.hasOwnProperty(N)&&f!=null&&!c.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:ft(s,i,N,null,c,f)}for(A in c)if(f=c[A],y=o[A],c.hasOwnProperty(A)&&(f!=null||y!=null))switch(A){case"value":W=f;break;case"defaultValue":Z=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(n(91));break;default:f!==y&&ft(s,i,A,f,c,y)}Jg(s,W,Z);return;case"option":for(var Ae in o)if(W=o[Ae],o.hasOwnProperty(Ae)&&W!=null&&!c.hasOwnProperty(Ae))switch(Ae){case"selected":s.selected=!1;break;default:ft(s,i,Ae,null,c,W)}for(R in c)if(W=c[R],Z=o[R],c.hasOwnProperty(R)&&W!==Z&&(W!=null||Z!=null))switch(R){case"selected":s.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:ft(s,i,R,W,c,Z)}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 Pe in o)W=o[Pe],o.hasOwnProperty(Pe)&&W!=null&&!c.hasOwnProperty(Pe)&&ft(s,i,Pe,null,c,W);for(K in c)if(W=c[K],Z=o[K],c.hasOwnProperty(K)&&W!==Z&&(W!=null||Z!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(n(137,i));break;default:ft(s,i,K,W,c,Z)}return;default:if(jd(i)){for(var mt in o)W=o[mt],o.hasOwnProperty(mt)&&W!==void 0&&!c.hasOwnProperty(mt)&&Sm(s,i,mt,void 0,c,W);for(te in c)W=c[te],Z=o[te],!c.hasOwnProperty(te)||W===Z||W===void 0&&Z===void 0||Sm(s,i,te,W,c,Z);return}}for(var q in o)W=o[q],o.hasOwnProperty(q)&&W!=null&&!c.hasOwnProperty(q)&&ft(s,i,q,null,c,W);for(ae in c)W=c[ae],Z=o[ae],!c.hasOwnProperty(ae)||W===Z||W==null&&Z==null||ft(s,i,ae,W,c,Z)}function QE(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function P8(){if(typeof performance.getEntriesByType=="function"){for(var s=0,i=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var f=o[c],y=f.transferSize,A=f.initiatorType,N=f.duration;if(y&&N&&QE(A)){for(A=0,N=f.responseEnd,c+=1;c<o.length;c++){var R=o[c],K=R.startTime;if(K>N)break;var te=R.transferSize,ae=R.initiatorType;te&&QE(ae)&&(R=R.responseEnd,A+=te*(R<N?1:(N-K)/(R-K)))}if(--c,i+=8*(y+A)/(f.duration/1e3),s++,10<s)break}}if(0<s)return i/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var Tm=null,wm=null;function Jp(s){return s.nodeType===9?s:s.ownerDocument}function YE(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function WE(s,i){if(s===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&i==="foreignObject"?0:s}function Nm(s,i){return s==="textarea"||s==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Bm=null;function k8(){var s=window.event;return s&&s.type==="popstate"?s===Bm?!1:(Bm=s,!0):(Bm=null,!1)}var ZE=typeof setTimeout=="function"?setTimeout:void 0,I8=typeof clearTimeout=="function"?clearTimeout:void 0,eb=typeof Promise=="function"?Promise:void 0,M8=typeof queueMicrotask=="function"?queueMicrotask:typeof eb<"u"?function(s){return eb.resolve(null).then(s).catch(O8)}:ZE;function O8(s){setTimeout(function(){throw s})}function va(s){return s==="head"}function tb(s,i){var o=i,c=0;do{var f=o.nextSibling;if(s.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"||o==="/&"){if(c===0){s.removeChild(f),Yu(i);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")Il(s.ownerDocument.documentElement);else if(o==="head"){o=s.ownerDocument.head,Il(o);for(var y=o.firstChild;y;){var A=y.nextSibling,N=y.nodeName;y[Yo]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=A}}else o==="body"&&Il(s.ownerDocument.body);o=f}while(o);Yu(i)}function rb(s,i){var o=s;s=0;do{var c=o.nextSibling;if(o.nodeType===1?i?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(i?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(s===0)break;s--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||s++;o=c}while(o)}function Pm(s){var i=s.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Pm(o),Od(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}s.removeChild(o)}}function L8(s,i,o,c){for(;s.nodeType===1;){var f=o;if(s.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(c){if(!s[Yo])switch(i){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(y=s.getAttribute("rel"),y==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(y!==f.rel||s.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||s.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||s.getAttribute("title")!==(f.title==null?null:f.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(y=s.getAttribute("src"),(y!==(f.src==null?null:f.src)||s.getAttribute("type")!==(f.type==null?null:f.type)||s.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&y&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(i==="input"&&s.type==="hidden"){var y=f.name==null?null:""+f.name;if(f.type==="hidden"&&s.getAttribute("name")===y)return s}else return s;if(s=cn(s.nextSibling),s===null)break}return null}function R8(s,i,o){if(i==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!o||(s=cn(s.nextSibling),s===null))return null;return s}function nb(s,i){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!i||(s=cn(s.nextSibling),s===null))return null;return s}function km(s){return s.data==="$?"||s.data==="$~"}function Im(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function _8(s,i){var o=s.ownerDocument;if(s.data==="$~")s._reactRetry=i;else if(s.data!=="$?"||o.readyState!=="loading")i();else{var c=function(){i(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),s._reactRetry=c}}function cn(s){for(;s!=null;s=s.nextSibling){var i=s.nodeType;if(i===1||i===3)break;if(i===8){if(i=s.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return s}var Mm=null;function sb(s){s=s.nextSibling;for(var i=0;s;){if(s.nodeType===8){var o=s.data;if(o==="/$"||o==="/&"){if(i===0)return cn(s.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}s=s.nextSibling}return null}function ab(s){s=s.previousSibling;for(var i=0;s;){if(s.nodeType===8){var o=s.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return s;i--}else o!=="/$"&&o!=="/&"||i++}s=s.previousSibling}return null}function ib(s,i,o){switch(i=Jp(o),s){case"html":if(s=i.documentElement,!s)throw Error(n(452));return s;case"head":if(s=i.head,!s)throw Error(n(453));return s;case"body":if(s=i.body,!s)throw Error(n(454));return s;default:throw Error(n(451))}}function Il(s){for(var i=s.attributes;i.length;)s.removeAttributeNode(i[0]);Od(s)}var pn=new Map,ub=new Set;function Xp(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Ss=ce.d;ce.d={f:j8,r:$8,D:z8,C:U8,L:q8,m:H8,X:J8,S:V8,M:X8};function j8(){var s=Ss.f(),i=_p();return s||i}function $8(s){var i=yu(s);i!==null&&i.tag===5&&i.type==="form"?Fx(i):Ss.r(s)}var Gu=typeof document>"u"?null:document;function ob(s,i,o){var c=Gu;if(c&&typeof i=="string"&&i){var f=rn(i);f='link[rel="'+s+'"][href="'+f+'"]',typeof o=="string"&&(f+='[crossorigin="'+o+'"]'),ub.has(f)||(ub.add(f),s={rel:s,crossOrigin:o,href:i},c.querySelector(f)===null&&(i=c.createElement("link"),sr(i,"link",s),Xt(i),c.head.appendChild(i)))}}function z8(s){Ss.D(s),ob("dns-prefetch",s,null)}function U8(s,i){Ss.C(s,i),ob("preconnect",s,i)}function q8(s,i,o){Ss.L(s,i,o);var c=Gu;if(c&&s&&i){var f='link[rel="preload"][as="'+rn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(f+='[imagesrcset="'+rn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(f+='[imagesizes="'+rn(o.imageSizes)+'"]')):f+='[href="'+rn(s)+'"]';var y=f;switch(i){case"style":y=Ku(s);break;case"script":y=Qu(s)}pn.has(y)||(s=D({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:s,as:i},o),pn.set(y,s),c.querySelector(f)!==null||i==="style"&&c.querySelector(Ml(y))||i==="script"&&c.querySelector(Ol(y))||(i=c.createElement("link"),sr(i,"link",s),Xt(i),c.head.appendChild(i)))}}function H8(s,i){Ss.m(s,i);var o=Gu;if(o&&s){var c=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+rn(c)+'"][href="'+rn(s)+'"]',y=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Qu(s)}if(!pn.has(y)&&(s=D({rel:"modulepreload",href:s},i),pn.set(y,s),o.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ol(y)))return}c=o.createElement("link"),sr(c,"link",s),Xt(c),o.head.appendChild(c)}}}function V8(s,i,o){Ss.S(s,i,o);var c=Gu;if(c&&s){var f=Du(c).hoistableStyles,y=Ku(s);i=i||"default";var A=f.get(y);if(!A){var N={loading:0,preload:null};if(A=c.querySelector(Ml(y)))N.loading=5;else{s=D({rel:"stylesheet",href:s,"data-precedence":i},o),(o=pn.get(y))&&Om(s,o);var R=A=c.createElement("link");Xt(R),sr(R,"link",s),R._p=new Promise(function(K,te){R.onload=K,R.onerror=te}),R.addEventListener("load",function(){N.loading|=1}),R.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Gp(A,i,c)}A={type:"stylesheet",instance:A,count:1,state:N},f.set(y,A)}}}function J8(s,i){Ss.X(s,i);var o=Gu;if(o&&s){var c=Du(o).hoistableScripts,f=Qu(s),y=c.get(f);y||(y=o.querySelector(Ol(f)),y||(s=D({src:s,async:!0},i),(i=pn.get(f))&&Lm(s,i),y=o.createElement("script"),Xt(y),sr(y,"link",s),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(f,y))}}function X8(s,i){Ss.M(s,i);var o=Gu;if(o&&s){var c=Du(o).hoistableScripts,f=Qu(s),y=c.get(f);y||(y=o.querySelector(Ol(f)),y||(s=D({src:s,async:!0,type:"module"},i),(i=pn.get(f))&&Lm(s,i),y=o.createElement("script"),Xt(y),sr(y,"link",s),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(f,y))}}function lb(s,i,o,c){var f=(f=Oe.current)?Xp(f):null;if(!f)throw Error(n(446));switch(s){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Ku(o.href),o=Du(f).hoistableStyles,c=o.get(i),c||(c={type:"style",instance:null,count:0,state:null},o.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){s=Ku(o.href);var y=Du(f).hoistableStyles,A=y.get(s);if(A||(f=f.ownerDocument||f,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(s,A),(y=f.querySelector(Ml(s)))&&!y._p&&(A.instance=y,A.state.loading=5),pn.has(s)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},pn.set(s,o),y||G8(f,s,o,A.state))),i&&c===null)throw Error(n(528,""));return A}if(i&&c!==null)throw Error(n(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Qu(o),o=Du(f).hoistableScripts,c=o.get(i),c||(c={type:"script",instance:null,count:0,state:null},o.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,s))}}function Ku(s){return'href="'+rn(s)+'"'}function Ml(s){return'link[rel="stylesheet"]['+s+"]"}function cb(s){return D({},s,{"data-precedence":s.precedence,precedence:null})}function G8(s,i,o,c){s.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=s.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),sr(i,"link",o),Xt(i),s.head.appendChild(i))}function Qu(s){return'[src="'+rn(s)+'"]'}function Ol(s){return"script[async]"+s}function pb(s,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var c=s.querySelector('style[data-href~="'+rn(o.href)+'"]');if(c)return i.instance=c,Xt(c),c;var f=D({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(s.ownerDocument||s).createElement("style"),Xt(c),sr(c,"style",f),Gp(c,o.precedence,s),i.instance=c;case"stylesheet":f=Ku(o.href);var y=s.querySelector(Ml(f));if(y)return i.state.loading|=4,i.instance=y,Xt(y),y;c=cb(o),(f=pn.get(f))&&Om(c,f),y=(s.ownerDocument||s).createElement("link"),Xt(y);var A=y;return A._p=new Promise(function(N,R){A.onload=N,A.onerror=R}),sr(y,"link",c),i.state.loading|=4,Gp(y,o.precedence,s),i.instance=y;case"script":return y=Qu(o.src),(f=s.querySelector(Ol(y)))?(i.instance=f,Xt(f),f):(c=o,(f=pn.get(y))&&(c=D({},o),Lm(c,f)),s=s.ownerDocument||s,f=s.createElement("script"),Xt(f),sr(f,"link",c),s.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(n(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,Gp(c,o.precedence,s));return i.instance}function Gp(s,i,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,y=f,A=0;A<c.length;A++){var N=c[A];if(N.dataset.precedence===i)y=N;else if(y!==f)break}y?y.parentNode.insertBefore(s,y.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(s,i.firstChild))}function Om(s,i){s.crossOrigin==null&&(s.crossOrigin=i.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=i.referrerPolicy),s.title==null&&(s.title=i.title)}function Lm(s,i){s.crossOrigin==null&&(s.crossOrigin=i.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=i.referrerPolicy),s.integrity==null&&(s.integrity=i.integrity)}var Kp=null;function hb(s,i,o){if(Kp===null){var c=new Map,f=Kp=new Map;f.set(o,c)}else f=Kp,c=f.get(o),c||(c=new Map,f.set(o,c));if(c.has(s))return c;for(c.set(s,null),o=o.getElementsByTagName(s),f=0;f<o.length;f++){var y=o[f];if(!(y[Yo]||y[er]||s==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var A=y.getAttribute(i)||"";A=s+A;var N=c.get(A);N?N.push(y):c.set(A,[y])}}return c}function db(s,i,o){s=s.ownerDocument||s,s.head.insertBefore(o,i==="title"?s.querySelector("head > title"):null)}function K8(s,i,o){if(o===1||i.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return s=i.disabled,typeof i.precedence=="string"&&s==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function fb(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function Q8(s,i,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var f=Ku(c.href),y=i.querySelector(Ml(f));if(y){i=y._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(s.count++,s=Qp.bind(s),i.then(s,s)),o.state.loading|=4,o.instance=y,Xt(y);return}y=i.ownerDocument||i,c=cb(c),(f=pn.get(f))&&Om(c,f),y=y.createElement("link"),Xt(y);var A=y;A._p=new Promise(function(N,R){A.onload=N,A.onerror=R}),sr(y,"link",c),o.instance=y}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(s.count++,o=Qp.bind(s),i.addEventListener("load",o),i.addEventListener("error",o))}}var Rm=0;function Y8(s,i){return s.stylesheets&&s.count===0&&Wp(s,s.stylesheets),0<s.count||0<s.imgCount?function(o){var c=setTimeout(function(){if(s.stylesheets&&Wp(s,s.stylesheets),s.unsuspend){var y=s.unsuspend;s.unsuspend=null,y()}},6e4+i);0<s.imgBytes&&Rm===0&&(Rm=62500*P8());var f=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&Wp(s,s.stylesheets),s.unsuspend)){var y=s.unsuspend;s.unsuspend=null,y()}},(s.imgBytes>Rm?50:800)+i);return s.unsuspend=o,function(){s.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function Qp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wp(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Yp=null;function Wp(s,i){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Yp=new Map,i.forEach(W8,s),Yp=null,Qp.call(s))}function W8(s,i){if(!(i.state.loading&4)){var o=Yp.get(s);if(o)var c=o.get(null);else{o=new Map,Yp.set(s,o);for(var f=s.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<f.length;y++){var A=f[y];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(o.set(A.dataset.precedence,A),c=A)}c&&o.set(null,c)}f=i.instance,A=f.getAttribute("data-precedence"),y=o.get(A)||c,y===c&&o.set(null,f),o.set(A,f),this.count++,c=Qp.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),y?y.parentNode.insertBefore(f,y.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(f,s.firstChild)),i.state.loading|=4}}var Ll={$$typeof:w,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Z8(s,i,o,c,f,y,A,N,R){this.tag=1,this.containerInfo=s,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=Pd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pd(0),this.hiddenUpdates=Pd(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=y,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function mb(s,i,o,c,f,y,A,N,R,K,te,ae){return s=new Z8(s,i,o,A,R,K,te,ae,N),i=1,y===!0&&(i|=24),y=Ur(3,null,null,i),s.current=y,y.stateNode=s,i=yf(),i.refCount++,s.pooledCache=i,i.refCount++,y.memoizedState={element:c,isDehydrated:o,cache:i},Ef(y),s}function yb(s){return s?(s=Tu,s):Tu}function Db(s,i,o,c,f,y){f=yb(f),c.context===null?c.context=f:c.pendingContext=f,c=fa(i),c.payload={element:o},y=y===void 0?null:y,y!==null&&(c.callback=y),o=ma(s,c,i),o!==null&&(Nr(o,s,i),fl(o,s,i))}function gb(s,i){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var o=s.retryLane;s.retryLane=o!==0&&o<i?o:i}}function _m(s,i){gb(s,i),(s=s.alternate)&&gb(s,i)}function xb(s){if(s.tag===13||s.tag===31){var i=gi(s,67108864);i!==null&&Nr(i,s,67108864),_m(s,67108864)}}function Eb(s){if(s.tag===13||s.tag===31){var i=Xr();i=kd(i);var o=gi(s,i);o!==null&&Nr(o,s,i),_m(s,i)}}var Zp=!0;function eN(s,i,o,c){var f=J.T;J.T=null;var y=ce.p;try{ce.p=2,jm(s,i,o,c)}finally{ce.p=y,J.T=f}}function tN(s,i,o,c){var f=J.T;J.T=null;var y=ce.p;try{ce.p=8,jm(s,i,o,c)}finally{ce.p=y,J.T=f}}function jm(s,i,o,c){if(Zp){var f=$m(c);if(f===null)vm(s,i,c,eh,o),Ab(s,c);else if(nN(f,s,i,o,c))c.stopPropagation();else if(Ab(s,c),i&4&&-1<rN.indexOf(s)){for(;f!==null;){var y=yu(f);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var A=di(y.pendingLanes);if(A!==0){var N=y;for(N.pendingLanes|=2,N.entangledLanes|=2;A;){var R=1<<31-$r(A);N.entanglements[1]|=R,A&=~R}Un(y),(ut&6)===0&&(Lp=_r()+500,Bl(0))}}break;case 31:case 13:N=gi(y,2),N!==null&&Nr(N,y,2),_p(),_m(y,2)}if(y=$m(c),y===null&&vm(s,i,c,eh,o),y===f)break;f=y}f!==null&&c.stopPropagation()}else vm(s,i,c,null,o)}}function $m(s){return s=zd(s),zm(s)}var eh=null;function zm(s){if(eh=null,s=mu(s),s!==null){var i=u(s);if(i===null)s=null;else{var o=i.tag;if(o===13){if(s=l(i),s!==null)return s;s=null}else if(o===31){if(s=p(i),s!==null)return s;s=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;s=null}else i!==s&&(s=null)}}return eh=s,null}function bb(s){switch(s){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(z3()){case Ng:return 2;case Bg:return 8;case qc:case U3:return 32;case Pg:return 268435456;default:return 32}default:return 32}}var Um=!1,Sa=null,Ta=null,wa=null,Rl=new Map,_l=new Map,Na=[],rN="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 Ab(s,i){switch(s){case"focusin":case"focusout":Sa=null;break;case"dragenter":case"dragleave":Ta=null;break;case"mouseover":case"mouseout":wa=null;break;case"pointerover":case"pointerout":Rl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":_l.delete(i.pointerId)}}function jl(s,i,o,c,f,y){return s===null||s.nativeEvent!==y?(s={blockedOn:i,domEventName:o,eventSystemFlags:c,nativeEvent:y,targetContainers:[f]},i!==null&&(i=yu(i),i!==null&&xb(i)),s):(s.eventSystemFlags|=c,i=s.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),s)}function nN(s,i,o,c,f){switch(i){case"focusin":return Sa=jl(Sa,s,i,o,c,f),!0;case"dragenter":return Ta=jl(Ta,s,i,o,c,f),!0;case"mouseover":return wa=jl(wa,s,i,o,c,f),!0;case"pointerover":var y=f.pointerId;return Rl.set(y,jl(Rl.get(y)||null,s,i,o,c,f)),!0;case"gotpointercapture":return y=f.pointerId,_l.set(y,jl(_l.get(y)||null,s,i,o,c,f)),!0}return!1}function Cb(s){var i=mu(s.target);if(i!==null){var o=u(i);if(o!==null){if(i=o.tag,i===13){if(i=l(o),i!==null){s.blockedOn=i,Rg(s.priority,function(){Eb(o)});return}}else if(i===31){if(i=p(o),i!==null){s.blockedOn=i,Rg(s.priority,function(){Eb(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){s.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}s.blockedOn=null}function th(s){if(s.blockedOn!==null)return!1;for(var i=s.targetContainers;0<i.length;){var o=$m(s.nativeEvent);if(o===null){o=s.nativeEvent;var c=new o.constructor(o.type,o);$d=c,o.target.dispatchEvent(c),$d=null}else return i=yu(o),i!==null&&xb(i),s.blockedOn=o,!1;i.shift()}return!0}function Fb(s,i,o){th(s)&&o.delete(i)}function sN(){Um=!1,Sa!==null&&th(Sa)&&(Sa=null),Ta!==null&&th(Ta)&&(Ta=null),wa!==null&&th(wa)&&(wa=null),Rl.forEach(Fb),_l.forEach(Fb)}function rh(s,i){s.blockedOn===i&&(s.blockedOn=null,Um||(Um=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,sN)))}var nh=null;function vb(s){nh!==s&&(nh=s,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){nh===s&&(nh=null);for(var i=0;i<s.length;i+=3){var o=s[i],c=s[i+1],f=s[i+2];if(typeof c!="function"){if(zm(c||o)===null)continue;break}var y=yu(o);y!==null&&(s.splice(i,3),i-=3,$f(y,{pending:!0,data:f,method:o.method,action:c},c,f))}}))}function Yu(s){function i(R){return rh(R,s)}Sa!==null&&rh(Sa,s),Ta!==null&&rh(Ta,s),wa!==null&&rh(wa,s),Rl.forEach(i),_l.forEach(i);for(var o=0;o<Na.length;o++){var c=Na[o];c.blockedOn===s&&(c.blockedOn=null)}for(;0<Na.length&&(o=Na[0],o.blockedOn===null);)Cb(o),o.blockedOn===null&&Na.shift();if(o=(s.ownerDocument||s).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var f=o[c],y=o[c+1],A=f[Cr]||null;if(typeof y=="function")A||vb(o);else if(A){var N=null;if(y&&y.hasAttribute("formAction")){if(f=y,A=y[Cr]||null)N=A.formAction;else if(zm(f)!==null)continue}else N=A.action;typeof N=="function"?o[c+1]=N:(o.splice(c,3),c-=3),vb(o)}}}function Sb(){function s(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(A){return f=A})},focusReset:"manual",scroll:"manual"})}function i(){f!==null&&(f(),f=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),f!==null&&(f(),f=null)}}}function qm(s){this._internalRoot=s}sh.prototype.render=qm.prototype.render=function(s){var i=this._internalRoot;if(i===null)throw Error(n(409));var o=i.current,c=Xr();Db(o,c,s,i,null,null)},sh.prototype.unmount=qm.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var i=s.containerInfo;Db(s.current,2,null,s,null,null),_p(),i[fu]=null}};function sh(s){this._internalRoot=s}sh.prototype.unstable_scheduleHydration=function(s){if(s){var i=Lg();s={blockedOn:null,target:s,priority:i};for(var o=0;o<Na.length&&i!==0&&i<Na[o].priority;o++);Na.splice(o,0,s),o===0&&Cb(s)}};var Tb=t.version;if(Tb!=="19.2.0")throw Error(n(527,Tb,"19.2.0"));ce.findDOMNode=function(s){var i=s._reactInternals;if(i===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=d(i),s=s!==null?m(s):null,s=s===null?null:s.stateNode,s};var aN={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:J,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ah=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ah.isDisabled&&ah.supportsFiber)try{Go=ah.inject(aN),jr=ah}catch{}}return zl.createRoot=function(s,i){if(!a(s))throw Error(n(299));var o=!1,c="",f=Mx,y=Ox,A=Lx;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(A=i.onRecoverableError)),i=mb(s,1,!1,null,null,o,c,null,f,y,A,Sb),s[fu]=i.current,Fm(s),new qm(i)},zl.hydrateRoot=function(s,i,o){if(!a(s))throw Error(n(299));var c=!1,f="",y=Mx,A=Ox,N=Lx,R=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(A=o.onCaughtError),o.onRecoverableError!==void 0&&(N=o.onRecoverableError),o.formState!==void 0&&(R=o.formState)),i=mb(s,1,!0,i,o??null,c,f,R,y,A,N,Sb),i.context=yb(null),o=i.current,c=Xr(),c=kd(c),f=fa(c),f.callback=null,ma(o,f,c),o=c,i.current.lanes=o,Qo(i,o),Un(i),s[fu]=i.current,Fm(s),new sh(i)},zl.version="19.2.0",zl}var jb;function DN(){if(jb)return Xm.exports;jb=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Xm.exports=yN(),Xm.exports}var gN=DN();const xN=R0(gN);var Io=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},EN={setTimeout:(r,t)=>setTimeout(r,t),clearTimeout:r=>clearTimeout(r),setInterval:(r,t)=>setInterval(r,t),clearInterval:r=>clearInterval(r)},$a,L0,X2,bN=(X2=class{constructor(){Se(this,$a,EN);Se(this,L0,!1)}setTimeoutProvider(r){De(this,$a,r)}setTimeout(r,t){return L(this,$a).setTimeout(r,t)}clearTimeout(r){L(this,$a).clearTimeout(r)}setInterval(r,t){return L(this,$a).setInterval(r,t)}clearInterval(r){L(this,$a).clearInterval(r)}},$a=new WeakMap,L0=new WeakMap,X2),Ri=new bN;function AN(r){setTimeout(r,0)}var Zi=typeof window>"u"||"Deno"in globalThis;function xr(){}function CN(r,t){return typeof r=="function"?r(t):r}function Oy(r){return typeof r=="number"&&r>=0&&r!==1/0}function oC(r,t){return Math.max(r+(t||0)-Date.now(),0)}function Ka(r,t){return typeof r=="function"?r(t):r}function fn(r,t){return typeof r=="function"?r(t):r}function $b(r,t){const{type:e="all",exact:n,fetchStatus:a,predicate:u,queryKey:l,stale:p}=r;if(l){if(n){if(t.queryHash!==$0(l,t.options))return!1}else if(!fc(t.queryKey,l))return!1}if(e!=="all"){const h=t.isActive();if(e==="active"&&!h||e==="inactive"&&h)return!1}return!(typeof p=="boolean"&&t.isStale()!==p||a&&a!==t.state.fetchStatus||u&&!u(t))}function zb(r,t){const{exact:e,status:n,predicate:a,mutationKey:u}=r;if(u){if(!t.options.mutationKey)return!1;if(e){if(eu(t.options.mutationKey)!==eu(u))return!1}else if(!fc(t.options.mutationKey,u))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function $0(r,t){return((t==null?void 0:t.queryKeyHashFn)||eu)(r)}function eu(r){return JSON.stringify(r,(t,e)=>Ly(e)?Object.keys(e).sort().reduce((n,a)=>(n[a]=e[a],n),{}):e)}function fc(r,t){return r===t?!0:typeof r!=typeof t?!1:r&&t&&typeof r=="object"&&typeof t=="object"?Object.keys(t).every(e=>fc(r[e],t[e])):!1}var FN=Object.prototype.hasOwnProperty;function lC(r,t){if(r===t)return r;const e=Ub(r)&&Ub(t);if(!e&&!(Ly(r)&&Ly(t)))return t;const a=(e?r:Object.keys(r)).length,u=e?t:Object.keys(t),l=u.length,p=e?new Array(l):{};let h=0;for(let d=0;d<l;d++){const m=e?d:u[d],D=r[m],g=t[m];if(D===g){p[m]=D,(e?d<a:FN.call(r,m))&&h++;continue}if(D===null||g===null||typeof D!="object"||typeof g!="object"){p[m]=g;continue}const x=lC(D,g);p[m]=x,x===D&&h++}return a===l&&h===a?r:p}function Lh(r,t){if(!t||Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}function Ub(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Ly(r){if(!qb(r))return!1;const t=r.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!qb(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function qb(r){return Object.prototype.toString.call(r)==="[object Object]"}function vN(r){return new Promise(t=>{Ri.setTimeout(t,r)})}function Ry(r,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(r,t):e.structuralSharing!==!1?lC(r,t):t}function SN(r,t,e=0){const n=[...r,t];return e&&n.length>e?n.slice(1):n}function TN(r,t,e=0){const n=[t,...r];return e&&n.length>e?n.slice(0,-1):n}var z0=Symbol();function cC(r,t){return!r.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!r.queryFn||r.queryFn===z0?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function pC(r,t){return typeof r=="function"?r(...t):!!r}var Ui,za,co,G2,wN=(G2=class extends Io{constructor(){super();Se(this,Ui);Se(this,za);Se(this,co);De(this,co,t=>{if(!Zi&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){L(this,za)||this.setEventListener(L(this,co))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,za))==null||t.call(this),De(this,za,void 0))}setEventListener(t){var e;De(this,co,t),(e=L(this,za))==null||e.call(this),De(this,za,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){L(this,Ui)!==t&&(De(this,Ui,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof L(this,Ui)=="boolean"?L(this,Ui):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ui=new WeakMap,za=new WeakMap,co=new WeakMap,G2),U0=new wN;function _y(){let r,t;const e=new Promise((a,u)=>{r=a,t=u});e.status="pending",e.catch(()=>{});function n(a){Object.assign(e,a),delete e.resolve,delete e.reject}return e.resolve=a=>{n({status:"fulfilled",value:a}),r(a)},e.reject=a=>{n({status:"rejected",reason:a}),t(a)},e}var NN=AN;function BN(){let r=[],t=0,e=p=>{p()},n=p=>{p()},a=NN;const u=p=>{t?r.push(p):a(()=>{e(p)})},l=()=>{const p=r;r=[],p.length&&a(()=>{n(()=>{p.forEach(h=>{e(h)})})})};return{batch:p=>{let h;t++;try{h=p()}finally{t--,t||l()}return h},batchCalls:p=>(...h)=>{u(()=>{p(...h)})},schedule:u,setNotifyFunction:p=>{e=p},setBatchNotifyFunction:p=>{n=p},setScheduler:p=>{a=p}}}var Jt=BN(),po,Ua,ho,K2,PN=(K2=class extends Io{constructor(){super();Se(this,po,!0);Se(this,Ua);Se(this,ho);De(this,ho,t=>{if(!Zi&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}})}onSubscribe(){L(this,Ua)||this.setEventListener(L(this,ho))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,Ua))==null||t.call(this),De(this,Ua,void 0))}setEventListener(t){var e;De(this,ho,t),(e=L(this,Ua))==null||e.call(this),De(this,Ua,t(this.setOnline.bind(this)))}setOnline(t){L(this,po)!==t&&(De(this,po,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return L(this,po)}},po=new WeakMap,Ua=new WeakMap,ho=new WeakMap,K2),Rh=new PN;function kN(r){return Math.min(1e3*2**r,3e4)}function hC(r){return(r??"online")==="online"?Rh.isOnline():!0}var jy=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function dC(r){let t=!1,e=0,n;const a=_y(),u=()=>a.status!=="pending",l=C=>{var S;if(!u()){const v=new jy(C);g(v),(S=r.onCancel)==null||S.call(r,v)}},p=()=>{t=!0},h=()=>{t=!1},d=()=>U0.isFocused()&&(r.networkMode==="always"||Rh.isOnline())&&r.canRun(),m=()=>hC(r.networkMode)&&r.canRun(),D=C=>{u()||(n==null||n(),a.resolve(C))},g=C=>{u()||(n==null||n(),a.reject(C))},x=()=>new Promise(C=>{var S;n=v=>{(u()||d())&&C(v)},(S=r.onPause)==null||S.call(r)}).then(()=>{var C;n=void 0,u()||(C=r.onContinue)==null||C.call(r)}),b=()=>{if(u())return;let C;const S=e===0?r.initialPromise:void 0;try{C=S??r.fn()}catch(v){C=Promise.reject(v)}Promise.resolve(C).then(D).catch(v=>{var _;if(u())return;const F=r.retry??(Zi?0:3),w=r.retryDelay??kN,T=typeof w=="function"?w(e,v):w,B=F===!0||typeof F=="number"&&e<F||typeof F=="function"&&F(e,v);if(t||!B){g(v);return}e++,(_=r.onFail)==null||_.call(r,e,v),vN(T).then(()=>d()?void 0:x()).then(()=>{t?g(v):b()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(n==null||n(),a),cancelRetry:p,continueRetry:h,canStart:m,start:()=>(m()?b():x().then(b),a)}}var qi,Q2,fC=(Q2=class{constructor(){Se(this,qi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oy(this.gcTime)&&De(this,qi,Ri.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(Zi?1/0:300*1e3))}clearGcTimeout(){L(this,qi)&&(Ri.clearTimeout(L(this,qi)),De(this,qi,void 0))}},qi=new WeakMap,Q2),Hi,fo,hn,Vi,Kt,Fc,Ji,vn,Ns,Y2,IN=(Y2=class extends fC{constructor(t){super();Se(this,vn);Se(this,Hi);Se(this,fo);Se(this,hn);Se(this,Vi);Se(this,Kt);Se(this,Fc);Se(this,Ji);De(this,Ji,!1),De(this,Fc,t.defaultOptions),this.setOptions(t.options),this.observers=[],De(this,Vi,t.client),De(this,hn,L(this,Vi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,De(this,Hi,Hb(this.options)),this.state=t.state??L(this,Hi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=L(this,Kt))==null?void 0:t.promise}setOptions(t){if(this.options={...L(this,Fc),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=Hb(this.options);e.data!==void 0&&(this.setData(e.data,{updatedAt:e.dataUpdatedAt,manual:!0}),De(this,Hi,e))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,hn).remove(this)}setData(t,e){const n=Ry(this.state.data,t,this.options);return Ie(this,vn,Ns).call(this,{data:n,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),n}setState(t,e){Ie(this,vn,Ns).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var n,a;const e=(n=L(this,Kt))==null?void 0:n.promise;return(a=L(this,Kt))==null||a.cancel(t),e?e.then(xr).catch(xr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(L(this,Hi))}isActive(){return this.observers.some(t=>fn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===z0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ka(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!oC(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=L(this,Kt))==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=L(this,Kt))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),L(this,hn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(L(this,Kt)&&(L(this,Ji)?L(this,Kt).cancel({revert:!0}):L(this,Kt).cancelRetry()),this.scheduleGc()),L(this,hn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,vn,Ns).call(this,{type:"invalidate"})}async fetch(t,e){var h,d,m,D,g,x,b,C,S,v,F,w;if(this.state.fetchStatus!=="idle"&&((h=L(this,Kt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(L(this,Kt))return L(this,Kt).continueRetry(),L(this,Kt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(B=>B.options.queryFn);T&&this.setOptions(T.options)}const n=new AbortController,a=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(De(this,Ji,!0),n.signal)})},u=()=>{const T=cC(this.options,e),_=(()=>{const V={client:L(this,Vi),queryKey:this.queryKey,meta:this.meta};return a(V),V})();return De(this,Ji,!1),this.options.persister?this.options.persister(T,_,this):T(_)},p=(()=>{const T={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:L(this,Vi),state:this.state,fetchFn:u};return a(T),T})();(d=this.options.behavior)==null||d.onFetch(p,this),De(this,fo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=p.fetchOptions)==null?void 0:m.meta))&&Ie(this,vn,Ns).call(this,{type:"fetch",meta:(D=p.fetchOptions)==null?void 0:D.meta}),De(this,Kt,dC({initialPromise:e==null?void 0:e.initialPromise,fn:p.fetchFn,onCancel:T=>{T instanceof jy&&T.revert&&this.setState({...L(this,fo),fetchStatus:"idle"}),n.abort()},onFail:(T,B)=>{Ie(this,vn,Ns).call(this,{type:"failed",failureCount:T,error:B})},onPause:()=>{Ie(this,vn,Ns).call(this,{type:"pause"})},onContinue:()=>{Ie(this,vn,Ns).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const T=await L(this,Kt).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(x=(g=L(this,hn).config).onSuccess)==null||x.call(g,T,this),(C=(b=L(this,hn).config).onSettled)==null||C.call(b,T,this.state.error,this),T}catch(T){if(T instanceof jy){if(T.silent)return L(this,Kt).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw Ie(this,vn,Ns).call(this,{type:"error",error:T}),(v=(S=L(this,hn).config).onError)==null||v.call(S,T,this),(w=(F=L(this,hn).config).onSettled)==null||w.call(F,this.state.data,T,this),T}finally{this.scheduleGc()}}},Hi=new WeakMap,fo=new WeakMap,hn=new WeakMap,Vi=new WeakMap,Kt=new WeakMap,Fc=new WeakMap,Ji=new WeakMap,vn=new WeakSet,Ns=function(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...mC(n.data,this.options),fetchMeta:t.meta??null};case"success":const a={...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return De(this,fo,t.manual?a:void 0),a;case"error":const u=t.error;return{...n,error:u,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Jt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),L(this,hn).notify({query:this,type:"updated",action:t})})},Y2);function mC(r,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hC(t.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function Hb(r){const t=typeof r.initialData=="function"?r.initialData():r.initialData,e=t!==void 0,n=e?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var Br,tt,vc,yr,Xi,mo,Ms,qa,Sc,yo,Do,Gi,Ki,Ha,go,lt,Yl,$y,zy,Uy,qy,Hy,Vy,Jy,yC,W2,MN=(W2=class extends Io{constructor(t,e){super();Se(this,lt);Se(this,Br);Se(this,tt);Se(this,vc);Se(this,yr);Se(this,Xi);Se(this,mo);Se(this,Ms);Se(this,qa);Se(this,Sc);Se(this,yo);Se(this,Do);Se(this,Gi);Se(this,Ki);Se(this,Ha);Se(this,go,new Set);this.options=e,De(this,Br,t),De(this,qa,null),De(this,Ms,_y()),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,tt).addObserver(this),Vb(L(this,tt),this.options)?Ie(this,lt,Yl).call(this):this.updateResult(),Ie(this,lt,qy).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xy(L(this,tt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xy(L(this,tt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ie(this,lt,Hy).call(this),Ie(this,lt,Vy).call(this),L(this,tt).removeObserver(this)}setOptions(t){const e=this.options,n=L(this,tt);if(this.options=L(this,Br).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof fn(this.options.enabled,L(this,tt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ie(this,lt,Jy).call(this),L(this,tt).setOptions(this.options),e._defaulted&&!Lh(this.options,e)&&L(this,Br).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,tt),observer:this});const a=this.hasListeners();a&&Jb(L(this,tt),n,this.options,e)&&Ie(this,lt,Yl).call(this),this.updateResult(),a&&(L(this,tt)!==n||fn(this.options.enabled,L(this,tt))!==fn(e.enabled,L(this,tt))||Ka(this.options.staleTime,L(this,tt))!==Ka(e.staleTime,L(this,tt)))&&Ie(this,lt,$y).call(this);const u=Ie(this,lt,zy).call(this);a&&(L(this,tt)!==n||fn(this.options.enabled,L(this,tt))!==fn(e.enabled,L(this,tt))||u!==L(this,Ha))&&Ie(this,lt,Uy).call(this,u)}getOptimisticResult(t){const e=L(this,Br).getQueryCache().build(L(this,Br),t),n=this.createResult(e,t);return LN(this,n)&&(De(this,yr,n),De(this,mo,this.options),De(this,Xi,L(this,tt).state)),n}getCurrentResult(){return L(this,yr)}trackResult(t,e){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),e==null||e(a),a==="promise"&&!this.options.experimental_prefetchInRender&&L(this,Ms).status==="pending"&&L(this,Ms).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,a))})}trackProp(t){L(this,go).add(t)}getCurrentQuery(){return L(this,tt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=L(this,Br).defaultQueryOptions(t),n=L(this,Br).getQueryCache().build(L(this,Br),e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return Ie(this,lt,Yl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,yr)))}createResult(t,e){var Y;const n=L(this,tt),a=this.options,u=L(this,yr),l=L(this,Xi),p=L(this,mo),d=t!==n?t.state:L(this,vc),{state:m}=t;let D={...m},g=!1,x;if(e._optimisticResults){const O=this.hasListeners(),H=!O&&Vb(t,e),re=O&&Jb(t,n,e,a);(H||re)&&(D={...D,...mC(m.data,t.options)}),e._optimisticResults==="isRestoring"&&(D.fetchStatus="idle")}let{error:b,errorUpdatedAt:C,status:S}=D;x=D.data;let v=!1;if(e.placeholderData!==void 0&&x===void 0&&S==="pending"){let O;u!=null&&u.isPlaceholderData&&e.placeholderData===(p==null?void 0:p.placeholderData)?(O=u.data,v=!0):O=typeof e.placeholderData=="function"?e.placeholderData((Y=L(this,Do))==null?void 0:Y.state.data,L(this,Do)):e.placeholderData,O!==void 0&&(S="success",x=Ry(u==null?void 0:u.data,O,e),g=!0)}if(e.select&&x!==void 0&&!v)if(u&&x===(l==null?void 0:l.data)&&e.select===L(this,Sc))x=L(this,yo);else try{De(this,Sc,e.select),x=e.select(x),x=Ry(u==null?void 0:u.data,x,e),De(this,yo,x),De(this,qa,null)}catch(O){De(this,qa,O)}L(this,qa)&&(b=L(this,qa),x=L(this,yo),C=Date.now(),S="error");const F=D.fetchStatus==="fetching",w=S==="pending",T=S==="error",B=w&&F,_=x!==void 0,U={status:S,fetchStatus:D.fetchStatus,isPending:w,isSuccess:S==="success",isError:T,isInitialLoading:B,isLoading:B,data:x,dataUpdatedAt:D.dataUpdatedAt,error:b,errorUpdatedAt:C,failureCount:D.fetchFailureCount,failureReason:D.fetchFailureReason,errorUpdateCount:D.errorUpdateCount,isFetched:D.dataUpdateCount>0||D.errorUpdateCount>0,isFetchedAfterMount:D.dataUpdateCount>d.dataUpdateCount||D.errorUpdateCount>d.errorUpdateCount,isFetching:F,isRefetching:F&&!w,isLoadingError:T&&!_,isPaused:D.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:T&&_,isStale:q0(t,e),refetch:this.refetch,promise:L(this,Ms),isEnabled:fn(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const O=X=>{U.status==="error"?X.reject(U.error):U.data!==void 0&&X.resolve(U.data)},H=()=>{const X=De(this,Ms,U.promise=_y());O(X)},re=L(this,Ms);switch(re.status){case"pending":t.queryHash===n.queryHash&&O(re);break;case"fulfilled":(U.status==="error"||U.data!==re.value)&&H();break;case"rejected":(U.status!=="error"||U.error!==re.reason)&&H();break}}return U}updateResult(){const t=L(this,yr),e=this.createResult(L(this,tt),this.options);if(De(this,Xi,L(this,tt).state),De(this,mo,this.options),L(this,Xi).data!==void 0&&De(this,Do,L(this,tt)),Lh(e,t))return;De(this,yr,e);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,u=typeof a=="function"?a():a;if(u==="all"||!u&&!L(this,go).size)return!0;const l=new Set(u??L(this,go));return this.options.throwOnError&&l.add("error"),Object.keys(L(this,yr)).some(p=>{const h=p;return L(this,yr)[h]!==t[h]&&l.has(h)})};Ie(this,lt,yC).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ie(this,lt,qy).call(this)}},Br=new WeakMap,tt=new WeakMap,vc=new WeakMap,yr=new WeakMap,Xi=new WeakMap,mo=new WeakMap,Ms=new WeakMap,qa=new WeakMap,Sc=new WeakMap,yo=new WeakMap,Do=new WeakMap,Gi=new WeakMap,Ki=new WeakMap,Ha=new WeakMap,go=new WeakMap,lt=new WeakSet,Yl=function(t){Ie(this,lt,Jy).call(this);let e=L(this,tt).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(xr)),e},$y=function(){Ie(this,lt,Hy).call(this);const t=Ka(this.options.staleTime,L(this,tt));if(Zi||L(this,yr).isStale||!Oy(t))return;const n=oC(L(this,yr).dataUpdatedAt,t)+1;De(this,Gi,Ri.setTimeout(()=>{L(this,yr).isStale||this.updateResult()},n))},zy=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,tt)):this.options.refetchInterval)??!1},Uy=function(t){Ie(this,lt,Vy).call(this),De(this,Ha,t),!(Zi||fn(this.options.enabled,L(this,tt))===!1||!Oy(L(this,Ha))||L(this,Ha)===0)&&De(this,Ki,Ri.setInterval(()=>{(this.options.refetchIntervalInBackground||U0.isFocused())&&Ie(this,lt,Yl).call(this)},L(this,Ha)))},qy=function(){Ie(this,lt,$y).call(this),Ie(this,lt,Uy).call(this,Ie(this,lt,zy).call(this))},Hy=function(){L(this,Gi)&&(Ri.clearTimeout(L(this,Gi)),De(this,Gi,void 0))},Vy=function(){L(this,Ki)&&(Ri.clearInterval(L(this,Ki)),De(this,Ki,void 0))},Jy=function(){const t=L(this,Br).getQueryCache().build(L(this,Br),this.options);if(t===L(this,tt))return;const e=L(this,tt);De(this,tt,t),De(this,vc,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},yC=function(t){Jt.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(L(this,yr))}),L(this,Br).getQueryCache().notify({query:L(this,tt),type:"observerResultsUpdated"})})},W2);function ON(r,t){return fn(t.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&t.retryOnMount===!1)}function Vb(r,t){return ON(r,t)||r.state.data!==void 0&&Xy(r,t,t.refetchOnMount)}function Xy(r,t,e){if(fn(t.enabled,r)!==!1&&Ka(t.staleTime,r)!=="static"){const n=typeof e=="function"?e(r):e;return n==="always"||n!==!1&&q0(r,t)}return!1}function Jb(r,t,e,n){return(r!==t||fn(n.enabled,r)===!1)&&(!e.suspense||r.state.status!=="error")&&q0(r,e)}function q0(r,t){return fn(t.enabled,r)!==!1&&r.isStaleByTime(Ka(t.staleTime,r))}function LN(r,t){return!Lh(r.getCurrentResult(),t)}function Xb(r){return{onFetch:(t,e)=>{var m,D,g,x,b;const n=t.options,a=(g=(D=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:D.fetchMore)==null?void 0:g.direction,u=((x=t.state.data)==null?void 0:x.pages)||[],l=((b=t.state.data)==null?void 0:b.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const d=async()=>{let C=!1;const S=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?C=!0:t.signal.addEventListener("abort",()=>{C=!0}),t.signal)})},v=cC(t.options,t.fetchOptions),F=async(w,T,B)=>{if(C)return Promise.reject();if(T==null&&w.pages.length)return Promise.resolve(w);const V=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:T,direction:B?"backward":"forward",meta:t.options.meta};return S(H),H})(),U=await v(V),{maxPages:Y}=t.options,O=B?TN:SN;return{pages:O(w.pages,U,Y),pageParams:O(w.pageParams,T,Y)}};if(a&&u.length){const w=a==="backward",T=w?RN:Gb,B={pages:u,pageParams:l},_=T(n,B);p=await F(B,_,w)}else{const w=r??u.length;do{const T=h===0?l[0]??n.initialPageParam:Gb(n,p);if(h>0&&T==null)break;p=await F(p,T),h++}while(h<w)}return p};t.options.persister?t.fetchFn=()=>{var C,S;return(S=(C=t.options).persister)==null?void 0:S.call(C,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=d}}}function Gb(r,{pages:t,pageParams:e}){const n=t.length-1;return t.length>0?r.getNextPageParam(t[n],t,e[n],e):void 0}function RN(r,{pages:t,pageParams:e}){var n;return t.length>0?(n=r.getPreviousPageParam)==null?void 0:n.call(r,t[0],t,e[0],e):void 0}var Tc,Jn,Dr,Qi,Xn,Ra,Z2,_N=(Z2=class extends fC{constructor(t){super();Se(this,Xn);Se(this,Tc);Se(this,Jn);Se(this,Dr);Se(this,Qi);De(this,Tc,t.client),this.mutationId=t.mutationId,De(this,Dr,t.mutationCache),De(this,Jn,[]),this.state=t.state||DC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){L(this,Jn).includes(t)||(L(this,Jn).push(t),this.clearGcTimeout(),L(this,Dr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){De(this,Jn,L(this,Jn).filter(e=>e!==t)),this.scheduleGc(),L(this,Dr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){L(this,Jn).length||(this.state.status==="pending"?this.scheduleGc():L(this,Dr).remove(this))}continue(){var t;return((t=L(this,Qi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,p,h,d,m,D,g,x,b,C,S,v,F,w,T,B,_,V,U,Y;const e=()=>{Ie(this,Xn,Ra).call(this,{type:"continue"})},n={client:L(this,Tc),meta:this.options.meta,mutationKey:this.options.mutationKey};De(this,Qi,dC({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(O,H)=>{Ie(this,Xn,Ra).call(this,{type:"failed",failureCount:O,error:H})},onPause:()=>{Ie(this,Xn,Ra).call(this,{type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,Dr).canRun(this)}));const a=this.state.status==="pending",u=!L(this,Qi).canStart();try{if(a)e();else{Ie(this,Xn,Ra).call(this,{type:"pending",variables:t,isPaused:u}),await((p=(l=L(this,Dr).config).onMutate)==null?void 0:p.call(l,t,this,n));const H=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,t,n));H!==this.state.context&&Ie(this,Xn,Ra).call(this,{type:"pending",context:H,variables:t,isPaused:u})}const O=await L(this,Qi).start();return await((D=(m=L(this,Dr).config).onSuccess)==null?void 0:D.call(m,O,t,this.state.context,this,n)),await((x=(g=this.options).onSuccess)==null?void 0:x.call(g,O,t,this.state.context,n)),await((C=(b=L(this,Dr).config).onSettled)==null?void 0:C.call(b,O,null,this.state.variables,this.state.context,this,n)),await((v=(S=this.options).onSettled)==null?void 0:v.call(S,O,null,t,this.state.context,n)),Ie(this,Xn,Ra).call(this,{type:"success",data:O}),O}catch(O){try{throw await((w=(F=L(this,Dr).config).onError)==null?void 0:w.call(F,O,t,this.state.context,this,n)),await((B=(T=this.options).onError)==null?void 0:B.call(T,O,t,this.state.context,n)),await((V=(_=L(this,Dr).config).onSettled)==null?void 0:V.call(_,void 0,O,this.state.variables,this.state.context,this,n)),await((Y=(U=this.options).onSettled)==null?void 0:Y.call(U,void 0,O,t,this.state.context,n)),O}finally{Ie(this,Xn,Ra).call(this,{type:"error",error:O})}}finally{L(this,Dr).runNext(this)}}},Tc=new WeakMap,Jn=new WeakMap,Dr=new WeakMap,Qi=new WeakMap,Xn=new WeakSet,Ra=function(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Jt.batch(()=>{L(this,Jn).forEach(n=>{n.onMutationUpdate(t)}),L(this,Dr).notify({mutation:this,type:"updated",action:t})})},Z2);function DC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Os,Sn,wc,eC,jN=(eC=class extends Io{constructor(t={}){super();Se(this,Os);Se(this,Sn);Se(this,wc);this.config=t,De(this,Os,new Set),De(this,Sn,new Map),De(this,wc,0)}build(t,e,n){const a=new _N({client:t,mutationCache:this,mutationId:++ih(this,wc)._,options:t.defaultMutationOptions(e),state:n});return this.add(a),a}add(t){L(this,Os).add(t);const e=uh(t);if(typeof e=="string"){const n=L(this,Sn).get(e);n?n.push(t):L(this,Sn).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(L(this,Os).delete(t)){const e=uh(t);if(typeof e=="string"){const n=L(this,Sn).get(e);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&L(this,Sn).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=uh(t);if(typeof e=="string"){const n=L(this,Sn).get(e),a=n==null?void 0:n.find(u=>u.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const e=uh(t);if(typeof e=="string"){const a=(n=L(this,Sn).get(e))==null?void 0:n.find(u=>u!==t&&u.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Jt.batch(()=>{L(this,Os).forEach(t=>{this.notify({type:"removed",mutation:t})}),L(this,Os).clear(),L(this,Sn).clear()})}getAll(){return Array.from(L(this,Os))}find(t){const e={exact:!0,...t};return this.getAll().find(n=>zb(e,n))}findAll(t={}){return this.getAll().filter(e=>zb(t,e))}notify(t){Jt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Jt.batch(()=>Promise.all(t.map(e=>e.continue().catch(xr))))}},Os=new WeakMap,Sn=new WeakMap,wc=new WeakMap,eC);function uh(r){var t;return(t=r.options.scope)==null?void 0:t.id}var Ls,Va,Pr,Rs,Hs,Ah,Gy,tC,$N=(tC=class extends Io{constructor(e,n){super();Se(this,Hs);Se(this,Ls);Se(this,Va);Se(this,Pr);Se(this,Rs);De(this,Ls,e),this.setOptions(n),this.bindMethods(),Ie(this,Hs,Ah).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var a;const n=this.options;this.options=L(this,Ls).defaultMutationOptions(e),Lh(this.options,n)||L(this,Ls).getMutationCache().notify({type:"observerOptionsUpdated",mutation:L(this,Pr),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&eu(n.mutationKey)!==eu(this.options.mutationKey)?this.reset():((a=L(this,Pr))==null?void 0:a.state.status)==="pending"&&L(this,Pr).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=L(this,Pr))==null||e.removeObserver(this)}onMutationUpdate(e){Ie(this,Hs,Ah).call(this),Ie(this,Hs,Gy).call(this,e)}getCurrentResult(){return L(this,Va)}reset(){var e;(e=L(this,Pr))==null||e.removeObserver(this),De(this,Pr,void 0),Ie(this,Hs,Ah).call(this),Ie(this,Hs,Gy).call(this)}mutate(e,n){var a;return De(this,Rs,n),(a=L(this,Pr))==null||a.removeObserver(this),De(this,Pr,L(this,Ls).getMutationCache().build(L(this,Ls),this.options)),L(this,Pr).addObserver(this),L(this,Pr).execute(e)}},Ls=new WeakMap,Va=new WeakMap,Pr=new WeakMap,Rs=new WeakMap,Hs=new WeakSet,Ah=function(){var n;const e=((n=L(this,Pr))==null?void 0:n.state)??DC();De(this,Va,{...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset})},Gy=function(e){Jt.batch(()=>{var n,a,u,l,p,h,d,m;if(L(this,Rs)&&this.hasListeners()){const D=L(this,Va).variables,g=L(this,Va).context,x={client:L(this,Ls),meta:this.options.meta,mutationKey:this.options.mutationKey};(e==null?void 0:e.type)==="success"?((a=(n=L(this,Rs)).onSuccess)==null||a.call(n,e.data,D,g,x),(l=(u=L(this,Rs)).onSettled)==null||l.call(u,e.data,null,D,g,x)):(e==null?void 0:e.type)==="error"&&((h=(p=L(this,Rs)).onError)==null||h.call(p,e.error,D,g,x),(m=(d=L(this,Rs)).onSettled)==null||m.call(d,void 0,e.error,D,g,x))}this.listeners.forEach(D=>{D(L(this,Va))})})},tC),Gn,rC,zN=(rC=class extends Io{constructor(t={}){super();Se(this,Gn);this.config=t,De(this,Gn,new Map)}build(t,e,n){const a=e.queryKey,u=e.queryHash??$0(a,e);let l=this.get(u);return l||(l=new IN({client:t,queryKey:a,queryHash:u,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}add(t){L(this,Gn).has(t.queryHash)||(L(this,Gn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=L(this,Gn).get(t.queryHash);e&&(t.destroy(),e===t&&L(this,Gn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Jt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return L(this,Gn).get(t)}getAll(){return[...L(this,Gn).values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>$b(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>$b(t,n)):e}notify(t){Jt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gn=new WeakMap,rC),It,Ja,Xa,xo,Eo,Ga,bo,Ao,nC,UN=(nC=class{constructor(r={}){Se(this,It);Se(this,Ja);Se(this,Xa);Se(this,xo);Se(this,Eo);Se(this,Ga);Se(this,bo);Se(this,Ao);De(this,It,r.queryCache||new zN),De(this,Ja,r.mutationCache||new jN),De(this,Xa,r.defaultOptions||{}),De(this,xo,new Map),De(this,Eo,new Map),De(this,Ga,0)}mount(){ih(this,Ga)._++,L(this,Ga)===1&&(De(this,bo,U0.subscribe(async r=>{r&&(await this.resumePausedMutations(),L(this,It).onFocus())})),De(this,Ao,Rh.subscribe(async r=>{r&&(await this.resumePausedMutations(),L(this,It).onOnline())})))}unmount(){var r,t;ih(this,Ga)._--,L(this,Ga)===0&&((r=L(this,bo))==null||r.call(this),De(this,bo,void 0),(t=L(this,Ao))==null||t.call(this),De(this,Ao,void 0))}isFetching(r){return L(this,It).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return L(this,Ja).findAll({...r,status:"pending"}).length}getQueryData(r){var e;const t=this.defaultQueryOptions({queryKey:r});return(e=L(this,It).get(t.queryHash))==null?void 0:e.state.data}ensureQueryData(r){const t=this.defaultQueryOptions(r),e=L(this,It).build(this,t),n=e.state.data;return n===void 0?this.fetchQuery(r):(r.revalidateIfStale&&e.isStaleByTime(Ka(t.staleTime,e))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(r){return L(this,It).findAll(r).map(({queryKey:t,state:e})=>{const n=e.data;return[t,n]})}setQueryData(r,t,e){const n=this.defaultQueryOptions({queryKey:r}),a=L(this,It).get(n.queryHash),u=a==null?void 0:a.state.data,l=CN(t,u);if(l!==void 0)return L(this,It).build(this,n).setData(l,{...e,manual:!0})}setQueriesData(r,t,e){return Jt.batch(()=>L(this,It).findAll(r).map(({queryKey:n})=>[n,this.setQueryData(n,t,e)]))}getQueryState(r){var e;const t=this.defaultQueryOptions({queryKey:r});return(e=L(this,It).get(t.queryHash))==null?void 0:e.state}removeQueries(r){const t=L(this,It);Jt.batch(()=>{t.findAll(r).forEach(e=>{t.remove(e)})})}resetQueries(r,t){const e=L(this,It);return Jt.batch(()=>(e.findAll(r).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...r},t)))}cancelQueries(r,t={}){const e={revert:!0,...t},n=Jt.batch(()=>L(this,It).findAll(r).map(a=>a.cancel(e)));return Promise.all(n).then(xr).catch(xr)}invalidateQueries(r,t={}){return Jt.batch(()=>(L(this,It).findAll(r).forEach(e=>{e.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},t)))}refetchQueries(r,t={}){const e={...t,cancelRefetch:t.cancelRefetch??!0},n=Jt.batch(()=>L(this,It).findAll(r).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let u=a.fetch(void 0,e);return e.throwOnError||(u=u.catch(xr)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(n).then(xr)}fetchQuery(r){const t=this.defaultQueryOptions(r);t.retry===void 0&&(t.retry=!1);const e=L(this,It).build(this,t);return e.isStaleByTime(Ka(t.staleTime,e))?e.fetch(t):Promise.resolve(e.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(xr).catch(xr)}fetchInfiniteQuery(r){return r.behavior=Xb(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(xr).catch(xr)}ensureInfiniteQueryData(r){return r.behavior=Xb(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return Rh.isOnline()?L(this,Ja).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,It)}getMutationCache(){return L(this,Ja)}getDefaultOptions(){return L(this,Xa)}setDefaultOptions(r){De(this,Xa,r)}setQueryDefaults(r,t){L(this,xo).set(eu(r),{queryKey:r,defaultOptions:t})}getQueryDefaults(r){const t=[...L(this,xo).values()],e={};return t.forEach(n=>{fc(r,n.queryKey)&&Object.assign(e,n.defaultOptions)}),e}setMutationDefaults(r,t){L(this,Eo).set(eu(r),{mutationKey:r,defaultOptions:t})}getMutationDefaults(r){const t=[...L(this,Eo).values()],e={};return t.forEach(n=>{fc(r,n.mutationKey)&&Object.assign(e,n.defaultOptions)}),e}defaultQueryOptions(r){if(r._defaulted)return r;const t={...L(this,Xa).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return t.queryHash||(t.queryHash=$0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===z0&&(t.enabled=!1),t}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...L(this,Xa).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){L(this,It).clear(),L(this,Ja).clear()}},It=new WeakMap,Ja=new WeakMap,Xa=new WeakMap,xo=new WeakMap,Eo=new WeakMap,Ga=new WeakMap,bo=new WeakMap,Ao=new WeakMap,nC),gC=P.createContext(void 0),Mo=r=>{const t=P.useContext(gC);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qN=({client:r,children:t})=>(P.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),E(gC.Provider,{value:r,children:t})),xC=P.createContext(!1),HN=()=>P.useContext(xC);xC.Provider;function VN(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var JN=P.createContext(VN()),XN=()=>P.useContext(JN),GN=(r,t)=>{(r.suspense||r.throwOnError||r.experimental_prefetchInRender)&&(t.isReset()||(r.retryOnMount=!1))},KN=r=>{P.useEffect(()=>{r.clearReset()},[r])},QN=({result:r,errorResetBoundary:t,throwOnError:e,query:n,suspense:a})=>r.isError&&!t.isReset()&&!r.isFetching&&n&&(a&&r.data===void 0||pC(e,[r.error,n])),YN=r=>{if(r.suspense){const e=a=>a==="static"?a:Math.max(a??1e3,1e3),n=r.staleTime;r.staleTime=typeof n=="function"?(...a)=>e(n(...a)):e(n),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},WN=(r,t)=>r.isLoading&&r.isFetching&&!t,ZN=(r,t)=>(r==null?void 0:r.suspense)&&t.isPending,Kb=(r,t,e)=>t.fetchOptimistic(r).catch(()=>{e.clearReset()});function e6(r,t,e){var D,g,x,b,C;const n=HN(),a=XN(),u=Mo(),l=u.defaultQueryOptions(r);(g=(D=u.getDefaultOptions().queries)==null?void 0:D._experimental_beforeQuery)==null||g.call(D,l),l._optimisticResults=n?"isRestoring":"optimistic",YN(l),GN(l,a),KN(a);const p=!u.getQueryCache().get(l.queryHash),[h]=P.useState(()=>new t(u,l)),d=h.getOptimisticResult(l),m=!n&&r.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(S=>{const v=m?h.subscribe(Jt.batchCalls(S)):xr;return h.updateResult(),v},[h,m]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),P.useEffect(()=>{h.setOptions(l)},[l,h]),ZN(l,d))throw Kb(l,h,a);if(QN({result:d,errorResetBoundary:a,throwOnError:l.throwOnError,query:u.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if((b=(x=u.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||b.call(x,l,d),l.experimental_prefetchInRender&&!Zi&&WN(d,n)){const S=p?Kb(l,h,a):(C=u.getQueryCache().get(l.queryHash))==null?void 0:C.promise;S==null||S.catch(xr).finally(()=>{h.updateResult()})}return l.notifyOnChangeProps?d:h.trackResult(d)}function ni(r,t){return e6(r,MN)}function Zh(r,t){const e=Mo(),[n]=P.useState(()=>new $N(e,r));P.useEffect(()=>{n.setOptions(r)},[n,r]);const a=P.useSyncExternalStore(P.useCallback(l=>n.subscribe(Jt.batchCalls(l)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),u=P.useCallback((l,p)=>{n.mutate(l,p).catch(xr)},[n]);if(a.error&&pC(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}/**
|
|
50
|
+
* react-router v7.9.4
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Qb="popstate";function t6(r={}){function t(n,a){let{pathname:u,search:l,hash:p}=n.location;return Ky("",{pathname:u,search:l,hash:p},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function e(n,a){return typeof a=="string"?a:mc(a)}return n6(t,e,null,r)}function Nt(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function In(r,t){if(!r){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function r6(){return Math.random().toString(36).substring(2,10)}function Yb(r,t){return{usr:r.state,key:r.key,idx:t}}function Ky(r,t,e=null,n){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof t=="string"?Oo(t):t,state:e,key:t&&t.key||n||r6()}}function mc({pathname:r="/",search:t="",hash:e=""}){return t&&t!=="?"&&(r+=t.charAt(0)==="?"?t:"?"+t),e&&e!=="#"&&(r+=e.charAt(0)==="#"?e:"#"+e),r}function Oo(r){let t={};if(r){let e=r.indexOf("#");e>=0&&(t.hash=r.substring(e),r=r.substring(0,e));let n=r.indexOf("?");n>=0&&(t.search=r.substring(n),r=r.substring(0,n)),r&&(t.pathname=r)}return t}function n6(r,t,e,n={}){let{window:a=document.defaultView,v5Compat:u=!1}=n,l=a.history,p="POP",h=null,d=m();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function m(){return(l.state||{idx:null}).idx}function D(){p="POP";let S=m(),v=S==null?null:S-d;d=S,h&&h({action:p,location:C.location,delta:v})}function g(S,v){p="PUSH";let F=Ky(C.location,S,v);d=m()+1;let w=Yb(F,d),T=C.createHref(F);try{l.pushState(w,"",T)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;a.location.assign(T)}u&&h&&h({action:p,location:C.location,delta:1})}function x(S,v){p="REPLACE";let F=Ky(C.location,S,v);d=m();let w=Yb(F,d),T=C.createHref(F);l.replaceState(w,"",T),u&&h&&h({action:p,location:C.location,delta:0})}function b(S){return s6(S)}let C={get action(){return p},get location(){return r(a,l)},listen(S){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(Qb,D),h=S,()=>{a.removeEventListener(Qb,D),h=null}},createHref(S){return t(a,S)},createURL:b,encodeLocation(S){let v=b(S);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:g,replace:x,go(S){return l.go(S)}};return C}function s6(r,t=!1){let e="http://localhost";typeof window<"u"&&(e=window.location.origin!=="null"?window.location.origin:window.location.href),Nt(e,"No window.location.(origin|href) available to create URL");let n=typeof r=="string"?r:mc(r);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=e+n),new URL(n,e)}function EC(r,t,e="/"){return a6(r,t,e,!1)}function a6(r,t,e,n){let a=typeof t=="string"?Oo(t):t,u=Js(a.pathname||"/",e);if(u==null)return null;let l=bC(r);i6(l);let p=null;for(let h=0;p==null&&h<l.length;++h){let d=D6(u);p=m6(l[h],d,n)}return p}function bC(r,t=[],e=[],n="",a=!1){let u=(l,p,h=a,d)=>{let m={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:p,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(n)&&h)return;Nt(m.relativePath.startsWith(n),`Absolute route path "${m.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(n.length)}let D=$s([n,m.relativePath]),g=e.concat(m);l.children&&l.children.length>0&&(Nt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${D}".`),bC(l.children,t,g,D,h)),!(l.path==null&&!l.index)&&t.push({path:D,score:d6(D,l.index),routesMeta:g})};return r.forEach((l,p)=>{var h;if(l.path===""||!((h=l.path)!=null&&h.includes("?")))u(l,p);else for(let d of AC(l.path))u(l,p,!0,d)}),t}function AC(r){let t=r.split("/");if(t.length===0)return[];let[e,...n]=t,a=e.endsWith("?"),u=e.replace(/\?$/,"");if(n.length===0)return a?[u,""]:[u];let l=AC(n.join("/")),p=[];return p.push(...l.map(h=>h===""?u:[u,h].join("/"))),a&&p.push(...l),p.map(h=>r.startsWith("/")&&h===""?"/":h)}function i6(r){r.sort((t,e)=>t.score!==e.score?e.score-t.score:f6(t.routesMeta.map(n=>n.childrenIndex),e.routesMeta.map(n=>n.childrenIndex)))}var u6=/^:[\w-]+$/,o6=3,l6=2,c6=1,p6=10,h6=-2,Wb=r=>r==="*";function d6(r,t){let e=r.split("/"),n=e.length;return e.some(Wb)&&(n+=h6),t&&(n+=l6),e.filter(a=>!Wb(a)).reduce((a,u)=>a+(u6.test(u)?o6:u===""?c6:p6),n)}function f6(r,t){return r.length===t.length&&r.slice(0,-1).every((n,a)=>n===t[a])?r[r.length-1]-t[t.length-1]:0}function m6(r,t,e=!1){let{routesMeta:n}=r,a={},u="/",l=[];for(let p=0;p<n.length;++p){let h=n[p],d=p===n.length-1,m=u==="/"?t:t.slice(u.length)||"/",D=_h({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},m),g=h.route;if(!D&&d&&e&&!n[n.length-1].route.index&&(D=_h({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!D)return null;Object.assign(a,D.params),l.push({params:a,pathname:$s([u,D.pathname]),pathnameBase:b6($s([u,D.pathnameBase])),route:g}),D.pathnameBase!=="/"&&(u=$s([u,D.pathnameBase]))}return l}function _h(r,t){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[e,n]=y6(r.path,r.caseSensitive,r.end),a=t.match(e);if(!a)return null;let u=a[0],l=u.replace(/(.)\/+$/,"$1"),p=a.slice(1);return{params:n.reduce((d,{paramName:m,isOptional:D},g)=>{if(m==="*"){let b=p[g]||"";l=u.slice(0,u.length-b.length).replace(/(.)\/+$/,"$1")}const x=p[g];return D&&!x?d[m]=void 0:d[m]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:u,pathnameBase:l,pattern:r}}function y6(r,t=!1,e=!0){In(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let n=[],a="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,p,h)=>(n.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(n.push({paramName:"*"}),a+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):e?a+="\\/*$":r!==""&&r!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function D6(r){try{return r.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return In(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),r}}function Js(r,t){if(t==="/")return r;if(!r.toLowerCase().startsWith(t.toLowerCase()))return null;let e=t.endsWith("/")?t.length-1:t.length,n=r.charAt(e);return n&&n!=="/"?null:r.slice(e)||"/"}function g6(r,t="/"){let{pathname:e,search:n="",hash:a=""}=typeof r=="string"?Oo(r):r;return{pathname:e?e.startsWith("/")?e:x6(e,t):t,search:A6(n),hash:C6(a)}}function x6(r,t){let e=t.replace(/\/+$/,"").split("/");return r.split("/").forEach(a=>{a===".."?e.length>1&&e.pop():a!=="."&&e.push(a)}),e.length>1?e.join("/"):"/"}function Ym(r,t,e,n){return`Cannot include a '${r}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${e}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function E6(r){return r.filter((t,e)=>e===0||t.route.path&&t.route.path.length>0)}function H0(r){let t=E6(r);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function V0(r,t,e,n=!1){let a;typeof r=="string"?a=Oo(r):(a={...r},Nt(!a.pathname||!a.pathname.includes("?"),Ym("?","pathname","search",a)),Nt(!a.pathname||!a.pathname.includes("#"),Ym("#","pathname","hash",a)),Nt(!a.search||!a.search.includes("#"),Ym("#","search","hash",a)));let u=r===""||a.pathname==="",l=u?"/":a.pathname,p;if(l==null)p=e;else{let D=t.length-1;if(!n&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),D-=1;a.pathname=g.join("/")}p=D>=0?t[D]:"/"}let h=g6(a,p),d=l&&l!=="/"&&l.endsWith("/"),m=(u||l===".")&&e.endsWith("/");return!h.pathname.endsWith("/")&&(d||m)&&(h.pathname+="/"),h}var $s=r=>r.join("/").replace(/\/\/+/g,"/"),b6=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),A6=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,C6=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;function F6(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}var CC=["POST","PUT","PATCH","DELETE"];new Set(CC);var v6=["GET",...CC];new Set(v6);var Lo=P.createContext(null);Lo.displayName="DataRouter";var ed=P.createContext(null);ed.displayName="DataRouterState";P.createContext(!1);var FC=P.createContext({isTransitioning:!1});FC.displayName="ViewTransition";var S6=P.createContext(new Map);S6.displayName="Fetchers";var T6=P.createContext(null);T6.displayName="Await";var Rn=P.createContext(null);Rn.displayName="Navigation";var Nc=P.createContext(null);Nc.displayName="Location";var xn=P.createContext({outlet:null,matches:[],isDataRoute:!1});xn.displayName="Route";var J0=P.createContext(null);J0.displayName="RouteError";function w6(r,{relative:t}={}){Nt(Ro(),"useHref() may be used only in the context of a <Router> component.");let{basename:e,navigator:n}=P.useContext(Rn),{hash:a,pathname:u,search:l}=Pc(r,{relative:t}),p=u;return e!=="/"&&(p=u==="/"?e:$s([e,u])),n.createHref({pathname:p,search:l,hash:a})}function Ro(){return P.useContext(Nc)!=null}function si(){return Nt(Ro(),"useLocation() may be used only in the context of a <Router> component."),P.useContext(Nc).location}var vC="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function SC(r){P.useContext(Rn).static||P.useLayoutEffect(r)}function Bc(){let{isDataRoute:r}=P.useContext(xn);return r?q6():N6()}function N6(){Nt(Ro(),"useNavigate() may be used only in the context of a <Router> component.");let r=P.useContext(Lo),{basename:t,navigator:e}=P.useContext(Rn),{matches:n}=P.useContext(xn),{pathname:a}=si(),u=JSON.stringify(H0(n)),l=P.useRef(!1);return SC(()=>{l.current=!0}),P.useCallback((h,d={})=>{if(In(l.current,vC),!l.current)return;if(typeof h=="number"){e.go(h);return}let m=V0(h,JSON.parse(u),a,d.relative==="path");r==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:$s([t,m.pathname])),(d.replace?e.replace:e.push)(m,d.state,d)},[t,e,u,a,r])}var B6=P.createContext(null);function P6(r){let t=P.useContext(xn).outlet;return P.useMemo(()=>t&&P.createElement(B6.Provider,{value:r},t),[t,r])}function X0(){let{matches:r}=P.useContext(xn),t=r[r.length-1];return t?t.params:{}}function Pc(r,{relative:t}={}){let{matches:e}=P.useContext(xn),{pathname:n}=si(),a=JSON.stringify(H0(e));return P.useMemo(()=>V0(r,JSON.parse(a),n,t==="path"),[r,a,n,t])}function k6(r,t){return TC(r,t)}function TC(r,t,e,n,a){var F;Nt(Ro(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=P.useContext(Rn),{matches:l}=P.useContext(xn),p=l[l.length-1],h=p?p.params:{},d=p?p.pathname:"/",m=p?p.pathnameBase:"/",D=p&&p.route;{let w=D&&D.path||"";wC(d,!D||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.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let g=si(),x;if(t){let w=typeof t=="string"?Oo(t):t;Nt(m==="/"||((F=w.pathname)==null?void 0:F.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${w.pathname}" was given in the \`location\` prop.`),x=w}else x=g;let b=x.pathname||"/",C=b;if(m!=="/"){let w=m.replace(/^\//,"").split("/");C="/"+b.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=EC(r,{pathname:C});In(D||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),In(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 v=R6(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},h,w.params),pathname:$s([m,u.encodeLocation?u.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?m:$s([m,u.encodeLocation?u.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),l,e,n,a);return t&&v?P.createElement(Nc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},v):v}function I6(){let r=U6(),t=F6(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),e=r instanceof Error?r.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},u={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",r),l=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:u},"ErrorBoundary")," or"," ",P.createElement("code",{style:u},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),e?P.createElement("pre",{style:a},e):null,l)}var M6=P.createElement(I6,null),O6=class extends P.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,t){return t.location!==r.location||t.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:t.error,location:t.location,revalidation:r.revalidation||t.revalidation}}componentDidCatch(r,t){this.props.unstable_onError?this.props.unstable_onError(r,t):console.error("React Router caught the following error during render",r)}render(){return this.state.error!==void 0?P.createElement(xn.Provider,{value:this.props.routeContext},P.createElement(J0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function L6({routeContext:r,match:t,children:e}){let n=P.useContext(Lo);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(xn.Provider,{value:r},e)}function R6(r,t=[],e=null,n=null,a=null){if(r==null){if(!e)return null;if(e.errors)r=e.matches;else if(t.length===0&&!e.initialized&&e.matches.length>0)r=e.matches;else return null}let u=r,l=e==null?void 0:e.errors;if(l!=null){let d=u.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);Nt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),u=u.slice(0,Math.min(u.length,d+1))}let p=!1,h=-1;if(e)for(let d=0;d<u.length;d++){let m=u[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=d),m.route.id){let{loaderData:D,errors:g}=e,x=m.route.loader&&!D.hasOwnProperty(m.route.id)&&(!g||g[m.route.id]===void 0);if(m.route.lazy||x){p=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((d,m,D)=>{let g,x=!1,b=null,C=null;e&&(g=l&&m.route.id?l[m.route.id]:void 0,b=m.route.errorElement||M6,p&&(h<0&&D===0?(wC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,C=null):h===D&&(x=!0,C=m.route.hydrateFallbackElement||null)));let S=t.concat(u.slice(0,D+1)),v=()=>{let F;return g?F=b:x?F=C:m.route.Component?F=P.createElement(m.route.Component,null):m.route.element?F=m.route.element:F=d,P.createElement(L6,{match:m,routeContext:{outlet:d,matches:S,isDataRoute:e!=null},children:F})};return e&&(m.route.ErrorBoundary||m.route.errorElement||D===0)?P.createElement(O6,{location:e.location,revalidation:e.revalidation,component:b,error:g,children:v(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:n}):v()},null)}function G0(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _6(r){let t=P.useContext(Lo);return Nt(t,G0(r)),t}function j6(r){let t=P.useContext(ed);return Nt(t,G0(r)),t}function $6(r){let t=P.useContext(xn);return Nt(t,G0(r)),t}function K0(r){let t=$6(r),e=t.matches[t.matches.length-1];return Nt(e.route.id,`${r} can only be used on routes that contain a unique "id"`),e.route.id}function z6(){return K0("useRouteId")}function U6(){var n;let r=P.useContext(J0),t=j6("useRouteError"),e=K0("useRouteError");return r!==void 0?r:(n=t.errors)==null?void 0:n[e]}function q6(){let{router:r}=_6("useNavigate"),t=K0("useNavigate"),e=P.useRef(!1);return SC(()=>{e.current=!0}),P.useCallback(async(a,u={})=>{In(e.current,vC),e.current&&(typeof a=="number"?r.navigate(a):await r.navigate(a,{fromRouteId:t,...u}))},[r,t])}var Zb={};function wC(r,t,e){!t&&!Zb[r]&&(Zb[r]=!0,In(!1,e))}P.memo(H6);function H6({routes:r,future:t,state:e,unstable_onError:n}){return TC(r,void 0,e,n,t)}function V6({to:r,replace:t,state:e,relative:n}){Nt(Ro(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=P.useContext(Rn);In(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=P.useContext(xn),{pathname:l}=si(),p=Bc(),h=V0(r,H0(u),l,n==="path"),d=JSON.stringify(h);return P.useEffect(()=>{p(JSON.parse(d),{replace:t,state:e,relative:n})},[p,d,n,t,e]),null}function NC(r){return P6(r.context)}function qn(r){Nt(!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 J6({basename:r="/",children:t=null,location:e,navigationType:n="POP",navigator:a,static:u=!1}){Nt(!Ro(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=r.replace(/^\/*/,"/"),p=P.useMemo(()=>({basename:l,navigator:a,static:u,future:{}}),[l,a,u]);typeof e=="string"&&(e=Oo(e));let{pathname:h="/",search:d="",hash:m="",state:D=null,key:g="default"}=e,x=P.useMemo(()=>{let b=Js(h,l);return b==null?null:{location:{pathname:b,search:d,hash:m,state:D,key:g},navigationType:n}},[l,h,d,m,D,g,n]);return In(x!=null,`<Router basename="${l}"> is not able to match the URL "${h}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:P.createElement(Rn.Provider,{value:p},P.createElement(Nc.Provider,{children:t,value:x}))}function X6({children:r,location:t}){return k6(Qy(r),t)}function Qy(r,t=[]){let e=[];return P.Children.forEach(r,(n,a)=>{if(!P.isValidElement(n))return;let u=[...t,a];if(n.type===P.Fragment){e.push.apply(e,Qy(n.props.children,u));return}Nt(n.type===qn,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Nt(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||u.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=Qy(n.props.children,u)),e.push(l)}),e}var Ch="get",Fh="application/x-www-form-urlencoded";function td(r){return r!=null&&typeof r.tagName=="string"}function G6(r){return td(r)&&r.tagName.toLowerCase()==="button"}function K6(r){return td(r)&&r.tagName.toLowerCase()==="form"}function Q6(r){return td(r)&&r.tagName.toLowerCase()==="input"}function Y6(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function W6(r,t){return r.button===0&&(!t||t==="_self")&&!Y6(r)}var oh=null;function Z6(){if(oh===null)try{new FormData(document.createElement("form"),0),oh=!1}catch{oh=!0}return oh}var eB=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wm(r){return r!=null&&!eB.has(r)?(In(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fh}"`),null):r}function tB(r,t){let e,n,a,u,l;if(K6(r)){let p=r.getAttribute("action");n=p?Js(p,t):null,e=r.getAttribute("method")||Ch,a=Wm(r.getAttribute("enctype"))||Fh,u=new FormData(r)}else if(G6(r)||Q6(r)&&(r.type==="submit"||r.type==="image")){let p=r.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=r.getAttribute("formaction")||p.getAttribute("action");if(n=h?Js(h,t):null,e=r.getAttribute("formmethod")||p.getAttribute("method")||Ch,a=Wm(r.getAttribute("formenctype"))||Wm(p.getAttribute("enctype"))||Fh,u=new FormData(p,r),!Z6()){let{name:d,type:m,value:D}=r;if(m==="image"){let g=d?`${d}.`:"";u.append(`${g}x`,"0"),u.append(`${g}y`,"0")}else d&&u.append(d,D)}}else{if(td(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');e=Ch,n=null,a=Fh,l=r}return u&&a==="text/plain"&&(l=u,u=void 0),{action:n,method:e.toLowerCase(),encType:a,formData:u,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Q0(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function rB(r,t,e){let n=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return n.pathname==="/"?n.pathname=`_root.${e}`:t&&Js(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${e}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${e}`,n}async function nB(r,t){if(r.id in t)return t[r.id];try{let e=await import(r.module);return t[r.id]=e,e}catch(e){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(e),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sB(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function aB(r,t,e){let n=await Promise.all(r.map(async a=>{let u=t.routes[a.route.id];if(u){let l=await nB(u,e);return l.links?l.links():[]}return[]}));return lB(n.flat(1).filter(sB).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function eA(r,t,e,n,a,u){let l=(h,d)=>e[d]?h.route.id!==e[d].route.id:!0,p=(h,d)=>{var m;return e[d].pathname!==h.pathname||((m=e[d].route.path)==null?void 0:m.endsWith("*"))&&e[d].params["*"]!==h.params["*"]};return u==="assets"?t.filter((h,d)=>l(h,d)||p(h,d)):u==="data"?t.filter((h,d)=>{var D;let m=n.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(l(h,d)||p(h,d))return!0;if(h.route.shouldRevalidate){let g=h.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((D=e[0])==null?void 0:D.params)||{},nextUrl:new URL(r,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function iB(r,t,{includeHydrateFallback:e}={}){return uB(r.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let u=[a.module];return a.clientActionModule&&(u=u.concat(a.clientActionModule)),a.clientLoaderModule&&(u=u.concat(a.clientLoaderModule)),e&&a.hydrateFallbackModule&&(u=u.concat(a.hydrateFallbackModule)),a.imports&&(u=u.concat(a.imports)),u}).flat(1))}function uB(r){return[...new Set(r)]}function oB(r){let t={},e=Object.keys(r).sort();for(let n of e)t[n]=r[n];return t}function lB(r,t){let e=new Set;return new Set(t),r.reduce((n,a)=>{let u=JSON.stringify(oB(a));return e.has(u)||(e.add(u),n.push({key:u,link:a})),n},[])}function BC(){let r=P.useContext(Lo);return Q0(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function cB(){let r=P.useContext(ed);return Q0(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var Y0=P.createContext(void 0);Y0.displayName="FrameworkContext";function PC(){let r=P.useContext(Y0);return Q0(r,"You must render this element inside a <HydratedRouter> element"),r}function pB(r,t){let e=P.useContext(Y0),[n,a]=P.useState(!1),[u,l]=P.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:d,onMouseLeave:m,onTouchStart:D}=t,g=P.useRef(null);P.useEffect(()=>{if(r==="render"&&l(!0),r==="viewport"){let C=v=>{v.forEach(F=>{l(F.isIntersecting)})},S=new IntersectionObserver(C,{threshold:.5});return g.current&&S.observe(g.current),()=>{S.disconnect()}}},[r]),P.useEffect(()=>{if(n){let C=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(C)}}},[n]);let x=()=>{a(!0)},b=()=>{a(!1),l(!1)};return e?r!=="intent"?[u,g,{}]:[u,g,{onFocus:Ul(p,x),onBlur:Ul(h,b),onMouseEnter:Ul(d,x),onMouseLeave:Ul(m,b),onTouchStart:Ul(D,x)}]:[!1,g,{}]}function Ul(r,t){return e=>{r&&r(e),e.defaultPrevented||t(e)}}function hB({page:r,...t}){let{router:e}=BC(),n=P.useMemo(()=>EC(e.routes,r,e.basename),[e.routes,r,e.basename]);return n?P.createElement(fB,{page:r,matches:n,...t}):null}function dB(r){let{manifest:t,routeModules:e}=PC(),[n,a]=P.useState([]);return P.useEffect(()=>{let u=!1;return aB(r,t,e).then(l=>{u||a(l)}),()=>{u=!0}},[r,t,e]),n}function fB({page:r,matches:t,...e}){let n=si(),{manifest:a,routeModules:u}=PC(),{basename:l}=BC(),{loaderData:p,matches:h}=cB(),d=P.useMemo(()=>eA(r,t,h,a,n,"data"),[r,t,h,a,n]),m=P.useMemo(()=>eA(r,t,h,a,n,"assets"),[r,t,h,a,n]),D=P.useMemo(()=>{if(r===n.pathname+n.search+n.hash)return[];let b=new Set,C=!1;if(t.forEach(v=>{var w;let F=a.routes[v.route.id];!F||!F.hasLoader||(!d.some(T=>T.route.id===v.route.id)&&v.route.id in p&&((w=u[v.route.id])!=null&&w.shouldRevalidate)||F.hasClientLoader?C=!0:b.add(v.route.id))}),b.size===0)return[];let S=rB(r,l,"data");return C&&b.size>0&&S.searchParams.set("_routes",t.filter(v=>b.has(v.route.id)).map(v=>v.route.id).join(",")),[S.pathname+S.search]},[l,p,n,a,d,t,r,u]),g=P.useMemo(()=>iB(m,a),[m,a]),x=dB(m);return P.createElement(P.Fragment,null,D.map(b=>P.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...e})),g.map(b=>P.createElement("link",{key:b,rel:"modulepreload",href:b,...e})),x.map(({key:b,link:C})=>P.createElement("link",{key:b,nonce:e.nonce,...C})))}function mB(...r){return t=>{r.forEach(e=>{typeof e=="function"?e(t):e!=null&&(e.current=t)})}}var kC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kC&&(window.__reactRouterVersion="7.9.4")}catch{}function yB({basename:r,children:t,window:e}){let n=P.useRef();n.current==null&&(n.current=t6({window:e,v5Compat:!0}));let a=n.current,[u,l]=P.useState({action:a.action,location:a.location}),p=P.useCallback(h=>{P.startTransition(()=>l(h))},[l]);return P.useLayoutEffect(()=>a.listen(p),[a,p]),P.createElement(J6,{basename:r,children:t,location:u.location,navigationType:u.action,navigator:a})}var IC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rd=P.forwardRef(function({onClick:t,discover:e="render",prefetch:n="none",relative:a,reloadDocument:u,replace:l,state:p,target:h,to:d,preventScrollReset:m,viewTransition:D,...g},x){let{basename:b}=P.useContext(Rn),C=typeof d=="string"&&IC.test(d),S,v=!1;if(typeof d=="string"&&C&&(S=d,kC))try{let Y=new URL(window.location.href),O=d.startsWith("//")?new URL(Y.protocol+d):new URL(d),H=Js(O.pathname,b);O.origin===Y.origin&&H!=null?d=H+O.search+O.hash:v=!0}catch{In(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let F=w6(d,{relative:a}),[w,T,B]=pB(n,g),_=xB(d,{replace:l,state:p,target:h,preventScrollReset:m,relative:a,viewTransition:D});function V(Y){t&&t(Y),Y.defaultPrevented||_(Y)}let U=P.createElement("a",{...g,...B,href:S||F,onClick:v||u?t:V,ref:mB(x,T),target:h,"data-discover":!C&&e==="render"?"true":void 0});return w&&!C?P.createElement(P.Fragment,null,U,P.createElement(hB,{page:F})):U});rd.displayName="Link";var Mi=P.forwardRef(function({"aria-current":t="page",caseSensitive:e=!1,className:n="",end:a=!1,style:u,to:l,viewTransition:p,children:h,...d},m){let D=Pc(l,{relative:d.relative}),g=si(),x=P.useContext(ed),{navigator:b,basename:C}=P.useContext(Rn),S=x!=null&&FB(D)&&p===!0,v=b.encodeLocation?b.encodeLocation(D).pathname:D.pathname,F=g.pathname,w=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;e||(F=F.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&C&&(w=Js(w,C)||w);const T=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let B=F===v||!a&&F.startsWith(v)&&F.charAt(T)==="/",_=w!=null&&(w===v||!a&&w.startsWith(v)&&w.charAt(v.length)==="/"),V={isActive:B,isPending:_,isTransitioning:S},U=B?t:void 0,Y;typeof n=="function"?Y=n(V):Y=[n,B?"active":null,_?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let O=typeof u=="function"?u(V):u;return P.createElement(rd,{...d,"aria-current":U,className:Y,ref:m,style:O,to:l,viewTransition:p},typeof h=="function"?h(V):h)});Mi.displayName="NavLink";var DB=P.forwardRef(({discover:r="render",fetcherKey:t,navigate:e,reloadDocument:n,replace:a,state:u,method:l=Ch,action:p,onSubmit:h,relative:d,preventScrollReset:m,viewTransition:D,...g},x)=>{let b=AB(),C=CB(p,{relative:d}),S=l.toLowerCase()==="get"?"get":"post",v=typeof p=="string"&&IC.test(p),F=w=>{if(h&&h(w),w.defaultPrevented)return;w.preventDefault();let T=w.nativeEvent.submitter,B=(T==null?void 0:T.getAttribute("formmethod"))||l;b(T||w.currentTarget,{fetcherKey:t,method:B,navigate:e,replace:a,state:u,relative:d,preventScrollReset:m,viewTransition:D})};return P.createElement("form",{ref:x,method:S,action:C,onSubmit:n?h:F,...g,"data-discover":!v&&r==="render"?"true":void 0})});DB.displayName="Form";function gB(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function MC(r){let t=P.useContext(Lo);return Nt(t,gB(r)),t}function xB(r,{target:t,replace:e,state:n,preventScrollReset:a,relative:u,viewTransition:l}={}){let p=Bc(),h=si(),d=Pc(r,{relative:u});return P.useCallback(m=>{if(W6(m,t)){m.preventDefault();let D=e!==void 0?e:mc(h)===mc(d);p(r,{replace:D,state:n,preventScrollReset:a,relative:u,viewTransition:l})}},[h,p,d,e,n,t,r,a,u,l])}var EB=0,bB=()=>`__${String(++EB)}__`;function AB(){let{router:r}=MC("useSubmit"),{basename:t}=P.useContext(Rn),e=z6();return P.useCallback(async(n,a={})=>{let{action:u,method:l,encType:p,formData:h,body:d}=tB(n,t);if(a.navigate===!1){let m=a.fetcherKey||bB();await r.fetch(m,e,a.action||u,{preventScrollReset:a.preventScrollReset,formData:h,body:d,formMethod:a.method||l,formEncType:a.encType||p,flushSync:a.flushSync})}else await r.navigate(a.action||u,{preventScrollReset:a.preventScrollReset,formData:h,body:d,formMethod:a.method||l,formEncType:a.encType||p,replace:a.replace,state:a.state,fromRouteId:e,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,t,e])}function CB(r,{relative:t}={}){let{basename:e}=P.useContext(Rn),n=P.useContext(xn);Nt(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),u={...Pc(r||".",{relative:t})},l=si();if(r==null){u.search=l.search;let p=new URLSearchParams(u.search),h=p.getAll("index");if(h.some(m=>m==="")){p.delete("index"),h.filter(D=>D).forEach(D=>p.append("index",D));let m=p.toString();u.search=m?`?${m}`:""}}return(!r||r===".")&&a.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),e!=="/"&&(u.pathname=u.pathname==="/"?e:$s([e,u.pathname])),mc(u)}function FB(r,{relative:t}={}){let e=P.useContext(FC);Nt(e!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=MC("useViewTransitionState"),a=Pc(r,{relative:t});if(!e.isTransitioning)return!1;let u=Js(e.currentLocation.pathname,n)||e.currentLocation.pathname,l=Js(e.nextLocation.pathname,n)||e.nextLocation.pathname;return _h(a.pathname,l)!=null||_h(a.pathname,u)!=null}var vB=uC();/**
|
|
61
|
+
* @license lucide-react v0.468.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const SB=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),OC=(...r)=>r.filter((t,e,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===e).join(" ").trim();/**
|
|
66
|
+
* @license lucide-react v0.468.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/var TB={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"};/**
|
|
71
|
+
* @license lucide-react v0.468.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const wB=P.forwardRef(({color:r="currentColor",size:t=24,strokeWidth:e=2,absoluteStrokeWidth:n,className:a="",children:u,iconNode:l,...p},h)=>P.createElement("svg",{ref:h,...TB,width:t,height:t,stroke:r,strokeWidth:n?Number(e)*24/Number(t):e,className:OC("lucide",a),...p},[...l.map(([d,m])=>P.createElement(d,m)),...Array.isArray(u)?u:[u]]));/**
|
|
76
|
+
* @license lucide-react v0.468.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const rt=(r,t)=>{const e=P.forwardRef(({className:n,...a},u)=>P.createElement(wB,{ref:u,iconNode:t,className:OC(`lucide-${SB(r)}`,n),...a}));return e.displayName=`${r}`,e};/**
|
|
81
|
+
* @license lucide-react v0.468.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const NB=rt("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
86
|
+
* @license lucide-react v0.468.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const BB=rt("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
|
|
91
|
+
* @license lucide-react v0.468.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const PB=rt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
96
|
+
* @license lucide-react v0.468.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const kB=rt("ArrowUpFromLine",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
|
|
101
|
+
* @license lucide-react v0.468.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const IB=rt("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
106
|
+
* @license lucide-react v0.468.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const MB=rt("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
111
|
+
* @license lucide-react v0.468.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const OB=rt("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
|
116
|
+
* @license lucide-react v0.468.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const LB=rt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
121
|
+
* @license lucide-react v0.468.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const W0=rt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
126
|
+
* @license lucide-react v0.468.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const Z0=rt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
131
|
+
* @license lucide-react v0.468.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const jh=rt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
136
|
+
* @license lucide-react v0.468.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const tA=rt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
141
|
+
* @license lucide-react v0.468.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const nd=rt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
146
|
+
* @license lucide-react v0.468.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const LC=rt("Copy",[["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"}]]);/**
|
|
151
|
+
* @license lucide-react v0.468.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const eD=rt("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
156
|
+
* @license lucide-react v0.468.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const RB=rt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
161
|
+
* @license lucide-react v0.468.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const RC=rt("ExternalLink",[["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"}]]);/**
|
|
166
|
+
* @license lucide-react v0.468.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const _B=rt("Globe",[["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"}]]);/**
|
|
171
|
+
* @license lucide-react v0.468.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const jB=rt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
176
|
+
* @license lucide-react v0.468.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const $B=rt("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
|
181
|
+
* @license lucide-react v0.468.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const zB=rt("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
|
|
186
|
+
* @license lucide-react v0.468.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const UB=rt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
191
|
+
* @license lucide-react v0.468.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const qB=rt("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
196
|
+
* @license lucide-react v0.468.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const HB=rt("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
|
201
|
+
* @license lucide-react v0.468.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const rA=rt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
206
|
+
* @license lucide-react v0.468.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const VB=rt("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
|
|
211
|
+
* @license lucide-react v0.468.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const JB=rt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
216
|
+
* @license lucide-react v0.468.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const XB=rt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
221
|
+
* @license lucide-react v0.468.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const Zm=rt("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
226
|
+
* @license lucide-react v0.468.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const GB=rt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
231
|
+
* @license lucide-react v0.468.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const nA=rt("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
|
236
|
+
* @license lucide-react v0.468.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const Yy=rt("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
241
|
+
* @license lucide-react v0.468.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const _C=rt("Trash2",[["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"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
246
|
+
* @license lucide-react v0.468.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const jC=rt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
251
|
+
* @license lucide-react v0.468.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const _o=rt("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);class KB{constructor(t){pe(this,"ws",null);pe(this,"url");pe(this,"reconnectAttempts",0);pe(this,"maxReconnectAttempts",5);pe(this,"reconnectDelay",1e3);pe(this,"messageId",0);pe(this,"pendingRequests",new Map);pe(this,"eventHandlers",new Map);if(t)this.url=t;else{const e=window.location.protocol==="https:"?"wss:":"ws:",n=window.location.host||"localhost:9500";this.url=`${e}//${n}/ws`}}connect(){return new Promise((t,e)=>{try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("🔌 Connected to Vision Dashboard"),this.reconnectAttempts=0,t()},this.ws.onmessage=n=>{this.handleMessage(n.data)},this.ws.onerror=n=>{console.error("WebSocket error:",n),e(n)},this.ws.onclose=()=>{console.log("🔌 Disconnected from Vision Dashboard"),this.handleReconnect()}}catch(n){e(n)}})}handleMessage(t){try{const e=JSON.parse(t);if("result"in e||"error"in e){const n=e,a=this.pendingRequests.get(n.id);a&&(n.error?a.reject(new Error(n.error.message)):a.resolve(n.result),this.pendingRequests.delete(n.id))}else if("method"in e&&!("id"in e)){const n=e;this.emitEvent(n.method,n.params)}}catch(e){console.error("Failed to parse message:",e)}}handleReconnect(){if(this.reconnectAttempts<this.maxReconnectAttempts){this.reconnectAttempts++;const t=this.reconnectDelay*this.reconnectAttempts;console.log(`Reconnecting in ${t}ms (attempt ${this.reconnectAttempts}/${this.maxReconnectAttempts})`),setTimeout(()=>{this.connect().catch(console.error)},t)}}async call(t,e){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("WebSocket is not connected");const n=++this.messageId,a={jsonrpc:"2.0",method:t,params:e,id:n};return new Promise((u,l)=>{this.pendingRequests.set(n,{resolve:u,reject:l}),this.ws.send(JSON.stringify(a)),setTimeout(()=>{this.pendingRequests.has(n)&&(this.pendingRequests.delete(n),l(new Error("Request timeout")))},3e4)})}on(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set),this.eventHandlers.get(t).add(e),()=>{const n=this.eventHandlers.get(t);n&&n.delete(e)}}emitEvent(t,e){const n=this.eventHandlers.get(t);n&&n.forEach(a=>a(e))}close(){this.ws&&(this.ws.close(),this.ws=null),this.pendingRequests.clear(),this.eventHandlers.clear()}isConnected(){var t;return((t=this.ws)==null?void 0:t.readyState)===WebSocket.OPEN}}let ey=null;function pr(){return ey||(ey=new KB),ey}function QB(){const[r,t]=P.useState(!1),[e,n]=P.useState(null);return P.useEffect(()=>{const a=pr();return a.connect().then(()=>t(!0)).catch(u=>n(u)),()=>{a.close()}},[]),{connected:r,error:e}}function tD(){return ni({queryKey:["app-status"],queryFn:async()=>await pr().call("status"),refetchInterval:5e3})}function $C(r){const t=Mo(),e=P.useMemo(()=>r?{...r}:void 0,[r==null?void 0:r.method,r==null?void 0:r.statusCode,r==null?void 0:r.limit]);return P.useEffect(()=>pr().on("trace.new",u=>{t.setQueryData(["traces",e],(l=[])=>[u,...l].slice(0,(e==null?void 0:e.limit)??100))}),[t,e]),ni({queryKey:["traces",e],queryFn:async()=>await pr().call("traces/list",e)})}function YB(r){return ni({queryKey:["trace",r],queryFn:async()=>r?await pr().call("traces/get",{traceId:r}):null,enabled:!!r})}function WB(){const r=Mo();return Zh({mutationFn:async()=>await pr().call("traces/clear"),onSuccess:()=>{r.invalidateQueries({queryKey:["traces"]}),r.invalidateQueries({queryKey:["trace"]})}})}function ZB(){return Zh({mutationFn:async r=>await pr().call("traces/export",r)})}function zC(){const r=Mo();return Zh({mutationFn:async t=>await pr().call("traces/addClientMetrics",t),onSuccess:()=>{r.invalidateQueries({queryKey:["traces"]})}})}function eP(r){const[t,e]=P.useState([]);P.useEffect(()=>{const a=pr(),u=p=>{e(h=>[p,...h].slice(0,(r==null?void 0:r.limit)||100))};return a.on("log.entry",u)},[r==null?void 0:r.limit]);const n=ni({queryKey:["logs",r],queryFn:async()=>await pr().call("logs/list",r)});return P.useEffect(()=>{n.data&&e(n.data)},[n.data]),{data:t,isLoading:n.isLoading,error:n.error,refetch:n.refetch}}function tP(){const r=Mo();return Zh({mutationFn:async()=>await pr().call("logs/clear"),onSuccess:()=>{r.invalidateQueries({queryKey:["logs"]})}})}function rP(){return ni({queryKey:["routes"],queryFn:async()=>await pr().call("routes/list")})}function nP(){return ni({queryKey:["services"],queryFn:async()=>await pr().call("services/list")})}function UC(){return ni({queryKey:["events"],queryFn:async()=>await pr().call("events/list"),refetchInterval:5e3})}function sP(){return ni({queryKey:["crons"],queryFn:async()=>await pr().call("cron/list"),refetchInterval:5e3})}function qC(r){var t,e,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(t=0;t<a;t++)r[t]&&(e=qC(r[t]))&&(n&&(n+=" "),n+=e)}else for(e in r)r[e]&&(n&&(n+=" "),n+=e);return n}function HC(){for(var r,t,e=0,n="",a=arguments.length;e<a;e++)(r=arguments[e])&&(t=qC(r))&&(n&&(n+=" "),n+=t);return n}const sA=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,aA=HC,rD=(r,t)=>e=>{var n;if((t==null?void 0:t.variants)==null)return aA(r,e==null?void 0:e.class,e==null?void 0:e.className);const{variants:a,defaultVariants:u}=t,l=Object.keys(a).map(d=>{const m=e==null?void 0:e[d],D=u==null?void 0:u[d];if(m===null)return null;const g=sA(m)||sA(D);return a[d][g]}),p=e&&Object.entries(e).reduce((d,m)=>{let[D,g]=m;return g===void 0||(d[D]=g),d},{}),h=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,m)=>{let{class:D,className:g,...x}=m;return Object.entries(x).every(b=>{let[C,S]=b;return Array.isArray(S)?S.includes({...u,...p}[C]):{...u,...p}[C]===S})?[...d,D,g]:d},[]);return aA(r,l,h,e==null?void 0:e.class,e==null?void 0:e.className)},nD="-",aP=r=>{const t=uP(r),{conflictingClassGroups:e,conflictingClassGroupModifiers:n}=r;return{getClassGroupId:l=>{const p=l.split(nD);return p[0]===""&&p.length!==1&&p.shift(),VC(p,t)||iP(l)},getConflictingClassGroupIds:(l,p)=>{const h=e[l]||[];return p&&n[l]?[...h,...n[l]]:h}}},VC=(r,t)=>{var l;if(r.length===0)return t.classGroupId;const e=r[0],n=t.nextPart.get(e),a=n?VC(r.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const u=r.join(nD);return(l=t.validators.find(({validator:p})=>p(u)))==null?void 0:l.classGroupId},iA=/^\[(.+)\]$/,iP=r=>{if(iA.test(r)){const t=iA.exec(r)[1],e=t==null?void 0:t.substring(0,t.indexOf(":"));if(e)return"arbitrary.."+e}},uP=r=>{const{theme:t,prefix:e}=r,n={nextPart:new Map,validators:[]};return lP(Object.entries(r.classGroups),e).forEach(([u,l])=>{Wy(l,n,u,t)}),n},Wy=(r,t,e,n)=>{r.forEach(a=>{if(typeof a=="string"){const u=a===""?t:uA(t,a);u.classGroupId=e;return}if(typeof a=="function"){if(oP(a)){Wy(a(n),t,e,n);return}t.validators.push({validator:a,classGroupId:e});return}Object.entries(a).forEach(([u,l])=>{Wy(l,uA(t,u),e,n)})})},uA=(r,t)=>{let e=r;return t.split(nD).forEach(n=>{e.nextPart.has(n)||e.nextPart.set(n,{nextPart:new Map,validators:[]}),e=e.nextPart.get(n)}),e},oP=r=>r.isThemeGetter,lP=(r,t)=>t?r.map(([e,n])=>{const a=n.map(u=>typeof u=="string"?t+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([l,p])=>[t+l,p])):u);return[e,a]}):r,cP=r=>{if(r<1)return{get:()=>{},set:()=>{}};let t=0,e=new Map,n=new Map;const a=(u,l)=>{e.set(u,l),t++,t>r&&(t=0,n=e,e=new Map)};return{get(u){let l=e.get(u);if(l!==void 0)return l;if((l=n.get(u))!==void 0)return a(u,l),l},set(u,l){e.has(u)?e.set(u,l):a(u,l)}}},JC="!",pP=r=>{const{separator:t,experimentalParseClassName:e}=r,n=t.length===1,a=t[0],u=t.length,l=p=>{const h=[];let d=0,m=0,D;for(let S=0;S<p.length;S++){let v=p[S];if(d===0){if(v===a&&(n||p.slice(S,S+u)===t)){h.push(p.slice(m,S)),m=S+u;continue}if(v==="/"){D=S;continue}}v==="["?d++:v==="]"&&d--}const g=h.length===0?p:p.substring(m),x=g.startsWith(JC),b=x?g.substring(1):g,C=D&&D>m?D-m:void 0;return{modifiers:h,hasImportantModifier:x,baseClassName:b,maybePostfixModifierPosition:C}};return e?p=>e({className:p,parseClassName:l}):l},hP=r=>{if(r.length<=1)return r;const t=[];let e=[];return r.forEach(n=>{n[0]==="["?(t.push(...e.sort(),n),e=[]):e.push(n)}),t.push(...e.sort()),t},dP=r=>({cache:cP(r.cacheSize),parseClassName:pP(r),...aP(r)}),fP=/\s+/,mP=(r,t)=>{const{parseClassName:e,getClassGroupId:n,getConflictingClassGroupIds:a}=t,u=[],l=r.trim().split(fP);let p="";for(let h=l.length-1;h>=0;h-=1){const d=l[h],{modifiers:m,hasImportantModifier:D,baseClassName:g,maybePostfixModifierPosition:x}=e(d);let b=!!x,C=n(b?g.substring(0,x):g);if(!C){if(!b){p=d+(p.length>0?" "+p:p);continue}if(C=n(g),!C){p=d+(p.length>0?" "+p:p);continue}b=!1}const S=hP(m).join(":"),v=D?S+JC:S,F=v+C;if(u.includes(F))continue;u.push(F);const w=a(C,b);for(let T=0;T<w.length;++T){const B=w[T];u.push(v+B)}p=d+(p.length>0?" "+p:p)}return p};function yP(){let r=0,t,e,n="";for(;r<arguments.length;)(t=arguments[r++])&&(e=XC(t))&&(n&&(n+=" "),n+=e);return n}const XC=r=>{if(typeof r=="string")return r;let t,e="";for(let n=0;n<r.length;n++)r[n]&&(t=XC(r[n]))&&(e&&(e+=" "),e+=t);return e};function DP(r,...t){let e,n,a,u=l;function l(h){const d=t.reduce((m,D)=>D(m),r());return e=dP(d),n=e.cache.get,a=e.cache.set,u=p,p(h)}function p(h){const d=n(h);if(d)return d;const m=mP(h,e);return a(h,m),m}return function(){return u(yP.apply(null,arguments))}}const vt=r=>{const t=e=>e[r]||[];return t.isThemeGetter=!0,t},GC=/^\[(?:([a-z-]+):)?(.+)\]$/i,gP=/^\d+\/\d+$/,xP=new Set(["px","full","screen"]),EP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bP=/\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$/,AP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,CP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ts=r=>uo(r)||xP.has(r)||gP.test(r),Pa=r=>jo(r,"length",kP),uo=r=>!!r&&!Number.isNaN(Number(r)),ty=r=>jo(r,"number",uo),ql=r=>!!r&&Number.isInteger(Number(r)),vP=r=>r.endsWith("%")&&uo(r.slice(0,-1)),$e=r=>GC.test(r),ka=r=>EP.test(r),SP=new Set(["length","size","percentage"]),TP=r=>jo(r,SP,KC),wP=r=>jo(r,"position",KC),NP=new Set(["image","url"]),BP=r=>jo(r,NP,MP),PP=r=>jo(r,"",IP),Hl=()=>!0,jo=(r,t,e)=>{const n=GC.exec(r);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):e(n[2]):!1},kP=r=>bP.test(r)&&!AP.test(r),KC=()=>!1,IP=r=>CP.test(r),MP=r=>FP.test(r),OP=()=>{const r=vt("colors"),t=vt("spacing"),e=vt("blur"),n=vt("brightness"),a=vt("borderColor"),u=vt("borderRadius"),l=vt("borderSpacing"),p=vt("borderWidth"),h=vt("contrast"),d=vt("grayscale"),m=vt("hueRotate"),D=vt("invert"),g=vt("gap"),x=vt("gradientColorStops"),b=vt("gradientColorStopPositions"),C=vt("inset"),S=vt("margin"),v=vt("opacity"),F=vt("padding"),w=vt("saturate"),T=vt("scale"),B=vt("sepia"),_=vt("skew"),V=vt("space"),U=vt("translate"),Y=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",$e,t],re=()=>[$e,t],X=()=>["",Ts,Pa],ge=()=>["auto",uo,$e],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],J=()=>["solid","dashed","dotted","double","none"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],ve=()=>["","0",$e],be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[uo,$e];return{cacheSize:500,separator:":",theme:{colors:[Hl],spacing:[Ts,Pa],blur:["none","",ka,$e],brightness:j(),borderColor:[r],borderRadius:["none","","full",ka,$e],borderSpacing:re(),borderWidth:X(),contrast:j(),grayscale:ve(),hueRotate:j(),invert:ve(),gap:re(),gradientColorStops:[r],gradientColorStopPositions:[vP,Pa],inset:H(),margin:H(),opacity:j(),padding:re(),saturate:j(),scale:j(),sepia:ve(),skew:j(),space:re(),translate:re()},classGroups:{aspect:[{aspect:["auto","square","video",$e]}],container:["container"],columns:[{columns:[ka]}],"break-after":[{"break-after":be()}],"break-before":[{"break-before":be()}],"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"],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:[...Be(),$e]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ql,$e]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$e]}],grow:[{grow:ve()}],shrink:[{shrink:ve()}],order:[{order:["first","last","none",ql,$e]}],"grid-cols":[{"grid-cols":[Hl]}],"col-start-end":[{col:["auto",{span:["full",ql,$e]},$e]}],"col-start":[{"col-start":ge()}],"col-end":[{"col-end":ge()}],"grid-rows":[{"grid-rows":[Hl]}],"row-start-end":[{row:["auto",{span:[ql,$e]},$e]}],"row-start":[{"row-start":ge()}],"row-end":[{"row-end":ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$e]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$e]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$e,t]}],"min-w":[{"min-w":[$e,t,"min","max","fit"]}],"max-w":[{"max-w":[$e,t,"none","full","min","max","fit","prose",{screen:[ka]},ka]}],h:[{h:[$e,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$e,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$e,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$e,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ka,Pa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ty]}],"font-family":[{font:[Hl]}],"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:["tighter","tight","normal","wide","wider","widest",$e]}],"line-clamp":[{"line-clamp":["none",uo,ty]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ts,$e]}],"list-image":[{"list-image":["none",$e]}],"list-style-type":[{list:["none","disc","decimal",$e]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ts,Pa]}],"underline-offset":[{"underline-offset":["auto",Ts,$e]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:re()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),wP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",TP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},BP]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...J(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:J()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...J()]}],"outline-offset":[{"outline-offset":[Ts,$e]}],"outline-w":[{outline:[Ts,Pa]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Ts,Pa]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",ka,PP]}],"shadow-color":[{shadow:[Hl]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ce()}],filter:[{filter:["","none"]}],blur:[{blur:[e]}],brightness:[{brightness:[n]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",ka,$e]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[D]}],saturate:[{saturate:[w]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[e]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[D]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"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:["none","all","","colors","opacity","shadow","transform",$e]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",$e]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",$e]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[ql,$e]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$e]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],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",$e]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":re()}],"scroll-mx":[{"scroll-mx":re()}],"scroll-my":[{"scroll-my":re()}],"scroll-ms":[{"scroll-ms":re()}],"scroll-me":[{"scroll-me":re()}],"scroll-mt":[{"scroll-mt":re()}],"scroll-mr":[{"scroll-mr":re()}],"scroll-mb":[{"scroll-mb":re()}],"scroll-ml":[{"scroll-ml":re()}],"scroll-p":[{"scroll-p":re()}],"scroll-px":[{"scroll-px":re()}],"scroll-py":[{"scroll-py":re()}],"scroll-ps":[{"scroll-ps":re()}],"scroll-pe":[{"scroll-pe":re()}],"scroll-pt":[{"scroll-pt":re()}],"scroll-pr":[{"scroll-pr":re()}],"scroll-pb":[{"scroll-pb":re()}],"scroll-pl":[{"scroll-pl":re()}],"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",$e]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Ts,Pa,ty]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"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"]}}},LP=DP(OP);function qt(...r){return LP(HC(r))}const RP=rD("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function xt({className:r,variant:t,...e}){return E("div",{className:qt(RP({variant:t}),r),...e})}const ar=P.forwardRef(({className:r,variant:t="default",size:e="default",...n},a)=>E("button",{className:qt("inline-flex items-center justify-center rounded-md font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",{"bg-primary text-primary-foreground hover:bg-primary/90":t==="default","bg-secondary text-secondary-foreground hover:bg-secondary/80":t==="secondary","border border-input bg-background hover:bg-accent hover:text-accent-foreground":t==="outline","hover:bg-accent hover:text-accent-foreground":t==="ghost"},{"h-10 px-4 py-2":e==="default","h-9 rounded-md px-3":e==="sm","h-11 rounded-md px-8":e==="lg"},r),ref:a,...n}));ar.displayName="Button";function oA(r,t){if(typeof r=="function")return r(t);r!=null&&(r.current=t)}function QC(...r){return t=>{let e=!1;const n=r.map(a=>{const u=oA(a,t);return!e&&typeof u=="function"&&(e=!0),u});if(e)return()=>{for(let a=0;a<n.length;a++){const u=n[a];typeof u=="function"?u():oA(r[a],null)}}}}function es(...r){return P.useCallback(QC(...r),r)}function Zy(r){const t=_P(r),e=P.forwardRef((n,a)=>{const{children:u,...l}=n,p=P.Children.toArray(u),h=p.find($P);if(h){const d=h.props.children,m=p.map(D=>D===h?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:D);return E(t,{...l,ref:a,children:P.isValidElement(d)?P.cloneElement(d,void 0,m):null})}return E(t,{...l,ref:a,children:u})});return e.displayName=`${r}.Slot`,e}function _P(r){const t=P.forwardRef((e,n)=>{const{children:a,...u}=e;if(P.isValidElement(a)){const l=UP(a),p=zP(u,a.props);return a.type!==P.Fragment&&(p.ref=n?QC(n,l):l),P.cloneElement(a,p)}return P.Children.count(a)>1?P.Children.only(null):null});return t.displayName=`${r}.SlotClone`,t}var jP=Symbol("radix.slottable");function $P(r){return P.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===jP}function zP(r,t){const e={...t};for(const n in t){const a=r[n],u=t[n];/^on[A-Z]/.test(n)?a&&u?e[n]=(...p)=>{const h=u(...p);return a(...p),h}:a&&(e[n]=a):n==="style"?e[n]={...a,...u}:n==="className"&&(e[n]=[a,u].filter(Boolean).join(" "))}return{...r,...e}}function UP(r){var n,a;let t=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,e=t&&"isReactWarning"in t&&t.isReactWarning;return e?r.ref:(t=(a=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:a.get,e=t&&"isReactWarning"in t&&t.isReactWarning,e?r.props.ref:r.props.ref||r.ref)}var qP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wr=qP.reduce((r,t)=>{const e=Zy(`Primitive.${t}`),n=P.forwardRef((a,u)=>{const{asChild:l,...p}=a,h=l?e:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E(h,{...p,ref:u})});return n.displayName=`Primitive.${t}`,{...r,[t]:n}},{}),HP="Separator",lA="horizontal",VP=["horizontal","vertical"],YC=P.forwardRef((r,t)=>{const{decorative:e,orientation:n=lA,...a}=r,u=JP(n)?n:lA,p=e?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return E(Wr.div,{"data-orientation":u,...p,...a,ref:t})});YC.displayName=HP;function JP(r){return VP.includes(r)}var WC=YC;const sd=P.forwardRef(({className:r,orientation:t="horizontal",decorative:e=!0,...n},a)=>E(WC,{ref:a,decorative:e,orientation:t,className:qt("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",r),...n}));sd.displayName=WC.displayName;function XP(){var a,u;const{data:r}=tD(),{data:t}=UC(),[e,n]=P.useState(()=>localStorage.getItem("vision.theme")||"light");return P.useEffect(()=>{const l=document.documentElement;e==="dark"?l.classList.add("dark"):l.classList.remove("dark"),localStorage.setItem("vision.theme",e)},[e]),k("div",{className:"h-screen flex flex-col bg-background text-foreground",children:[k("nav",{className:"bg-background/80 backdrop-blur-md px-6 py-3 flex items-center justify-between border-b border-border",children:[k("div",{className:"flex items-center gap-6",children:[k("div",{className:"flex items-center gap-3",children:[E("span",{className:"text-base font-semibold",children:(r==null?void 0:r.name)||"Vision Dashboard"}),E(xt,{variant:r!=null&&r.running?"default":"secondary",className:r!=null&&r.running?"bg-green-600 hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700":"",children:r!=null&&r.running?"Running":"Stopped"})]}),E(sd,{orientation:"vertical",className:"h-6 bg-border"}),k("div",{className:"flex gap-1",children:[E(Mi,{to:"/api-explorer",className:({isActive:l})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${l?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"API Explorer"}),E(Mi,{to:"/traces",className:({isActive:l})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${l?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Traces"}),E(Mi,{to:"/logs",className:({isActive:l})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${l?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Logs"}),!!(t&&t.length>0)&&E(Mi,{to:"/events",className:({isActive:l})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${l?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Events"}),E(Mi,{to:"/services",className:({isActive:l})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${l?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Services"}),((u=(a=r==null?void 0:r.metadata)==null?void 0:a.drizzle)==null?void 0:u.detected)&&E(Mi,{to:"/database",className:({isActive:l})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${l?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Database"})]})]}),k(ar,{variant:"ghost",size:"sm",onClick:()=>n(e==="dark"?"light":"dark"),className:"text-gray-400 hover:text-foreground/90 hover:bg-accent",children:[e==="dark"?E(GB,{className:"w-4 h-4"}):E(UB,{className:"w-4 h-4"}),E("span",{className:"ml-2 text-sm font-medium hidden sm:inline",children:e==="dark"?"Light":"Dark"})]})]}),E("main",{className:"flex-1 min-h-0",children:E(NC,{})})]})}const _i=P.forwardRef(({className:r,...t},e)=>E("div",{ref:e,className:qt("rounded-lg border bg-card text-card-foreground shadow-sm",r),...t}));_i.displayName="Card";const yc=P.forwardRef(({className:r,...t},e)=>E("div",{ref:e,className:qt("flex flex-col space-y-1.5 p-6",r),...t}));yc.displayName="CardHeader";const Dc=P.forwardRef(({className:r,...t},e)=>E("h3",{ref:e,className:qt("text-2xl font-semibold leading-none tracking-tight",r),...t}));Dc.displayName="CardTitle";const ji=P.forwardRef(({className:r,...t},e)=>E("div",{ref:e,className:qt("p-6 pt-0",r),...t}));ji.displayName="CardContent";function Bn({title:r,icon:t,children:e,headerExtra:n,headerRight:a,className:u,contentClassName:l}){return k(_i,{className:qt("border-border bg-card/50",u),children:[E(yc,{className:"py-3 px-4 border-b border-border/50",children:k("div",{className:"flex items-center justify-between",children:[k("div",{className:"flex items-center gap-2",children:[t&&E(t,{className:"w-4 h-4 text-muted-foreground"}),E(Dc,{className:"text-sm font-medium font-mono text-muted-foreground uppercase tracking-wider",children:r}),n]}),a]})}),E(ji,{className:qt("p-4",l),children:e})]})}const so=P.forwardRef(({className:r,type:t,...e},n)=>E("input",{type:t,className:qt("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base font-mono shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:n,...e}));so.displayName="Input";var GP="Label",ZC=P.forwardRef((r,t)=>E(Wr.label,{...r,ref:t,onMouseDown:e=>{var a;e.target.closest("button, input, select, textarea")||((a=r.onMouseDown)==null||a.call(r,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));ZC.displayName=GP;var eF=ZC;const KP=rD("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Bs=P.forwardRef(({className:r,...t},e)=>E(eF,{ref:e,className:qt(KP(),r),...t}));Bs.displayName=eF.displayName;const tF=P.forwardRef(({className:r,checked:t,onCheckedChange:e,...n},a)=>{const u=()=>{e==null||e(!t)};return E("input",{type:"checkbox",className:qt("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),ref:a,checked:t,onChange:l=>e==null?void 0:e(l.target.checked),onClick:u,...n})});tF.displayName="Checkbox";var gc=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{};function QP(r,t){return P.useReducer((e,n)=>t[e][n]??e,r)}var $o=r=>{const{present:t,children:e}=r,n=YP(t),a=typeof e=="function"?e({present:n.isPresent}):P.Children.only(e),u=es(n.ref,WP(a));return typeof e=="function"||n.isPresent?P.cloneElement(a,{ref:u}):null};$o.displayName="Presence";function YP(r){const[t,e]=P.useState(),n=P.useRef(null),a=P.useRef(r),u=P.useRef("none"),l=r?"mounted":"unmounted",[p,h]=QP(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const d=lh(n.current);u.current=p==="mounted"?d:"none"},[p]),gc(()=>{const d=n.current,m=a.current;if(m!==r){const g=u.current,x=lh(d);r?h("MOUNT"):x==="none"||(d==null?void 0:d.display)==="none"?h("UNMOUNT"):h(m&&g!==x?"ANIMATION_OUT":"UNMOUNT"),a.current=r}},[r,h]),gc(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,D=x=>{const C=lh(n.current).includes(CSS.escape(x.animationName));if(x.target===t&&C&&(h("ANIMATION_END"),!a.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},g=x=>{x.target===t&&(u.current=lh(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",D),t.addEventListener("animationend",D),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",D),t.removeEventListener("animationend",D)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:P.useCallback(d=>{n.current=d?getComputedStyle(d):null,e(d)},[])}}function lh(r){return(r==null?void 0:r.animationName)||"none"}function WP(r){var n,a;let t=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,e=t&&"isReactWarning"in t&&t.isReactWarning;return e?r.ref:(t=(a=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:a.get,e=t&&"isReactWarning"in t&&t.isReactWarning,e?r.props.ref:r.props.ref||r.ref)}function ad(r,t=[]){let e=[];function n(u,l){const p=P.createContext(l),h=e.length;e=[...e,l];const d=D=>{var v;const{scope:g,children:x,...b}=D,C=((v=g==null?void 0:g[r])==null?void 0:v[h])||p,S=P.useMemo(()=>b,Object.values(b));return E(C.Provider,{value:S,children:x})};d.displayName=u+"Provider";function m(D,g){var C;const x=((C=g==null?void 0:g[r])==null?void 0:C[h])||p,b=P.useContext(x);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${D}\` must be used within \`${u}\``)}return[d,m]}const a=()=>{const u=e.map(l=>P.createContext(l));return function(p){const h=(p==null?void 0:p[r])||u;return P.useMemo(()=>({[`__scope${r}`]:{...p,[r]:h}}),[p,h])}};return a.scopeName=r,[n,ZP(a,...t)]}function ZP(...r){const t=r[0];if(r.length===1)return t;const e=()=>{const n=r.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(u){const l=n.reduce((p,{useScope:h,scopeName:d})=>{const D=h(u)[`__scope${d}`];return{...p,...D}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return e.scopeName=t.scopeName,e}function ja(r){const t=P.useRef(r);return P.useEffect(()=>{t.current=r}),P.useMemo(()=>(...e)=>{var n;return(n=t.current)==null?void 0:n.call(t,...e)},[])}var e4=P.createContext(void 0);function sD(r){const t=P.useContext(e4);return r||t||"ltr"}function t4(r,[t,e]){return Math.min(e,Math.max(t,r))}function cr(r,t,{checkForDefaultPrevented:e=!0}={}){return function(a){if(r==null||r(a),e===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function r4(r,t){return P.useReducer((e,n)=>t[e][n]??e,r)}var aD="ScrollArea",[rF]=ad(aD),[n4,En]=rF(aD),nF=P.forwardRef((r,t)=>{const{__scopeScrollArea:e,type:n="hover",dir:a,scrollHideDelay:u=600,...l}=r,[p,h]=P.useState(null),[d,m]=P.useState(null),[D,g]=P.useState(null),[x,b]=P.useState(null),[C,S]=P.useState(null),[v,F]=P.useState(0),[w,T]=P.useState(0),[B,_]=P.useState(!1),[V,U]=P.useState(!1),Y=es(t,H=>h(H)),O=sD(a);return E(n4,{scope:e,type:n,dir:O,scrollHideDelay:u,scrollArea:p,viewport:d,onViewportChange:m,content:D,onContentChange:g,scrollbarX:x,onScrollbarXChange:b,scrollbarXEnabled:B,onScrollbarXEnabledChange:_,scrollbarY:C,onScrollbarYChange:S,scrollbarYEnabled:V,onScrollbarYEnabledChange:U,onCornerWidthChange:F,onCornerHeightChange:T,children:E(Wr.div,{dir:O,...l,ref:Y,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...r.style}})})});nF.displayName=aD;var sF="ScrollAreaViewport",aF=P.forwardRef((r,t)=>{const{__scopeScrollArea:e,children:n,nonce:a,...u}=r,l=En(sF,e),p=P.useRef(null),h=es(t,p,l.onViewportChange);return k(gt,{children:[E("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),E(Wr.div,{"data-radix-scroll-area-viewport":"",...u,ref:h,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...r.style},children:E("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});aF.displayName=sF;var ss="ScrollAreaScrollbar",iD=P.forwardRef((r,t)=>{const{forceMount:e,...n}=r,a=En(ss,r.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:l}=a,p=r.orientation==="horizontal";return P.useEffect(()=>(p?u(!0):l(!0),()=>{p?u(!1):l(!1)}),[p,u,l]),a.type==="hover"?E(s4,{...n,ref:t,forceMount:e}):a.type==="scroll"?E(a4,{...n,ref:t,forceMount:e}):a.type==="auto"?E(iF,{...n,ref:t,forceMount:e}):a.type==="always"?E(uD,{...n,ref:t}):null});iD.displayName=ss;var s4=P.forwardRef((r,t)=>{const{forceMount:e,...n}=r,a=En(ss,r.__scopeScrollArea),[u,l]=P.useState(!1);return P.useEffect(()=>{const p=a.scrollArea;let h=0;if(p){const d=()=>{window.clearTimeout(h),l(!0)},m=()=>{h=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return p.addEventListener("pointerenter",d),p.addEventListener("pointerleave",m),()=>{window.clearTimeout(h),p.removeEventListener("pointerenter",d),p.removeEventListener("pointerleave",m)}}},[a.scrollArea,a.scrollHideDelay]),E($o,{present:e||u,children:E(iF,{"data-state":u?"visible":"hidden",...n,ref:t})})}),a4=P.forwardRef((r,t)=>{const{forceMount:e,...n}=r,a=En(ss,r.__scopeScrollArea),u=r.orientation==="horizontal",l=ud(()=>h("SCROLL_END"),100),[p,h]=r4("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return P.useEffect(()=>{if(p==="idle"){const d=window.setTimeout(()=>h("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[p,a.scrollHideDelay,h]),P.useEffect(()=>{const d=a.viewport,m=u?"scrollLeft":"scrollTop";if(d){let D=d[m];const g=()=>{const x=d[m];D!==x&&(h("SCROLL"),l()),D=x};return d.addEventListener("scroll",g),()=>d.removeEventListener("scroll",g)}},[a.viewport,u,h,l]),E($o,{present:e||p!=="hidden",children:E(uD,{"data-state":p==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:cr(r.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:cr(r.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),iF=P.forwardRef((r,t)=>{const e=En(ss,r.__scopeScrollArea),{forceMount:n,...a}=r,[u,l]=P.useState(!1),p=r.orientation==="horizontal",h=ud(()=>{if(e.viewport){const d=e.viewport.offsetWidth<e.viewport.scrollWidth,m=e.viewport.offsetHeight<e.viewport.scrollHeight;l(p?d:m)}},10);return Co(e.viewport,h),Co(e.content,h),E($o,{present:n||u,children:E(uD,{"data-state":u?"visible":"hidden",...a,ref:t})})}),uD=P.forwardRef((r,t)=>{const{orientation:e="vertical",...n}=r,a=En(ss,r.__scopeScrollArea),u=P.useRef(null),l=P.useRef(0),[p,h]=P.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=pF(p.viewport,p.content),m={...n,sizes:p,onSizesChange:h,hasThumb:d>0&&d<1,onThumbChange:g=>u.current=g,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:g=>l.current=g};function D(g,x){return p4(g,l.current,p,x)}return e==="horizontal"?E(i4,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&u.current){const g=a.viewport.scrollLeft,x=cA(g,p,a.dir);u.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollLeft=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollLeft=D(g,a.dir))}}):e==="vertical"?E(u4,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&u.current){const g=a.viewport.scrollTop,x=cA(g,p);u.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollTop=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollTop=D(g))}}):null}),i4=P.forwardRef((r,t)=>{const{sizes:e,onSizesChange:n,...a}=r,u=En(ss,r.__scopeScrollArea),[l,p]=P.useState(),h=P.useRef(null),d=es(t,h,u.onScrollbarXChange);return P.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),E(oF,{"data-orientation":"horizontal",...a,ref:d,sizes:e,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":id(e)+"px",...r.style},onThumbPointerDown:m=>r.onThumbPointerDown(m.x),onDragScroll:m=>r.onDragScroll(m.x),onWheelScroll:(m,D)=>{if(u.viewport){const g=u.viewport.scrollLeft+m.deltaX;r.onWheelScroll(g),dF(g,D)&&m.preventDefault()}},onResize:()=>{h.current&&u.viewport&&l&&n({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:zh(l.paddingLeft),paddingEnd:zh(l.paddingRight)}})}})}),u4=P.forwardRef((r,t)=>{const{sizes:e,onSizesChange:n,...a}=r,u=En(ss,r.__scopeScrollArea),[l,p]=P.useState(),h=P.useRef(null),d=es(t,h,u.onScrollbarYChange);return P.useEffect(()=>{h.current&&p(getComputedStyle(h.current))},[h]),E(oF,{"data-orientation":"vertical",...a,ref:d,sizes:e,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":id(e)+"px",...r.style},onThumbPointerDown:m=>r.onThumbPointerDown(m.y),onDragScroll:m=>r.onDragScroll(m.y),onWheelScroll:(m,D)=>{if(u.viewport){const g=u.viewport.scrollTop+m.deltaY;r.onWheelScroll(g),dF(g,D)&&m.preventDefault()}},onResize:()=>{h.current&&u.viewport&&l&&n({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:zh(l.paddingTop),paddingEnd:zh(l.paddingBottom)}})}})}),[o4,uF]=rF(ss),oF=P.forwardRef((r,t)=>{const{__scopeScrollArea:e,sizes:n,hasThumb:a,onThumbChange:u,onThumbPointerUp:l,onThumbPointerDown:p,onThumbPositionChange:h,onDragScroll:d,onWheelScroll:m,onResize:D,...g}=r,x=En(ss,e),[b,C]=P.useState(null),S=es(t,Y=>C(Y)),v=P.useRef(null),F=P.useRef(""),w=x.viewport,T=n.content-n.viewport,B=ja(m),_=ja(h),V=ud(D,10);function U(Y){if(v.current){const O=Y.clientX-v.current.left,H=Y.clientY-v.current.top;d({x:O,y:H})}}return P.useEffect(()=>{const Y=O=>{const H=O.target;(b==null?void 0:b.contains(H))&&B(O,T)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[w,b,T,B]),P.useEffect(_,[n,_]),Co(b,V),Co(x.content,V),E(o4,{scope:e,scrollbar:b,hasThumb:a,onThumbChange:ja(u),onThumbPointerUp:ja(l),onThumbPositionChange:_,onThumbPointerDown:ja(p),children:E(Wr.div,{...g,ref:S,style:{position:"absolute",...g.style},onPointerDown:cr(r.onPointerDown,Y=>{Y.button===0&&(Y.target.setPointerCapture(Y.pointerId),v.current=b.getBoundingClientRect(),F.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),U(Y))}),onPointerMove:cr(r.onPointerMove,U),onPointerUp:cr(r.onPointerUp,Y=>{const O=Y.target;O.hasPointerCapture(Y.pointerId)&&O.releasePointerCapture(Y.pointerId),document.body.style.webkitUserSelect=F.current,x.viewport&&(x.viewport.style.scrollBehavior=""),v.current=null})})})}),$h="ScrollAreaThumb",lF=P.forwardRef((r,t)=>{const{forceMount:e,...n}=r,a=uF($h,r.__scopeScrollArea);return E($o,{present:e||a.hasThumb,children:E(l4,{ref:t,...n})})}),l4=P.forwardRef((r,t)=>{const{__scopeScrollArea:e,style:n,...a}=r,u=En($h,e),l=uF($h,e),{onThumbPositionChange:p}=l,h=es(t,D=>l.onThumbChange(D)),d=P.useRef(void 0),m=ud(()=>{d.current&&(d.current(),d.current=void 0)},100);return P.useEffect(()=>{const D=u.viewport;if(D){const g=()=>{if(m(),!d.current){const x=h4(D,p);d.current=x,p()}};return p(),D.addEventListener("scroll",g),()=>D.removeEventListener("scroll",g)}},[u.viewport,m,p]),E(Wr.div,{"data-state":l.hasThumb?"visible":"hidden",...a,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:cr(r.onPointerDownCapture,D=>{const x=D.target.getBoundingClientRect(),b=D.clientX-x.left,C=D.clientY-x.top;l.onThumbPointerDown({x:b,y:C})}),onPointerUp:cr(r.onPointerUp,l.onThumbPointerUp)})});lF.displayName=$h;var oD="ScrollAreaCorner",cF=P.forwardRef((r,t)=>{const e=En(oD,r.__scopeScrollArea),n=!!(e.scrollbarX&&e.scrollbarY);return e.type!=="scroll"&&n?E(c4,{...r,ref:t}):null});cF.displayName=oD;var c4=P.forwardRef((r,t)=>{const{__scopeScrollArea:e,...n}=r,a=En(oD,e),[u,l]=P.useState(0),[p,h]=P.useState(0),d=!!(u&&p);return Co(a.scrollbarX,()=>{var D;const m=((D=a.scrollbarX)==null?void 0:D.offsetHeight)||0;a.onCornerHeightChange(m),h(m)}),Co(a.scrollbarY,()=>{var D;const m=((D=a.scrollbarY)==null?void 0:D.offsetWidth)||0;a.onCornerWidthChange(m),l(m)}),d?E(Wr.div,{...n,ref:t,style:{width:u,height:p,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function zh(r){return r?parseInt(r,10):0}function pF(r,t){const e=r/t;return isNaN(e)?0:e}function id(r){const t=pF(r.viewport,r.content),e=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,n=(r.scrollbar.size-e)*t;return Math.max(n,18)}function p4(r,t,e,n="ltr"){const a=id(e),u=a/2,l=t||u,p=a-l,h=e.scrollbar.paddingStart+l,d=e.scrollbar.size-e.scrollbar.paddingEnd-p,m=e.content-e.viewport,D=n==="ltr"?[0,m]:[m*-1,0];return hF([h,d],D)(r)}function cA(r,t,e="ltr"){const n=id(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,u=t.scrollbar.size-a,l=t.content-t.viewport,p=u-n,h=e==="ltr"?[0,l]:[l*-1,0],d=t4(r,h);return hF([0,l],[0,p])(d)}function hF(r,t){return e=>{if(r[0]===r[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(r[1]-r[0]);return t[0]+n*(e-r[0])}}function dF(r,t){return r>0&&r<t}var h4=(r,t=()=>{})=>{let e={left:r.scrollLeft,top:r.scrollTop},n=0;return(function a(){const u={left:r.scrollLeft,top:r.scrollTop},l=e.left!==u.left,p=e.top!==u.top;(l||p)&&t(),e=u,n=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(n)};function ud(r,t){const e=ja(r),n=P.useRef(0);return P.useEffect(()=>()=>window.clearTimeout(n.current),[]),P.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(e,t)},[e,t])}function Co(r,t){const e=ja(t);gc(()=>{let n=0;if(r){const a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(e)});return a.observe(r),()=>{window.cancelAnimationFrame(n),a.unobserve(r)}}},[r,e])}var fF=nF,d4=aF,f4=cF;const Uh=P.forwardRef(({className:r,children:t,...e},n)=>k(fF,{ref:n,className:qt("relative overflow-hidden",r),...e,children:[E(d4,{className:"h-full w-full rounded-[inherit]",children:t}),E(mF,{}),E(f4,{})]}));Uh.displayName=fF.displayName;const mF=P.forwardRef(({className:r,orientation:t="vertical",...e},n)=>E(iD,{ref:n,orientation:t,className:qt("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...e,children:E(lF,{className:"relative flex-1 rounded-full bg-border"})}));mF.displayName=iD.displayName;function m4({sessionId:r}){const{data:t=[]}=$C({limit:50}),e=r?t.filter(l=>{var p;return((p=l.metadata)==null?void 0:p.sessionId)===r}):t,{traceId:n}=X0(),a=P.useRef(null),u=P.useRef(e.length);return P.useEffect(()=>{e.length>u.current&&a.current&&(a.current.scrollTop=0),u.current=e.length},[e.length]),k("div",{className:"w-80 border-l border-border bg-muted/20 flex flex-col",children:[E("div",{className:"px-4 py-3 border-b border-border bg-muted/20",children:k("div",{className:"flex items-center justify-between",children:[E("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Traces"}),E(xt,{variant:"secondary",className:"text-xs",children:e.length})]})}),E(Uh,{className:"flex-1",ref:a,children:E("div",{className:"p-3 space-y-2",children:t.length===0?k("div",{className:"text-center py-12 text-muted-foreground",children:[E(_o,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),E("p",{className:"text-sm",children:"Traces will appear here"}),E("p",{className:"text-xs mt-1",children:"after making API calls"})]}):e.map((l,p)=>k("div",{children:[E(rd,{to:`/traces/${l.id}`,children:E(y4,{trace:l,isActive:l.id===n})}),p<e.length-1&&E(sd,{className:"my-2"})]},l.id))})})]})}function y4({trace:r,isActive:t}){const e=l=>l?l>=200&&l<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":l>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",n=l=>l==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900":l==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":l==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":l==="DELETE"?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"",a=l=>l==null?"-":l<1?"< 1ms":l<1e3?`${Math.round(l)}ms`:`${(l/1e3).toFixed(2)}s`,u=l=>new Date(l).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});return k("div",{className:`w-full text-left bg-background rounded-md p-2.5 border transition-all cursor-pointer ${t?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"}`,children:[k("div",{className:"flex items-center gap-1.5 mb-2",children:[E(xt,{className:`text-[10px] font-mono px-1.5 py-0 ${n(r.method)}`,children:r.method}),E(xt,{className:`text-[10px] font-mono px-1.5 py-0 ${e(r.statusCode)}`,children:r.statusCode||"..."}),r.spans.length>0&&k("span",{className:"text-[10px] text-muted-foreground ml-auto",children:[r.spans.length," span",r.spans.length>1?"s":""]})]}),E("div",{className:"text-xs font-mono text-foreground truncate mb-2",children:r.path}),k("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[k("div",{className:"flex items-center gap-1",children:[E(nd,{className:"w-3 h-3"}),E("span",{children:u(r.timestamp)})]}),k("div",{className:"flex items-center gap-1",children:[E(_o,{className:"w-3 h-3"}),E("span",{className:r.duration&&r.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:a(r.duration)})]})]})]})}var ry={exports:{}},pA;function D4(){return pA||(pA=1,(function(r){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
256
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
257
|
+
*
|
|
258
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
259
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
260
|
+
* @namespace
|
|
261
|
+
* @public
|
|
262
|
+
*/var e=(function(n){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,u=0,l={},p={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function F(w){return w instanceof h?new h(w.type,F(w.content),w.alias):Array.isArray(w)?w.map(F):w.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(F){return Object.prototype.toString.call(F).slice(8,-1)},objId:function(F){return F.__id||Object.defineProperty(F,"__id",{value:++u}),F.__id},clone:function F(w,T){T=T||{};var B,_;switch(p.util.type(w)){case"Object":if(_=p.util.objId(w),T[_])return T[_];B={},T[_]=B;for(var V in w)w.hasOwnProperty(V)&&(B[V]=F(w[V],T));return B;case"Array":return _=p.util.objId(w),T[_]?T[_]:(B=[],T[_]=B,w.forEach(function(U,Y){B[Y]=F(U,T)}),B);default:return w}},getLanguage:function(F){for(;F;){var w=a.exec(F.className);if(w)return w[1].toLowerCase();F=F.parentElement}return"none"},setLanguage:function(F,w){F.className=F.className.replace(RegExp(a,"gi"),""),F.classList.add("language-"+w)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(B){var F=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(B.stack)||[])[1];if(F){var w=document.getElementsByTagName("script");for(var T in w)if(w[T].src==F)return w[T]}return null}},isActive:function(F,w,T){for(var B="no-"+w;F;){var _=F.classList;if(_.contains(w))return!0;if(_.contains(B))return!1;F=F.parentElement}return!!T}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(F,w){var T=p.util.clone(p.languages[F]);for(var B in w)T[B]=w[B];return T},insertBefore:function(F,w,T,B){B=B||p.languages;var _=B[F],V={};for(var U in _)if(_.hasOwnProperty(U)){if(U==w)for(var Y in T)T.hasOwnProperty(Y)&&(V[Y]=T[Y]);T.hasOwnProperty(U)||(V[U]=_[U])}var O=B[F];return B[F]=V,p.languages.DFS(p.languages,function(H,re){re===O&&H!=F&&(this[H]=V)}),V},DFS:function F(w,T,B,_){_=_||{};var V=p.util.objId;for(var U in w)if(w.hasOwnProperty(U)){T.call(w,U,w[U],B||U);var Y=w[U],O=p.util.type(Y);O==="Object"&&!_[V(Y)]?(_[V(Y)]=!0,F(Y,T,null,_)):O==="Array"&&!_[V(Y)]&&(_[V(Y)]=!0,F(Y,T,U,_))}}},plugins:{},highlightAll:function(F,w){p.highlightAllUnder(document,F,w)},highlightAllUnder:function(F,w,T){var B={callback:T,container:F,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};p.hooks.run("before-highlightall",B),B.elements=Array.prototype.slice.apply(B.container.querySelectorAll(B.selector)),p.hooks.run("before-all-elements-highlight",B);for(var _=0,V;V=B.elements[_++];)p.highlightElement(V,w===!0,B.callback)},highlightElement:function(F,w,T){var B=p.util.getLanguage(F),_=p.languages[B];p.util.setLanguage(F,B);var V=F.parentElement;V&&V.nodeName.toLowerCase()==="pre"&&p.util.setLanguage(V,B);var U=F.textContent,Y={element:F,language:B,grammar:_,code:U};function O(re){Y.highlightedCode=re,p.hooks.run("before-insert",Y),Y.element.innerHTML=Y.highlightedCode,p.hooks.run("after-highlight",Y),p.hooks.run("complete",Y),T&&T.call(Y.element)}if(p.hooks.run("before-sanity-check",Y),V=Y.element.parentElement,V&&V.nodeName.toLowerCase()==="pre"&&!V.hasAttribute("tabindex")&&V.setAttribute("tabindex","0"),!Y.code){p.hooks.run("complete",Y),T&&T.call(Y.element);return}if(p.hooks.run("before-highlight",Y),!Y.grammar){O(p.util.encode(Y.code));return}if(w&&n.Worker){var H=new Worker(p.filename);H.onmessage=function(re){O(re.data)},H.postMessage(JSON.stringify({language:Y.language,code:Y.code,immediateClose:!0}))}else O(p.highlight(Y.code,Y.grammar,Y.language))},highlight:function(F,w,T){var B={code:F,grammar:w,language:T};if(p.hooks.run("before-tokenize",B),!B.grammar)throw new Error('The language "'+B.language+'" has no grammar.');return B.tokens=p.tokenize(B.code,B.grammar),p.hooks.run("after-tokenize",B),h.stringify(p.util.encode(B.tokens),B.language)},tokenize:function(F,w){var T=w.rest;if(T){for(var B in T)w[B]=T[B];delete w.rest}var _=new D;return g(_,_.head,F),m(F,_,w,_.head,0),b(_)},hooks:{all:{},add:function(F,w){var T=p.hooks.all;T[F]=T[F]||[],T[F].push(w)},run:function(F,w){var T=p.hooks.all[F];if(!(!T||!T.length))for(var B=0,_;_=T[B++];)_(w)}},Token:h};n.Prism=p;function h(F,w,T,B){this.type=F,this.content=w,this.alias=T,this.length=(B||"").length|0}h.stringify=function F(w,T){if(typeof w=="string")return w;if(Array.isArray(w)){var B="";return w.forEach(function(O){B+=F(O,T)}),B}var _={type:w.type,content:F(w.content,T),tag:"span",classes:["token",w.type],attributes:{},language:T},V=w.alias;V&&(Array.isArray(V)?Array.prototype.push.apply(_.classes,V):_.classes.push(V)),p.hooks.run("wrap",_);var U="";for(var Y in _.attributes)U+=" "+Y+'="'+(_.attributes[Y]||"").replace(/"/g,""")+'"';return"<"+_.tag+' class="'+_.classes.join(" ")+'"'+U+">"+_.content+"</"+_.tag+">"};function d(F,w,T,B){F.lastIndex=w;var _=F.exec(T);if(_&&B&&_[1]){var V=_[1].length;_.index+=V,_[0]=_[0].slice(V)}return _}function m(F,w,T,B,_,V){for(var U in T)if(!(!T.hasOwnProperty(U)||!T[U])){var Y=T[U];Y=Array.isArray(Y)?Y:[Y];for(var O=0;O<Y.length;++O){if(V&&V.cause==U+","+O)return;var H=Y[O],re=H.inside,X=!!H.lookbehind,ge=!!H.greedy,Be=H.alias;if(ge&&!H.pattern.global){var J=H.pattern.toString().match(/[imsuy]*$/)[0];H.pattern=RegExp(H.pattern.source,J+"g")}for(var ce=H.pattern||H,oe=B.next,ve=_;oe!==w.tail&&!(V&&ve>=V.reach);ve+=oe.value.length,oe=oe.next){var be=oe.value;if(w.length>F.length)return;if(!(be instanceof h)){var j=1,ee;if(ge){if(ee=d(ce,ve,F,X),!ee||ee.index>=F.length)break;var Oe=ee.index,fe=ee.index+ee[0].length,he=ve;for(he+=oe.value.length;Oe>=he;)oe=oe.next,he+=oe.value.length;if(he-=oe.value.length,ve=he,oe.value instanceof h)continue;for(var Ce=oe;Ce!==w.tail&&(he<fe||typeof Ce.value=="string");Ce=Ce.next)j++,he+=Ce.value.length;j--,be=F.slice(ve,he),ee.index-=ve}else if(ee=d(ce,0,be,X),!ee)continue;var Oe=ee.index,Ue=ee[0],Mt=be.slice(0,Oe),ht=be.slice(Oe+Ue.length),en=ve+be.length;V&&en>V.reach&&(V.reach=en);var dr=oe.prev;Mt&&(dr=g(w,dr,Mt),ve+=Mt.length),x(w,dr,j);var bn=new h(U,re?p.tokenize(Ue,re):Ue,Be,Ue);if(oe=g(w,dr,bn),ht&&g(w,oe,ht),j>1){var du={cause:U+","+O,reach:en};m(F,w,T,oe.prev,ve,du),V&&du.reach>V.reach&&(V.reach=du.reach)}}}}}}function D(){var F={value:null,prev:null,next:null},w={value:null,prev:F,next:null};F.next=w,this.head=F,this.tail=w,this.length=0}function g(F,w,T){var B=w.next,_={value:T,prev:w,next:B};return w.next=_,B.prev=_,F.length++,_}function x(F,w,T){for(var B=w.next,_=0;_<T&&B!==F.tail;_++)B=B.next;w.next=B,B.prev=w,F.length-=_}function b(F){for(var w=[],T=F.head.next;T!==F.tail;)w.push(T.value),T=T.next;return w}if(!n.document)return n.addEventListener&&(p.disableWorkerMessageHandler||n.addEventListener("message",function(F){var w=JSON.parse(F.data),T=w.language,B=w.code,_=w.immediateClose;n.postMessage(p.highlight(B,p.languages[T],T)),_&&n.close()},!1)),p;var C=p.util.currentScript();C&&(p.filename=C.src,C.hasAttribute("data-manual")&&(p.manual=!0));function S(){p.manual||p.highlightAll()}if(!p.manual){var v=document.readyState;v==="loading"||v==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",S):window.requestAnimationFrame?window.requestAnimationFrame(S):window.setTimeout(S,16)}return p})(t);r.exports&&(r.exports=e),typeof Nb<"u"&&(Nb.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(a,u){var l={};l["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[u]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var p={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};p["language-"+u]={pattern:/[\s\S]+/,inside:e.languages[u]};var h={};h[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:p},e.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,a){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:e.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,(function(n){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var u=n.languages.markup;u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))})(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,(function(){if(typeof e>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n="Loading…",a=function(C,S){return"✖ Error "+C+" while fetching file: "+S},u="✖ Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},p="data-src-status",h="loading",d="loaded",m="failed",D="pre[data-src]:not(["+p+'="'+d+'"]):not(['+p+'="'+h+'"])';function g(C,S,v){var F=new XMLHttpRequest;F.open("GET",C,!0),F.onreadystatechange=function(){F.readyState==4&&(F.status<400&&F.responseText?S(F.responseText):F.status>=400?v(a(F.status,F.statusText)):v(u))},F.send(null)}function x(C){var S=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C||"");if(S){var v=Number(S[1]),F=S[2],w=S[3];return F?w?[v,Number(w)]:[v,void 0]:[v,v]}}e.hooks.add("before-highlightall",function(C){C.selector+=", "+D}),e.hooks.add("before-sanity-check",function(C){var S=C.element;if(S.matches(D)){C.code="",S.setAttribute(p,h);var v=S.appendChild(document.createElement("CODE"));v.textContent=n;var F=S.getAttribute("data-src"),w=C.language;if(w==="none"){var T=(/\.(\w+)$/.exec(F)||[,"none"])[1];w=l[T]||T}e.util.setLanguage(v,w),e.util.setLanguage(S,w);var B=e.plugins.autoloader;B&&B.loadLanguages(w),g(F,function(_){S.setAttribute(p,d);var V=x(S.getAttribute("data-range"));if(V){var U=_.split(/\r\n?|\n/g),Y=V[0],O=V[1]==null?U.length:V[1];Y<0&&(Y+=U.length),Y=Math.max(0,Math.min(Y-1,U.length)),O<0&&(O+=U.length),O=Math.max(0,Math.min(O,U.length)),_=U.slice(Y,O).join(`
|
|
263
|
+
`),S.hasAttribute("data-start")||S.setAttribute("data-start",String(Y+1))}v.textContent=_,e.highlightElement(v)},function(_){S.setAttribute(p,m),v.textContent=_})}}),e.plugins.fileHighlight={highlight:function(S){for(var v=(S||document).querySelectorAll(D),F=0,w;w=v[F++];)e.highlightElement(w)}};var b=!1;e.fileHighlight=function(){b||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),b=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(ry)),ry.exports}var g4=D4();const e0=R0(g4);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;var x4=Object.create,lD=Object.defineProperty,E4=Object.getOwnPropertyDescriptor,b4=Object.getOwnPropertyNames,A4=Object.getPrototypeOf,C4=Object.prototype.hasOwnProperty,F4=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),cD=(r,t)=>{for(var e in t)lD(r,e,{get:t[e],enumerable:!0})},v4=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of b4(t))!C4.call(r,a)&&a!==e&&lD(r,a,{get:()=>t[a],enumerable:!(n=E4(t,a))||n.enumerable});return r},S4=(r,t,e)=>(e=r!=null?x4(A4(r)):{},v4(lD(e,"default",{value:r,enumerable:!0}),r)),T4=F4((r,t)=>{var e,n,a,u,l,p,h,d,m,D,g,x,b,C,S,v,F,w,T;b=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,x=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,S=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,g=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,v=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,T=/[\t\v\f\ufeff\p{Zs}]+/yu,d=/\r?\n|[\r\u2028\u2029]/y,m=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,C=/\/\/.*/y,a=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,u=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,l=/[^<>{}]+/y,w=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,F=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,p=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,h=/^(?:return|throw|yield)$/,D=RegExp(d.source),t.exports=function*(B,{jsx:_=!1}={}){var V,U,Y,O,H,re,X,ge,Be,J,ce,oe,ve,be;for({length:re}=B,O=0,H="",be=[{tag:"JS"}],V=[],ce=0,oe=!1;O<re;){switch(ge=be[be.length-1],ge.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(B[O]==="/"&&(w.test(H)||p.test(H))&&(b.lastIndex=O,X=b.exec(B))){O=b.lastIndex,H=X[0],oe=!0,yield{type:"RegularExpressionLiteral",value:X[0],closed:X[1]!==void 0&&X[1]!=="\\"};continue}if(x.lastIndex=O,X=x.exec(B)){switch(ve=X[0],Be=x.lastIndex,J=ve,ve){case"(":H==="?NonExpressionParenKeyword"&&be.push({tag:"JSNonExpressionParen",nesting:ce}),ce++,oe=!1;break;case")":ce--,oe=!0,ge.tag==="JSNonExpressionParen"&&ce===ge.nesting&&(be.pop(),J="?NonExpressionParenEnd",oe=!1);break;case"{":x.lastIndex=0,Y=!F.test(H)&&(w.test(H)||p.test(H)),V.push(Y),oe=!1;break;case"}":switch(ge.tag){case"InterpolationInTemplate":if(V.length===ge.nesting){v.lastIndex=O,X=v.exec(B),O=v.lastIndex,H=X[0],X[1]==="${"?(H="?InterpolationInTemplate",oe=!1,yield{type:"TemplateMiddle",value:X[0]}):(be.pop(),oe=!0,yield{type:"TemplateTail",value:X[0],closed:X[1]==="`"});continue}break;case"InterpolationInJSX":if(V.length===ge.nesting){be.pop(),O+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}oe=V.pop(),J=oe?"?ExpressionBraceEnd":"}";break;case"]":oe=!0;break;case"++":case"--":J=oe?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(_&&(w.test(H)||p.test(H))){be.push({tag:"JSXTag"}),O+=1,H="<",yield{type:"JSXPunctuator",value:ve};continue}oe=!1;break;default:oe=!1}O=Be,H=J,yield{type:"Punctuator",value:ve};continue}if(e.lastIndex=O,X=e.exec(B)){switch(O=e.lastIndex,J=X[0],X[0]){case"for":case"if":case"while":case"with":H!=="."&&H!=="?."&&(J="?NonExpressionParenKeyword")}H=J,oe=!p.test(X[0]),yield{type:X[1]==="#"?"PrivateIdentifier":"IdentifierName",value:X[0]};continue}if(S.lastIndex=O,X=S.exec(B)){O=S.lastIndex,H=X[0],oe=!0,yield{type:"StringLiteral",value:X[0],closed:X[2]!==void 0};continue}if(g.lastIndex=O,X=g.exec(B)){O=g.lastIndex,H=X[0],oe=!0,yield{type:"NumericLiteral",value:X[0]};continue}if(v.lastIndex=O,X=v.exec(B)){O=v.lastIndex,H=X[0],X[1]==="${"?(H="?InterpolationInTemplate",be.push({tag:"InterpolationInTemplate",nesting:V.length}),oe=!1,yield{type:"TemplateHead",value:X[0]}):(oe=!0,yield{type:"NoSubstitutionTemplate",value:X[0],closed:X[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(a.lastIndex=O,X=a.exec(B)){switch(O=a.lastIndex,J=X[0],X[0]){case"<":be.push({tag:"JSXTag"});break;case">":be.pop(),H==="/"||ge.tag==="JSXTagEnd"?(J="?JSX",oe=!0):be.push({tag:"JSXChildren"});break;case"{":be.push({tag:"InterpolationInJSX",nesting:V.length}),J="?InterpolationInJSX",oe=!1;break;case"/":H==="<"&&(be.pop(),be[be.length-1].tag==="JSXChildren"&&be.pop(),be.push({tag:"JSXTagEnd"}))}H=J,yield{type:"JSXPunctuator",value:X[0]};continue}if(n.lastIndex=O,X=n.exec(B)){O=n.lastIndex,H=X[0],yield{type:"JSXIdentifier",value:X[0]};continue}if(u.lastIndex=O,X=u.exec(B)){O=u.lastIndex,H=X[0],yield{type:"JSXString",value:X[0],closed:X[2]!==void 0};continue}break;case"JSXChildren":if(l.lastIndex=O,X=l.exec(B)){O=l.lastIndex,H=X[0],yield{type:"JSXText",value:X[0]};continue}switch(B[O]){case"<":be.push({tag:"JSXTag"}),O++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":be.push({tag:"InterpolationInJSX",nesting:V.length}),O++,H="?InterpolationInJSX",oe=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(T.lastIndex=O,X=T.exec(B)){O=T.lastIndex,yield{type:"WhiteSpace",value:X[0]};continue}if(d.lastIndex=O,X=d.exec(B)){O=d.lastIndex,oe=!1,h.test(H)&&(H="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:X[0]};continue}if(m.lastIndex=O,X=m.exec(B)){O=m.lastIndex,D.test(X[0])&&(oe=!1,h.test(H)&&(H="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:X[0],closed:X[1]!==void 0};continue}if(C.lastIndex=O,X=C.exec(B)){O=C.lastIndex,oe=!1,yield{type:"SingleLineComment",value:X[0]};continue}U=String.fromCodePoint(B.codePointAt(O)),O+=U.length,H=U,oe=!1,yield{type:ge.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:U}}}}),yF={};cD(yF,{__debug:()=>mk,check:()=>dk,doc:()=>pv,format:()=>yv,formatWithCursor:()=>mv,getSupportInfo:()=>fk,util:()=>hv,version:()=>$5});var kc=(r,t)=>(e,n,...a)=>e|1&&n==null?void 0:(t.call(n)??n[r]).apply(n,a),w4=String.prototype.replaceAll??function(r,t){return r.global?this.replace(r,t):this.split(r).join(t)},N4=kc("replaceAll",function(){if(typeof this=="string")return w4}),od=N4,B4=class{diff(t,e,n={}){let a;typeof n=="function"?(a=n,n={}):"callback"in n&&(a=n.callback);let u=this.castInput(t,n),l=this.castInput(e,n),p=this.removeEmpty(this.tokenize(u,n)),h=this.removeEmpty(this.tokenize(l,n));return this.diffWithOptionsObj(p,h,n,a)}diffWithOptionsObj(t,e,n,a){var u;let l=F=>{if(F=this.postProcess(F,n),a){setTimeout(function(){a(F)},0);return}else return F},p=e.length,h=t.length,d=1,m=p+h;n.maxEditLength!=null&&(m=Math.min(m,n.maxEditLength));let D=(u=n.timeout)!==null&&u!==void 0?u:1/0,g=Date.now()+D,x=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(x[0],e,t,0,n);if(x[0].oldPos+1>=h&&b+1>=p)return l(this.buildValues(x[0].lastComponent,e,t));let C=-1/0,S=1/0,v=()=>{for(let F=Math.max(C,-d);F<=Math.min(S,d);F+=2){let w,T=x[F-1],B=x[F+1];T&&(x[F-1]=void 0);let _=!1;if(B){let U=B.oldPos-F;_=B&&0<=U&&U<p}let V=T&&T.oldPos+1<h;if(!_&&!V){x[F]=void 0;continue}if(!V||_&&T.oldPos<B.oldPos?w=this.addToPath(B,!0,!1,0,n):w=this.addToPath(T,!1,!0,1,n),b=this.extractCommon(w,e,t,F,n),w.oldPos+1>=h&&b+1>=p)return l(this.buildValues(w.lastComponent,e,t))||!0;x[F]=w,w.oldPos+1>=h&&(S=Math.min(S,F-1)),b+1>=p&&(C=Math.max(C,F+1))}d++};if(a)(function F(){setTimeout(function(){if(d>m||Date.now()>g)return a(void 0);v()||F()},0)})();else for(;d<=m&&Date.now()<=g;){let F=v();if(F)return F}}addToPath(t,e,n,a,u){let l=t.lastComponent;return l&&!u.oneChangePerToken&&l.added===e&&l.removed===n?{oldPos:t.oldPos+a,lastComponent:{count:l.count+1,added:e,removed:n,previousComponent:l.previousComponent}}:{oldPos:t.oldPos+a,lastComponent:{count:1,added:e,removed:n,previousComponent:l}}}extractCommon(t,e,n,a,u){let l=e.length,p=n.length,h=t.oldPos,d=h-a,m=0;for(;d+1<l&&h+1<p&&this.equals(n[h+1],e[d+1],u);)d++,h++,m++,u.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return m&&!u.oneChangePerToken&&(t.lastComponent={count:m,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=h,d}equals(t,e,n){return n.comparator?n.comparator(t,e):t===e||!!n.ignoreCase&&t.toLowerCase()===e.toLowerCase()}removeEmpty(t){let e=[];for(let n=0;n<t.length;n++)t[n]&&e.push(t[n]);return e}castInput(t,e){return t}tokenize(t,e){return Array.from(t)}join(t){return t.join("")}postProcess(t,e){return t}get useLongestToken(){return!1}buildValues(t,e,n){let a=[],u;for(;t;)a.push(t),u=t.previousComponent,delete t.previousComponent,t=u;a.reverse();let l=a.length,p=0,h=0,d=0;for(;p<l;p++){let m=a[p];if(m.removed)m.value=this.join(n.slice(d,d+m.count)),d+=m.count;else{if(!m.added&&this.useLongestToken){let D=e.slice(h,h+m.count);D=D.map(function(g,x){let b=n[d+x];return b.length>g.length?b:g}),m.value=this.join(D)}else m.value=this.join(e.slice(h,h+m.count));h+=m.count,m.added||(d+=m.count)}}return a}},P4=class extends B4{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},k4=new P4;function I4(r,t,e){return k4.diff(r,t,e)}var M4=()=>{},O4=M4,DF="cr",gF="crlf",L4="lf",R4=L4,pD="\r",xF=`\r
|
|
264
|
+
`,ld=`
|
|
265
|
+
`,_4=ld;function j4(r){let t=r.indexOf(pD);return t!==-1?r.charAt(t+1)===ld?gF:DF:R4}function hD(r){return r===DF?pD:r===gF?xF:_4}var $4=new Map([[ld,/\n/gu],[pD,/\r/gu],[xF,/\r\n/gu]]);function EF(r,t){var n;let e=$4.get(t);return((n=r.match(e))==null?void 0:n.length)??0}var z4=/\r\n?/gu;function U4(r){return od(0,r,z4,ld)}function q4(r){return this[r<0?this.length+r:r]}var H4=kc("at",function(){if(Array.isArray(this)||typeof this=="string")return q4}),Vt=H4,nu="string",Xs="array",ai="cursor",Ws="indent",Zs="align",ea="trim",Lr="group",as="fill",Gr="if-break",ta="indent-if-break",ra="line-suffix",na="line-suffix-boundary",ur="line",is="label",Dn="break-parent",bF=new Set([ai,Ws,Zs,ea,Lr,as,Gr,ta,ra,na,ur,is,Dn]);function V4(r){let t=r.length;for(;t>0&&(r[t-1]==="\r"||r[t-1]===`
|
|
266
|
+
`);)t--;return t<r.length?r.slice(0,t):r}function J4(r){if(typeof r=="string")return nu;if(Array.isArray(r))return Xs;if(!r)return;let{type:t}=r;if(bF.has(t))return t}var su=J4,X4=r=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(r);function G4(r){let t=r===null?"null":typeof r;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
267
|
+
Expected it to be 'string' or 'object'.`;if(su(r))throw new Error("doc is valid.");let e=Object.prototype.toString.call(r);if(e!=="[object Object]")return`Unexpected doc '${e}'.`;let n=X4([...bF].map(a=>`'${a}'`));return`Unexpected doc.type '${r.type}'.
|
|
268
|
+
Expected it to be ${n}.`}var K4=class extends Error{constructor(e){super(G4(e));pe(this,"name","InvalidDocError");this.doc=e}},Fo=K4,hA={};function Q4(r,t,e,n){let a=[r];for(;a.length>0;){let u=a.pop();if(u===hA){e(a.pop());continue}e&&a.push(u,hA);let l=su(u);if(!l)throw new Fo(u);if((t==null?void 0:t(u))!==!1)switch(l){case Xs:case as:{let p=l===Xs?u:u.parts;for(let h=p.length,d=h-1;d>=0;--d)a.push(p[d]);break}case Gr:a.push(u.flatContents,u.breakContents);break;case Lr:if(n&&u.expandedStates)for(let p=u.expandedStates.length,h=p-1;h>=0;--h)a.push(u.expandedStates[h]);else a.push(u.contents);break;case Zs:case Ws:case ta:case is:case ra:a.push(u.contents);break;case nu:case ai:case ea:case na:case ur:case Dn:break;default:throw new Fo(u)}}}var dD=Q4;function cd(r,t){if(typeof r=="string")return t(r);let e=new Map;return n(r);function n(u){if(e.has(u))return e.get(u);let l=a(u);return e.set(u,l),l}function a(u){switch(su(u)){case Xs:return t(u.map(n));case as:return t({...u,parts:u.parts.map(n)});case Gr:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case Lr:{let{expandedStates:l,contents:p}=u;return l?(l=l.map(n),p=l[0]):p=n(p),t({...u,contents:p,expandedStates:l})}case Zs:case Ws:case ta:case is:case ra:return t({...u,contents:n(u.contents)});case nu:case ai:case ea:case na:case ur:case Dn:return t(u);default:throw new Fo(u)}}}function fD(r,t,e){let n=e,a=!1;function u(l){if(a)return!1;let p=t(l);p!==void 0&&(a=!0,n=p)}return dD(r,u),n}function Y4(r){if(r.type===Lr&&r.break||r.type===ur&&r.hard||r.type===Dn)return!0}function W4(r){return fD(r,Y4,!1)}function dA(r){if(r.length>0){let t=Vt(0,r,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Z4(r){let t=new Set,e=[];function n(u){if(u.type===Dn&&dA(e),u.type===Lr){if(e.push(u),t.has(u))return!1;t.add(u)}}function a(u){u.type===Lr&&e.pop().break&&dA(e)}dD(r,n,a,!0)}function e9(r){return r.type===ur&&!r.hard?r.soft?"":" ":r.type===Gr?r.flatContents:r}function t9(r){return cd(r,e9)}function fA(r){for(r=[...r];r.length>=2&&Vt(0,r,-2).type===ur&&Vt(0,r,-1).type===Dn;)r.length-=2;if(r.length>0){let t=nc(Vt(0,r,-1));r[r.length-1]=t}return r}function nc(r){switch(su(r)){case Ws:case ta:case Lr:case ra:case is:{let t=nc(r.contents);return{...r,contents:t}}case Gr:return{...r,breakContents:nc(r.breakContents),flatContents:nc(r.flatContents)};case as:return{...r,parts:fA(r.parts)};case Xs:return fA(r);case nu:return V4(r);case Zs:case ai:case ea:case na:case ur:case Dn:break;default:throw new Fo(r)}return r}function AF(r){return nc(n9(r))}function r9(r){switch(su(r)){case as:if(r.parts.every(t=>t===""))return"";break;case Lr:if(!r.contents&&!r.id&&!r.break&&!r.expandedStates)return"";if(r.contents.type===Lr&&r.contents.id===r.id&&r.contents.break===r.break&&r.contents.expandedStates===r.expandedStates)return r.contents;break;case Zs:case Ws:case ta:case ra:if(!r.contents)return"";break;case Gr:if(!r.flatContents&&!r.breakContents)return"";break;case Xs:{let t=[];for(let e of r){if(!e)continue;let[n,...a]=Array.isArray(e)?e:[e];typeof n=="string"&&typeof Vt(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...a)}return t.length===0?"":t.length===1?t[0]:t}case nu:case ai:case ea:case na:case ur:case is:case Dn:break;default:throw new Fo(r)}return r}function n9(r){return cd(r,t=>r9(t))}function s9(r,t=NF){return cd(r,e=>typeof e=="string"?SF(t,e.split(`
|
|
269
|
+
`)):e)}function a9(r){if(r.type===ur)return!0}function i9(r){return fD(r,a9,!1)}function vh(r,t){return r.type===is?{...r,contents:t(r.contents)}:t(r)}var u9=O4;function qh(r){return{type:Ws,contents:r}}function vo(r,t){return{type:Zs,contents:t,n:r}}function o9(r){return vo(Number.NEGATIVE_INFINITY,r)}function CF(r){return vo({type:"root"},r)}function l9(r){return vo(-1,r)}function FF(r,t,e){let n=r;if(t>0){for(let a=0;a<Math.floor(t/e);++a)n=qh(n);n=vo(t%e,n),n=vo(Number.NEGATIVE_INFINITY,n)}return n}var pd={type:Dn},$i={type:ai};function c9(r){return{type:as,parts:r}}function vF(r,t={}){return u9(t.expandedStates),{type:Lr,id:t.id,contents:r,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function p9(r,t){return vF(r[0],{...t,expandedStates:r})}function h9(r,t="",e={}){return{type:Gr,breakContents:r,flatContents:t,groupId:e.groupId}}function d9(r,t){return{type:ta,contents:r,groupId:t.groupId,negate:t.negate}}function SF(r,t){let e=[];for(let n=0;n<t.length;n++)n!==0&&e.push(r),e.push(t[n]);return e}function f9(r,t){return r?{type:is,label:r,contents:t}:t}var TF={type:ur},m9={type:ur,soft:!0},mD={type:ur,hard:!0},zs=[mD,pd],wF={type:ur,hard:!0,literal:!0},NF=[wF,pd];function t0(r){return{type:ra,contents:r}}var y9={type:na},D9={type:ea};function Ps(r){var t;if(!r)return"";if(Array.isArray(r)){let e=[];for(let n of r)if(Array.isArray(n))e.push(...Ps(n));else{let a=Ps(n);a!==""&&e.push(a)}return e}return r.type===Gr?{...r,breakContents:Ps(r.breakContents),flatContents:Ps(r.flatContents)}:r.type===Lr?{...r,contents:Ps(r.contents),expandedStates:(t=r.expandedStates)==null?void 0:t.map(Ps)}:r.type===as?{type:"fill",parts:r.parts.map(Ps)}:r.contents?{...r,contents:Ps(r.contents)}:r}function g9(r){let t=Object.create(null),e=new Set;return n(Ps(r));function n(u,l,p){var h,d;if(typeof u=="string")return JSON.stringify(u);if(Array.isArray(u)){let m=u.map(n).filter(Boolean);return m.length===1?m[0]:`[${m.join(", ")}]`}if(u.type===ur){let m=((h=p==null?void 0:p[l+1])==null?void 0:h.type)===Dn;return u.literal?m?"literalline":"literallineWithoutBreakParent":u.hard?m?"hardline":"hardlineWithoutBreakParent":u.soft?"softline":"line"}if(u.type===Dn)return((d=p==null?void 0:p[l-1])==null?void 0:d.type)===ur&&p[l-1].hard?void 0:"breakParent";if(u.type===ea)return"trim";if(u.type===Ws)return"indent("+n(u.contents)+")";if(u.type===Zs)return u.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(u.contents)+")":u.n<0?"dedent("+n(u.contents)+")":u.n.type==="root"?"markAsRoot("+n(u.contents)+")":"align("+JSON.stringify(u.n)+", "+n(u.contents)+")";if(u.type===Gr)return"ifBreak("+n(u.breakContents)+(u.flatContents?", "+n(u.flatContents):"")+(u.groupId?(u.flatContents?"":', ""')+`, { groupId: ${a(u.groupId)} }`:"")+")";if(u.type===ta){let m=[];u.negate&&m.push("negate: true"),u.groupId&&m.push(`groupId: ${a(u.groupId)}`);let D=m.length>0?`, { ${m.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${D})`}if(u.type===Lr){let m=[];u.break&&u.break!=="propagated"&&m.push("shouldBreak: true"),u.id&&m.push(`id: ${a(u.id)}`);let D=m.length>0?`, { ${m.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(g=>n(g)).join(",")}]${D})`:`group(${n(u.contents)}${D})`}if(u.type===as)return`fill([${u.parts.map(m=>n(m)).join(", ")}])`;if(u.type===ra)return"lineSuffix("+n(u.contents)+")";if(u.type===na)return"lineSuffixBoundary";if(u.type===is)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;if(u.type===ai)return"cursor";throw new Error("Unknown doc type "+u.type)}function a(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in t)return t[u];let l=u.description||"symbol";for(let p=0;;p++){let h=l+(p>0?` #${p}`:"");if(!e.has(h))return e.add(h),t[u]=`Symbol.for(${JSON.stringify(h)})`}}}var x9=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function E9(r){return r===12288||r>=65281&&r<=65376||r>=65504&&r<=65510}function b9(r){return r>=4352&&r<=4447||r===8986||r===8987||r===9001||r===9002||r>=9193&&r<=9196||r===9200||r===9203||r===9725||r===9726||r===9748||r===9749||r>=9776&&r<=9783||r>=9800&&r<=9811||r===9855||r>=9866&&r<=9871||r===9875||r===9889||r===9898||r===9899||r===9917||r===9918||r===9924||r===9925||r===9934||r===9940||r===9962||r===9970||r===9971||r===9973||r===9978||r===9981||r===9989||r===9994||r===9995||r===10024||r===10060||r===10062||r>=10067&&r<=10069||r===10071||r>=10133&&r<=10135||r===10160||r===10175||r===11035||r===11036||r===11088||r===11093||r>=11904&&r<=11929||r>=11931&&r<=12019||r>=12032&&r<=12245||r>=12272&&r<=12287||r>=12289&&r<=12350||r>=12353&&r<=12438||r>=12441&&r<=12543||r>=12549&&r<=12591||r>=12593&&r<=12686||r>=12688&&r<=12773||r>=12783&&r<=12830||r>=12832&&r<=12871||r>=12880&&r<=42124||r>=42128&&r<=42182||r>=43360&&r<=43388||r>=44032&&r<=55203||r>=63744&&r<=64255||r>=65040&&r<=65049||r>=65072&&r<=65106||r>=65108&&r<=65126||r>=65128&&r<=65131||r>=94176&&r<=94180||r>=94192&&r<=94198||r>=94208&&r<=101589||r>=101631&&r<=101662||r>=101760&&r<=101874||r>=110576&&r<=110579||r>=110581&&r<=110587||r===110589||r===110590||r>=110592&&r<=110882||r===110898||r>=110928&&r<=110930||r===110933||r>=110948&&r<=110951||r>=110960&&r<=111355||r>=119552&&r<=119638||r>=119648&&r<=119670||r===126980||r===127183||r===127374||r>=127377&&r<=127386||r>=127488&&r<=127490||r>=127504&&r<=127547||r>=127552&&r<=127560||r===127568||r===127569||r>=127584&&r<=127589||r>=127744&&r<=127776||r>=127789&&r<=127797||r>=127799&&r<=127868||r>=127870&&r<=127891||r>=127904&&r<=127946||r>=127951&&r<=127955||r>=127968&&r<=127984||r===127988||r>=127992&&r<=128062||r===128064||r>=128066&&r<=128252||r>=128255&&r<=128317||r>=128331&&r<=128334||r>=128336&&r<=128359||r===128378||r===128405||r===128406||r===128420||r>=128507&&r<=128591||r>=128640&&r<=128709||r===128716||r>=128720&&r<=128722||r>=128725&&r<=128728||r>=128732&&r<=128735||r===128747||r===128748||r>=128756&&r<=128764||r>=128992&&r<=129003||r===129008||r>=129292&&r<=129338||r>=129340&&r<=129349||r>=129351&&r<=129535||r>=129648&&r<=129660||r>=129664&&r<=129674||r>=129678&&r<=129734||r===129736||r>=129741&&r<=129756||r>=129759&&r<=129770||r>=129775&&r<=129784||r>=131072&&r<=196605||r>=196608&&r<=262141}var A9="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",C9=/[^\x20-\x7F]/u,F9=new Set(A9);function v9(r){if(!r)return 0;if(!C9.test(r))return r.length;r=r.replace(x9(),e=>F9.has(e)?" ":" ");let t=0;for(let e of r){let n=e.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=E9(n)||b9(n)?2:1)}return t}var yD=v9,S9={type:0},T9={type:1},BF={value:"",length:0,queue:[],get root(){return BF}};function PF(r,t,e){let n=t.type===1?r.queue.slice(0,-1):[...r.queue,t],a="",u=0,l=0,p=0;for(let b of n)switch(b.type){case 0:m(),e.useTabs?h(1):d(e.tabWidth);break;case 3:{let{string:C}=b;m(),a+=C,u+=C.length;break}case 2:{let{width:C}=b;l+=1,p+=C;break}default:throw new Error(`Unexpected indent comment '${b.type}'.`)}return g(),{...r,value:a,length:u,queue:n};function h(b){a+=" ".repeat(b),u+=e.tabWidth*b}function d(b){a+=" ".repeat(b),u+=b}function m(){e.useTabs?D():g()}function D(){l>0&&h(l),x()}function g(){p>0&&d(p),x()}function x(){l=0,p=0}}function w9(r,t,e){if(!t)return r;if(t.type==="root")return{...r,root:r};if(t===Number.NEGATIVE_INFINITY)return r.root;let n;return typeof t=="number"?t<0?n=T9:n={type:2,width:t}:n={type:3,string:t},PF(r,n,e)}function N9(r,t){return PF(r,S9,t)}function B9(r){let t=0;for(let e=r.length-1;e>=0;e--){let n=r[e];if(n===" "||n===" ")t++;else break}return t}function kF(r){let t=B9(r);return{text:t===0?r:r.slice(0,r.length-t),count:t}}var kr=Symbol("MODE_BREAK"),Hn=Symbol("MODE_FLAT"),r0=Symbol("DOC_FILL_PRINTED_LENGTH");function ch(r,t,e,n,a,u){if(e===Number.POSITIVE_INFINITY)return!0;let l=t.length,p=!1,h=[r],d="";for(;e>=0;){if(h.length===0){if(l===0)return!0;h.push(t[--l]);continue}let{mode:m,doc:D}=h.pop(),g=su(D);switch(g){case nu:D&&(p&&(d+=" ",e-=1,p=!1),d+=D,e-=yD(D));break;case Xs:case as:{let x=g===Xs?D:D.parts,b=D[r0]??0;for(let C=x.length-1;C>=b;C--)h.push({mode:m,doc:x[C]});break}case Ws:case Zs:case ta:case is:h.push({mode:m,doc:D.contents});break;case ea:{let{text:x,count:b}=kF(d);d=x,e+=b;break}case Lr:{if(u&&D.break)return!1;let x=D.break?kr:m,b=D.expandedStates&&x===kr?Vt(0,D.expandedStates,-1):D.contents;h.push({mode:x,doc:b});break}case Gr:{let x=(D.groupId?a[D.groupId]||Hn:m)===kr?D.breakContents:D.flatContents;x&&h.push({mode:m,doc:x});break}case ur:if(m===kr||D.hard)return!0;D.soft||(p=!0);break;case ra:n=!0;break;case na:if(n)return!1;break}}return!1}function hd(r,t){let e=Object.create(null),n=t.printWidth,a=hD(t.endOfLine),u=0,l=[{indent:BF,mode:kr,doc:r}],p="",h=!1,d=[],m=[],D=[],g=[],x=0;for(Z4(r);l.length>0;){let{indent:F,mode:w,doc:T}=l.pop();switch(su(T)){case nu:{let B=a!==`
|
|
270
|
+
`?od(0,T,`
|
|
271
|
+
`,a):T;B&&(p+=B,l.length>0&&(u+=yD(B)));break}case Xs:for(let B=T.length-1;B>=0;B--)l.push({indent:F,mode:w,doc:T[B]});break;case ai:if(m.length>=2)throw new Error("There are too many 'cursor' in doc.");m.push(x+p.length);break;case Ws:l.push({indent:N9(F,t),mode:w,doc:T.contents});break;case Zs:l.push({indent:w9(F,T.n,t),mode:w,doc:T.contents});break;case ea:v();break;case Lr:switch(w){case Hn:if(!h){l.push({indent:F,mode:T.break?kr:Hn,doc:T.contents});break}case kr:{h=!1;let B={indent:F,mode:Hn,doc:T.contents},_=n-u,V=d.length>0;if(!T.break&&ch(B,l,_,V,e))l.push(B);else if(T.expandedStates){let U=Vt(0,T.expandedStates,-1);if(T.break){l.push({indent:F,mode:kr,doc:U});break}else for(let Y=1;Y<T.expandedStates.length+1;Y++)if(Y>=T.expandedStates.length){l.push({indent:F,mode:kr,doc:U});break}else{let O=T.expandedStates[Y],H={indent:F,mode:Hn,doc:O};if(ch(H,l,_,V,e)){l.push(H);break}}}else l.push({indent:F,mode:kr,doc:T.contents});break}}T.id&&(e[T.id]=Vt(0,l,-1).mode);break;case as:{let B=n-u,_=T[r0]??0,{parts:V}=T,U=V.length-_;if(U===0)break;let Y=V[_+0],O=V[_+1],H={indent:F,mode:Hn,doc:Y},re={indent:F,mode:kr,doc:Y},X=ch(H,[],B,d.length>0,e,!0);if(U===1){X?l.push(H):l.push(re);break}let ge={indent:F,mode:Hn,doc:O},Be={indent:F,mode:kr,doc:O};if(U===2){X?l.push(ge,H):l.push(Be,re);break}let J=V[_+2],ce={indent:F,mode:w,doc:{...T,[r0]:_+2}},oe=ch({indent:F,mode:Hn,doc:[Y,O,J]},[],B,d.length>0,e,!0);l.push(ce),oe?l.push(ge,H):X?l.push(Be,H):l.push(Be,re);break}case Gr:case ta:{let B=T.groupId?e[T.groupId]:w;if(B===kr){let _=T.type===Gr?T.breakContents:T.negate?T.contents:qh(T.contents);_&&l.push({indent:F,mode:w,doc:_})}if(B===Hn){let _=T.type===Gr?T.flatContents:T.negate?qh(T.contents):T.contents;_&&l.push({indent:F,mode:w,doc:_})}break}case ra:d.push({indent:F,mode:w,doc:T.contents});break;case na:d.length>0&&l.push({indent:F,mode:w,doc:mD});break;case ur:switch(w){case Hn:if(T.hard)h=!0;else{T.soft||(p+=" ",u+=1);break}case kr:if(d.length>0){l.push({indent:F,mode:w,doc:T},...d.reverse()),d.length=0;break}T.literal?(p+=a,u=0,F.root&&(F.root.value&&(p+=F.root.value),u=F.root.length)):(v(),p+=a+F.value,u=F.length);break}break;case is:l.push({indent:F,mode:w,doc:T.contents});break;case Dn:break;default:throw new Fo(T)}l.length===0&&d.length>0&&(l.push(...d.reverse()),d.length=0)}let b=D.join("")+p,C=[...g,...m];if(C.length!==2)return{formatted:b};let S=C[0];return{formatted:b,cursorNodeStart:S,cursorNodeText:b.slice(S,Vt(0,C,-1))};function v(){let{text:F,count:w}=kF(p);F&&(D.push(F),x+=F.length),p="",u-=w,m.length>0&&(g.push(...m.map(T=>Math.min(T,x))),m.length=0)}}function P9(r,t,e=0){let n=0;for(let a=e;a<r.length;++a)r[a]===" "?n=n+t-n%t:n++;return n}var DD=P9,Vs,n0,Sh,sC,k9=(sC=class{constructor(t){Se(this,Vs);this.stack=[t]}get key(){let{stack:t,siblings:e}=this;return Vt(0,t,e===null?-2:-4)??null}get index(){return this.siblings===null?null:Vt(0,this.stack,-2)}get node(){return Vt(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:t}=this,e=Vt(0,t,-3);return Array.isArray(e)?e:null}get next(){let{siblings:t}=this;return t===null?null:t[this.index+1]}get previous(){let{siblings:t}=this;return t===null?null:t[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:t,index:e}=this;return t!==null&&e===t.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Ie(this,Vs,Sh).call(this)]}getName(){let{stack:t}=this,{length:e}=t;return e>1?Vt(0,t,-2):null}getValue(){return Vt(0,this.stack,-1)}getNode(t=0){let e=Ie(this,Vs,n0).call(this,t);return e===-1?null:this.stack[e]}getParentNode(t=0){return this.getNode(t+1)}call(t,...e){let{stack:n}=this,{length:a}=n,u=Vt(0,n,-1);for(let l of e)u=u==null?void 0:u[l],n.push(l,u);try{return t(this)}finally{n.length=a}}callParent(t,e=0){let n=Ie(this,Vs,n0).call(this,e+1),a=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...a)}}each(t,...e){let{stack:n}=this,{length:a}=n,u=Vt(0,n,-1);for(let l of e)u=u[l],n.push(l,u);try{for(let l=0;l<u.length;++l)n.push(l,u[l]),t(this,l,u),n.length-=2}finally{n.length=a}}map(t,...e){let n=[];return this.each((a,u,l)=>{n[u]=t(a,u,l)},...e),n}match(...t){let e=this.stack.length-1,n=null,a=this.stack[e--];for(let u of t){if(a===void 0)return!1;let l=null;if(typeof n=="number"&&(l=n,n=this.stack[e--],a=this.stack[e--]),u&&!u(a,n,l))return!1;n=this.stack[e--],a=this.stack[e--]}return!0}findAncestor(t){for(let e of Ie(this,Vs,Sh).call(this))if(t(e))return e}hasAncestor(t){for(let e of Ie(this,Vs,Sh).call(this))if(t(e))return!0;return!1}},Vs=new WeakSet,n0=function(t){let{stack:e}=this;for(let n=e.length-1;n>=0;n-=2)if(!Array.isArray(e[n])&&--t<0)return n;return-1},Sh=function*(){let{stack:t}=this;for(let e=t.length-3;e>=0;e-=2){let n=t[e];Array.isArray(n)||(yield n)}},sC),I9=k9;function M9(r){return r!==null&&typeof r=="object"}var gD=M9;function Ic(r){return(t,e,n)=>{let a=!!(n!=null&&n.backwards);if(e===!1)return!1;let{length:u}=t,l=e;for(;l>=0&&l<u;){let p=t.charAt(l);if(r instanceof RegExp){if(!r.test(p))return l}else if(!r.includes(p))return l;a?l--:l++}return l===-1||l===u?l:!1}}var O9=Ic(/\s/u),Za=Ic(" "),IF=Ic(",; "),MF=Ic(/[^\n\r]/u),mA=r=>r===`
|
|
272
|
+
`||r==="\r"||r==="\u2028"||r==="\u2029";function L9(r,t,e){let n=!!(e!=null&&e.backwards);if(t===!1)return!1;let a=r.charAt(t);if(n){if(r.charAt(t-1)==="\r"&&a===`
|
|
273
|
+
`)return t-2;if(mA(a))return t-1}else{if(a==="\r"&&r.charAt(t+1)===`
|
|
274
|
+
`)return t+2;if(mA(a))return t+1}return t}var tu=L9;function R9(r,t,e={}){let n=Za(r,e.backwards?t-1:t,e),a=tu(r,n,e);return n!==a}var Qa=R9;function _9(r){return Array.isArray(r)&&r.length>0}var j9=_9;function*dd(r,t){let{getVisitorKeys:e,filter:n=()=>!0}=t,a=u=>gD(u)&&n(u);for(let u of e(r)){let l=r[u];if(Array.isArray(l))for(let p of l)a(p)&&(yield p);else a(l)&&(yield l)}}function*$9(r,t){let e=[r];for(let n=0;n<e.length;n++){let a=e[n];for(let u of dd(a,t))yield u,e.push(u)}}function z9(r,t){return dd(r,t).next().done}function OF(r,t,e){var d;let{cache:n}=e;if(n.has(r))return n.get(r);let{filter:a}=e;if(!a)return[];let u,l=(((d=e.getChildren)==null?void 0:d.call(e,r,e))??[...dd(r,{getVisitorKeys:e.getVisitorKeys})]).flatMap(m=>(u??(u=[r,...t]),a(m,u)?[m]:OF(m,u,e))),{locStart:p,locEnd:h}=e;return l.sort((m,D)=>p(m)-p(D)||h(m)-h(D)),n.set(r,l),l}var LF=OF;function U9(r){let t=r.type||r.kind||"(unknown type)",e=String(r.name||r.id&&(typeof r.id=="object"?r.id.name:r.id)||r.key&&(typeof r.key=="object"?r.key.name:r.key)||r.value&&(typeof r.value=="object"?"":String(r.value))||r.operator||"");return e.length>20&&(e=e.slice(0,19)+"…"),t+(e?" "+e:"")}function xD(r,t){(r.comments??(r.comments=[])).push(t),t.printed=!1,t.nodeDescription=U9(r)}function sc(r,t){t.leading=!0,t.trailing=!1,xD(r,t)}function Oi(r,t,e){t.leading=!1,t.trailing=!1,e&&(t.marker=e),xD(r,t)}function ac(r,t){t.leading=!1,t.trailing=!0,xD(r,t)}var RF=new WeakMap;function _F(r,t,e,n,a=[]){let{locStart:u,locEnd:l}=e,p=u(t),h=l(t),d=LF(r,a,{cache:RF,locStart:u,locEnd:l,getVisitorKeys:e.getVisitorKeys,filter:e.printer.canAttachComment,getChildren:e.printer.getCommentChildNodes}),m,D,g=0,x=d.length;for(;g<x;){let b=g+x>>1,C=d[b],S=u(C),v=l(C);if(S<=p&&h<=v)return _F(C,t,e,C,[C,...a]);if(v<=p){m=C,g=b+1;continue}if(h<=S){D=C,x=b;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:b}=n,C=sy(b,t,e);m&&sy(b,m,e)!==C&&(m=null),D&&sy(b,D,e)!==C&&(D=null)}return{enclosingNode:n,precedingNode:m,followingNode:D}}var ny=()=>!1;function q9(r,t){let{comments:e}=r;if(delete r.comments,!j9(e)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:a},handleComments:u={}},originalText:l}=t,{ownLine:p=ny,endOfLine:h=ny,remaining:d=ny}=u,m=e.map((D,g)=>({..._F(r,D,t),comment:D,text:l,options:t,ast:r,isLastComment:e.length-1===g}));for(let[D,g]of m.entries()){let{comment:x,precedingNode:b,enclosingNode:C,followingNode:S,text:v,options:F,ast:w,isLastComment:T}=g,B;if(a?B=[g]:(x.enclosingNode=C,x.precedingNode=b,x.followingNode=S,B=[x,v,F,w,T]),H9(v,F,m,D))x.placement="ownLine",p(...B)||(S?sc(S,x):b?ac(b,x):Oi(C||w,x));else if(V9(v,F,m,D))x.placement="endOfLine",h(...B)||(b?ac(b,x):S?sc(S,x):Oi(C||w,x));else if(x.placement="remaining",!d(...B))if(b&&S){let _=n.length;_>0&&n[_-1].followingNode!==S&&yA(n,F),n.push(g)}else b?ac(b,x):S?sc(S,x):Oi(C||w,x)}if(yA(n,t),!a)for(let D of e)delete D.precedingNode,delete D.enclosingNode,delete D.followingNode}var jF=r=>!/[\S\n\u2028\u2029]/u.test(r);function H9(r,t,e,n){let{comment:a,precedingNode:u}=e[n],{locStart:l,locEnd:p}=t,h=l(a);if(u)for(let d=n-1;d>=0;d--){let{comment:m,precedingNode:D}=e[d];if(D!==u||!jF(r.slice(p(m),h)))break;h=l(m)}return Qa(r,h,{backwards:!0})}function V9(r,t,e,n){let{comment:a,followingNode:u}=e[n],{locStart:l,locEnd:p}=t,h=p(a);if(u)for(let d=n+1;d<e.length;d++){let{comment:m,followingNode:D}=e[d];if(D!==u||!jF(r.slice(h,l(m))))break;h=p(m)}return Qa(r,h)}function yA(r,t){var p,h;let e=r.length;if(e===0)return;let{precedingNode:n,followingNode:a}=r[0],u=t.locStart(a),l;for(l=e;l>0;--l){let{comment:d,precedingNode:m,followingNode:D}=r[l-1],g=t.originalText.slice(t.locEnd(d),u);if(((h=(p=t.printer).isGap)==null?void 0:h.call(p,g,t))??/^[\s(]*$/u.test(g))u=t.locStart(d);else break}for(let[d,{comment:m}]of r.entries())d<l?ac(n,m):sc(a,m);for(let d of[n,a])d.comments&&d.comments.length>1&&d.comments.sort((m,D)=>t.locStart(m)-t.locStart(D));r.length=0}function sy(r,t,e){let n=e.locStart(t)-1;for(let a=1;a<r.length;++a)if(n<e.locStart(r[a]))return a-1;return 0}function J9(r,t){let e=t-1;e=Za(r,e,{backwards:!0}),e=tu(r,e,{backwards:!0}),e=Za(r,e,{backwards:!0});let n=tu(r,e,{backwards:!0});return e!==n}var ED=J9;function $F(r,t){let e=r.node;return e.printed=!0,t.printer.printComment(r,t)}function X9(r,t){var d;let e=r.node,n=[$F(r,t)],{printer:a,originalText:u,locStart:l,locEnd:p}=t;if((d=a.isBlockComment)!=null&&d.call(a,e)){let m=Qa(u,p(e))?Qa(u,l(e),{backwards:!0})?zs:TF:" ";n.push(m)}else n.push(zs);let h=tu(u,Za(u,p(e)));return h!==!1&&Qa(u,h)&&n.push(zs),n}function G9(r,t,e){var d;let n=r.node,a=$F(r,t),{printer:u,originalText:l,locStart:p}=t,h=(d=u.isBlockComment)==null?void 0:d.call(u,n);if(e!=null&&e.hasLineSuffix&&!(e!=null&&e.isBlock)||Qa(l,p(n),{backwards:!0})){let m=ED(l,p(n));return{doc:t0([zs,m?zs:"",a]),isBlock:h,hasLineSuffix:!0}}return!h||e!=null&&e.hasLineSuffix?{doc:[t0([" ",a]),pd],isBlock:h,hasLineSuffix:!0}:{doc:[" ",a],isBlock:h,hasLineSuffix:!1}}function K9(r,t){let e=r.node;if(!e)return{};let n=t[Symbol.for("printedComments")];if((e.comments||[]).filter(p=>!n.has(p)).length===0)return{leading:"",trailing:""};let a=[],u=[],l;return r.each(()=>{let p=r.node;if(n!=null&&n.has(p))return;let{leading:h,trailing:d}=p;h?a.push(X9(r,t)):d&&(l=G9(r,t,l),u.push(l.doc))},"comments"),{leading:a,trailing:u}}function Q9(r,t,e){let{leading:n,trailing:a}=K9(r,e);return!n&&!a?t:vh(t,u=>[n,u,a])}function Y9(r){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:e}=r;for(let n of t){if(!n.printed&&!e.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var zF=class extends Error{constructor(){super(...arguments);pe(this,"name","ConfigError")}},DA=class extends Error{constructor(){super(...arguments);pe(this,"name","UndefinedParserError")}},W9={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
275
|
+
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:r=>typeof r=="string"||typeof r=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:r=>typeof r=="string"||typeof r=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
276
|
+
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
277
|
+
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function UF({plugins:r=[],showDeprecated:t=!1}={}){let e=r.flatMap(a=>a.languages??[]),n=[];for(let a of e7(Object.assign({},...r.map(({options:u})=>u),W9)))!t&&a.deprecated||(Array.isArray(a.choices)&&(t||(a.choices=a.choices.filter(u=>!u.deprecated)),a.name==="parser"&&(a.choices=[...a.choices,...Z9(a.choices,e,r)])),a.pluginDefaults=Object.fromEntries(r.filter(u=>{var l;return((l=u.defaultOptions)==null?void 0:l[a.name])!==void 0}).map(u=>[u.name,u.defaultOptions[a.name]])),n.push(a));return{languages:e,options:n}}function*Z9(r,t,e){let n=new Set(r.map(a=>a.value));for(let a of t)if(a.parsers){for(let u of a.parsers)if(!n.has(u)){n.add(u);let l=e.find(h=>h.parsers&&Object.prototype.hasOwnProperty.call(h.parsers,u)),p=a.name;l!=null&&l.name&&(p+=` (plugin: ${l.name})`),yield{value:u,description:p}}}}function e7(r){let t=[];for(let[e,n]of Object.entries(r)){let a={name:e,...n};Array.isArray(a.default)&&(a.default=Vt(0,a.default,-1).value),t.push(a)}return t}var t7=Array.prototype.toReversed??function(){return[...this].reverse()},r7=kc("toReversed",function(){if(Array.isArray(this))return t7}),n7=r7;function s7(){var e,n,a,u,l,p;let r=globalThis,t=(n=(e=r.Deno)==null?void 0:e.build)==null?void 0:n.os;return typeof t=="string"?t==="windows":((u=(a=r.navigator)==null?void 0:a.platform)==null?void 0:u.startsWith("Win"))??((p=(l=r.process)==null?void 0:l.platform)==null?void 0:p.startsWith("win"))??!1}var a7=s7();function qF(r){if(r=r instanceof URL?r:new URL(r),r.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${r.protocol}"`);return r}function i7(r){return r=qF(r),decodeURIComponent(r.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function u7(r){r=qF(r);let t=decodeURIComponent(r.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return r.hostname!==""&&(t=`\\\\${r.hostname}${t}`),t}function o7(r){return a7?u7(r):i7(r)}var l7=r=>String(r).split(/[/\\]/u).pop(),c7=r=>String(r).startsWith("file:");function gA(r,t){if(!t)return;let e=l7(t).toLowerCase();return r.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===e))??r.find(({extensions:n})=>n==null?void 0:n.some(a=>e.endsWith(a)))}function p7(r,t){if(t)return r.find(({name:e})=>e.toLowerCase()===t)??r.find(({aliases:e})=>e==null?void 0:e.includes(t))??r.find(({extensions:e})=>e==null?void 0:e.includes(`.${t}`))}var ay=void 0;function xA(r,t){if(t){if(c7(t))try{t=o7(t)}catch{return}if(typeof t=="string")return r.find(({isSupported:e})=>e==null?void 0:e({filepath:t}))}}function h7(r,t){var n;let e=n7(0,r.plugins).flatMap(a=>a.languages??[]);return(n=p7(e,t.language)??gA(e,t.physicalFile)??gA(e,t.file)??xA(e,t.physicalFile)??xA(e,t.file)??(ay==null?void 0:ay(e,t.physicalFile)))==null?void 0:n.parsers[0]}var HF=h7,ao={key:r=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(r)?r:JSON.stringify(r),value(r){if(r===null||typeof r!="object")return JSON.stringify(r);if(Array.isArray(r))return`[${r.map(e=>ao.value(e)).join(", ")}]`;let t=Object.keys(r);return t.length===0?"{}":`{ ${t.map(e=>`${ao.key(e)}: ${ao.value(r[e])}`).join(", ")} }`},pair:({key:r,value:t})=>ao.value({[r]:t})},bD=new Proxy(String,{get:()=>bD}),Wn=bD,VF=()=>bD,d7=(r,t,{descriptor:e})=>{let n=[`${Wn.yellow(typeof r=="string"?e.key(r):e.pair(r))} is deprecated`];return t&&n.push(`we now treat it as ${Wn.blue(typeof t=="string"?e.key(t):e.pair(t))}`),n.join("; ")+"."},JF=Symbol.for("vnopts.VALUE_NOT_EXIST"),Th=Symbol.for("vnopts.VALUE_UNCHANGED"),EA=" ".repeat(2),f7=(r,t,e)=>{let{text:n,list:a}=e.normalizeExpectedResult(e.schemas[r].expected(e)),u=[];return n&&u.push(bA(r,t,n,e.descriptor)),a&&u.push([bA(r,t,a.title,e.descriptor)].concat(a.values.map(l=>XF(l,e.loggerPrintWidth))).join(`
|
|
278
|
+
`)),GF(u,e.loggerPrintWidth)};function bA(r,t,e,n){return[`Invalid ${Wn.red(n.key(r))} value.`,`Expected ${Wn.blue(e)},`,`but received ${t===JF?Wn.gray("nothing"):Wn.red(n.value(t))}.`].join(" ")}function XF({text:r,list:t},e){let n=[];return r&&n.push(`- ${Wn.blue(r)}`),t&&n.push([`- ${Wn.blue(t.title)}:`].concat(t.values.map(a=>XF(a,e-EA.length).replace(/^|\n/g,`$&${EA}`))).join(`
|
|
279
|
+
`)),GF(n,e)}function GF(r,t){if(r.length===1)return r[0];let[e,n]=r,[a,u]=r.map(l=>l.split(`
|
|
280
|
+
`,1)[0].length);return a>t&&a>u?n:e}var Wu=[],iy=[];function uy(r,t,e){if(r===t)return 0;let n=e==null?void 0:e.maxDistance,a=r;r.length>t.length&&(r=t,t=a);let u=r.length,l=t.length;for(;u>0&&r.charCodeAt(~-u)===t.charCodeAt(~-l);)u--,l--;let p=0;for(;p<u&&r.charCodeAt(p)===t.charCodeAt(p);)p++;if(u-=p,l-=p,n!==void 0&&l-u>n)return n;if(u===0)return n!==void 0&&l>n?n:l;let h,d,m,D,g=0,x=0;for(;g<u;)iy[g]=r.charCodeAt(p+g),Wu[g]=++g;for(;x<l;){for(h=t.charCodeAt(p+x),m=x++,d=x,g=0;g<u;g++)D=h===iy[g]?m:m+1,m=Wu[g],d=Wu[g]=m>d?D>d?d+1:D:D>m?m+1:D;if(n!==void 0){let b=d;for(g=0;g<u;g++)Wu[g]<b&&(b=Wu[g]);if(b>n)return n}}return Wu.length=u,iy.length=u,n!==void 0&&d>n?n:d}function m7(r,t,e){if(!Array.isArray(t)||t.length===0)return;let n=e==null?void 0:e.maxDistance,a=r.length;for(let h of t)if(h===r)return h;let u,l=Number.POSITIVE_INFINITY,p=new Set;for(let h of t){if(p.has(h))continue;p.add(h);let d=Math.abs(h.length-a);if(d>=l||d>n)continue;let m=Number.isFinite(l)?Math.min(l,n):n,D=m===void 0?uy(r,h):uy(r,h,{maxDistance:m});if(D>n)continue;let g=D;if(m!==void 0&&D===m&&m===n&&(g=uy(r,h)),g<l&&(l=g,u=h,l===0))break}if(!(l>n))return u}var KF=(r,t,{descriptor:e,logger:n,schemas:a})=>{let u=[`Ignored unknown option ${Wn.yellow(e.pair({key:r,value:t}))}.`],l=m7(r,Object.keys(a),{maxDistance:3});l&&u.push(`Did you mean ${Wn.blue(e.key(l))}?`),n.warn(u.join(" "))},y7=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function D7(r,t){let e=new r(t),n=Object.create(e);for(let a of y7)a in t&&(n[a]=g7(t[a],e,ii.prototype[a].length));return n}var ii=class{static create(t){return D7(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,e){return!1}deprecated(t,e){return!1}forward(t,e){}redirect(t,e){}overlap(t,e,n){return t}preprocess(t,e){return t}postprocess(t,e){return Th}};function g7(r,t,e){return typeof r=="function"?(...n)=>r(...n.slice(0,e-1),t,...n.slice(e-1)):()=>r}var x7=class extends ii{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,e){return e.schemas[this._sourceName].validate(t,e)}redirect(t,e){return this._sourceName}},E7=class extends ii{expected(){return"anything"}validate(){return!0}},b7=class extends ii{constructor({valueSchema:t,name:e=t.name,...n}){super({...n,name:e}),this._valueSchema=t}expected(t){let{text:e,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:e&&`an array of ${e}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,e){if(!Array.isArray(t))return!1;let n=[];for(let a of t){let u=e.normalizeValidateResult(this._valueSchema.validate(a,e),a);u!==!0&&n.push(u.value)}return n.length===0?!0:{value:n}}deprecated(t,e){let n=[];for(let a of t){let u=e.normalizeDeprecatedResult(this._valueSchema.deprecated(a,e),a);u!==!1&&n.push(...u.map(({value:l})=>({value:[l]})))}return n}forward(t,e){let n=[];for(let a of t){let u=e.normalizeForwardResult(this._valueSchema.forward(a,e),a);n.push(...u.map(AA))}return n}redirect(t,e){let n=[],a=[];for(let u of t){let l=e.normalizeRedirectResult(this._valueSchema.redirect(u,e),u);"remain"in l&&n.push(l.remain),a.push(...l.redirect.map(AA))}return n.length===0?{redirect:a}:{redirect:a,remain:n}}overlap(t,e){return t.concat(e)}};function AA({from:r,to:t}){return{from:[r],to:t}}var A7=class extends ii{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function C7(r,t){let e=Object.create(null);for(let n of r){let a=n[t];if(e[a])throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);e[a]=n}return e}function F7(r,t){let e=new Map;for(let n of r){let a=n[t];if(e.has(a))throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);e.set(a,n)}return e}function v7(){let r=Object.create(null);return t=>{let e=JSON.stringify(t);return r[e]?!0:(r[e]=!0,!1)}}function S7(r,t){let e=[],n=[];for(let a of r)t(a)?e.push(a):n.push(a);return[e,n]}function T7(r){return r===Math.floor(r)}function w7(r,t){if(r===t)return 0;let e=typeof r,n=typeof t,a=["undefined","object","boolean","number","string"];return e!==n?a.indexOf(e)-a.indexOf(n):e!=="string"?Number(r)-Number(t):r.localeCompare(t)}function N7(r){return(...t)=>{let e=r(...t);return typeof e=="string"?new Error(e):e}}function CA(r){return r===void 0?{}:r}function QF(r){if(typeof r=="string")return{text:r};let{text:t,list:e}=r;return B7((t||e)!==void 0,"Unexpected `expected` result, there should be at least one field."),e?{text:t,list:{title:e.title,values:e.values.map(QF)}}:{text:t}}function FA(r,t){return r===!0?!0:r===!1?{value:t}:r}function vA(r,t,e=!1){return r===!1?!1:r===!0?e?!0:[{value:t}]:"value"in r?[r]:r.length===0?!1:r}function SA(r,t){return typeof r=="string"||"key"in r?{from:t,to:r}:"from"in r?{from:r.from,to:r.to}:{from:t,to:r.to}}function s0(r,t){return r===void 0?[]:Array.isArray(r)?r.map(e=>SA(e,t)):[SA(r,t)]}function TA(r,t){let e=s0(typeof r=="object"&&"redirect"in r?r.redirect:r,t);return e.length===0?{remain:t,redirect:e}:typeof r=="object"&&"remain"in r?{remain:r.remain,redirect:e}:{redirect:e}}function B7(r,t){if(!r)throw new Error(t)}var P7=class extends ii{constructor(t){super(t),this._choices=F7(t.choices.map(e=>e&&typeof e=="object"?e:{value:e}),"value")}expected({descriptor:t}){let e=Array.from(this._choices.keys()).map(u=>this._choices.get(u)).filter(({hidden:u})=>!u).map(u=>u.value).sort(w7).map(t.value),n=e.slice(0,-2),a=e.slice(-2);return{text:n.concat(a.join(" or ")).join(", "),list:{title:"one of the following values",values:e}}}validate(t){return this._choices.has(t)}deprecated(t){let e=this._choices.get(t);return e&&e.deprecated?{value:t}:!1}forward(t){let e=this._choices.get(t);return e?e.forward:void 0}redirect(t){let e=this._choices.get(t);return e?e.redirect:void 0}},k7=class extends ii{expected(){return"a number"}validate(t,e){return typeof t=="number"}},I7=class extends k7{expected(){return"an integer"}validate(t,e){return e.normalizeValidateResult(super.validate(t,e),t)===!0&&T7(t)}},wA=class extends ii{expected(){return"a string"}validate(t){return typeof t=="string"}},M7=ao,O7=KF,L7=f7,R7=d7,_7=class{constructor(t,e){let{logger:n=console,loggerPrintWidth:a=80,descriptor:u=M7,unknown:l=O7,invalid:p=L7,deprecated:h=R7,missing:d=()=>!1,required:m=()=>!1,preprocess:D=x=>x,postprocess:g=()=>Th}=e||{};this._utils={descriptor:u,logger:n||{warn:()=>{}},loggerPrintWidth:a,schemas:C7(t,"name"),normalizeDefaultResult:CA,normalizeExpectedResult:QF,normalizeDeprecatedResult:vA,normalizeForwardResult:s0,normalizeRedirectResult:TA,normalizeValidateResult:FA},this._unknownHandler=l,this._invalidHandler=N7(p),this._deprecatedHandler=h,this._identifyMissing=(x,b)=>!(x in b)||d(x,b),this._identifyRequired=m,this._preprocess=D,this._postprocess=g,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=v7()}normalize(t){let e={},n=[this._preprocess(t,this._utils)],a=()=>{for(;n.length!==0;){let u=n.shift(),l=this._applyNormalization(u,e);n.push(...l)}};a();for(let u of Object.keys(this._utils.schemas)){let l=this._utils.schemas[u];if(!(u in e)){let p=CA(l.default(this._utils));"value"in p&&n.push({[u]:p.value})}}a();for(let u of Object.keys(this._utils.schemas)){if(!(u in e))continue;let l=this._utils.schemas[u],p=e[u],h=l.postprocess(p,this._utils);h!==Th&&(this._applyValidation(h,u,l),e[u]=h)}return this._applyPostprocess(e),this._applyRequiredCheck(e),e}_applyNormalization(t,e){let n=[],{knownKeys:a,unknownKeys:u}=this._partitionOptionKeys(t);for(let l of a){let p=this._utils.schemas[l],h=p.preprocess(t[l],this._utils);this._applyValidation(h,l,p);let d=({from:g,to:x})=>{n.push(typeof x=="string"?{[x]:g}:{[x.key]:x.value})},m=({value:g,redirectTo:x})=>{let b=vA(p.deprecated(g,this._utils),h,!0);if(b!==!1)if(b===!0)this._hasDeprecationWarned(l)||this._utils.logger.warn(this._deprecatedHandler(l,x,this._utils));else for(let{value:C}of b){let S={key:l,value:C};if(!this._hasDeprecationWarned(S)){let v=typeof x=="string"?{key:x,value:C}:x;this._utils.logger.warn(this._deprecatedHandler(S,v,this._utils))}}};s0(p.forward(h,this._utils),h).forEach(d);let D=TA(p.redirect(h,this._utils),h);if(D.redirect.forEach(d),"remain"in D){let g=D.remain;e[l]=l in e?p.overlap(e[l],g,this._utils):g,m({value:g})}for(let{from:g,to:x}of D.redirect)m({value:g,redirectTo:x})}for(let l of u){let p=t[l];this._applyUnknownHandler(l,p,e,(h,d)=>{n.push({[h]:d})})}return n}_applyRequiredCheck(t){for(let e of Object.keys(this._utils.schemas))if(this._identifyMissing(e,t)&&this._identifyRequired(e))throw this._invalidHandler(e,JF,this._utils)}_partitionOptionKeys(t){let[e,n]=S7(Object.keys(t).filter(a=>!this._identifyMissing(a,t)),a=>a in this._utils.schemas);return{knownKeys:e,unknownKeys:n}}_applyValidation(t,e,n){let a=FA(n.validate(t,this._utils),t);if(a!==!0)throw this._invalidHandler(e,a.value,this._utils)}_applyUnknownHandler(t,e,n,a){let u=this._unknownHandler(t,e,this._utils);if(u)for(let l of Object.keys(u)){if(this._identifyMissing(l,u))continue;let p=u[l];l in this._utils.schemas?a(l,p):n[l]=p}}_applyPostprocess(t){let e=this._postprocess(t,this._utils);if(e!==Th){if(e.delete)for(let n of e.delete)delete t[n];if(e.override){let{knownKeys:n,unknownKeys:a}=this._partitionOptionKeys(e.override);for(let u of n){let l=e.override[u];this._applyValidation(l,u,this._utils.schemas[u]),t[u]=l}for(let u of a){let l=e.override[u];this._applyUnknownHandler(u,l,t,(p,h)=>{let d=this._utils.schemas[p];this._applyValidation(h,p,d),t[p]=h})}}}}},oy;function j7(r,t,{logger:e=!1,isCLI:n=!1,passThrough:a=!1,FlagSchema:u,descriptor:l}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!l)throw new Error("'descriptor' option is required.")}else l=ao;let p=a?Array.isArray(a)?(g,x)=>a.includes(g)?{[g]:x}:void 0:(g,x)=>({[g]:x}):(g,x,b)=>{let{_:C,...S}=b.schemas;return KF(g,x,{...b,schemas:S})},h=$7(t,{isCLI:n,FlagSchema:u}),d=new _7(h,{logger:e,unknown:p,descriptor:l}),m=e!==!1;m&&oy&&(d._hasDeprecationWarned=oy);let D=d.normalize(r);return m&&(oy=d._hasDeprecationWarned),D}function $7(r,{isCLI:t,FlagSchema:e}){let n=[];t&&n.push(E7.create({name:"_"}));for(let a of r)n.push(z7(a,{isCLI:t,optionInfos:r,FlagSchema:e})),a.alias&&t&&n.push(x7.create({name:a.alias,sourceName:a.name}));return n}function z7(r,{isCLI:t,optionInfos:e,FlagSchema:n}){let{name:a}=r,u={name:a},l,p={};switch(r.type){case"int":l=I7,t&&(u.preprocess=Number);break;case"string":l=wA;break;case"choice":l=P7,u.choices=r.choices.map(h=>h!=null&&h.redirect?{...h,redirect:{to:{key:r.name,value:h.redirect}}}:h);break;case"boolean":l=A7;break;case"flag":l=n,u.flags=e.flatMap(h=>[h.alias,h.description&&h.name,h.oppositeDescription&&`no-${h.name}`].filter(Boolean));break;case"path":l=wA;break;default:throw new Error(`Unexpected type ${r.type}`)}if(r.exception?u.validate=(h,d,m)=>r.exception(h)||d.validate(h,m):u.validate=(h,d,m)=>h===void 0||d.validate(h,m),r.redirect&&(p.redirect=h=>h?{to:typeof r.redirect=="string"?r.redirect:{key:r.redirect.option,value:r.redirect.value}}:void 0),r.deprecated&&(p.deprecated=!0),t&&!r.array){let h=u.preprocess||(d=>d);u.preprocess=(d,m,D)=>m.preprocess(h(Array.isArray(d)?Vt(0,d,-1):d),D)}return r.array?b7.create({...t?{preprocess:h=>Array.isArray(h)?h:[h]}:{},...p,valueSchema:l.create(u)}):l.create({...u,...p})}var U7=j7,q7=Array.prototype.findLast??function(r){for(let t=this.length-1;t>=0;t--){let e=this[t];if(r(e,t,this))return e}},H7=kc("findLast",function(){if(Array.isArray(this))return q7}),YF=H7,V7=Symbol.for("PRETTIER_IS_FRONT_MATTER"),J7=[];function X7(r){return!!(r!=null&&r[V7])}var AD=X7,WF=new Set(["yaml","toml"]),ZF=({node:r})=>AD(r)&&WF.has(r.language);async function G7(r,t,e,n){let{node:a}=e,{language:u}=a;if(!WF.has(u))return;let l=a.value.trim(),p;if(l){let h=u==="yaml"?u:HF(n,{language:u});if(!h)return;p=l?await r(l,{parser:h}):""}else p=l;return CF([a.startDelimiter,a.explicitLanguage??"",zs,p,p?zs:"",a.endDelimiter])}function K7(r,t){return ZF({node:r})&&(delete t.end,delete t.raw,delete t.value),t}var Q7=K7;function Y7({node:r}){return r.raw}var W7=Y7,ev=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Z7=r=>Object.keys(r).filter(t=>!ev.has(t));function e5(r,t){let e=r?n=>r(n,ev):Z7;return t?new Proxy(e,{apply:(n,a,u)=>AD(u[0])?J7:Reflect.apply(n,a,u)}):e}var NA=e5;function tv(r,t){if(!t)throw new Error("parserName is required.");let e=YF(0,r,a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,t));if(e)return e;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new zF(n)}function t5(r,t){if(!t)throw new Error("astFormat is required.");let e=YF(0,r,a=>a.printers&&Object.prototype.hasOwnProperty.call(a.printers,t));if(e)return e;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new zF(n)}function CD({plugins:r,parser:t}){let e=tv(r,t);return rv(e,t)}function rv(r,t){let e=r.parsers[t];return typeof e=="function"?e():e}async function r5(r,t){let e=r.printers[t],n=typeof e=="function"?await e():e;return n5(n)}var ly=new WeakMap;function n5(r){if(ly.has(r))return ly.get(r);let{features:t,getVisitorKeys:e,embed:n,massageAstNode:a,print:u,...l}=r;t=u5(t);let p=t.experimental_frontMatterSupport;e=NA(e,p.massageAstNode||p.embed||p.print);let h=a;a&&p.massageAstNode&&(h=new Proxy(a,{apply(g,x,b){return Q7(...b),Reflect.apply(g,x,b)}}));let d=n;if(n){let g;d=new Proxy(n,{get(x,b,C){return b==="getVisitorKeys"?(g??(g=n.getVisitorKeys?NA(n.getVisitorKeys,p.massageAstNode||p.embed):e),g):Reflect.get(x,b,C)},apply:(x,b,C)=>p.embed&&ZF(...C)?G7:Reflect.apply(x,b,C)})}let m=u;p.print&&(m=new Proxy(u,{apply(g,x,b){let[C]=b;return AD(C.node)?W7(C):Reflect.apply(g,x,b)}}));let D={features:t,getVisitorKeys:e,embed:d,massageAstNode:h,print:m,...l};return ly.set(r,D),D}var s5=["clean","embed","print"],a5=Object.fromEntries(s5.map(r=>[r,!1]));function i5(r){return{...a5,...r}}function u5(r){return{experimental_avoidAstMutation:!1,...r,experimental_frontMatterSupport:i5(r==null?void 0:r.experimental_frontMatterSupport)}}var BA={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function o5(r,t={}){var D;let e={...r};if(!e.parser)if(e.filepath){if(e.parser=HF(e,{physicalFile:e.filepath}),!e.parser)throw new DA(`No parser could be inferred for file "${e.filepath}".`)}else throw new DA("No parser and no file path given, couldn't infer a parser.");let n=UF({plugins:r.plugins,showDeprecated:!0}).options,a={...BA,...Object.fromEntries(n.filter(g=>g.default!==void 0).map(g=>[g.name,g.default]))},u=tv(e.plugins,e.parser),l=await rv(u,e.parser);e.astFormat=l.astFormat,e.locEnd=l.locEnd,e.locStart=l.locStart;let p=(D=u.printers)!=null&&D[l.astFormat]?u:t5(e.plugins,l.astFormat),h=await r5(p,l.astFormat);e.printer=h,e.getVisitorKeys=h.getVisitorKeys;let d=p.defaultOptions?Object.fromEntries(Object.entries(p.defaultOptions).filter(([,g])=>g!==void 0)):{},m={...a,...d};for(let[g,x]of Object.entries(m))(e[g]===null||e[g]===void 0)&&(e[g]=x);return e.parser==="json"&&(e.trailingComma="none"),U7(e,n,{passThrough:Object.keys(BA),...t})}var zo=o5;S4(T4());var FD={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};new Set(FD.keyword);new Set(FD.strict);new Set(FD.strictBind);var ph=(r,t)=>e=>r(t(e));function nv(r){return{keyword:r.cyan,capitalized:r.yellow,jsxIdentifier:r.yellow,punctuator:r.yellow,number:r.magenta,string:r.green,regex:r.magenta,comment:r.gray,invalid:ph(ph(r.white,r.bgRed),r.bold),gutter:r.gray,marker:ph(r.red,r.bold),message:ph(r.red,r.bold),reset:r.reset}}nv(VF());nv(VF());function l5(){return new Proxy({},{get:()=>r=>r})}var PA=/\r\n|[\n\r\u2028\u2029]/;function c5(r,t,e){let n=Object.assign({column:0,line:-1},r.start),a=Object.assign({},n,r.end),{linesAbove:u=2,linesBelow:l=3}=e||{},p=n.line,h=n.column,d=a.line,m=a.column,D=Math.max(p-(u+1),0),g=Math.min(t.length,d+l);p===-1&&(D=0),d===-1&&(g=t.length);let x=d-p,b={};if(x)for(let C=0;C<=x;C++){let S=C+p;if(!h)b[S]=!0;else if(C===0){let v=t[S-1].length;b[S]=[h,v-h+1]}else if(C===x)b[S]=[0,m];else{let v=t[S-C].length;b[S]=[0,v]}}else h===m?h?b[p]=[h,0]:b[p]=!0:b[p]=[h,m-h];return{start:D,end:g,markerLines:b}}function p5(r,t,e={}){let n=l5(),a=r.split(PA),{start:u,end:l,markerLines:p}=c5(t,a,e),h=t.start&&typeof t.start.column=="number",d=String(l).length,m=r.split(PA,l).slice(u,l).map((D,g)=>{let x=u+1+g,b=` ${` ${x}`.slice(-d)} |`,C=p[x],S=!p[x+1];if(C){let v="";if(Array.isArray(C)){let F=D.slice(0,Math.max(C[0]-1,0)).replace(/[^\t]/g," "),w=C[1]||1;v=[`
|
|
281
|
+
`,n.gutter(b.replace(/\d/g," "))," ",F,n.marker("^").repeat(w)].join(""),S&&e.message&&(v+=" "+n.message(e.message))}return[n.marker(">"),n.gutter(b),D.length>0?` ${D}`:"",v].join("")}else return` ${n.gutter(b)}${D.length>0?` ${D}`:""}`}).join(`
|
|
282
|
+
`);return e.message&&!h&&(m=`${" ".repeat(d+1)}${e.message}
|
|
283
|
+
${m}`),m}async function h5(r,t){let e=await CD(t),n=e.preprocess?await e.preprocess(r,t):r;t.originalText=n;let a;try{a=await e.parse(n,t,t)}catch(u){d5(u,r)}return{text:n,ast:a}}function d5(r,t){let{loc:e}=r;if(e){let n=p5(t,e,{});throw r.message+=`
|
|
284
|
+
`+n,r.codeFrame=n,r}throw r}var Mc=h5;async function f5(r,t,e,n,a){if(e.embeddedLanguageFormatting!=="auto")return;let{printer:u}=e,{embed:l}=u;if(!l)return;if(l.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:p}=u,{getVisitorKeys:h}=l,d=[];g();let m=r.stack;for(let{print:x,node:b,pathStack:C}of d)try{r.stack=C;let S=await x(D,t,r,e);S&&a.set(b,S)}catch(S){if(globalThis.PRETTIER_DEBUG)throw S}r.stack=m;function D(x,b){return m5(x,b,e,n)}function g(){let{node:x}=r;if(x===null||typeof x!="object"||p!=null&&p(r))return;for(let C of h(x))Array.isArray(x[C])?r.each(g,C):r.call(g,C);let b=l(r,e);if(b){if(typeof b=="function"){d.push({print:b,node:x,pathStack:[...r.stack]});return}a.set(x,b)}}}async function m5(r,t,e,n){let a=await zo({...e,...t,parentParser:e.parser,originalText:r,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:u}=await Mc(r,a),l=await n(u,a);return AF(l)}function y5(r,t,e,n){let{originalText:a,[Symbol.for("comments")]:u,locStart:l,locEnd:p,[Symbol.for("printedComments")]:h}=t,{node:d}=r,m=l(d),D=p(d);for(let x of u)l(x)>=m&&p(x)<=D&&h.add(x);let{printPrettierIgnored:g}=t.printer;return g?g(r,t,e,n):a.slice(m,D)}var D5=y5;async function fd(r,t){({ast:r}=await sv(r,t));let e=new Map,n=new I9(r),a=new Map;await f5(n,l,t,fd,a);let u=await kA(n,t,l,void 0,a);if(Y9(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[$i,u];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[u,$i]}return u;function l(h,d){return h===void 0||h===n?p(d):Array.isArray(h)?n.call(()=>p(d),...h):n.call(()=>p(d),h)}function p(h){let d=n.node;if(d==null)return"";let m=gD(d)&&h===void 0;if(m&&e.has(d))return e.get(d);let D=kA(n,t,l,h,a);return m&&e.set(d,D),D}}function kA(r,t,e,n,a){var h,d;let{node:u}=r,{printer:l}=t,p;switch((h=l.hasPrettierIgnore)!=null&&h.call(l,r)?p=D5(r,t,e,n):a.has(u)?p=a.get(u):p=l.print(r,t,e,n),u){case t.cursorNode:p=vh(p,m=>[$i,m,$i]);break;case t.nodeBeforeCursor:p=vh(p,m=>[m,$i]);break;case t.nodeAfterCursor:p=vh(p,m=>[$i,m]);break}return l.printComment&&!((d=l.willPrintOwnComments)!=null&&d.call(l,r,t))&&(p=Q9(r,p,t)),p}async function sv(r,t){let e=r.comments??[];t[Symbol.for("comments")]=e,t[Symbol.for("printedComments")]=new Set,q9(r,t);let{printer:{preprocess:n}}=t;return r=n?await n(r,t):r,{ast:r,comments:e}}function g5(r,t){let{cursorOffset:e,locStart:n,locEnd:a,getVisitorKeys:u}=t,l=x=>n(x)<=e&&a(x)>=e,p=r,h=[r];for(let x of $9(r,{getVisitorKeys:u,filter:l}))h.push(x),p=x;if(z9(p,{getVisitorKeys:u}))return{cursorNode:p};let d,m,D=-1,g=Number.POSITIVE_INFINITY;for(;h.length>0&&(d===void 0||m===void 0);){p=h.pop();let x=d!==void 0,b=m!==void 0;for(let C of dd(p,{getVisitorKeys:u})){if(!x){let S=a(C);S<=e&&S>D&&(d=C,D=S)}if(!b){let S=n(C);S>=e&&S<g&&(m=C,g=S)}}}return{nodeBeforeCursor:d,nodeAfterCursor:m}}var av=g5;function x5(r,t){let{printer:e}=t,n=e.massageAstNode;if(!n)return r;let{getVisitorKeys:a}=e,{ignoredProperties:u}=n;return l(r);function l(p,h){if(!gD(p))return p;if(Array.isArray(p))return p.map(g=>l(g,h)).filter(Boolean);let d={},m=new Set(a(p));for(let g in p)!Object.prototype.hasOwnProperty.call(p,g)||u!=null&&u.has(g)||(m.has(g)?d[g]=l(p[g],p):d[g]=p[g]);let D=n(p,d,h);if(D!==null)return D??d}}var E5=x5,b5=Array.prototype.findLastIndex??function(r){for(let t=this.length-1;t>=0;t--){let e=this[t];if(r(e,t,this))return t}return-1},A5=kc("findLastIndex",function(){if(Array.isArray(this))return b5}),C5=A5,F5=({parser:r})=>r==="json"||r==="json5"||r==="jsonc"||r==="json-stringify";function v5(r,t){return t=new Set(t),r.find(e=>iv.has(e.type)&&t.has(e))}function IA(r){let t=C5(0,r,e=>e.type!=="Program"&&e.type!=="File");return t===-1?r:r.slice(0,t+1)}function S5(r,t,{locStart:e,locEnd:n}){let[a,...u]=r,[l,...p]=t;if(a===l)return[a,l];let h=e(a);for(let m of IA(p))if(e(m)>=h)l=m;else break;let d=n(l);for(let m of IA(u)){if(n(m)<=d)a=m;else break;if(a===l)break}return[a,l]}function a0(r,t,e,n,a=[],u){let{locStart:l,locEnd:p}=e,h=l(r),d=p(r);if(t>d||t<h||u==="rangeEnd"&&t===h||u==="rangeStart"&&t===d)return;let m=[r,...a],D=LF(r,m,{cache:RF,locStart:l,locEnd:p,getVisitorKeys:e.getVisitorKeys,filter:e.printer.canAttachComment,getChildren:e.printer.getCommentChildNodes});for(let g of D){let x=a0(g,t,e,n,m,u);if(x)return x}if(n(r,a[0]))return m}function T5(r,t){return t!=="DeclareExportDeclaration"&&r!=="TypeParameterDeclaration"&&(r==="Directive"||r==="TypeAlias"||r==="TSExportAssignment"||r.startsWith("Declare")||r.startsWith("TSDeclare")||r.endsWith("Statement")||r.endsWith("Declaration"))}var iv=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),w5=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function MA(r,t,e){if(!t)return!1;switch(r.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return T5(t.type,e==null?void 0:e.type);case"json":case"json5":case"jsonc":case"json-stringify":return iv.has(t.type);case"graphql":return w5.has(t.kind);case"vue":return t.tag!=="root"}return!1}function N5(r,t,e){let{rangeStart:n,rangeEnd:a,locStart:u,locEnd:l}=t,p=r.slice(n,a).search(/\S/u),h=p===-1;if(!h)for(n+=p;a>n&&!/\S/u.test(r[a-1]);--a);let d=a0(e,n,t,(x,b)=>MA(t,x,b),[],"rangeStart");if(!d)return;let m=h?d:a0(e,a,t,x=>MA(t,x),[],"rangeEnd");if(!m)return;let D,g;if(F5(t)){let x=v5(d,m);D=x,g=x}else[D,g]=S5(d,m,t);return[Math.min(u(D),u(g)),Math.max(l(D),l(g))]}var uv="\uFEFF",OA=Symbol("cursor");async function ov(r,t,e=0){if(!r||r.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:a}=await Mc(r,t);t.cursorOffset>=0&&(t={...t,...av(n,t)});let u=await fd(n,t);e>0&&(u=FF([zs,u],e,t.tabWidth));let l=hd(u,t);if(e>0){let h=l.formatted.trim();l.cursorNodeStart!==void 0&&(l.cursorNodeStart-=l.formatted.indexOf(h),l.cursorNodeStart<0&&(l.cursorNodeStart=0,l.cursorNodeText=l.cursorNodeText.trimStart()),l.cursorNodeStart+l.cursorNodeText.length>h.length&&(l.cursorNodeText=l.cursorNodeText.trimEnd())),l.formatted=h+hD(t.endOfLine)}let p=t[Symbol.for("comments")];if(t.cursorOffset>=0){let h,d,m,D;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&l.cursorNodeText)if(m=l.cursorNodeStart,D=l.cursorNodeText,t.cursorNode)h=t.locStart(t.cursorNode),d=a.slice(h,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");h=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let v=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):a.length;d=a.slice(h,v)}else h=0,d=a,m=0,D=l.formatted;let g=t.cursorOffset-h;if(d===D)return{formatted:l.formatted,cursorOffset:m+g,comments:p};let x=d.split("");x.splice(g,0,OA);let b=D.split(""),C=I4(x,b),S=m;for(let v of C)if(v.removed){if(v.value.includes(OA))break}else S+=v.count;return{formatted:l.formatted,cursorOffset:S,comments:p}}return{formatted:l.formatted,cursorOffset:-1,comments:p}}async function B5(r,t){let{ast:e,text:n}=await Mc(r,t),[a,u]=N5(n,t,e)??[0,0],l=n.slice(a,u),p=Math.min(a,n.lastIndexOf(`
|
|
285
|
+
`,a)+1),h=n.slice(p,a).match(/^\s*/u)[0],d=DD(h,t.tabWidth),m=await ov(l,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>a&&t.cursorOffset<=u?t.cursorOffset-a:-1,endOfLine:"lf"},d),D=m.formatted.trimEnd(),{cursorOffset:g}=t;g>u?g+=D.length-l.length:m.cursorOffset>=0&&(g=m.cursorOffset+a);let x=n.slice(0,a)+D+n.slice(u);if(t.endOfLine!=="lf"){let b=hD(t.endOfLine);g>=0&&b===`\r
|
|
286
|
+
`&&(g+=EF(x.slice(0,g),`
|
|
287
|
+
`)),x=od(0,x,`
|
|
288
|
+
`,b)}return{formatted:x,cursorOffset:g,comments:m.comments}}function cy(r,t,e){return typeof t!="number"||Number.isNaN(t)||t<0||t>r.length?e:t}function LA(r,t){let{cursorOffset:e,rangeStart:n,rangeEnd:a}=t;return e=cy(r,e,-1),n=cy(r,n,0),a=cy(r,a,r.length),{...t,cursorOffset:e,rangeStart:n,rangeEnd:a}}function lv(r,t){let{cursorOffset:e,rangeStart:n,rangeEnd:a,endOfLine:u}=LA(r,t),l=r.charAt(0)===uv;if(l&&(r=r.slice(1),e--,n--,a--),u==="auto"&&(u=j4(r)),r.includes("\r")){let p=h=>EF(r.slice(0,Math.max(h,0)),`\r
|
|
289
|
+
`);e-=p(e),n-=p(n),a-=p(a),r=U4(r)}return{hasBOM:l,text:r,options:LA(r,{...t,cursorOffset:e,rangeStart:n,rangeEnd:a,endOfLine:u})}}async function RA(r,t){let e=await CD(t);return!e.hasPragma||e.hasPragma(r)}async function P5(r,t){var e,n;return(n=(e=await CD(t)).hasIgnorePragma)==null?void 0:n.call(e,r)}async function cv(r,t){let{hasBOM:e,text:n,options:a}=lv(r,await zo(t));if(a.rangeStart>=a.rangeEnd&&n!==""||a.requirePragma&&!await RA(n,a)||a.checkIgnorePragma&&await P5(n,a))return{formatted:r,cursorOffset:t.cursorOffset,comments:[]};let u;return a.rangeStart>0||a.rangeEnd<n.length?u=await B5(n,a):(!a.requirePragma&&a.insertPragma&&a.printer.insertPragma&&!await RA(n,a)&&(n=a.printer.insertPragma(n)),u=await ov(n,a)),e&&(u.formatted=uv+u.formatted,u.cursorOffset>=0&&u.cursorOffset++),u}async function k5(r,t,e){let{text:n,options:a}=lv(r,await zo(t)),u=await Mc(n,a);return e&&(e.preprocessForPrint&&(u.ast=await sv(u.ast,a)),e.massage&&(u.ast=E5(u.ast,a))),u}async function I5(r,t){t=await zo(t);let e=await fd(r,t);return hd(e,t)}async function M5(r,t){let e=g9(r),{formatted:n}=await cv(e,{...t,parser:"__js_expression"});return n}async function O5(r,t){t=await zo(t);let{ast:e}=await Mc(r,t);return t.cursorOffset>=0&&(t={...t,...av(e,t)}),fd(e,t)}async function L5(r,t){return hd(r,await zo(t))}var pv={};cD(pv,{builders:()=>R5,printer:()=>_5,utils:()=>j5});var R5={join:SF,line:TF,softline:m9,hardline:zs,literalline:NF,group:vF,conditionalGroup:p9,fill:c9,lineSuffix:t0,lineSuffixBoundary:y9,cursor:$i,breakParent:pd,ifBreak:h9,trim:D9,indent:qh,indentIfBreak:d9,align:vo,addAlignmentToDoc:FF,markAsRoot:CF,dedentToRoot:o9,dedent:l9,hardlineWithoutBreakParent:mD,literallineWithoutBreakParent:wF,label:f9,concat:r=>r},_5={printDocToString:hd},j5={willBreak:W4,traverseDoc:dD,findInDoc:fD,mapDoc:cd,removeLines:t9,stripTrailingHardline:AF,replaceEndOfLine:s9,canBreak:i9},$5="3.8.0",hv={};cD(hv,{addDanglingComment:()=>Oi,addLeadingComment:()=>sc,addTrailingComment:()=>ac,getAlignmentSize:()=>DD,getIndentSize:()=>J5,getMaxContinuousCount:()=>K5,getNextNonSpaceNonCommentCharacter:()=>Y5,getNextNonSpaceNonCommentCharacterIndex:()=>uk,getPreferredQuote:()=>tk,getStringWidth:()=>yD,hasNewline:()=>Qa,hasNewlineInRange:()=>nk,hasSpaces:()=>ak,isNextLineEmpty:()=>hk,isNextLineEmptyAfterIndex:()=>wD,isPreviousLineEmpty:()=>lk,makeString:()=>pk,skip:()=>Ic,skipEverythingButNewLine:()=>MF,skipInlineComment:()=>vD,skipNewline:()=>tu,skipSpaces:()=>Za,skipToLineEnd:()=>IF,skipTrailingComment:()=>SD,skipWhitespace:()=>O9});function z5(r,t){if(t===!1)return!1;if(r.charAt(t)==="/"&&r.charAt(t+1)==="*"){for(let e=t+2;e<r.length;++e)if(r.charAt(e)==="*"&&r.charAt(e+1)==="/")return e+2}return t}var vD=z5;function U5(r,t){return t===!1?!1:r.charAt(t)==="/"&&r.charAt(t+1)==="/"?MF(r,t):t}var SD=U5;function q5(r,t){let e=null,n=t;for(;n!==e;)e=n,n=Za(r,n),n=vD(r,n),n=SD(r,n),n=tu(r,n);return n}var TD=q5;function H5(r,t){let e=null,n=t;for(;n!==e;)e=n,n=IF(r,n),n=vD(r,n),n=Za(r,n);return n=SD(r,n),n=tu(r,n),n!==!1&&Qa(r,n)}var wD=H5;function V5(r,t){let e=r.lastIndexOf(`
|
|
290
|
+
`);return e===-1?0:DD(r.slice(e+1).match(/^[\t ]*/u)[0],t)}var J5=V5;function X5(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function G5(r,t){let e=r.matchAll(new RegExp(`(?:${X5(t)})+`,"gu"));return e.reduce||(e=[...e]),e.reduce((n,[a])=>Math.max(n,a.length),0)/t.length}var K5=G5;function Q5(r,t){let e=TD(r,t);return e===!1?"":r.charAt(e)}var Y5=Q5,dv=Object.freeze({character:"'",codePoint:39}),fv=Object.freeze({character:'"',codePoint:34}),W5=Object.freeze({preferred:dv,alternate:fv}),Z5=Object.freeze({preferred:fv,alternate:dv});function ek(r,t){let{preferred:e,alternate:n}=t===!0||t==="'"?W5:Z5,{length:a}=r,u=0,l=0;for(let p=0;p<a;p++){let h=r.charCodeAt(p);h===e.codePoint?u++:h===n.codePoint&&l++}return(u>l?n:e).character}var tk=ek;function rk(r,t,e){for(let n=t;n<e;++n)if(r.charAt(n)===`
|
|
291
|
+
`)return!0;return!1}var nk=rk;function sk(r,t,e={}){return Za(r,e.backwards?t-1:t,e)!==t}var ak=sk;function ik(r,t,e){return TD(r,e(t))}function uk(r,t){return arguments.length===2||typeof t=="number"?TD(r,t):ik(...arguments)}function ok(r,t,e){return ED(r,e(t))}function lk(r,t){return arguments.length===2||typeof t=="number"?ED(r,t):ok(...arguments)}function ck(r,t,e){return wD(r,e(t))}function pk(r,t,e){let n=t==='"'?"'":'"',a=od(0,r,/\\(.)|(["'])/gsu,(u,l,p)=>l===n?l:p===t?"\\"+p:p||(e&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(l)?l:"\\"+l));return t+a+t}function hk(r,t){return arguments.length===2||typeof t=="number"?wD(r,t):ck(...arguments)}function Li(r,t=1){return async(...e)=>{let n=e[t]??{},a=n.plugins??[];return e[t]={...n,plugins:Array.isArray(a)?a:Object.values(a)},r(...e)}}var mv=Li(cv);async function yv(r,t){let{formatted:e}=await mv(r,{...t,cursorOffset:-1});return e}async function dk(r,t){return await yv(r,t)===r}var fk=Li(UF,0),mk={parse:Li(k5),formatAST:Li(I5),formatDoc:Li(M5),printToDoc:Li(O5),printDocToString:Li(L5)},yk=Object.defineProperty,ND=(r,t)=>{for(var e in t)yk(r,e,{get:t[e],enumerable:!0})},Dv={};ND(Dv,{parsers:()=>fO});var gv={};ND(gv,{__babel_estree:()=>uO,__js_expression:()=>l2,__ts_expression:()=>c2,__vue_event_binding:()=>u2,__vue_expression:()=>l2,__vue_ts_event_binding:()=>o2,__vue_ts_expression:()=>c2,babel:()=>u2,"babel-flow":()=>Kv,"babel-ts":()=>o2});function Dk(r,t){if(r==null)return{};var e={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(t.indexOf(n)!==-1)continue;e[n]=r[n]}return e}var Ya=class{constructor(t,e,n){pe(this,"line");pe(this,"column");pe(this,"index");this.line=t,this.column=e,this.index=n}},Hh=class{constructor(t,e){pe(this,"start");pe(this,"end");pe(this,"filename");pe(this,"identifierName");this.start=t,this.end=e}};function mn(r,t){let{line:e,column:n,index:a}=r;return new Ya(e,n+t,a+t)}var _A="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",gk={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:_A},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:_A}},jA={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},wh=r=>r.type==="UpdateExpression"?jA.UpdateExpression[`${r.prefix}`]:jA[r.type],xk={AccessorIsGenerator:({kind:r})=>`A ${r}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:r})=>`Missing initializer in ${r} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:r})=>`\`${r}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:r,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
292
|
+
- Did you mean \`export { '${r}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:r})=>`'${r==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:r})=>`Unsyntactic ${r==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:r})=>`A string literal cannot be used as an imported binding.
|
|
293
|
+
- Did you mean \`import { "${r}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:r})=>`Expected number in radix ${r}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:r})=>`Escape sequence in keyword ${r}.`,InvalidIdentifier:({identifierName:r})=>`Invalid identifier ${r}.`,InvalidLhs:({ancestor:r})=>`Invalid left-hand side in ${wh(r)}.`,InvalidLhsBinding:({ancestor:r})=>`Binding invalid left-hand side in ${wh(r)}.`,InvalidLhsOptionalChaining:({ancestor:r})=>`Invalid optional chaining in the left-hand side of ${wh(r)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:r})=>`Unexpected character '${r}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:r})=>`Private name #${r} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:r})=>`Label '${r}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:r})=>`This experimental syntax requires enabling the parser plugin: ${r.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:r})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${r.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:r})=>`Duplicate key "${r}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:r})=>`An export name cannot include a lone surrogate, found '\\u${r.toString(16)}'.`,ModuleExportUndefined:({localName:r})=>`Export '${r}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:r})=>`Private names are only allowed in property accesses (\`obj.#${r}\`) or in \`in\` expressions (\`#${r} in obj\`).`,PrivateNameRedeclaration:({identifierName:r})=>`Duplicate private name #${r}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:r})=>`Unexpected keyword '${r}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:r})=>`Unexpected reserved word '${r}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:r,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${r?`, expected "${r}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:r,onlyValidPropertyName:t})=>`The only valid meta property for ${r} is ${r}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:r})=>`Identifier '${r}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Ek={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:r})=>`Assigning to '${r}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:r})=>`Binding '${r}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},bk={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:r})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(r)}\`.`},Ak=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Ck=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:r})=>`Invalid topic token ${r}. In order to use ${r} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${r}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:r})=>`Hack-style pipe body cannot be an unparenthesized ${wh({type:r})}; please wrap it in parentheses.`},{}),Fk=["message"];function $A(r,t,e){Object.defineProperty(r,t,{enumerable:!1,configurable:!0,value:e})}function vk({toMessage:r,code:t,reasonCode:e,syntaxPlugin:n}){let a=e==="MissingPlugin"||e==="MissingOneOfPlugins";return function u(l,p){let h=new SyntaxError;return h.code=t,h.reasonCode=e,h.loc=l,h.pos=l.index,h.syntaxPlugin=n,a&&(h.missingPlugin=p.missingPlugin),$A(h,"clone",function(d={}){let{line:m,column:D,index:g}=d.loc??l;return u(new Ya(m,D,g),Object.assign({},p,d.details))}),$A(h,"details",p),Object.defineProperty(h,"message",{configurable:!0,get(){let d=`${r(p)} (${l.line}:${l.column})`;return this.message=d,d},set(d){Object.defineProperty(this,"message",{value:d,writable:!0})}}),h}}function Kn(r,t){if(Array.isArray(r))return n=>Kn(n,r[0]);let e={};for(let n of Object.keys(r)){let a=r[n],u=typeof a=="string"?{message:()=>a}:typeof a=="function"?{message:a}:a,{message:l}=u,p=Dk(u,Fk),h=typeof l=="string"?()=>l:l;e[n]=vk(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:h},t?{syntaxPlugin:t}:{},p))}return e}var $=Object.assign({},Kn(gk),Kn(xk),Kn(Ek),Kn(bk),Kn`pipelineOperator`(Ck));function Sk(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function Tk(r){let t=Sk();if(r==null)return t;if(r.annexB!=null&&r.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let e of Object.keys(t))r[e]!=null&&(t[e]=r[e]);if(t.startLine===1)r.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:r.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(r.startColumn==null||r.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(r.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(r.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(r.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:wk}=Object,zA=(r,t)=>{r&&wk(r,t,{enumerable:!1,value:r[t]})};function Vl(r){return zA(r.loc.start,"index"),zA(r.loc.end,"index"),r}var Nk=r=>class extends r{parse(){let t=Vl(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(Vl)),t}parseRegExpLiteral({pattern:t,flags:e}){let n=null;try{n=new RegExp(t,e)}catch{}let a=this.estreeParseLiteral(n);return a.regex={pattern:t,flags:e},a}parseBigIntLiteral(t){let e;try{e=BigInt(t)}catch{e=null}let n=this.estreeParseLiteral(e);return n.bigint=String(n.value||t),n}parseDecimalLiteral(t){let e=this.estreeParseLiteral(null);return e.decimal=String(e.value||t),e}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}estreeParseChainExpression(t,e){let n=this.startNodeAtNode(t);return n.expression=t,this.finishNodeAt(n,"ChainExpression",e)}directiveToStmt(t){let e=t.value;delete t.value,this.castNodeTo(e,"Literal"),e.raw=e.extra.raw,e.value=e.extra.expressionValue;let n=this.castNodeTo(t,"ExpressionStatement");return n.expression=e,n.directive=e.extra.rawValue,delete e.extra,n}fillOptionalPropertiesForTSESLint(t){}cloneEstreeStringLiteral(t){let{start:e,end:n,loc:a,range:u,raw:l,value:p}=t,h=Object.create(t.constructor.prototype);return h.type="Literal",h.start=e,h.end=n,h.loc=a,h.range=u,h.raw=l,h.value=p,h}initFunction(t,e){super.initFunction(t,e),t.expression=!1}checkDeclaration(t){t!=null&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var e;return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!((e=t.expression.extra)!=null&&e.parenthesized)}parseBlockBody(t,e,n,a,u){super.parseBlockBody(t,e,n,a,u);let l=t.directives.map(p=>this.directiveToStmt(p));t.body=l.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(t)}convertPrivateNameToPrivateIdentifier(t){let e=super.getPrivateNameSV(t);return delete t.id,t.name=e,this.castNodeTo(t,"PrivateIdentifier")}isPrivateName(t){return t.type==="PrivateIdentifier"}getPrivateNameSV(t){return t.name}parseLiteral(t,e){let n=super.parseLiteral(t,e);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(t,e,n=!1){super.parseFunctionBody(t,e,n),t.expression=t.body.type!=="BlockStatement"}parseMethod(t,e,n,a,u,l,p=!1){let h=this.startNode();h.kind=t.kind,h=super.parseMethod(h,e,n,a,u,l,p),delete h.kind;let{typeParameters:d}=t;d&&(delete t.typeParameters,h.typeParameters=d,this.resetStartLocationFromNode(h,d));let m=this.castNodeTo(h,this.hasPlugin("typescript")&&!h.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return t.value=m,l==="ClassPrivateMethod"&&(t.computed=!1),this.hasPlugin("typescript")&&t.abstract?(delete t.abstract,this.finishNode(t,"TSAbstractMethodDefinition")):l==="ObjectMethod"?(t.kind==="method"&&(t.kind="init"),t.shorthand=!1,this.finishNode(t,"Property")):this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return t.type==="Literal"?t.value==="constructor":super.nameIsConstructor(t)}parseClassProperty(...t){let e=super.parseClassProperty(...t);return e.abstract&&this.hasPlugin("typescript")?(delete e.abstract,this.castNodeTo(e,"TSAbstractPropertyDefinition")):this.castNodeTo(e,"PropertyDefinition"),e}parseClassPrivateProperty(...t){let e=super.parseClassPrivateProperty(...t);return e.abstract&&this.hasPlugin("typescript")?this.castNodeTo(e,"TSAbstractPropertyDefinition"):this.castNodeTo(e,"PropertyDefinition"),e.computed=!1,e}parseClassAccessorProperty(t){let e=super.parseClassAccessorProperty(t);return e.abstract&&this.hasPlugin("typescript")?(delete e.abstract,this.castNodeTo(e,"TSAbstractAccessorProperty")):this.castNodeTo(e,"AccessorProperty"),e}parseObjectProperty(t,e,n,a){let u=super.parseObjectProperty(t,e,n,a);return u&&(u.kind="init",this.castNodeTo(u,"Property")),u}finishObjectProperty(t){return t.kind="init",this.finishNode(t,"Property")}isValidLVal(t,e,n,a){return t==="Property"?"value":super.isValidLVal(t,e,n,a)}isAssignable(t,e){return t!=null&&this.isObjectProperty(t)?this.isAssignable(t.value,e):super.isAssignable(t,e)}toAssignable(t,e=!1){if(t!=null&&this.isObjectProperty(t)){let{key:n,value:a}=t;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(a,e)}else super.toAssignable(t,e)}toAssignableObjectExpressionProp(t,e,n){t.type==="Property"&&(t.kind==="get"||t.kind==="set")?this.raise($.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise($.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,e,n)}finishCallExpression(t,e){let n=super.finishCallExpression(t,e);return n.callee.type==="Import"?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(t){t.type!=="ImportExpression"&&super.toReferencedArguments(t)}parseExport(t,e){var u;let n=this.state.lastTokStartLoc,a=super.parseExport(t,e);switch(a.type){case"ExportAllDeclaration":a.exported=null;break;case"ExportNamedDeclaration":a.specifiers.length===1&&a.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(a,"ExportAllDeclaration"),a.exported=a.specifiers[0].exported,delete a.specifiers);case"ExportDefaultDeclaration":{let{declaration:l}=a;(l==null?void 0:l.type)==="ClassDeclaration"&&((u=l.decorators)==null?void 0:u.length)>0&&l.start===a.start&&this.resetStartLocation(a,n)}break}return a}stopParseSubscript(t,e){let n=super.stopParseSubscript(t,e);return e.optionalChainMember?this.estreeParseChainExpression(n,t.loc.end):n}parseMember(t,e,n,a,u){let l=super.parseMember(t,e,n,a,u);return l.type==="OptionalMemberExpression"?this.castNodeTo(l,"MemberExpression"):l.optional=!1,l}isOptionalMemberExpression(t){return t.type==="ChainExpression"?t.expression.type==="MemberExpression":super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return t.type==="ChainExpression"&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return t.type==="Property"&&t.kind==="init"&&!t.method}isObjectMethod(t){return t.type==="Property"&&(t.method||t.kind==="get"||t.kind==="set")}castNodeTo(t,e){let n=super.castNodeTo(t,e);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(t){let e=super.cloneIdentifier(t);return this.fillOptionalPropertiesForTSESLint(e),e}cloneStringLiteral(t){return t.type==="Literal"?this.cloneEstreeStringLiteral(t):super.cloneStringLiteral(t)}finishNodeAt(t,e,n){return Vl(super.finishNodeAt(t,e,n))}finishNode(t,e){let n=super.finishNode(t,e);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(t,e){super.resetStartLocation(t,e),Vl(t)}resetEndLocation(t,e=this.state.lastTokEndLoc){super.resetEndLocation(t,e),Vl(t)}},hh=class{constructor(t,e){pe(this,"token");pe(this,"preserveSpace");this.token=t,this.preserveSpace=!!e}},Dt={brace:new hh("{"),j_oTag:new hh("<tag"),j_cTag:new hh("</tag"),j_expr:new hh("<tag>...</tag>",!0)},qe=!0,ye=!0,py=!0,Jl=!0,Ia=!0,Bk=!0,xv=class{constructor(t,e={}){pe(this,"label");pe(this,"keyword");pe(this,"beforeExpr");pe(this,"startsExpr");pe(this,"rightAssociative");pe(this,"isLoop");pe(this,"isAssign");pe(this,"prefix");pe(this,"postfix");pe(this,"binop");this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null}},BD=new Map;function et(r,t={}){t.keyword=r;let e=Te(r,t);return BD.set(r,e),e}function mr(r,t){return Te(r,{beforeExpr:qe,binop:t})}var ic=-1,PD=[],kD=[],ID=[],MD=[],OD=[],LD=[];function Te(r,t={}){return++ic,kD.push(r),ID.push(t.binop??-1),MD.push(t.beforeExpr??!1),OD.push(t.startsExpr??!1),LD.push(t.prefix??!1),PD.push(new xv(r,t)),ic}function Je(r,t={}){return++ic,BD.set(r,ic),kD.push(r),ID.push(t.binop??-1),MD.push(t.beforeExpr??!1),OD.push(t.startsExpr??!1),LD.push(t.prefix??!1),PD.push(new xv("name",t)),ic}var Pk={bracketL:Te("[",{beforeExpr:qe,startsExpr:ye}),bracketHashL:Te("#[",{beforeExpr:qe,startsExpr:ye}),bracketBarL:Te("[|",{beforeExpr:qe,startsExpr:ye}),bracketR:Te("]"),bracketBarR:Te("|]"),braceL:Te("{",{beforeExpr:qe,startsExpr:ye}),braceBarL:Te("{|",{beforeExpr:qe,startsExpr:ye}),braceHashL:Te("#{",{beforeExpr:qe,startsExpr:ye}),braceR:Te("}"),braceBarR:Te("|}"),parenL:Te("(",{beforeExpr:qe,startsExpr:ye}),parenR:Te(")"),comma:Te(",",{beforeExpr:qe}),semi:Te(";",{beforeExpr:qe}),colon:Te(":",{beforeExpr:qe}),doubleColon:Te("::",{beforeExpr:qe}),dot:Te("."),question:Te("?",{beforeExpr:qe}),questionDot:Te("?."),arrow:Te("=>",{beforeExpr:qe}),template:Te("template"),ellipsis:Te("...",{beforeExpr:qe}),backQuote:Te("`",{startsExpr:ye}),dollarBraceL:Te("${",{beforeExpr:qe,startsExpr:ye}),templateTail:Te("...`",{startsExpr:ye}),templateNonTail:Te("...${",{beforeExpr:qe,startsExpr:ye}),at:Te("@"),hash:Te("#",{startsExpr:ye}),interpreterDirective:Te("#!..."),eq:Te("=",{beforeExpr:qe,isAssign:Jl}),assign:Te("_=",{beforeExpr:qe,isAssign:Jl}),slashAssign:Te("_=",{beforeExpr:qe,isAssign:Jl}),xorAssign:Te("_=",{beforeExpr:qe,isAssign:Jl}),moduloAssign:Te("_=",{beforeExpr:qe,isAssign:Jl}),incDec:Te("++/--",{prefix:Ia,postfix:Bk,startsExpr:ye}),bang:Te("!",{beforeExpr:qe,prefix:Ia,startsExpr:ye}),tilde:Te("~",{beforeExpr:qe,prefix:Ia,startsExpr:ye}),doubleCaret:Te("^^",{startsExpr:ye}),doubleAt:Te("@@",{startsExpr:ye}),pipeline:mr("|>",0),nullishCoalescing:mr("??",1),logicalOR:mr("||",1),logicalAND:mr("&&",2),bitwiseOR:mr("|",3),bitwiseXOR:mr("^",4),bitwiseAND:mr("&",5),equality:mr("==/!=/===/!==",6),lt:mr("</>/<=/>=",7),gt:mr("</>/<=/>=",7),relational:mr("</>/<=/>=",7),bitShift:mr("<</>>/>>>",8),bitShiftL:mr("<</>>/>>>",8),bitShiftR:mr("<</>>/>>>",8),plusMin:Te("+/-",{beforeExpr:qe,binop:9,prefix:Ia,startsExpr:ye}),modulo:Te("%",{binop:10,startsExpr:ye}),star:Te("*",{binop:10}),slash:mr("/",10),exponent:Te("**",{beforeExpr:qe,binop:11,rightAssociative:!0}),_in:et("in",{beforeExpr:qe,binop:7}),_instanceof:et("instanceof",{beforeExpr:qe,binop:7}),_break:et("break"),_case:et("case",{beforeExpr:qe}),_catch:et("catch"),_continue:et("continue"),_debugger:et("debugger"),_default:et("default",{beforeExpr:qe}),_else:et("else",{beforeExpr:qe}),_finally:et("finally"),_function:et("function",{startsExpr:ye}),_if:et("if"),_return:et("return",{beforeExpr:qe}),_switch:et("switch"),_throw:et("throw",{beforeExpr:qe,prefix:Ia,startsExpr:ye}),_try:et("try"),_var:et("var"),_const:et("const"),_with:et("with"),_new:et("new",{beforeExpr:qe,startsExpr:ye}),_this:et("this",{startsExpr:ye}),_super:et("super",{startsExpr:ye}),_class:et("class",{startsExpr:ye}),_extends:et("extends",{beforeExpr:qe}),_export:et("export"),_import:et("import",{startsExpr:ye}),_null:et("null",{startsExpr:ye}),_true:et("true",{startsExpr:ye}),_false:et("false",{startsExpr:ye}),_typeof:et("typeof",{beforeExpr:qe,prefix:Ia,startsExpr:ye}),_void:et("void",{beforeExpr:qe,prefix:Ia,startsExpr:ye}),_delete:et("delete",{beforeExpr:qe,prefix:Ia,startsExpr:ye}),_do:et("do",{isLoop:py,beforeExpr:qe}),_for:et("for",{isLoop:py}),_while:et("while",{isLoop:py}),_as:Je("as",{startsExpr:ye}),_assert:Je("assert",{startsExpr:ye}),_async:Je("async",{startsExpr:ye}),_await:Je("await",{startsExpr:ye}),_defer:Je("defer",{startsExpr:ye}),_from:Je("from",{startsExpr:ye}),_get:Je("get",{startsExpr:ye}),_let:Je("let",{startsExpr:ye}),_meta:Je("meta",{startsExpr:ye}),_of:Je("of",{startsExpr:ye}),_sent:Je("sent",{startsExpr:ye}),_set:Je("set",{startsExpr:ye}),_source:Je("source",{startsExpr:ye}),_static:Je("static",{startsExpr:ye}),_using:Je("using",{startsExpr:ye}),_yield:Je("yield",{startsExpr:ye}),_asserts:Je("asserts",{startsExpr:ye}),_checks:Je("checks",{startsExpr:ye}),_exports:Je("exports",{startsExpr:ye}),_global:Je("global",{startsExpr:ye}),_implements:Je("implements",{startsExpr:ye}),_intrinsic:Je("intrinsic",{startsExpr:ye}),_infer:Je("infer",{startsExpr:ye}),_is:Je("is",{startsExpr:ye}),_mixins:Je("mixins",{startsExpr:ye}),_proto:Je("proto",{startsExpr:ye}),_require:Je("require",{startsExpr:ye}),_satisfies:Je("satisfies",{startsExpr:ye}),_keyof:Je("keyof",{startsExpr:ye}),_readonly:Je("readonly",{startsExpr:ye}),_unique:Je("unique",{startsExpr:ye}),_abstract:Je("abstract",{startsExpr:ye}),_declare:Je("declare",{startsExpr:ye}),_enum:Je("enum",{startsExpr:ye}),_module:Je("module",{startsExpr:ye}),_namespace:Je("namespace",{startsExpr:ye}),_interface:Je("interface",{startsExpr:ye}),_type:Je("type",{startsExpr:ye}),_opaque:Je("opaque",{startsExpr:ye}),name:Te("name",{startsExpr:ye}),placeholder:Te("%%",{startsExpr:ye}),string:Te("string",{startsExpr:ye}),num:Te("num",{startsExpr:ye}),bigint:Te("bigint",{startsExpr:ye}),decimal:Te("decimal",{startsExpr:ye}),regexp:Te("regexp",{startsExpr:ye}),privateName:Te("#name",{startsExpr:ye}),eof:Te("eof"),jsxName:Te("jsxName"),jsxText:Te("jsxText",{beforeExpr:qe}),jsxTagStart:Te("jsxTagStart",{startsExpr:ye}),jsxTagEnd:Te("jsxTagEnd")};function ot(r){return r>=93&&r<=133}function kk(r){return r<=92}function wn(r){return r>=58&&r<=133}function Ev(r){return r>=58&&r<=137}function Ik(r){return MD[r]}function Wl(r){return OD[r]}function Mk(r){return r>=29&&r<=33}function UA(r){return r>=129&&r<=131}function Ok(r){return r>=90&&r<=92}function RD(r){return r>=58&&r<=92}function Lk(r){return r>=39&&r<=59}function Rk(r){return r===34}function _k(r){return LD[r]}function jk(r){return r>=121&&r<=123}function $k(r){return r>=124&&r<=130}function Wa(r){return kD[r]}function Nh(r){return ID[r]}function zk(r){return r===57}function i0(r){return r>=24&&r<=25}function bv(r){return PD[r]}var _D="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Av="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Uk=new RegExp("["+_D+"]"),qk=new RegExp("["+_D+Av+"]");_D=Av=null;var Cv=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Hk=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function u0(r,t){let e=65536;for(let n=0,a=t.length;n<a;n+=2){if(e+=t[n],e>r)return!1;if(e+=t[n+1],e>=r)return!0}return!1}function Qn(r){return r<65?r===36:r<=90?!0:r<97?r===95:r<=122?!0:r<=65535?r>=170&&Uk.test(String.fromCharCode(r)):u0(r,Cv)}function Yi(r){return r<48?r===36:r<58?!0:r<65?!1:r<=90?!0:r<97?r===95:r<=122?!0:r<=65535?r>=170&&qk.test(String.fromCharCode(r)):u0(r,Cv)||u0(r,Hk)}var jD={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Vk=new Set(jD.keyword),Jk=new Set(jD.strict),Xk=new Set(jD.strictBind);function Fv(r,t){return t&&r==="await"||r==="enum"}function vv(r,t){return Fv(r,t)||Jk.has(r)}function Sv(r){return Xk.has(r)}function Tv(r,t){return vv(r,t)||Sv(r)}function Gk(r){return Vk.has(r)}function Kk(r,t,e){return r===64&&t===64&&Qn(e)}var Qk=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Yk(r){return Qk.has(r)}var $D=class{constructor(t){pe(this,"flags",0);pe(this,"names",new Map);pe(this,"firstLexicalName","");this.flags=t}},zD=class{constructor(r,t){pe(this,"parser");pe(this,"scopeStack",[]);pe(this,"inModule");pe(this,"undefinedExports",new Map);this.parser=r,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let r=this.currentThisScopeFlags();return(r&64)>0&&(r&2)===0}get inStaticBlock(){for(let r=this.scopeStack.length-1;;r--){let{flags:t}=this.scopeStack[r];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(r){return new $D(r)}enter(r){this.scopeStack.push(this.createScope(r))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(r){return!!(r.flags&130||!this.parser.inModule&&r.flags&1)}declareName(r,t,e){let n=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(n,r,t,e);let a=n.names.get(r)||0;t&16?a=a|4:(n.firstLexicalName||(n.firstLexicalName=r),a=a|2),n.names.set(r,a),t&8&&this.maybeExportDefined(n,r)}else if(t&4)for(let a=this.scopeStack.length-1;a>=0&&(n=this.scopeStack[a],this.checkRedeclarationInScope(n,r,t,e),n.names.set(r,(n.names.get(r)||0)|1),this.maybeExportDefined(n,r),!(n.flags&1667));--a);this.parser.inModule&&n.flags&1&&this.undefinedExports.delete(r)}maybeExportDefined(r,t){this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(r,t,e,n){this.isRedeclaredInScope(r,t,e)&&this.parser.raise($.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(r,t,e){if(!(e&1))return!1;if(e&8)return r.names.has(t);let n=r.names.get(t)||0;return e&16?(n&2)>0||!this.treatFunctionsAsVarInScope(r)&&(n&1)>0:(n&2)>0&&!(r.flags&8&&r.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(r)&&(n&4)>0}checkLocalExport(r){let{name:t}=r;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,r.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let r=this.scopeStack.length-1;;r--){let{flags:t}=this.scopeStack[r];if(t&1667)return t}}currentThisScopeFlags(){for(let r=this.scopeStack.length-1;;r--){let{flags:t}=this.scopeStack[r];if(t&1731&&!(t&4))return t}}},Wk=class extends $D{constructor(){super(...arguments);pe(this,"declareFunctions",new Set)}},Zk=class extends zD{createScope(t){return new Wk(t)}declareName(t,e,n){let a=this.currentScope();if(e&2048){this.checkRedeclarationInScope(a,t,e,n),this.maybeExportDefined(a,t),a.declareFunctions.add(t);return}super.declareName(t,e,n)}isRedeclaredInScope(t,e,n){if(super.isRedeclaredInScope(t,e,n))return!0;if(n&2048&&!t.declareFunctions.has(e)){let a=t.names.get(e);return(a&4)>0||(a&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},eI=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Ne=Kn`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:r})=>`Cannot overwrite reserved type ${r}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:r,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${r} = true,\` or \`${r} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:r,enumName:t})=>`Enum member names need to be unique, but the name \`${r}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:r})=>`Enum \`${r}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:r,enumName:t})=>`Enum type \`${r}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:r})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:r,memberName:t,explicitType:e})=>`Enum \`${r}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:r,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${r}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:r,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${r}\`.`,EnumInvalidMemberName:({enumName:r,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${r}\`.`,EnumNumberMemberNotInitialized:({enumName:r,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${r}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:r})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${r}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:r})=>`Unexpected reserved type ${r}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:r,suggestion:t})=>`\`declare export ${r}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function tI(r){return r.type==="DeclareExportAllDeclaration"||r.type==="DeclareExportDeclaration"&&(!r.declaration||r.declaration.type!=="TypeAlias"&&r.declaration.type!=="InterfaceDeclaration")}function qA(r){return r.importKind==="type"||r.importKind==="typeof"}var rI={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function nI(r,t){let e=[],n=[];for(let a=0;a<r.length;a++)(t(r[a],a,r)?e:n).push(r[a]);return[e,n]}var sI=/\*?\s*@((?:no)?flow)\b/,aI=r=>class extends r{constructor(){super(...arguments);pe(this,"flowPragma")}getScopeHandler(){return Zk}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,n){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,n)}addComment(e){if(this.flowPragma===void 0){let n=sI.exec(e.value);if(n)if(n[1]==="flow")this.flowPragma="flow";else if(n[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let n=this.state.inType;this.state.inType=!0,this.expect(e||14);let a=this.flowParseType();return this.state.inType=n,a}flowParsePredicate(){let e=this.startNode(),n=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>n.index+1&&this.raise(Ne.UnexpectedSpaceBetweenModuloChecks,n),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let n=null,a=null;return this.match(54)?(this.state.inType=e,a=this.flowParsePredicate()):(n=this.flowParseType(),this.state.inType=e,this.match(54)&&(a=this.flowParsePredicate())),[n,a]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let n=e.id=this.parseIdentifier(),a=this.startNode(),u=this.startNode();this.match(47)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,this.expect(10);let l=this.flowParseFunctionTypeParams();return a.params=l.params,a.rest=l.rest,a.this=l._this,this.expect(11),[a.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),u.typeAnnotation=this.finishNode(a,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(u,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,n){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(n&&this.raise(Ne.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,n);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let n=e.body=this.startNode(),a=n.body=[];for(this.expect(5);!this.match(8);){let p=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Ne.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),a.push(super.parseImport(p))):(this.expectContextual(125,Ne.UnsupportedStatementInDeclareModule),a.push(this.flowParseDeclare(p,!0)))}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");let u=null,l=!1;return a.forEach(p=>{tI(p)?(u==="CommonJS"&&this.raise(Ne.AmbiguousDeclareModuleKind,p),u="ES"):p.type==="DeclareModuleExports"&&(l&&this.raise(Ne.DuplicateDeclareModuleExports,p),u==="ES"&&this.raise(Ne.AmbiguousDeclareModuleKind,p),u="CommonJS",l=!0)}),e.kind=u||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,n){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!n){let a=this.state.value;throw this.raise(Ne.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:a,suggestion:rI[a]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let n=this.flowParseTypeAlias(e);return this.castNodeTo(n,"DeclareTypeAlias"),n}flowParseDeclareOpaqueType(e){this.next();let n=this.flowParseOpaqueType(e,!0);return this.castNodeTo(n,"DeclareOpaqueType"),n}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,n){if(e.id=this.flowParseRestrictedIdentifier(!n,!0),this.scope.declareName(e.id.name,n?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!n&&this.eat(12));if(n){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:n,allowExact:!1,allowSpread:!1,allowProto:n,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(Ne.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,n,a){eI.has(e)&&this.raise(a?Ne.AssignReservedType:Ne.UnexpectedReservedType,n,{reservedType:e})}flowParseRestrictedIdentifier(e,n){return this.checkReservedType(this.state.value,this.state.startLoc,n),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,n){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,n||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let n=this.state.startLoc,a=this.startNode(),u=this.flowParseVariance(),l=this.flowParseTypeAnnotatableIdentifier();return a.name=l.name,a.variance=u,a.bound=l.typeAnnotation,this.match(29)?(this.eat(29),a.default=this.flowParseType()):e&&this.raise(Ne.MissingTypeParamDefault,n),this.finishNode(a,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let a=!1;do{let u=this.flowParseTypeParameter(a);n.params.push(u),u.default&&(a=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(n,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==Dt.brace){let n=this.state.context;this.state.context=[n[0]];try{return e()}finally{this.state.context=n}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),n=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let a=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=a}),this.state.inType=n,!this.state.inType&&this.curContext()===Dt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let e=this.startNode(),n=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=n,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,n,a){return e.static=n,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=a,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,n){return e.static=n,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,n){let a=this.startNode();return e.static=n,e.value=this.flowParseObjectTypeMethodish(a),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:n,allowSpread:a,allowProto:u,allowInexact:l}){let p=this.state.inType;this.state.inType=!0;let h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let d,m,D=!1;for(n&&this.match(6)?(this.expect(6),d=9,m=!0):(this.expect(5),d=8,m=!1),h.exact=m;!this.match(d);){let x=!1,b=null,C=null,S=this.startNode();if(u&&this.isContextual(118)){let F=this.lookahead();F.type!==14&&F.type!==17&&(this.next(),b=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let F=this.lookahead();F.type!==14&&F.type!==17&&(this.next(),x=!0)}let v=this.flowParseVariance();if(this.eat(0))b!=null&&this.unexpected(b),this.eat(0)?(v&&this.unexpected(v.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(S,x))):h.indexers.push(this.flowParseObjectTypeIndexer(S,x,v));else if(this.match(10)||this.match(47))b!=null&&this.unexpected(b),v&&this.unexpected(v.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(S,x));else{let F="init";if(this.isContextual(99)||this.isContextual(104)){let T=this.lookahead();Ev(T.type)&&(F=this.state.value,this.next())}let w=this.flowParseObjectTypeProperty(S,x,b,v,F,a,l??!m);w===null?(D=!0,C=this.state.lastTokStartLoc):h.properties.push(w)}this.flowObjectTypeSemicolon(),C&&!this.match(8)&&!this.match(9)&&this.raise(Ne.UnexpectedExplicitInexactInObject,C)}this.expect(d),a&&(h.inexact=D);let g=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=p,g}flowParseObjectTypeProperty(e,n,a,u,l,p,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(p?h||this.raise(Ne.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Ne.InexactInsideNonObject,this.state.lastTokStartLoc),u&&this.raise(Ne.InexactVariance,u),null):(p||this.raise(Ne.UnexpectedSpreadType,this.state.lastTokStartLoc),a!=null&&this.unexpected(a),u&&this.raise(Ne.SpreadVariance,u),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=n,e.proto=a!=null,e.kind=l;let d=!1;return this.match(47)||this.match(10)?(e.method=!0,a!=null&&this.unexpected(a),u&&this.unexpected(u.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(l==="get"||l==="set")&&this.flowCheckGetterSetterParams(e),!p&&e.key.name==="constructor"&&e.value.this&&this.raise(Ne.ThisParamBannedInConstructor,e.value.this)):(l!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(d=!0),e.value=this.flowParseTypeInitialiser(),e.variance=u),e.optional=d,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let n=e.kind==="get"?0:1,a=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?Ne.GetterMayNotHaveThisParam:Ne.SetterMayNotHaveThisParam,e.value.this),a!==n&&this.raise(e.kind==="get"?$.BadGetterArity:$.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise($.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,n){e??(e=this.state.startLoc);let a=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let u=this.startNodeAt(e);u.qualification=a,u.id=this.flowParseRestrictedIdentifier(!0),a=this.finishNode(u,"QualifiedTypeIdentifier")}return a}flowParseGenericType(e,n){let a=this.startNodeAt(e);return a.typeParameters=null,a.id=this.flowParseQualifiedTypeIdentifier(e,n),this.match(47)&&(a.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(a,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let n=null,a=!1,u=null,l=this.startNode(),p=this.lookahead(),h=this.state.type===78;return p.type===14||p.type===17?(h&&!e&&this.raise(Ne.ThisParamMustBeFirst,l),n=this.parseIdentifier(h),this.eat(17)&&(a=!0,h&&this.raise(Ne.ThisParamMayNotBeOptional,l)),u=this.flowParseTypeInitialiser()):u=this.flowParseType(),l.name=n,l.optional=a,l.typeAnnotation=u,this.finishNode(l,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let n=this.startNodeAt(e.loc.start);return n.name=null,n.optional=!1,n.typeAnnotation=e,this.finishNode(n,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let n=null,a=null;for(this.match(78)&&(a=this.flowParseFunctionTypeParam(!0),a.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(n=this.flowParseFunctionTypeParam(!1)),{params:e,rest:n,_this:a}}flowIdentToTypeAnnotation(e,n,a){switch(a.name){case"any":return this.finishNode(n,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(n,"BooleanTypeAnnotation");case"mixed":return this.finishNode(n,"MixedTypeAnnotation");case"empty":return this.finishNode(n,"EmptyTypeAnnotation");case"number":return this.finishNode(n,"NumberTypeAnnotation");case"string":return this.finishNode(n,"StringTypeAnnotation");case"symbol":return this.finishNode(n,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(a.name),this.flowParseGenericType(e,a)}}flowParsePrimaryType(){let e=this.state.startLoc,n=this.startNode(),a,u,l=!1,p=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,u=this.flowParseTupleType(),this.state.noAnonFunctionType=p,u;case 47:{let h=this.startNode();return h.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),a=this.flowParseFunctionTypeParams(),h.params=a.params,h.rest=a.rest,h.this=a._this,this.expect(11),this.expect(19),h.returnType=this.flowParseType(),this.finishNode(h,"FunctionTypeAnnotation")}case 10:{let h=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(ot(this.state.type)||this.match(78)){let d=this.lookahead().type;l=d!==17&&d!==14}else l=!0;if(l){if(this.state.noAnonFunctionType=!1,u=this.flowParseType(),this.state.noAnonFunctionType=p,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),u;this.eat(12)}return u?a=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(u)]):a=this.flowParseFunctionTypeParams(),h.params=a.params,h.rest=a.rest,h.this=a._this,this.expect(11),this.expect(19),h.returnType=this.flowParseType(),h.typeParameters=null,this.finishNode(h,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return n.value=this.match(85),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(Ne.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(RD(this.state.type)){let h=Wa(this.state.type);return this.next(),super.createIdentifier(n,h)}else if(ot(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,n,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,n=this.flowParsePrimaryType(),a=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let u=this.startNodeAt(e),l=this.eat(18);a=a||l,this.expect(0),!l&&this.match(3)?(u.elementType=n,this.next(),n=this.finishNode(u,"ArrayTypeAnnotation")):(u.objectType=n,u.indexType=this.flowParseType(),this.expect(3),a?(u.optional=l,n=this.finishNode(u,"OptionalIndexedAccessType")):n=this.finishNode(u,"IndexedAccessType"))}return n}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let n=this.startNodeAt(e.loc.start);return n.params=[this.reinterpretTypeAsFunctionTypeParam(e)],n.rest=null,n.this=null,n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let n=this.flowParseAnonFunctionWithoutParens();for(e.types=[n];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?n:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let n=this.flowParseIntersectionType();for(e.types=[n];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?n:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let n=this.flowParseUnionType();return this.state.inType=e,n}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let e=this.state.startLoc,n=this.parseIdentifier();return this.flowParseGenericType(e,n)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let n=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(n.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(n)),n}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value==="+"?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,n,a=!1){if(n){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,a));return}super.parseFunctionBody(e,!1,a)}parseFunctionBodyAndFinish(e,n,a=!1){if(this.match(14)){let u=this.startNode();[u.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=u.typeAnnotation?this.finishNode(u,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,n,a)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){let a=this.lookahead();if(wn(a.type)){let u=this.startNode();return this.next(),this.flowParseInterface(u)}}else if(this.isContextual(126)){let a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}let n=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(e,n,a){if(n.type==="Identifier"){if(n.name==="declare"){if(this.match(80)||ot(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(ot(this.state.type)){if(n.name==="interface")return this.flowParseInterface(e);if(n.name==="type")return this.flowParseTypeAlias(e);if(n.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,n,a)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||UA(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||UA(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,n,a){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let g=this.lookaheadCharCode();if(g===44||g===61||g===58||g===41)return this.setOptionalParametersError(a),e}this.expect(17);let u=this.state.clone(),l=this.state.noArrowAt,p=this.startNodeAt(n),{consequent:h,failed:d}=this.tryParseConditionalConsequent(),[m,D]=this.getArrowLikeExpressions(h);if(d||D.length>0){let g=[...l];if(D.length>0){this.state=u,this.state.noArrowAt=g;for(let x=0;x<D.length;x++)g.push(D[x].start);({consequent:h,failed:d}=this.tryParseConditionalConsequent()),[m,D]=this.getArrowLikeExpressions(h)}d&&m.length>1&&this.raise(Ne.AmbiguousConditionalArrow,u.startLoc),d&&m.length===1&&(this.state=u,g.push(m[0].start),this.state.noArrowAt=g,{consequent:h,failed:d}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=l,this.expect(14),p.test=e,p.consequent=h,p.alternate=this.forwardNoArrowParamsConversionAt(p,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(p,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),n=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:n}}getArrowLikeExpressions(e,n){let a=[e],u=[];for(;a.length!==0;){let l=a.pop();l.type==="ArrowFunctionExpression"&&l.body.type!=="BlockStatement"?(l.typeParameters||!l.returnType?this.finishArrowValidation(l):u.push(l),a.push(l.body)):l.type==="ConditionalExpression"&&(a.push(l.consequent),a.push(l.alternate))}return n?(u.forEach(l=>this.finishArrowValidation(l)),[u,[]]):nI(u,l=>l.params.every(p=>this.isAssignable(p,!0)))}finishArrowValidation(e){var n;this.toAssignableList(e.params,(n=e.extra)==null?void 0:n.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,n){let a;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),a=n(),this.state.noArrowParamsConversionAt.pop()):a=n(),a}parseParenItem(e,n){let a=super.parseParenItem(e,n);if(this.eat(17)&&(a.optional=!0,this.resetEndLocation(e)),this.match(14)){let u=this.startNodeAt(n);return u.expression=a,u.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(u,"TypeCastExpression")}return a}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let n=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(n)}else if(this.isContextual(131)){e.exportKind="type";let n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}else if(this.isContextual(129)){e.exportKind="type";let n=this.startNode();return this.next(),this.flowParseInterface(n)}else if(this.isContextual(126)){e.exportKind="value";let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:n}=this.state,a=super.maybeParseExportNamespaceSpecifier(e);return a&&e.exportKind==="type"&&this.unexpected(n),a}parseClassId(e,n,a){super.parseClassId(e,n,a),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,n,a){let{startLoc:u}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,n))return;n.declare=!0}super.parseClassMember(e,n,a),n.declare&&(n.type!=="ClassProperty"&&n.type!=="ClassPrivateProperty"&&n.type!=="PropertyDefinition"?this.raise(Ne.DeclareClassElement,u):n.value&&this.raise(Ne.DeclareClassFieldInitializer,n.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),n="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise($.InvalidIdentifier,this.state.curPosition(),{identifierName:n}),this.finishToken(132,n)}getTokenFromCode(e){let n=this.input.charCodeAt(this.state.pos+1);e===123&&n===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?n===46?this.finishOp(18,2):this.finishOp(17,1):Kk(e,n,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,n){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,n):super.isAssignable(e,n)}toAssignable(e,n=!1){!n&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,n)}toAssignableList(e,n,a){for(let u=0;u<e.length;u++){let l=e[u];(l==null?void 0:l.type)==="TypeCastExpression"&&(e[u]=this.typeCastToParameter(l))}super.toAssignableList(e,n,a)}toReferencedList(e,n){var a;for(let u=0;u<e.length;u++){let l=e[u];l&&l.type==="TypeCastExpression"&&!((a=l.extra)!=null&&a.parenthesized)&&(e.length>1||!n)&&this.raise(Ne.TypeCastInPattern,l.typeAnnotation)}return e}parseArrayLike(e,n,a){let u=super.parseArrayLike(e,n,a);return a!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(u.elements),u}isValidLVal(e,n,a,u){return e==="TypeCastExpression"||super.isValidLVal(e,n,a,u)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,n,a,u,l,p){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,n,a,u,l,p),n.params&&l){let h=n.params;h.length>0&&this.isThisParam(h[0])&&this.raise(Ne.ThisParamBannedInConstructor,n)}else if(n.type==="MethodDefinition"&&l&&n.value.params){let h=n.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(Ne.ThisParamBannedInConstructor,n)}}pushClassPrivateMethod(e,n,a,u){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,n,a,u)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let n=e.implements=[];do{let a=this.startNode();a.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,n.push(this.finishNode(a,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let n=this.getObjectOrClassMethodParams(e);if(n.length>0){let a=n[0];this.isThisParam(a)&&e.kind==="get"?this.raise(Ne.GetterMayNotHaveThisParam,a):this.isThisParam(a)&&this.raise(Ne.SetterMayNotHaveThisParam,a)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,n,a,u,l,p,h){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let d;this.match(47)&&!p&&(d=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let m=super.parseObjPropValue(e,n,a,u,l,p,h);return d&&((m.value||m).typeParameters=d),m}parseFunctionParamType(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(Ne.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Ne.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Ne.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Ne.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,n){let a=super.parseMaybeDefault(e,n);return a.type==="AssignmentPattern"&&a.typeAnnotation&&a.right.start<a.typeAnnotation.start&&this.raise(Ne.TypeBeforeInitializer,a.typeAnnotation),a}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(Ne.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,n,a){n.local=qA(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(n,a))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let n=this.lookaheadCharCode();return n===123||n===42}return!e&&this.isContextual(87)}applyImportPhase(e,n,a,u){if(super.applyImportPhase(e,n,a,u),n){if(!a&&this.match(65))return;e.exportKind=a==="type"?a:"value"}else a==="type"&&this.match(55)&&this.unexpected(),e.importKind=a==="type"||a==="typeof"?a:"value"}parseImportSpecifier(e,n,a,u,l){let p=e.imported,h=null;p.type==="Identifier"&&(p.name==="type"?h="type":p.name==="typeof"&&(h="typeof"));let d=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let D=this.parseIdentifier(!0);h!==null&&!wn(this.state.type)?(e.imported=D,e.importKind=h,e.local=this.cloneIdentifier(D)):(e.imported=p,e.importKind=null,e.local=this.parseIdentifier())}else{if(h!==null&&wn(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=h;else{if(n)throw this.raise($.ImportBindingIsString,e,{importName:p.value});e.imported=p,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(d=!0,e.local=this.cloneIdentifier(e.imported))}let m=qA(e);return a&&m&&this.raise(Ne.ImportTypeShorthandOnlyInPureImport,e),(a||m)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),d&&!a&&!m&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,n){let a=e.kind;a!=="get"&&a!=="set"&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,n)}parseVarId(e,n){super.parseVarId(e,n),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,n){if(this.match(14)){let a=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=a}return super.parseAsyncArrowFromCallExpression(e,n)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,n){let a=null,u;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(a=this.state.clone(),u=this.tryParse(()=>super.parseMaybeAssign(e,n),a),!u.error)return u.node;let{context:l}=this.state,p=l[l.length-1];(p===Dt.j_oTag||p===Dt.j_expr)&&l.pop()}if(u!=null&&u.error||this.match(47)){a=a||this.state.clone();let l,p=this.tryParse(d=>{var g;l=this.flowParseTypeParameterDeclaration();let m=this.forwardNoArrowParamsConversionAt(l,()=>{let x=super.parseMaybeAssign(e,n);return this.resetStartLocationFromNode(x,l),x});(g=m.extra)!=null&&g.parenthesized&&d();let D=this.maybeUnwrapTypeCastExpression(m);return D.type!=="ArrowFunctionExpression"&&d(),D.typeParameters=l,this.resetStartLocationFromNode(D,l),m},a),h=null;if(p.node&&this.maybeUnwrapTypeCastExpression(p.node).type==="ArrowFunctionExpression"){if(!p.error&&!p.aborted)return p.node.async&&this.raise(Ne.UnexpectedTypeParameterBeforeAsyncArrowFunction,l),p.node;h=p.node}if(u!=null&&u.node)return this.state=u.failState,u.node;if(h)return this.state=p.failState,h;throw u!=null&&u.thrown?u.error:p.thrown?p.error:this.raise(Ne.UnexpectedTokenAfterTypeParameter,l)}return super.parseMaybeAssign(e,n)}parseArrow(e){if(this.match(14)){let n=this.tryParse(()=>{let a=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let u=this.startNode();return[u.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=a,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),u});if(n.thrown)return null;n.error&&(this.state=n.failState),e.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,n){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=n:super.setArrowFunctionParameters(e,n)}checkParams(e,n,a,u=!0){if(!(a&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let l=0;l<e.params.length;l++)this.isThisParam(e.params[l])&&l>0&&this.raise(Ne.ThisParamMustBeFirst,e.params[l]);super.checkParams(e,n,a,u)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,n,a){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(n.index)){this.next();let u=this.startNodeAt(n);u.callee=e,u.arguments=super.parseCallExpressionArguments(),e=this.finishNode(u,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let u=this.state.clone(),l=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(n)||h(),u);if(!l.error&&!l.aborted)return l.node;let p=this.tryParse(()=>super.parseSubscripts(e,n,a),u);if(p.node&&!p.error)return p.node;if(l.node)return this.state=l.failState,l.node;if(p.node)return this.state=p.failState,p.node;throw l.error||p.error}return super.parseSubscripts(e,n,a)}parseSubscript(e,n,a,u){if(this.match(18)&&this.isLookaheadToken_lt()){if(u.optionalChainMember=!0,a)return u.stop=!0,e;this.next();let l=this.startNodeAt(n);return l.callee=e,l.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),l.arguments=this.parseCallExpressionArguments(),l.optional=!0,this.finishCallExpression(l,!0)}else if(!a&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let l=this.startNodeAt(n);l.callee=e;let p=this.tryParse(()=>(l.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),l.arguments=super.parseCallExpressionArguments(),u.optionalChainMember&&(l.optional=!1),this.finishCallExpression(l,u.optionalChainMember)));if(p.node)return p.error&&(this.state=p.failState),p.node}return super.parseSubscript(e,n,a,u)}parseNewCallee(e){super.parseNewCallee(e);let n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=n}parseAsyncArrowWithTypeParameters(e){let n=this.startNodeAt(e);if(this.parseFunctionParams(n,!1),!!this.parseArrow(n))return super.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(e){let n=this.input.charCodeAt(this.state.pos+1);if(e===42&&n===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let n=this.input.charCodeAt(this.state.pos+1);if(e===124&&n===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,n){let a=super.parseTopLevel(e,n);return this.state.hasFlowComment&&this.raise(Ne.UnterminatedFlowComment,this.state.curPosition()),a}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Ne.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,n=2;for(;[32,9].includes(this.input.charCodeAt(e+n));)n++;let a=this.input.charCodeAt(n+e),u=this.input.charCodeAt(n+e+1);return a===58&&u===58?n+2:this.input.slice(n+e,n+e+12)==="flow-include"?n+12:a===58&&u!==58?n:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise($.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:n,memberName:a}){this.raise(Ne.EnumBooleanMemberNotInitialized,e,{memberName:a,enumName:n})}flowEnumErrorInvalidMemberInitializer(e,n){return this.raise(n.explicitType?n.explicitType==="symbol"?Ne.EnumInvalidMemberInitializerSymbolType:Ne.EnumInvalidMemberInitializerPrimaryType:Ne.EnumInvalidMemberInitializerUnknownType,e,n)}flowEnumErrorNumberMemberNotInitialized(e,n){this.raise(Ne.EnumNumberMemberNotInitialized,e,n)}flowEnumErrorStringMemberInconsistentlyInitialized(e,n){this.raise(Ne.EnumStringMemberInconsistentlyInitialized,e,n)}flowEnumMemberInit(){let e=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let a=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:a.loc.start,value:a}:{type:"invalid",loc:e}}case 134:{let a=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:a.loc.start,value:a}:{type:"invalid",loc:e}}case 85:case 86:{let a=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:a.loc.start,value:a}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,n=this.parseIdentifier(!0),a=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:n,init:a}}flowEnumCheckExplicitTypeMismatch(e,n,a){let{explicitType:u}=n;u!==null&&u!==a&&this.flowEnumErrorInvalidMemberInitializer(e,n)}flowEnumMembers({enumName:e,explicitType:n}){let a=new Set,u={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},l=!1;for(;!this.match(8);){if(this.eat(21)){l=!0;break}let p=this.startNode(),{id:h,init:d}=this.flowEnumMemberRaw(),m=h.name;if(m==="")continue;/^[a-z]/.test(m)&&this.raise(Ne.EnumInvalidMemberName,h,{memberName:m,suggestion:m[0].toUpperCase()+m.slice(1),enumName:e}),a.has(m)&&this.raise(Ne.EnumDuplicateMemberName,h,{memberName:m,enumName:e}),a.add(m);let D={enumName:e,explicitType:n,memberName:m};switch(p.id=h,d.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(d.loc,D,"boolean"),p.init=d.value,u.booleanMembers.push(this.finishNode(p,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(d.loc,D,"number"),p.init=d.value,u.numberMembers.push(this.finishNode(p,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(d.loc,D,"string"),p.init=d.value,u.stringMembers.push(this.finishNode(p,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(d.loc,D);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(d.loc,D);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(d.loc,D);break;default:u.defaultedMembers.push(this.finishNode(p,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:u,hasUnknownMembers:l}}flowEnumStringMembers(e,n,{enumName:a}){if(e.length===0)return n;if(n.length===0)return e;if(n.length>e.length){for(let u of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(u,{enumName:a});return n}else{for(let u of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(u,{enumName:a});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!ot(this.state.type))throw this.raise(Ne.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(Ne.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:n}),n}flowEnumBody(e,n){let a=n.name,u=n.loc.start,l=this.flowEnumParseExplicitType({enumName:a});this.expect(5);let{members:p,hasUnknownMembers:h}=this.flowEnumMembers({enumName:a,explicitType:l});switch(e.hasUnknownMembers=h,l){case"boolean":return e.explicitType=!0,e.members=p.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=p.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(p.stringMembers,p.defaultedMembers,{enumName:a}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=p.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let d=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let m=p.booleanMembers.length,D=p.numberMembers.length,g=p.stringMembers.length,x=p.defaultedMembers.length;if(!m&&!D&&!g&&!x)return d();if(!m&&!D)return e.members=this.flowEnumStringMembers(p.stringMembers,p.defaultedMembers,{enumName:a}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!D&&!g&&m>=x){for(let b of p.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(b.loc.start,{enumName:a,memberName:b.id.name});return e.members=p.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!m&&!g&&D>=x){for(let b of p.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(b.loc.start,{enumName:a,memberName:b.id.name});return e.members=p.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(Ne.EnumInconsistentMemberValues,u,{enumName:a}),d()}}}flowParseEnumDeclaration(e){let n=this.parseIdentifier();return e.id=n,e.body=this.flowEnumBody(this.startNode(),n),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let n=this.input.charCodeAt(e+1);return n!==60&&n!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},iI=/\r\n|[\r\n\u2028\u2029]/,dh=new RegExp(iI.source,"g");function oo(r){switch(r){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function HA(r,t,e){for(let n=t;n<e;n++)if(oo(r.charCodeAt(n)))return!0;return!1}var hy=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,dy=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function uI(r){switch(r){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var ws=Kn`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:r})=>`Expected corresponding JSX closing tag for <${r}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:r,HTMLEntity:t})=>`Unexpected token \`${r}\`. Did you mean \`${t}\` or \`{'${r}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Ma(r){return r?r.type==="JSXOpeningFragment"||r.type==="JSXClosingFragment":!1}function io(r){if(r.type==="JSXIdentifier")return r.name;if(r.type==="JSXNamespacedName")return r.namespace.name+":"+r.name.name;if(r.type==="JSXMemberExpression")return io(r.object)+"."+io(r.property);throw new Error("Node had unexpected type: "+r.type)}var oI=r=>class extends r{jsxReadToken(){let t="",e=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ws.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}t+=this.input.slice(e,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;case 62:case 125:this.raise(ws.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:oo(n)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let e=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,e===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=t?`
|
|
294
|
+
`:`\r
|
|
295
|
+
`):n=String.fromCharCode(e),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(t){let e="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise($.UnterminatedString,this.state.startLoc);let a=this.input.charCodeAt(this.state.pos);if(a===t)break;a===38?(e+=this.input.slice(n,this.state.pos),e+=this.jsxReadEntity(),n=this.state.pos):oo(a)?(e+=this.input.slice(n,this.state.pos),e+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}e+=this.input.slice(n,this.state.pos++),this.finishToken(134,e)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;this.codePointAtPos(this.state.pos)===120&&(e=16,++this.state.pos);let n=this.readInt(e,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let e=0,n=!1;for(;e++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){this.input.slice(t,this.state.pos);let a;++this.state.pos}}return this.state.pos=t,"&"}jsxReadWord(){let t,e=this.state.pos;do t=this.input.charCodeAt(++this.state.pos);while(Yi(t)||t===45);this.finishToken(141,this.input.slice(e,this.state.pos))}jsxParseIdentifier(){let t=this.startNode();return this.match(141)?t.name=this.state.value:RD(this.state.type)?t.name=Wa(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){let t=this.state.startLoc,e=this.jsxParseIdentifier();if(!this.eat(14))return e;let n=this.startNodeAt(t);return n.namespace=e,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){let t=this.state.startLoc,e=this.jsxParseNamespacedName();if(e.type==="JSXNamespacedName")return e;for(;this.eat(16);){let n=this.startNodeAt(t);n.object=e,n.property=this.jsxParseIdentifier(),e=this.finishNode(n,"JSXMemberExpression")}return e}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(Dt.brace),this.next(),t=this.jsxParseExpressionContainer(t,Dt.j_oTag),t.expression.type==="JSXEmptyExpression"&&this.raise(ws.AttributeIsEmpty,t),t;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ws.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let t=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(Dt.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,e){var n;if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{let a=this.parseExpression();a.type==="SequenceExpression"&&!((n=a.extra)!=null&&n.parenthesized)&&this.raise(ws.UnexpectedSequenceExpression,a.expressions[1]),t.expression=a}return this.setContext(e),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){let t=this.startNode();return this.match(5)?(this.setContext(Dt.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(Dt.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t){let e=this.startNodeAt(t);return this.eat(144)?this.finishNode(e,"JSXOpeningFragment"):(e.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(e))}jsxParseOpeningElementAfterName(t){let e=[];for(;!this.match(56)&&!this.match(144);)e.push(this.jsxParseAttribute());return t.attributes=e,t.selfClosing=this.eat(56),this.expect(144),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t){let e=this.startNodeAt(t);return this.eat(144)?this.finishNode(e,"JSXClosingFragment"):(e.name=this.jsxParseElementName(),this.expect(144),this.finishNode(e,"JSXClosingElement"))}jsxParseElementAt(t){let e=this.startNodeAt(t),n=[],a=this.jsxParseOpeningElementAt(t),u=null;if(!a.selfClosing){e:for(;;)switch(this.state.type){case 143:if(t=this.state.startLoc,this.next(),this.eat(56)){u=this.jsxParseClosingElementAt(t);break e}n.push(this.jsxParseElementAt(t));break;case 142:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let l=this.startNode();this.setContext(Dt.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(l)):n.push(this.jsxParseExpressionContainer(l,Dt.j_expr));break}default:this.unexpected()}Ma(a)&&!Ma(u)&&u!==null?this.raise(ws.MissingClosingTagFragment,u):!Ma(a)&&Ma(u)?this.raise(ws.MissingClosingTagElement,u,{openingTagName:io(a.name)}):!Ma(a)&&!Ma(u)&&io(u.name)!==io(a.name)&&this.raise(ws.MissingClosingTagElement,u,{openingTagName:io(a.name)})}if(Ma(a)?(e.openingFragment=a,e.closingFragment=u):(e.openingElement=a,e.closingElement=u),e.children=n,this.match(47))throw this.raise(ws.UnwrappedAdjacentJSXElements,this.state.startLoc);return Ma(a)?this.finishNode(e,"JSXFragment"):this.finishNode(e,"JSXElement")}jsxParseElement(){let t=this.state.startLoc;return this.next(),this.jsxParseElementAt(t)}setContext(t){let{context:e}=this.state;e[e.length-1]=t}parseExprAtom(t){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){let e=this.curContext();if(e===Dt.j_expr){this.jsxReadToken();return}if(e===Dt.j_oTag||e===Dt.j_cTag){if(Qn(t)){this.jsxReadWord();return}if(t===62){++this.state.pos,this.finishToken(144);return}if((t===34||t===39)&&e===Dt.j_oTag){this.jsxReadString(t);return}}if(t===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(t)}updateContext(t){let{context:e,type:n}=this.state;if(n===56&&t===143)e.splice(-2,2,Dt.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)e.push(Dt.j_oTag);else if(n===144){let a=e[e.length-1];a===Dt.j_oTag&&t===56||a===Dt.j_cTag?(e.pop(),this.state.canStartJSXElement=e[e.length-1]===Dt.j_expr):(this.setContext(Dt.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=Ik(n)}},lI=class extends $D{constructor(){super(...arguments);pe(this,"tsNames",new Map)}},cI=class extends zD{constructor(){super(...arguments);pe(this,"importsStack",[])}createScope(e){return this.importsStack.push(new Set),new lI(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,n){let a=this.importsStack.length;if(this.importsStack[a-1].has(e))return!0;if(!n&&a>1){for(let u=0;u<a-1;u++)if(this.importsStack[u].has(e))return!0}return!1}declareName(e,n,a){if(n&4096){this.hasImport(e,!0)&&this.parser.raise($.VarRedeclaration,a,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let u=this.currentScope(),l=u.tsNames.get(e)||0;if(n&1024){this.maybeExportDefined(u,e),u.tsNames.set(e,l|16);return}super.declareName(e,n,a),n&2&&(n&1||(this.checkRedeclarationInScope(u,e,n,a),this.maybeExportDefined(u,e)),l=l|1),n&256&&(l=l|2),n&512&&(l=l|4),n&128&&(l=l|8),l&&u.tsNames.set(e,l)}isRedeclaredInScope(e,n,a){let u=e.tsNames.get(n);if((u&2)>0){if(a&256){let l=!!(a&512),p=(u&4)>0;return l!==p}return!0}return a&128&&(u&8)>0?e.names.get(n)&2?!!(a&1):!1:a&2&&(u&1)>0?!0:super.isRedeclaredInScope(e,n,a)}checkLocalExport(e){let{name:n}=e;if(this.hasImport(n))return;let a=this.scopeStack.length;for(let u=a-1;u>=0;u--){let l=this.scopeStack[u].tsNames.get(n);if((l&1)>0||(l&16)>0)return}super.checkLocalExport(e)}},pI=class{constructor(){pe(this,"stacks",[])}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Bh(r,t){return(r?2:0)|(t?1:0)}var hI=class{constructor(){pe(this,"sawUnambiguousESM",!1);pe(this,"ambiguousScriptDifferentAst",!1)}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[e,n]=t;if(!this.hasPlugin(e))return!1;let a=this.plugins.get(e);for(let u of Object.keys(n))if((a==null?void 0:a[u])!==n[u])return!1;return!0}}getPluginOption(t,e){var n;return(n=this.plugins.get(t))==null?void 0:n[e]}};function wv(r,t){r.trailingComments===void 0?r.trailingComments=t:r.trailingComments.unshift(...t)}function dI(r,t){r.leadingComments===void 0?r.leadingComments=t:r.leadingComments.unshift(...t)}function lo(r,t){r.innerComments===void 0?r.innerComments=t:r.innerComments.unshift(...t)}function Pi(r,t,e){let n=null,a=t.length;for(;n===null&&a>0;)n=t[--a];n===null||n.start>e.start?lo(r,e.comments):wv(n,e.comments)}var fI=class extends hI{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:e}=this.state,n=e.length;if(n===0)return;let a=n-1,u=e[a];u.start===t.end&&(u.leadingNode=t,a--);let{start:l}=t;for(;a>=0;a--){let p=e[a],h=p.end;if(h>l)p.containingNode=t,this.finalizeComment(p),e.splice(a,1);else{h===l&&(p.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&wv(t.leadingNode,e),t.trailingNode!==null&&dI(t.trailingNode,e);else{let n=t.containingNode,a=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(a)-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Pi(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":Pi(n,n.arguments,t);break;case"ImportExpression":Pi(n,[n.source,n.options??null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Pi(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Pi(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Pi(n,n.specifiers,t);break;case"TSEnumDeclaration":lo(n,e);break;case"TSEnumBody":Pi(n,n.members,t);break;default:lo(n,e)}else lo(n,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:n}=e;if(n===0)return;let a=e[n-1];a.leadingNode===t&&(a.leadingNode=null)}takeSurroundingComments(t,e,n){let{commentStack:a}=this.state,u=a.length;if(u===0)return;let l=u-1;for(;l>=0;l--){let p=a[l],h=p.end;if(p.start===n)p.leadingNode=t;else if(h===e)p.trailingNode=t;else if(h<e)break}}},mI=class Nv{constructor(){pe(this,"flags",1024);pe(this,"startIndex");pe(this,"curLine");pe(this,"lineStart");pe(this,"startLoc");pe(this,"endLoc");pe(this,"errors",[]);pe(this,"potentialArrowAt",-1);pe(this,"noArrowAt",[]);pe(this,"noArrowParamsConversionAt",[]);pe(this,"topicContext",{maxNumOfResolvableTopics:0,maxTopicIndex:null});pe(this,"labels",[]);pe(this,"commentsLen",0);pe(this,"commentStack",[]);pe(this,"pos",0);pe(this,"type",140);pe(this,"value",null);pe(this,"start",0);pe(this,"end",0);pe(this,"lastTokEndLoc",null);pe(this,"lastTokStartLoc",null);pe(this,"context",[Dt.brace]);pe(this,"firstInvalidTemplateEscapePos",null);pe(this,"strictErrors",new Map);pe(this,"tokensLength",0)}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startIndex:n,startLine:a,startColumn:u}){this.strict=t===!1?!1:t===!0?!0:e==="module",this.startIndex=n,this.curLine=a,this.lineStart=-u,this.startLoc=this.endLoc=new Ya(a,u,n)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new Ya(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new Nv;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},yI=function(r){return r>=48&&r<=57},VA={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},fh={bin:r=>r===48||r===49,oct:r=>r>=48&&r<=55,dec:r=>r>=48&&r<=57,hex:r=>r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102};function JA(r,t,e,n,a,u){let l=e,p=n,h=a,d="",m=null,D=e,{length:g}=t;for(;;){if(e>=g){u.unterminated(l,p,h),d+=t.slice(D,e);break}let x=t.charCodeAt(e);if(DI(r,x,t,e)){d+=t.slice(D,e);break}if(x===92){d+=t.slice(D,e);let b=gI(t,e,n,a,r==="template",u);b.ch===null&&!m?m={pos:e,lineStart:n,curLine:a}:d+=b.ch,{pos:e,lineStart:n,curLine:a}=b,D=e}else x===8232||x===8233?(++e,++a,n=e):x===10||x===13?r==="template"?(d+=t.slice(D,e)+`
|
|
296
|
+
`,++e,x===13&&t.charCodeAt(e)===10&&++e,++a,D=n=e):u.unterminated(l,p,h):++e}return{pos:e,str:d,firstInvalidLoc:m,lineStart:n,curLine:a}}function DI(r,t,e,n){return r==="template"?t===96||t===36&&e.charCodeAt(n+1)===123:t===(r==="double"?34:39)}function gI(r,t,e,n,a,u){let l=!a;t++;let p=d=>({pos:t,ch:d,lineStart:e,curLine:n}),h=r.charCodeAt(t++);switch(h){case 110:return p(`
|
|
297
|
+
`);case 114:return p("\r");case 120:{let d;return{code:d,pos:t}=o0(r,t,e,n,2,!1,l,u),p(d===null?null:String.fromCharCode(d))}case 117:{let d;return{code:d,pos:t}=Pv(r,t,e,n,l,u),p(d===null?null:String.fromCodePoint(d))}case 116:return p(" ");case 98:return p("\b");case 118:return p("\v");case 102:return p("\f");case 13:r.charCodeAt(t)===10&&++t;case 10:e=t,++n;case 8232:case 8233:return p("");case 56:case 57:if(a)return p(null);u.strictNumericEscape(t-1,e,n);default:if(h>=48&&h<=55){let d=t-1,m=/^[0-7]+/.exec(r.slice(d,t+2))[0],D=parseInt(m,8);D>255&&(m=m.slice(0,-1),D=parseInt(m,8)),t+=m.length-1;let g=r.charCodeAt(t);if(m!=="0"||g===56||g===57){if(a)return p(null);u.strictNumericEscape(d,e,n)}return p(String.fromCharCode(D))}return p(String.fromCharCode(h))}}function o0(r,t,e,n,a,u,l,p){let h=t,d;return{n:d,pos:t}=Bv(r,t,e,n,16,a,u,!1,p,!l),d===null&&(l?p.invalidEscapeSequence(h,e,n):t=h-1),{code:d,pos:t}}function Bv(r,t,e,n,a,u,l,p,h,d){let m=t,D=a===16?VA.hex:VA.decBinOct,g=a===16?fh.hex:a===10?fh.dec:a===8?fh.oct:fh.bin,x=!1,b=0;for(let C=0,S=u??1/0;C<S;++C){let v=r.charCodeAt(t),F;if(v===95&&p!=="bail"){let w=r.charCodeAt(t-1),T=r.charCodeAt(t+1);if(p){if(Number.isNaN(T)||!g(T)||D.has(w)||D.has(T)){if(d)return{n:null,pos:t};h.unexpectedNumericSeparator(t,e,n)}}else{if(d)return{n:null,pos:t};h.numericSeparatorInEscapeSequence(t,e,n)}++t;continue}if(v>=97?F=v-97+10:v>=65?F=v-65+10:yI(v)?F=v-48:F=1/0,F>=a){if(F<=9&&d)return{n:null,pos:t};if(F<=9&&h.invalidDigit(t,e,n,a))F=0;else if(l)F=0,x=!0;else break}++t,b=b*a+F}return t===m||u!=null&&t-m!==u||x?{n:null,pos:t}:{n:b,pos:t}}function Pv(r,t,e,n,a,u){let l=r.charCodeAt(t),p;if(l===123){if(++t,{code:p,pos:t}=o0(r,t,e,n,r.indexOf("}",t)-t,!0,a,u),++t,p!==null&&p>1114111)if(a)u.invalidCodePoint(t,e,n);else return{code:null,pos:t}}else({code:p,pos:t}=o0(r,t,e,n,4,!1,a,u));return{code:p,pos:t}}function Xl(r,t,e){return new Ya(e,r-t,r)}var xI=new Set([103,109,115,105,121,117,100,118]),EI=class{constructor(t){let e=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=e+t.start,this.end=e+t.end,this.loc=new Hh(t.startLoc,t.endLoc)}},bI=class extends fI{constructor(t,e){super();pe(this,"isLookahead");pe(this,"tokens",[]);pe(this,"errorHandlers_readInt",{invalidDigit:(t,e,n,a)=>this.optionFlags&2048?(this.raise($.InvalidDigit,Xl(t,e,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder($.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder($.UnexpectedNumericSeparator)});pe(this,"errorHandlers_readCodePoint",Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder($.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder($.InvalidCodePoint)}));pe(this,"errorHandlers_readStringContents_string",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(t,e,n)=>{this.recordStrictModeErrors($.StrictNumericEscape,Xl(t,e,n))},unterminated:(t,e,n)=>{throw this.raise($.UnterminatedString,Xl(t-1,e,n))}}));pe(this,"errorHandlers_readStringContents_template",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder($.StrictNumericEscape),unterminated:(t,e,n)=>{throw this.raise($.UnterminatedTemplate,Xl(t,e,n))}}));this.state=new mI,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new EI(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return hy.lastIndex=t,hy.test(this.input)?hy.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return dy.lastIndex=t,dy.test(this.input)?dy.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++t<this.input.length){let n=this.input.charCodeAt(t);(n&64512)===56320&&(e=65536+((e&1023)<<10)+(n&1023))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([e,n])=>this.raise(e,n)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let n=this.state.pos,a=this.input.indexOf(t,n+2);if(a===-1)throw this.raise($.UnterminatedComment,this.state.curPosition());for(this.state.pos=a+t.length,dh.lastIndex=n+2;dh.test(this.input)&&dh.lastIndex<=a;)++this.state.curLine,this.state.lineStart=dh.lastIndex;if(this.isLookahead)return;let u={type:"CommentBlock",value:this.input.slice(n+2,a),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(a+t.length),loc:new Hh(e,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(u),u}skipLineComment(t){let e=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let a=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!oo(a)&&++this.state.pos<this.length;)a=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let u=this.state.pos,l={type:"CommentLine",value:this.input.slice(e+t,u),start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(u),loc:new Hh(n,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(l),l}skipSpace(){let t=this.state.pos,e=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let a=this.skipBlockComment("*/");a!==void 0&&(this.addComment(a),e==null||e.push(a));break}case 47:{let a=this.skipLineComment(2);a!==void 0&&(this.addComment(a),e==null||e.push(a));break}default:break e}break;default:if(uI(n))++this.state.pos;else if(n===45&&!this.inModule&&this.optionFlags&8192){let a=this.state.pos;if(this.input.charCodeAt(a+1)===45&&this.input.charCodeAt(a+2)===62&&(t===0||this.state.lineStart>t)){let u=this.skipLineComment(3);u!==void 0&&(this.addComment(u),e==null||e.push(u))}else break e}else if(n===60&&!this.inModule&&this.optionFlags&8192){let a=this.state.pos;if(this.input.charCodeAt(a+1)===33&&this.input.charCodeAt(a+2)===45&&this.input.charCodeAt(a+3)===45){let u=this.skipLineComment(4);u!==void 0&&(this.addComment(u),e==null||e.push(u))}else break e}else break e}}if((e==null?void 0:e.length)>0){let n=this.state.pos,a={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(n),comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(a)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(n)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise($.UnexpectedDigitAfterHash,this.state.curPosition());Qn(e)?(++this.state.pos,this.finishToken(139,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let e=this.state.pos;for(this.state.pos+=1;!oo(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let n=this.input.slice(e+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(t){let e=t===42?55:54,n=1,a=this.input.charCodeAt(this.state.pos+1);t===42&&a===42&&(n++,a=this.input.charCodeAt(this.state.pos+2),e=57),a===61&&!this.state.inType&&(n++,e=t===37?33:30),this.finishOp(e,n)}readToken_pipe_amp(t){let e=this.input.charCodeAt(this.state.pos+1);if(e===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124&&e===62){this.finishOp(39,2);return}if(e===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){let e=this.input.charCodeAt(this.state.pos+1);if(e===t){this.finishOp(34,2);return}e===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(e===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(e===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(e===62){let n=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+n)===61){this.finishOp(30,n+1);return}this.finishOp(52,n);return}if(e===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){let e=this.input.charCodeAt(this.state.pos+1);if(e===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&e===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);t===63?e===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(e>=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Qn(t)){this.readWord(t);return}}throw this.raise($.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){let n=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,n)}readRegexp(){let t=this.state.startLoc,e=this.state.start+1,n,a,{pos:u}=this.state;for(;;++u){if(u>=this.length)throw this.raise($.UnterminatedRegExp,mn(t,1));let d=this.input.charCodeAt(u);if(oo(d))throw this.raise($.UnterminatedRegExp,mn(t,1));if(n)n=!1;else{if(d===91)a=!0;else if(d===93&&a)a=!1;else if(d===47&&!a)break;n=d===92}}let l=this.input.slice(e,u);++u;let p="",h=()=>mn(t,u+2-e);for(;u<this.length;){let d=this.codePointAtPos(u),m=String.fromCharCode(d);if(xI.has(d))d===118?p.includes("u")&&this.raise($.IncompatibleRegExpUVFlags,h()):d===117&&p.includes("v")&&this.raise($.IncompatibleRegExpUVFlags,h()),p.includes(m)&&this.raise($.DuplicateRegExpFlags,h());else if(Yi(d)||d===92)this.raise($.MalformedRegExpFlags,h());else break;++u,p+=m}this.state.pos=u,this.finishToken(138,{pattern:l,flags:p})}readInt(t,e,n=!1,a=!0){let{n:u,pos:l}=Bv(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,e,n,a,this.errorHandlers_readInt,!1);return this.state.pos=l,u}readRadixNumber(t){let e=this.state.pos,n=this.state.curPosition(),a=!1;this.state.pos+=2;let u=this.readInt(t);u==null&&this.raise($.InvalidDigit,mn(n,2),{radix:t});let l=this.input.charCodeAt(this.state.pos);if(l===110)++this.state.pos,a=!0;else if(l===109)throw this.raise($.InvalidDecimal,n);if(Qn(this.codePointAtPos(this.state.pos)))throw this.raise($.NumberIdentifier,this.state.curPosition());if(a){let p=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,p);return}this.finishToken(135,u)}readNumber(t){let e=this.state.pos,n=this.state.curPosition(),a=!1,u=!1,l=!1;!t&&this.readInt(10)===null&&this.raise($.InvalidNumber,this.state.curPosition());let p=this.state.pos-e>=2&&this.input.charCodeAt(e)===48;if(p){let D=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors($.StrictOctalLiteral,n),!this.state.strict){let g=D.indexOf("_");g>0&&this.raise($.ZeroDigitNumericSeparator,mn(n,g))}l=p&&!/[89]/.test(D)}let h=this.input.charCodeAt(this.state.pos);if(h===46&&!l&&(++this.state.pos,this.readInt(10),a=!0,h=this.input.charCodeAt(this.state.pos)),(h===69||h===101)&&!l&&(h=this.input.charCodeAt(++this.state.pos),(h===43||h===45)&&++this.state.pos,this.readInt(10)===null&&this.raise($.InvalidOrMissingExponent,n),a=!0,h=this.input.charCodeAt(this.state.pos)),h===110&&((a||p)&&this.raise($.InvalidBigIntLiteral,n),++this.state.pos,u=!0),Qn(this.codePointAtPos(this.state.pos)))throw this.raise($.NumberIdentifier,this.state.curPosition());let d=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(u){this.finishToken(136,d);return}let m=l?parseInt(d,8):parseFloat(d);this.finishToken(135,m)}readCodePoint(t){let{code:e,pos:n}=Pv(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=n,e}readString(t){let{str:e,pos:n,curLine:a,lineStart:u}=JA(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=u,this.state.curLine=a,this.finishToken(134,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:n,pos:a,curLine:u,lineStart:l}=JA("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=a+1,this.state.lineStart=l,this.state.curLine=u,n&&(this.state.firstInvalidTemplateEscapePos=new Ya(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),this.input.codePointAt(a)===96?this.finishToken(24,n?null:t+e+"`"):(this.state.pos++,this.finishToken(25,n?null:t+e+"${"))}recordStrictModeErrors(t,e){let n=e.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(t,e):this.state.strictErrors.set(n,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",n=this.state.pos,a=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let u=this.codePointAtPos(this.state.pos);if(Yi(u))this.state.pos+=u<=65535?1:2;else if(u===92){this.state.containsEsc=!0,e+=this.input.slice(a,this.state.pos);let l=this.state.curPosition(),p=this.state.pos===n?Qn:Yi;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise($.MissingUnicodeEscape,this.state.curPosition()),a=this.state.pos-1;continue}++this.state.pos;let h=this.readCodePoint(!0);h!==null&&(p(h)||this.raise($.EscapedCharNotAnIdentifier,l),e+=String.fromCodePoint(h)),a=this.state.pos}else break}return e+this.input.slice(a,this.state.pos)}readWord(t){let e=this.readWord1(t),n=BD.get(e);n!==void 0?this.finishToken(n,Wa(n)):this.finishToken(132,e)}checkKeywordEscapes(){let{type:t}=this.state;RD(t)&&this.state.containsEsc&&this.raise($.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Wa(t)})}raise(t,e,n={}){let a=e instanceof Ya?e:e.loc.start,u=t(a,n);if(!(this.optionFlags&2048))throw u;return this.isLookahead||this.state.errors.push(u),u}raiseOverwrite(t,e,n={}){let a=e instanceof Ya?e:e.loc.start,u=a.index,l=this.state.errors;for(let p=l.length-1;p>=0;p--){let h=l[p];if(h.loc.index===u)return l[p]=t(a,n);if(h.loc.index<u)break}return this.raise(t,e,n)}updateContext(t){}unexpected(t,e){throw this.raise($.UnexpectedToken,t??this.state.startLoc,{expected:e?Wa(e):null})}expectPlugin(t,e){if(this.hasPlugin(t))return!0;throw this.raise($.MissingPlugin,e??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(e=>this.hasPlugin(e)))throw this.raise($.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,n,a)=>{this.raise(t,Xl(e,n,a))}}},AI=class{constructor(){pe(this,"privateNames",new Set);pe(this,"loneAccessors",new Map);pe(this,"undefinedPrivateNames",new Map)}},CI=class{constructor(t){pe(this,"parser");pe(this,"stack",[]);pe(this,"undefinedPrivateNames",new Map);this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new AI)}exit(){let t=this.stack.pop(),e=this.current();for(let[n,a]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(n)||e.undefinedPrivateNames.set(n,a):this.parser.raise($.InvalidPrivateFieldResolution,a,{identifierName:n})}declarePrivateName(t,e,n){let{privateNames:a,loneAccessors:u,undefinedPrivateNames:l}=this.current(),p=a.has(t);if(e&3){let h=p&&u.get(t);if(h){let d=h&4,m=e&4,D=h&3,g=e&3;p=D===g||d!==m,p||u.delete(t)}else p||u.set(t,e)}p&&this.parser.raise($.PrivateNameRedeclaration,n,{identifierName:t}),a.add(t),l.delete(t)}usePrivateName(t,e){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,e):this.parser.raise($.InvalidPrivateFieldResolution,e,{identifierName:t})}},md=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},kv=class extends md{constructor(e){super(e);pe(this,"declarationErrors",new Map)}recordDeclarationError(e,n){let a=n.index;this.declarationErrors.set(a,[e,n])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},FI=class{constructor(t){pe(this,"parser");pe(this,"stack",[new md]);this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){let n=e.loc.start,{stack:a}=this,u=a.length-1,l=a[u];for(;!l.isCertainlyParameterDeclaration();){if(l.canBeArrowParameterDeclaration())l.recordDeclarationError(t,n);else return;l=a[--u]}this.parser.raise(t,n)}recordArrowParameterBindingError(t,e){let{stack:n}=this,a=n[n.length-1],u=e.loc.start;if(a.isCertainlyParameterDeclaration())this.parser.raise(t,u);else if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,u);else return}recordAsyncArrowParametersError(t){let{stack:e}=this,n=e.length-1,a=e[n];for(;a.canBeArrowParameterDeclaration();)a.type===2&&a.recordDeclarationError($.AwaitBindingIdentifier,t),a=e[--n]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([n,a])=>{this.parser.raise(n,a);let u=t.length-2,l=t[u];for(;l.canBeArrowParameterDeclaration();)l.clearDeclarationError(a.index),l=t[--u]})}};function vI(){return new md(3)}function SI(){return new kv(1)}function TI(){return new kv(2)}function Iv(){return new md}var wI=class extends bI{addExtra(t,e,n,a=!0){if(!t)return;let{extra:u}=t;u==null&&(u={},t.extra=u),a?u[e]=n:Object.defineProperty(u,e,{enumerable:a,value:n})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){if(this.input.startsWith(e,t)){let n=this.input.charCodeAt(t+e.length);return!(Yi(n)||(n&64512)===55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return HA(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return HA(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise($.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let n={node:null};try{let a=t((u=null)=>{throw n.node=u,n});if(this.state.errors.length>e.errors.length){let u=this.state;return this.state=e,this.state.tokensLength=u.tokensLength,{node:a,error:u.errors[e.errors.length],thrown:!1,aborted:!1,failState:u}}return{node:a,error:null,thrown:!1,aborted:!1,failState:null}}catch(a){let u=this.state;if(this.state=e,a instanceof SyntaxError)return{node:null,error:a,thrown:!0,aborted:!1,failState:u};if(a===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:u};throw a}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:a,privateKeyLoc:u,optionalParametersLoc:l,voidPatternLoc:p}=t,h=!!n||!!a||!!l||!!u||!!p;if(!e)return h;n!=null&&this.raise($.InvalidCoverInitializedName,n),a!=null&&this.raise($.DuplicateProto,a),u!=null&&this.raise($.UnexpectedPrivateField,u),l!=null&&this.unexpected(l),p!=null&&this.raise($.InvalidCoverDiscardElement,p)}isLiteralPropertyName(){return Ev(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let e=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let a=this.inModule;this.inModule=t;let u=this.scope,l=this.getScopeHandler();this.scope=new l(this,t);let p=this.prodParam;this.prodParam=new pI;let h=this.classScope;this.classScope=new CI(this);let d=this.expressionScope;return this.expressionScope=new FI(this),()=>{this.state.labels=e,this.exportedIdentifiers=n,this.inModule=a,this.scope=u,this.prodParam=p,this.classScope=h,this.expressionScope=d}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let e=!this.inModule&&this.options.sourceType==="commonjs";(e||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let n=e?514:1;this.optionFlags&4&&(n|=512),this.optionFlags&16&&(n|=48),this.scope.enter(n)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}},Ph=class{constructor(){pe(this,"shorthandAssignLoc",null);pe(this,"doubleProtoLoc",null);pe(this,"privateKeyLoc",null);pe(this,"optionalParametersLoc",null);pe(this,"voidPatternLoc",null)}},l0=class{constructor(r,t,e){pe(this,"type","");this.start=t,this.end=0,this.loc=new Hh(e),(r==null?void 0:r.optionFlags)&128&&(this.range=[t,0]),r!=null&&r.filename&&(this.loc.filename=r.filename)}},XA=l0.prototype,NI=class extends wI{startNode(){let t=this.state.startLoc;return new l0(this,t.index,t)}startNodeAt(t){return new l0(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,e){return this.finishNodeAt(t,e,this.state.lastTokEndLoc)}finishNodeAt(t,e,n){return t.type=e,t.end=n.index,t.loc.end=n,this.optionFlags&128&&(t.range[1]=n.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,e){t.start=e.index,t.loc.start=e,this.optionFlags&128&&(t.range[0]=e.index)}resetEndLocation(t,e=this.state.lastTokEndLoc){t.end=e.index,t.loc.end=e,this.optionFlags&128&&(t.range[1]=e.index)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.loc.start)}castNodeTo(t,e){return t.type=e,t}cloneIdentifier(t){let{type:e,start:n,end:a,loc:u,range:l,name:p}=t,h=Object.create(XA);return h.type=e,h.start=n,h.end=a,h.loc=u,h.range=l,h.name=p,t.extra&&(h.extra=t.extra),h}cloneStringLiteral(t){let{type:e,start:n,end:a,loc:u,range:l,extra:p}=t,h=Object.create(XA);return h.type=e,h.start=n,h.end=a,h.loc=u,h.range=l,h.extra=p,h.value=t.value,h}},c0=r=>r.type==="ParenthesizedExpression"?c0(r.expression):r,BI=class extends NI{toAssignable(t,e=!1){var a,u,l;let n;switch((t.type==="ParenthesizedExpression"||(a=t.extra)!=null&&a.parenthesized)&&(n=c0(t),e?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError($.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise($.InvalidParenthesizedAssignment,t):this.raise($.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let p=0,h=t.properties.length,d=h-1;p<h;p++){let m=t.properties[p],D=p===d;this.toAssignableObjectExpressionProp(m,D,e),D&&m.type==="RestElement"&&((u=t.extra)!=null&&u.trailingCommaLoc)&&this.raise($.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:p,value:h}=t;this.isPrivateName(p)&&this.classScope.usePrivateName(this.getPrivateNameSV(p),p.loc.start),this.toAssignable(h,e);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,(l=t.extra)==null?void 0:l.trailingCommaLoc,e);break;case"AssignmentExpression":t.operator!=="="&&this.raise($.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,t.left.type==="VoidPattern"&&this.raise($.VoidPatternInitializer,t.left),this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(n,e);break}}toAssignableObjectExpressionProp(t,e,n){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?$.PatternHasAccessor:$.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){this.castNodeTo(t,"RestElement");let a=t.argument;this.checkToRestConversion(a,!1),this.toAssignable(a,n),e||this.raise($.RestTrailingComma,t)}else this.toAssignable(t,n)}toAssignableList(t,e,n){let a=t.length-1;for(let u=0;u<=a;u++){let l=t[u];l&&(this.toAssignableListItem(t,u,n),l.type==="RestElement"&&(u<a?this.raise($.RestTrailingComma,l):e&&this.raise($.RestTrailingComma,e)))}}toAssignableListItem(t,e,n){let a=t[e];if(a.type==="SpreadElement"){this.castNodeTo(a,"RestElement");let u=a.argument;this.checkToRestConversion(u,!0),this.toAssignable(u,n)}else this.toAssignable(a,n)}isAssignable(t,e){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let n=t.properties.length-1;return t.properties.every((a,u)=>a.type!=="ObjectMethod"&&(u===n||a.type!=="SpreadElement")&&this.isAssignable(a))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let n of t)(n==null?void 0:n.type)==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let e=this.parseBindingAtom();return e.type==="VoidPattern"&&this.raise($.UnexpectedVoidPattern,e),t.argument=e,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,e,n){let a=n&1,u=[],l=!0;for(;!this.eat(t);)if(l?l=!1:this.expect(12),a&&this.match(12))u.push(null);else{if(this.eat(t))break;if(this.match(21)){let p=this.parseRestBinding();if(n&2&&(p=this.parseFunctionParamType(p)),u.push(p),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let p=[];if(n&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise($.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)p.push(this.parseDecorator());u.push(this.parseBindingElement(n,p))}}return u}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise($.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:e}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,e,!1,!1,!0,!1)}parseBindingElement(t,e){let n=this.parseMaybeDefault();return t&2&&this.parseFunctionParamType(n),e.length&&(n.decorators=e,this.resetStartLocationFromNode(n,e[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(t){return t}parseMaybeDefault(t,e){if(t??(t=this.state.startLoc),e=e??this.parseBindingAtom(),!this.eat(29))return e;let n=this.startNodeAt(t);return e.type==="VoidPattern"&&this.raise($.VoidPatternInitializer,e),n.left=e,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(t,e,n,a){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!e&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,e,n=64,a=!1,u=!1,l=!1,p=!1){var S;let h=t.type;if(this.isObjectMethod(t))return;let d=this.isOptionalMemberExpression(t);if(d||h==="MemberExpression"){d&&(this.expectPlugin("optionalChainingAssign",t.loc.start),e.type!=="AssignmentExpression"&&this.raise($.InvalidLhsOptionalChaining,t,{ancestor:e})),n!==64&&this.raise($.InvalidPropertyBindingPattern,t);return}if(h==="Identifier"){this.checkIdentifier(t,n,u);let{name:v}=t;a&&(a.has(v)?this.raise($.ParamDupe,t):a.add(v));return}else h==="VoidPattern"&&e.type==="CatchClause"&&this.raise($.VoidPatternCatchClauseParam,t);let m=c0(t);p||(p=m.type==="CallExpression"&&(m.callee.type==="Import"||m.callee.type==="Super"));let D=this.isValidLVal(h,p,!(l||(S=t.extra)!=null&&S.parenthesized)&&e.type==="AssignmentExpression",n);if(D===!0)return;if(D===!1){let v=n===64?$.InvalidLhs:$.InvalidLhsBinding;this.raise(v,t,{ancestor:e});return}let g,x;typeof D=="string"?(g=D,x=h==="ParenthesizedExpression"):[g,x]=D;let b=h==="ArrayPattern"||h==="ObjectPattern"?{type:h}:e,C=t[g];if(Array.isArray(C))for(let v of C)v&&this.checkLVal(v,b,n,a,u,x,!0);else C&&this.checkLVal(C,b,n,a,u,x,p)}checkIdentifier(t,e,n=!1){this.state.strict&&(n?Tv(t.name,this.inModule):Sv(t.name))&&(e===64?this.raise($.StrictEvalArguments,t,{referenceName:t.name}):this.raise($.StrictEvalArgumentsBinding,t,{bindingName:t.name})),e&8192&&t.name==="let"&&this.raise($.LetInLexicalBinding,t),e&64||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise($.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?$.RestTrailingComma:$.ElementAfterRest,this.state.startLoc),!0):!1}},fy=/in(?:stanceof)?|as|satisfies/y;function PI(r){if(r==null)throw new Error(`Unexpected ${r} value.`);return r}function GA(r){if(!r)throw new Error("Assert fail")}var Ee=Kn`typescript`({AbstractMethodHasImplementation:({methodName:r})=>`Method '${r}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:r})=>`Property '${r}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:r})=>`'declare' is not allowed in ${r}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:r})=>`Accessibility modifier already seen: '${r}'.`,DuplicateModifier:({modifier:r})=>`Duplicate modifier: '${r}'.`,EmptyHeritageClauseType:({token:r})=>`'${r}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:r})=>`'${r[0]}' modifier cannot be used with '${r[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:r})=>`Index signatures cannot have an accessibility modifier ('${r}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:r})=>`'${r}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:r=>`'${r}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:r})=>`'${r}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:r})=>`'${r}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:r})=>`'${r}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:r=>`'${r}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:r})=>`'${r[0]}' modifier must precede '${r[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:r})=>`Private elements cannot have an accessibility modifier ('${r}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:r})=>`Single type parameter ${r} should have a trailing comma. Example usage: <${r},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:r})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${r}.`,UsingDeclarationInAmbientContext:r=>`'${r}' declarations are not allowed in ambient contexts.`});function kI(r){switch(r){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function KA(r){return r==="private"||r==="public"||r==="protected"}function II(r){return r==="in"||r==="out"}function p0(r){var t;if((t=r.extra)!=null&&t.parenthesized)return!1;switch(r.type){case"Identifier":return!0;case"MemberExpression":return!r.computed&&p0(r.object);case"TSInstantiationExpression":return p0(r.expression);default:return!1}}var MI=r=>class extends r{constructor(){super(...arguments);pe(this,"tsParseInOutModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Ee.InvalidModifierOnTypeParameter}));pe(this,"tsParseConstModifier",this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Ee.InvalidModifierOnTypeParameterPositions}));pe(this,"tsParseInOutConstModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Ee.InvalidModifierOnTypeParameter}))}getScopeHandler(){return cI}tsIsIdentifier(){return ot(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,n,a){if(!ot(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let u=this.state.value;if(e.includes(u)){if(a&&this.match(106)||n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return u}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:n,stopOnStartOfClassStaticBlock:a,errorTemplate:u=Ee.InvalidModifierOnTypeMember},l){let p=(d,m,D,g)=>{m===D&&l[g]&&this.raise(Ee.InvalidModifiersOrder,d,{orderedModifiers:[D,g]})},h=(d,m,D,g)=>{(l[D]&&m===g||l[g]&&m===D)&&this.raise(Ee.IncompatibleModifiers,d,{modifiers:[D,g]})};for(;;){let{startLoc:d}=this.state,m=this.tsParseModifier(e.concat(n??[]),a,l.static);if(!m)break;KA(m)?l.accessibility?this.raise(Ee.DuplicateAccessibilityModifier,d,{modifier:m}):(p(d,m,m,"override"),p(d,m,m,"static"),p(d,m,m,"readonly"),l.accessibility=m):II(m)?(l[m]&&this.raise(Ee.DuplicateModifier,d,{modifier:m}),l[m]=!0,p(d,m,"in","out")):(Object.prototype.hasOwnProperty.call(l,m)?this.raise(Ee.DuplicateModifier,d,{modifier:m}):(p(d,m,"static","readonly"),p(d,m,"static","override"),p(d,m,"override","readonly"),p(d,m,"abstract","override"),h(d,m,"declare","override"),h(d,m,"static","abstract")),l[m]=!0),n!=null&&n.includes(m)&&this.raise(u,d,{modifier:m})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,n){let a=[];for(;!this.tsIsListTerminator(e);)a.push(n());return a}tsParseDelimitedList(e,n,a){return PI(this.tsParseDelimitedListWorker(e,n,!0,a))}tsParseDelimitedListWorker(e,n,a,u){let l=[],p=-1;for(;!this.tsIsListTerminator(e);){p=-1;let h=n();if(h==null)return;if(l.push(h),this.eat(12)){p=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;a&&this.expect(12);return}return u&&(u.value=p),l}tsParseBracketedList(e,n,a,u,l){u||(a?this.expect(0):this.expect(47));let p=this.tsParseDelimitedList(e,n,l);return a?this.expect(3):this.expect(48),p}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.tsParseLiteralTypeNode():(this.raise(Ee.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=this.tsParseNonConditionalType()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){let e=this.startNode();this.expect(5);let n=this.startNode();return this.isContextual(76)?(n.method=!1,n.key=this.parseIdentifier(!0),n.computed=!1,n.shorthand=!1):this.unexpected(null,76),this.expect(14),n.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(n)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),n=[];for(this.expect(5);!this.match(8);){let a=this.state.type;ot(a)||a===134?n.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=n,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let n;if(e&1&&this.match(78))if(e&2)n=this.parseIdentifier(!0);else{let a=this.startNode();this.next(),n=this.finishNode(a,"ThisExpression")}else n=this.parseIdentifier(!!(e&1));for(;this.eat(16);){let a=this.startNodeAtNode(n);a.left=n,a.right=this.parseIdentifier(!!(e&1)),n=this.finishNode(a,"TSQualifiedName")}return n}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let n=this.startNodeAtNode(e);return n.parameterName=e,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let n=this.startNode();return e(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(81),n.default=this.tsEatThenParseType(29),this.finishNode(n,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let n=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let a={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,a),n.params.length===0&&this.raise(Ee.EmptyTypeParameters,n),a.value!==-1&&this.addExtra(n,"trailingComma",a.value),this.finishNode(n,"TSTypeParameterDeclaration")}tsFillSignature(e,n){let a=e===19,u="params",l="returnType";n.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),n[u]=this.tsParseBindingListForSignature(),a?n[l]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(n[l]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let n of e){let{type:a}=n;(a==="AssignmentPattern"||a==="TSParameterProperty")&&this.raise(Ee.UnsupportedSignatureParameterKind,n,{type:a})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,n){return this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),ot(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let n=this.parseIdentifier();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(3),e.parameters=[n];let a=this.tsTryParseTypeAnnotation();return a&&(e.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,n){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){n&&this.raise(Ee.ReadonlyForMethodSignature,e);let a=e;a.kind&&this.match(47)&&this.raise(Ee.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,a),this.tsParseTypeMemberSemicolon();let u="params",l="returnType";if(a.kind==="get")a[u].length>0&&(this.raise($.BadGetterArity,this.state.curPosition()),this.isThisParam(a[u][0])&&this.raise(Ee.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(a.kind==="set"){if(a[u].length!==1)this.raise($.BadSetterArity,this.state.curPosition());else{let p=a[u][0];this.isThisParam(p)&&this.raise(Ee.AccessorCannotDeclareThisParameter,this.state.curPosition()),p.type==="Identifier"&&p.optional&&this.raise(Ee.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),p.type==="RestElement"&&this.raise(Ee.SetAccessorCannotHaveRestParameter,this.state.curPosition())}a[l]&&this.raise(Ee.SetAccessorCannotHaveReturnType,a[l])}else a.kind="method";return this.finishNode(a,"TSMethodSignature")}else{let a=e;n&&(a.readonly=!0);let u=this.tsTryParseTypeAnnotation();return u&&(a.typeAnnotation=u),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let a=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(a,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.key=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let n=!1;return e.elementTypes.forEach(a=>{let{type:u}=a;n&&u!=="TSRestType"&&u!=="TSOptionalType"&&!(u==="TSNamedTupleMember"&&a.optional)&&this.raise(Ee.OptionalTypeBeforeRequired,a),n||(n=u==="TSNamedTupleMember"&&a.optional||u==="TSOptionalType")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e=this.state.startLoc,n=this.eat(21),{startLoc:a}=this.state,u,l,p,h,d=wn(this.state.type)?this.lookaheadCharCode():null;if(d===58)u=!0,p=!1,l=this.parseIdentifier(!0),this.expect(14),h=this.tsParseType();else if(d===63){p=!0;let m=this.state.value,D=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(u=!0,l=this.createIdentifier(this.startNodeAt(a),m),this.expect(17),this.expect(14),h=this.tsParseType()):(u=!1,h=D,this.expect(17))}else h=this.tsParseType(),p=this.eat(17),u=this.eat(14);if(u){let m;l?(m=this.startNodeAt(a),m.optional=p,m.label=l,m.elementType=h,this.eat(17)&&(m.optional=!0,this.raise(Ee.TupleOptionalAfterType,this.state.lastTokStartLoc))):(m=this.startNodeAt(a),m.optional=p,this.raise(Ee.InvalidTupleMemberLabel,h),m.label=h,m.elementType=this.tsParseType()),h=this.finishNode(m,"TSNamedTupleMember")}else if(p){let m=this.startNodeAt(a);m.typeAnnotation=h,h=this.finishNode(m,"TSOptionalType")}if(n){let m=this.startNodeAt(e);m.typeAnnotation=h,h=this.finishNode(m,"TSRestType")}return h}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,n){let a=this.startNode();return e==="TSConstructorType"&&(a.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,a)),this.finishNode(a,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{let e=this.state.startLoc,n=this.parseTemplateElement(!1),a=[n];if(n.tail){let u=this.startNodeAt(e),l=this.startNodeAt(e);return l.expressions=[],l.quasis=a,u.literal=this.finishNode(l,"TemplateLiteral"),this.finishNode(u,"TSLiteralType")}else{let u=[];for(;!n.tail;)u.push(this.tsParseType()),this.readTemplateContinuation(),a.push(n=this.parseTemplateElement(!1));let l=this.startNodeAt(e);return l.types=u,l.quasis=a,this.finishNode(l,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),n=this.lookahead();return n.type!==135&&n.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!(this.optionFlags&1024)){let e=this.state.startLoc;this.next();let n=this.tsParseType();return this.expect(11),this.addExtra(n,"parenthesized",!0),this.addExtra(n,"parenStart",e.index),n}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(ot(e)||e===88||e===84){let n=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":kI(this.state.value);if(n!==void 0&&this.lookaheadCharCode()!==46){let a=this.startNode();return this.next(),this.finishNode(a,n)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,n=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let a=this.startNodeAt(e);a.elementType=n,this.expect(3),n=this.finishNode(a,"TSArrayType")}else{let a=this.startNodeAt(e);a.objectType=n,a.indexType=this.tsParseType(),this.expect(3),n=this.finishNode(a,"TSIndexedAccessType")}return n}tsParseTypeOperator(){let e=this.startNode(),n=this.state.value;return this.next(),e.operator=n,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Ee.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return jk(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,n,a){let u=this.startNode(),l=this.eat(a),p=[];do p.push(n());while(this.eat(a));return p.length===1&&!l?p[0]:(u.types=p,this.finishNode(u,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(ot(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,n=e.length;try{return this.parseObjectLike(8,!0),e.length===n}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,n=e.length;try{return super.parseBindingList(3,93,1),e.length===n}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let n=this.startNode();this.expect(e);let a=this.startNode(),u=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(u&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(a.parameterName=h,a.asserts=!0,a.typeAnnotation=null,h=this.finishNode(a,"TSTypePredicate")):(this.resetStartLocationFromNode(h,a),h.asserts=!0),n.typeAnnotation=h,this.finishNode(n,"TSTypeAnnotation")}let l=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!l)return u?(a.parameterName=this.parseIdentifier(),a.asserts=u,a.typeAnnotation=null,n.typeAnnotation=this.finishNode(a,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,n);let p=this.tsParseTypeAnnotation(!1);return a.parameterName=l,a.typeAnnotation=p,a.asserts=u,n.typeAnnotation=this.finishNode(a,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!ot(this.state.type)&&!this.match(78)?!1:(e&&this.raise($.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,n=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),n.typeAnnotation=this.tsParseType()}),this.finishNode(n,"TSTypeAnnotation")}tsParseType(){GA(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let n=this.startNodeAtNode(e);return n.checkType=e,n.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(n,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Ee.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let n=this.state.startLoc,a=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let u=super.parseExprSubscripts();p0(u)||this.raise(Ee.InvalidHeritageClauseType,u.loc.start,{token:e});let l=e==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(u.type==="TSInstantiationExpression")return u.type=l,u;let p=this.startNodeAtNode(u);return p.expression=u,(this.match(47)||this.match(51))&&(p.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(p,l)}});return a.length||this.raise(Ee.EmptyHeritageClauseType,n,{token:e}),a}tsParseInterfaceDeclaration(e,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(e.declare=!0),ot(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Ee.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let a=this.startNode();return a.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(a,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()!==Dt.brace){let n=this.state.context;this.state.context=[n[0]];try{return e()}finally{this.state.context=n}}else return e()}tsInType(e){let n=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=n}}tsInDisallowConditionalTypesContext(e){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=n}}tsInAllowConditionalTypesContext(e){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=n}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,n={}){return n.const&&(e.const=!0),n.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),e.body=this.tsParseEnumBody(),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){let e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,n=!1){return e.id=this.tsParseEntityName(1),e.id.type==="Identifier"&&this.checkIdentifier(e.id,1024),this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,n,a){e.id=n||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let u=this.tsParseModuleReference();return e.importKind==="type"&&u.type!=="TSExternalModuleReference"&&this.raise(Ee.ImportAliasHasImportType,u),e.moduleReference=u,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let n=this.state.clone(),a=e();return this.state=n,a}tsTryParseAndCatch(e){let n=this.tryParse(a=>e()||a());if(!(n.aborted||!n.node))return n.error&&(this.state=n.failState),n.node}tsTryParse(e){let n=this.state.clone(),a=e();if(a!==void 0&&a!==!1)return a;this.state=n}tsTryParseDeclare(e){if(this.isLineTerminator())return;let n=this.state.type;return this.tsInAmbientContext(()=>{switch(n){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(Ee.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(Ee.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{let a=this.tsParseInterfaceDeclaration(e,{declare:!0});if(a)return a}default:if(ot(n))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,n,a,u){switch(n){case 124:if(this.tsCheckLineTerminator(a)&&(this.match(80)||ot(this.state.type)))return this.tsParseAbstractDeclaration(e,u);break;case 127:if(this.tsCheckLineTerminator(a)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(ot(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(a)&&ot(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(a)&&ot(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let a=this.tsTryParseAndCatch(()=>{let u=this.startNodeAt(e);return u.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(u),u.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),u});if(this.state.maybeInArrowParameters=n,!!a)return super.parseArrowExpression(a,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(Ee.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===Dt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return $k(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(e,n){let a=n.length?n[0].loc.start:this.state.startLoc,u={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},u);let l=u.accessibility,p=u.override,h=u.readonly;!(e&4)&&(l||h||p)&&this.raise(Ee.UnexpectedParameterModifier,a);let d=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(d);let m=this.parseMaybeDefault(d.loc.start,d);if(l||h||p){let D=this.startNodeAt(a);return n.length&&(D.decorators=n),l&&(D.accessibility=l),h&&(D.readonly=h),p&&(D.override=p),m.type!=="Identifier"&&m.type!=="AssignmentPattern"&&this.raise(Ee.UnsupportedParameterPropertyKind,D),D.parameter=m,this.finishNode(D,"TSParameterProperty")}return n.length&&(d.decorators=n),m}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let n of e.params)n.type!=="Identifier"&&n.optional&&!this.state.isAmbientContext&&this.raise(Ee.PatternIsOptional,n)}setArrowFunctionParameters(e,n,a){super.setArrowFunctionParameters(e,n,a),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,n,a=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let u=n==="FunctionDeclaration"?"TSDeclareFunction":n==="ClassMethod"||n==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return u&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,u):u==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Ee.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,u,a):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,n,a))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(n=>{(n==null?void 0:n.type)==="TSTypeCastExpression"&&this.raise(Ee.UnexpectedTypeAnnotation,n.typeAnnotation)})}toReferencedList(e,n){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,n,a){let u=super.parseArrayLike(e,n,a);return u.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(u.elements),u}parseSubscript(e,n,a,u){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let p=this.startNodeAt(n);return p.expression=e,this.finishNode(p,"TSNonNullExpression")}let l=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(a)return u.stop=!0,e;u.optionalChainMember=l=!0,this.next()}if(this.match(47)||this.match(51)){let p,h=this.tsTryParseAndCatch(()=>{if(!a&&this.atPossibleAsyncArrow(e)){let g=this.tsTryParseGenericAsyncArrowFunction(n);if(g)return u.stop=!0,g}let d=this.tsParseTypeArgumentsInExpression();if(!d)return;if(l&&!this.match(10)){p=this.state.curPosition();return}if(i0(this.state.type)){let g=super.parseTaggedTemplateExpression(e,n,u);return g.typeArguments=d,g}if(!a&&this.eat(10)){let g=this.startNodeAt(n);return g.callee=e,g.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(g.arguments),g.typeArguments=d,u.optionalChainMember&&(g.optional=l),this.finishCallExpression(g,u.optionalChainMember)}let m=this.state.type;if(m===48||m===52||m!==10&&Wl(m)&&!this.hasPrecedingLineBreak())return;let D=this.startNodeAt(n);return D.expression=e,D.typeArguments=d,this.finishNode(D,"TSInstantiationExpression")});if(p&&this.unexpected(p,10),h)return h.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Ee.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(h.expression=super.stopParseSubscript(e,u))),h}return super.parseSubscript(e,n,a,u)}parseNewCallee(e){var a;super.parseNewCallee(e);let{callee:n}=e;n.type==="TSInstantiationExpression"&&!((a=n.extra)!=null&&a.parenthesized)&&(e.typeArguments=n.typeArguments,e.callee=n.expression)}parseExprOp(e,n,a){let u;if(Nh(58)>a&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(u=this.isContextual(120)))){let l=this.startNodeAt(n);return l.expression=e,l.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(u&&this.raise($.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(l,u?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(l,n,a)}return super.parseExprOp(e,n,a)}checkReservedWord(e,n,a,u){this.state.isAmbientContext||super.checkReservedWord(e,n,a,u)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(Ee.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let n=this.lookaheadCharCode();return e?n===123||n===42:n!==61}return!e&&this.isContextual(87)}applyImportPhase(e,n,a,u){super.applyImportPhase(e,n,a,u),n?e.exportKind=a==="type"?"type":"value":e.importKind=a==="type"||a==="typeof"?a:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let n;if(ot(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let a=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,a);n=super.parseImportSpecifiersAndAfter(e,a)}else n=super.parseImport(e);return n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Ee.TypeImportCannotSpecifyDefaultAndNamed,n),n}parseExport(e,n){if(this.match(83)){let a=this.startNode();this.next();let u=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?u=this.parseMaybeImportPhase(a,!1):a.importKind="value";let l=this.tsParseImportEqualsDeclaration(a,u,!0);return e.attributes=[],e.declaration=l,e.exportKind="value",e.source=null,e.specifiers=[],this.finishNode(e,"ExportNamedDeclaration")}else if(this.eat(29)){let a=e;return a.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(a,"TSExportAssignment")}else if(this.eatContextual(93)){let a=e;return this.expectContextual(128),a.id=this.parseIdentifier(),this.semicolon(),this.finishNode(a,"TSNamespaceExportDeclaration")}else return super.parseExport(e,n)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,n,a=!1){let{isAmbientContext:u}=this.state,l=super.parseVarStatement(e,n,a||u);if(!u)return l;if(!e.declare&&(n==="using"||n==="await using"))return this.raiseOverwrite(Ee.UsingDeclarationInAmbientContext,e,n),l;for(let{id:p,init:h}of l.declarations)h&&(n==="var"||n==="let"||p.typeAnnotation?this.raise(Ee.InitializerNotAllowedInAmbientContext,h):LI(h,this.hasPlugin("estree"))||this.raise(Ee.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,h));return l}parseStatementContent(e,n){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let a=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(a,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let a=this.state.type,u=this.startNode();this.next();let l=a===125?this.tsTryParseDeclare(u):this.tsParseAbstractDeclaration(u,n);return l?(a===125&&(l.declare=!0),l):(u.expression=this.createIdentifier(this.startNodeAt(u.loc.start),a===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(u,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let a=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(a)}break}case 129:{let a=this.tsParseInterfaceDeclaration(this.startNode());if(a)return a;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let a=this.startNode();return this.next(),this.tsParseDeclaration(a,127,!1,n)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let a=this.startNode();return this.next(),this.tsParseDeclaration(a,128,!1,n)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let a=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(a)}break}}return super.parseStatementContent(e,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,n){return n.some(a=>KA(a)?e.accessibility===a:!!e[a])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,n,a){let u=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:u,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Ee.InvalidModifierOnTypeParameterPositions},n);let l=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,u)&&this.raise(Ee.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,n)):this.parseClassMemberWithIsStatic(e,n,a,!!n.static)};n.declare?this.tsInAmbientContext(l):l()}parseClassMemberWithIsStatic(e,n,a,u){let l=this.tsTryParseIndexSignature(n);if(l){e.body.push(l),n.abstract&&this.raise(Ee.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(Ee.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(Ee.IndexSignatureHasDeclare,n),n.override&&this.raise(Ee.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(Ee.NonAbstractClassHasAbstractMethod,n),n.override&&(a.hadSuperClass||this.raise(Ee.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(e,n,a,u)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Ee.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Ee.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,n,a){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let u=this.lookaheadCharCode();if(u===44||u===61||u===58||u===41)return this.setOptionalParametersError(a),e}return super.parseConditional(e,n,a)}parseParenItem(e,n){let a=super.parseParenItem(e,n);if(this.eat(17)&&(a.optional=!0,this.resetEndLocation(e)),this.match(14)){let u=this.startNodeAt(n);return u.expression=e,u.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(u,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let n=this.state.startLoc,a=this.eatContextual(125);if(a&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Ee.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let u=ot(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return u?((u.type==="TSInterfaceDeclaration"||u.type==="TSTypeAliasDeclaration"||a)&&(e.exportKind="type"),a&&u.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(u,n),u.declare=!0),u):null}parseClassId(e,n,a,u){if((!n||a)&&this.isContextual(113))return;super.parseClassId(e,n,a,e.declare?1024:8331);let l=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);l&&(e.typeParameters=l)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let n=this.tsTryParseTypeAnnotation();n&&(e.typeAnnotation=n)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(Ee.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:n}=e;this.raise(Ee.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:n.type==="Identifier"&&!e.computed?n.name:`[${this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Ee.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Ee.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Ee.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,n,a,u,l,p){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&l&&this.raise(Ee.ConstructorHasTypeParameters,h);let{declare:d=!1,kind:m}=n;d&&(m==="get"||m==="set")&&this.raise(Ee.DeclareAccessor,n,{kind:m}),h&&(n.typeParameters=h),super.pushClassMethod(e,n,a,u,l,p)}pushClassPrivateMethod(e,n,a,u){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&(n.typeParameters=l),super.pushClassPrivateMethod(e,n,a,u)}declareClassPrivateMethodInScope(e,n){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&e.value.body==null||super.declareClassPrivateMethodInScope(e,n))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,n,a,u,l,p,h){let d=this.tsTryParseTypeParameters(this.tsParseConstModifier);return d&&(e.typeParameters=d),super.parseObjPropValue(e,n,a,u,l,p,h)}parseFunctionParams(e,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(e.typeParameters=a),super.parseFunctionParams(e,n)}parseVarId(e,n){super.parseVarId(e,n),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let a=this.tsTryParseTypeAnnotation();a&&(e.id.typeAnnotation=a,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,n){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,n)}parseMaybeAssign(e,n){let a,u,l;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(a=this.state.clone(),u=this.tryParse(()=>super.parseMaybeAssign(e,n),a),!u.error)return u.node;let{context:d}=this.state,m=d[d.length-1];(m===Dt.j_oTag||m===Dt.j_expr)&&d.pop()}if(!(u!=null&&u.error)&&!this.match(47))return super.parseMaybeAssign(e,n);(!a||a===this.state)&&(a=this.state.clone());let p,h=this.tryParse(d=>{var D,g;p=this.tsParseTypeParameters(this.tsParseConstModifier);let m=super.parseMaybeAssign(e,n);if((m.type!=="ArrowFunctionExpression"||(D=m.extra)!=null&&D.parenthesized)&&d(),(p==null?void 0:p.params.length)!==0&&this.resetStartLocationFromNode(m,p),m.typeParameters=p,this.hasPlugin("jsx")&&m.typeParameters.params.length===1&&!((g=m.typeParameters.extra)!=null&&g.trailingComma)){let x=m.typeParameters.params[0];x.constraint||this.raise(Ee.SingleTypeParameterWithoutTrailingComma,mn(x.loc.end,1),{typeParameterName:x.name.name})}return m},a);if(!h.error&&!h.aborted)return p&&this.reportReservedArrowTypeParam(p),h.node;if(!u&&(GA(!this.hasPlugin("jsx")),l=this.tryParse(()=>super.parseMaybeAssign(e,n),a),!l.error))return l.node;if(u!=null&&u.node)return this.state=u.failState,u.node;if(h.node)return this.state=h.failState,p&&this.reportReservedArrowTypeParam(p),h.node;if(l!=null&&l.node)return this.state=l.failState,l.node;throw(u==null?void 0:u.error)||h.error||(l==null?void 0:l.error)}reportReservedArrowTypeParam(e){var n;e.params.length===1&&!e.params[0].constraint&&!((n=e.extra)!=null&&n.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Ee.ReservedArrowTypeParam,e)}parseMaybeUnary(e,n){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,n)}parseArrow(e){if(this.match(14)){let n=this.tryParse(a=>{let u=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&a(),u});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),e.returnType=n.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.resetEndLocation(e),e}isAssignable(e,n){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,n);case"TSParameterProperty":return!0;default:return super.isAssignable(e,n)}}toAssignable(e,n=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,n);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":n?this.expressionScope.recordArrowParameterBindingError(Ee.UnexpectedTypeCastInParameter,e):this.raise(Ee.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,n);break;case"AssignmentExpression":!n&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,n)}}toAssignableParenthesizedExpression(e,n){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,n);break;default:super.toAssignable(e,n)}}checkToRestConversion(e,n){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,n)}}isValidLVal(e,n,a,u){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(u!==64||!a)&&["expression",!0];default:return super.isValidLVal(e,n,a,u)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,n){if(this.match(47)||this.match(51)){let a=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let u=super.parseMaybeDecoratorArguments(e,n);return u.typeArguments=a,u}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,n)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,n){let a=super.parseMaybeDefault(e,n);return a.type==="AssignmentPattern"&&a.typeAnnotation&&a.right.start<a.typeAnnotation.start&&this.raise(Ee.TypeAnnotationAfterAssign,a.typeAnnotation),a}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,n,a){let u=e[n];u.type==="TSTypeCastExpression"&&(e[n]=this.typeCastToParameter(u)),super.toAssignableListItem(e,n,a)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(n=>this.isAssignable(n,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let n=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());n&&(e.typeArguments=n)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let n=super.getGetterSetterExpectedParamCount(e),a=this.getObjectOrClassMethodParams(e)[0];return a&&this.isThisParam(a)?n+1:n}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:n,strict:a}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=n,this.state.strict=a}}parseClass(e,n,a){let u=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,n,a)}finally{this.state.inAbstractClass=u}}tsParseAbstractDeclaration(e,n){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(n,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(Ee.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,n,a,u,l,p,h){let d=super.parseMethod(e,n,a,u,l,p,h);if((d.abstract||d.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?d.value:d).body){let{key:m}=d;this.raise(Ee.AbstractMethodHasImplementation,d,{methodName:m.type==="Identifier"&&!d.computed?m.name:`[${this.input.slice(this.offsetToSourcePos(m.start),this.offsetToSourcePos(m.end))}]`})}return d}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,n,a,u){return!n&&u?(this.parseTypeOnlyImportExportSpecifier(e,!1,a),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,n,a,u))}parseImportSpecifier(e,n,a,u,l){return!n&&u?(this.parseTypeOnlyImportExportSpecifier(e,!0,a),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,n,a,u,a?4098:4096))}parseTypeOnlyImportExportSpecifier(e,n,a){let u=n?"imported":"local",l=n?"local":"exported",p=e[u],h,d=!1,m=!0,D=p.loc.start;if(this.isContextual(93)){let x=this.parseIdentifier();if(this.isContextual(93)){let b=this.parseIdentifier();wn(this.state.type)?(d=!0,p=x,h=n?this.parseIdentifier():this.parseModuleExportName(),m=!1):(h=b,m=!1)}else wn(this.state.type)?(m=!1,h=n?this.parseIdentifier():this.parseModuleExportName()):(d=!0,p=x)}else wn(this.state.type)&&(d=!0,n?(p=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(p.name,p.loc.start,!0,!0)):p=this.parseModuleExportName());d&&a&&this.raise(n?Ee.TypeModifierIsUsedInTypeImports:Ee.TypeModifierIsUsedInTypeExports,D),e[u]=p,e[l]=h;let g=n?"importKind":"exportKind";e[g]=d?"type":"value",m&&this.eatContextual(93)&&(e[l]=n?this.parseIdentifier():this.parseModuleExportName()),e[l]||(e[l]=this.cloneIdentifier(e[u])),n&&this.checkIdentifier(e[l],d?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":e.directive??(e.directive=void 0);return;case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":e.decorators??(e.decorators=[]),e.optional??(e.optional=!1),e.typeAnnotation??(e.typeAnnotation=void 0);return;case"TSParameterProperty":e.accessibility??(e.accessibility=void 0),e.decorators??(e.decorators=[]),e.override??(e.override=!1),e.readonly??(e.readonly=!1),e.static??(e.static=!1);return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":e.declare??(e.declare=!1),e.returnType??(e.returnType=void 0),e.typeParameters??(e.typeParameters=void 0);return;case"Property":e.optional??(e.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":e.optional??(e.optional=!1);case"TSIndexSignature":e.accessibility??(e.accessibility=void 0),e.readonly??(e.readonly=!1),e.static??(e.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":e.declare??(e.declare=!1),e.definite??(e.definite=!1),e.readonly??(e.readonly=!1),e.typeAnnotation??(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":e.accessibility??(e.accessibility=void 0),e.decorators??(e.decorators=[]),e.override??(e.override=!1),e.optional??(e.optional=!1);return;case"ClassExpression":e.id??(e.id=null);case"ClassDeclaration":e.abstract??(e.abstract=!1),e.declare??(e.declare=!1),e.decorators??(e.decorators=[]),e.implements??(e.implements=[]),e.superTypeArguments??(e.superTypeArguments=void 0),e.typeParameters??(e.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":e.declare??(e.declare=!1);return;case"VariableDeclarator":e.definite??(e.definite=!1);return;case"TSEnumDeclaration":e.const??(e.const=!1),e.declare??(e.declare=!1);return;case"TSEnumMember":e.computed??(e.computed=!1);return;case"TSImportType":e.qualifier??(e.qualifier=null),e.options??(e.options=null),e.typeArguments??(e.typeArguments=null);return;case"TSInterfaceDeclaration":e.declare??(e.declare=!1),e.extends??(e.extends=[]);return;case"TSMappedType":e.optional??(e.optional=!1),e.readonly??(e.readonly=void 0);return;case"TSModuleDeclaration":e.declare??(e.declare=!1),e.global??(e.global=e.kind==="global");return;case"TSTypeParameter":e.const??(e.const=!1),e.in??(e.in=!1),e.out??(e.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(e,n){if(Qn(e)){if(fy.lastIndex=n,fy.test(this.input)){let a=this.codePointAtPos(fy.lastIndex);if(!Yi(a)&&a!==92)return!1}return!0}else return e===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),n=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(n,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),n=this.codePointAtPos(e);return this.chStartsBindingIdentifier(n,e)||n===34||n===39}};function OI(r){if(r.type!=="MemberExpression")return!1;let{computed:t,property:e}=r;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:Ov(r.object)}function LI(r,t){var n;let{type:e}=r;if((n=r.extra)!=null&&n.parenthesized)return!1;if(t){if(e==="Literal"){let{value:a}=r;if(typeof a=="string"||typeof a=="boolean")return!0}}else if(e==="StringLiteral"||e==="BooleanLiteral")return!0;return!!(Mv(r,t)||RI(r,t)||e==="TemplateLiteral"&&r.expressions.length===0||OI(r))}function Mv(r,t){return t?r.type==="Literal"&&(typeof r.value=="number"||"bigint"in r):r.type==="NumericLiteral"||r.type==="BigIntLiteral"}function RI(r,t){if(r.type==="UnaryExpression"){let{operator:e,argument:n}=r;if(e==="-"&&Mv(n,t))return!0}return!1}function Ov(r){return r.type==="Identifier"?!0:r.type!=="MemberExpression"||r.computed?!1:Ov(r.object)}var QA=Kn`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),_I=r=>class extends r{parsePlaceholder(t){if(this.match(133)){let e=this.startNode();return this.next(),this.assertNoSpace(),e.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(e,t)}}finishPlaceholder(t,e){let n=t;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=e,n}getTokenFromCode(t){t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,e,n,a){t!==void 0&&super.checkReservedWord(t,e,n,a)}cloneIdentifier(t){let e=super.cloneIdentifier(t);return e.type==="Placeholder"&&(e.expectedNode=t.expectedNode),e}cloneStringLiteral(t){return t.type==="Placeholder"?this.cloneIdentifier(t):super.cloneStringLiteral(t)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,e,n,a){return t==="Placeholder"||super.isValidLVal(t,e,n,a)}toAssignable(t,e){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(t,e)}chStartsBindingIdentifier(t,e){if(super.chStartsBindingIdentifier(t,e))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(t,e){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(t,e)}parseExpressionStatement(t,e){var a;if(e.type!=="Placeholder"||(a=e.extra)!=null&&a.parenthesized)return super.parseExpressionStatement(t,e);if(this.match(14)){let u=t;return u.label=this.finishPlaceholder(e,"Identifier"),this.next(),u.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(u,"LabeledStatement")}this.semicolon();let n=t;return n.name=e.name,this.finishPlaceholder(n,"Statement")}parseBlock(t,e,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,e,n)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,e,n){let a=e?"ClassDeclaration":"ClassExpression";this.next();let u=this.state.strict,l=this.parsePlaceholder("Identifier");if(l)if(this.match(81)||this.match(133)||this.match(5))t.id=l;else{if(n||!e)return t.id=null,t.body=this.finishPlaceholder(l,"ClassBody"),this.finishNode(t,a);throw this.raise(QA.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(t,e,n);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,u),this.finishNode(t,a)}parseExport(t,e){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(t,e);let a=t;if(!this.isContextual(98)&&!this.match(12))return a.specifiers=[],a.source=null,a.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(a,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let u=this.startNode();return u.exported=n,a.specifiers=[this.finishNode(u,"ExportDefaultSpecifier")],super.parseExport(a,e)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(Wa(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,e){var n;return(n=t.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(t,e)}checkExport(t){let{specifiers:e}=t;e!=null&&e.length&&(t.specifiers=e.filter(n=>n.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=e}parseImport(t){let e=this.parsePlaceholder("Identifier");if(!e)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(e,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let n=this.startNodeAtNode(e);return n.local=e,t.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(QA.UnexpectedSpace,this.state.lastTokEndLoc)}},jI=r=>class extends r{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,e=this.startNode();if(this.next(),ot(this.state.type)){let n=this.parseIdentifierName(),a=this.createIdentifier(e,n);if(this.castNodeTo(a,"V8IntrinsicIdentifier"),this.match(10))return a}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},YA=["fsharp","hack"],WA=["^^","@@","^","%","#"];function $I(r){if(r.has("decorators")){if(r.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=r.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let e=r.get("decorators").allowCallParenthesized;if(e!=null&&typeof e!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(r.has("flow")&&r.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(r.has("placeholders")&&r.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(r.has("pipelineOperator")){let t=r.get("pipelineOperator").proposal;if(!YA.includes(t)){let e=YA.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if(t==="hack"){if(r.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(r.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let e=r.get("pipelineOperator").topicToken;if(!WA.includes(e)){let n=WA.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}}}if(r.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(r.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!r.has("deprecatedImportAssert")&&r.has("importAttributes")&&r.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(r.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(r.has("asyncDoExpressions")&&!r.has("doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(r.has("optionalChainingAssign")&&r.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(r.has("discardBinding")&&r.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(r.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(r.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var Lv={estree:Nk,jsx:oI,flow:aI,typescript:MI,v8intrinsic:jI,placeholders:_I},zI=Object.keys(Lv),UI=class extends BI{checkProto(t,e,n,a){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return n;let u=t.key;return(u.type==="Identifier"?u.name:u.value)==="__proto__"?e?(this.raise($.RecordNoProto,u),!0):(n&&(a?a.doubleProtoLoc===null&&(a.doubleProtoLoc=u.loc.start):this.raise($.DuplicateProto,u)),!0):n}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===e}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise($.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise($.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){let e=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){let a=this.startNodeAt(e);for(a.expressions=[n];this.eat(12);)a.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,e){let n=this.state.startLoc,a=this.isContextual(108);if(a&&this.prodParam.hasYield){this.next();let h=this.parseYield(n);return e&&(h=e.call(this,h,n)),h}let u;t?u=!1:(t=new Ph,u=!0);let{type:l}=this.state;(l===10||ot(l))&&(this.state.potentialArrowAt=this.state.start);let p=this.parseMaybeConditional(t);if(e&&(p=e.call(this,p,n)),Mk(this.state.type)){let h=this.startNodeAt(n),d=this.state.value;if(h.operator=d,this.match(29)){this.toAssignable(p,!0),h.left=p;let m=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=m&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=m&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=m&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=m&&(t.voidPatternLoc=null)}else h.left=p;return this.next(),h.right=this.parseMaybeAssign(),this.checkLVal(p,this.finishNode(h,"AssignmentExpression"),void 0,void 0,void 0,void 0,d==="||="||d==="&&="||d==="??="),h}else u&&this.checkExpressionErrors(t,!0);if(a){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?Wl(h):Wl(h)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite($.YieldNotInGeneratorFunction,n),this.parseYield(n)}return p}parseMaybeConditional(t){let e=this.state.startLoc,n=this.state.potentialArrowAt,a=this.parseExprOps(t);return this.shouldExitDescending(a,n)?a:this.parseConditional(a,e,t)}parseConditional(t,e,n){if(this.eat(17)){let a=this.startNodeAt(e);return a.test=t,a.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),a.alternate=this.parseMaybeAssign(),this.finishNode(a,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,n=this.state.potentialArrowAt,a=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(a,n)?a:this.parseExprOp(a,e,-1)}parseExprOp(t,e,n){if(this.isPrivateName(t)){let u=this.getPrivateNameSV(t);(n>=Nh(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise($.PrivateInExpectedIn,t,{identifierName:u}),this.classScope.usePrivateName(u,t.loc.start)}let a=this.state.type;if(Lk(a)&&(this.prodParam.hasIn||!this.match(58))){let u=Nh(a);if(u>n){if(a===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let l=this.startNodeAt(e);l.left=t,l.operator=this.state.value;let p=a===41||a===42,h=a===40;h&&(u=Nh(42)),this.next(),l.right=this.parseExprOpRightExpr(a,u);let d=this.finishNode(l,p||h?"LogicalExpression":"BinaryExpression"),m=this.state.type;if(h&&(m===41||m===42)||p&&m===40)throw this.raise($.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(d,e,n)}}return t}parseExprOpRightExpr(t,e){switch(this.state.startLoc,t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,zk(t)?e-1:e)}parseHackPipeBody(){var n;let{startLoc:t}=this.state,e=this.parseMaybeAssign();return Ak.has(e.type)&&!((n=e.extra)!=null&&n.parenthesized)&&this.raise($.PipeUnparenthesizedBody,t,{type:e.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise($.PipeTopicUnused,t),e}checkExponentialAfterUnary(t){this.match(57)&&this.raise($.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){let n=this.state.startLoc,a=this.isContextual(96);if(a&&this.recordAwaitIfAllowed()){this.next();let h=this.parseAwait(n);return e||this.checkExponentialAfterUnary(h),h}let u=this.match(34),l=this.startNode();if(_k(this.state.type)){l.operator=this.state.value,l.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),l.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){let d=l.argument;d.type==="Identifier"?this.raise($.StrictDelete,l):this.hasPropertyAsPrivateName(d)&&this.raise($.DeletePrivateField,l)}if(!u)return e||this.checkExponentialAfterUnary(l),this.finishNode(l,"UnaryExpression")}let p=this.parseUpdate(l,u,t);if(a){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?Wl(h):Wl(h)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite($.AwaitNotInAsyncContext,n),this.parseAwait(n)}return p}parseUpdate(t,e,n){if(e){let l=t;return this.checkLVal(l.argument,this.finishNode(l,"UpdateExpression")),t}let a=this.state.startLoc,u=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return u;for(;Rk(this.state.type)&&!this.canInsertSemicolon();){let l=this.startNodeAt(a);l.operator=this.state.value,l.prefix=!1,l.argument=u,this.next(),this.checkLVal(u,u=this.finishNode(l,"UpdateExpression"))}return u}parseExprSubscripts(t){let e=this.state.startLoc,n=this.state.potentialArrowAt,a=this.parseExprAtom(t);return this.shouldExitDescending(a,n)?a:this.parseSubscripts(a,e)}parseSubscripts(t,e,n){let a={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,n,a),a.maybeAsyncArrow=!1;while(!a.stop);return t}parseSubscript(t,e,n,a){let{type:u}=this.state;if(!n&&u===15)return this.parseBind(t,e,n,a);if(i0(u))return this.parseTaggedTemplateExpression(t,e,a);let l=!1;if(u===18){if(n&&(this.raise($.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,a);a.optionalChainMember=l=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,a,l);{let p=this.eat(0);return p||l||this.eat(16)?this.parseMember(t,e,a,p,l):this.stopParseSubscript(t,a)}}stopParseSubscript(t,e){return e.stop=!0,t}parseMember(t,e,n,a,u){let l=this.startNodeAt(e);return l.object=t,l.computed=a,a?(l.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise($.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),l.property=this.parsePrivateName()):l.property=this.parseIdentifier(!0),n.optionalChainMember?(l.optional=u,this.finishNode(l,"OptionalMemberExpression")):this.finishNode(l,"MemberExpression")}parseBind(t,e,n,a){let u=this.startNodeAt(e);return u.object=t,this.next(),u.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(u,"BindExpression"),e,n)}parseCoverCallAndAsyncArrowHead(t,e,n,a){let u=this.state.maybeInArrowParameters,l=null;this.state.maybeInArrowParameters=!0,this.next();let p=this.startNodeAt(e);p.callee=t;let{maybeAsyncArrow:h,optionalChainMember:d}=n;h&&(this.expressionScope.enter(TI()),l=new Ph),d&&(p.optional=a),a?p.arguments=this.parseCallExpressionArguments():p.arguments=this.parseCallExpressionArguments(t.type!=="Super",p,l);let m=this.finishCallExpression(p,d);return h&&this.shouldParseAsyncArrow()&&!a?(n.stop=!0,this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),m=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),m)):(h&&(this.checkExpressionErrors(l,!0),this.expressionScope.exit()),this.toReferencedArguments(m)),this.state.maybeInArrowParameters=u,m}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,n){let a=this.startNodeAt(e);return a.tag=t,a.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise($.OptionalChainingNoTemplate,e),this.finishNode(a,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise($.ImportCallArity,t);else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise($.ImportCallSpreadArgument,n);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,n){let a=[],u=!0,l=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(u)u=!1;else if(this.expect(12),this.match(11)){e&&this.addTrailingCommaExtraToNode(e),this.next();break}a.push(this.parseExprListItem(11,!1,n,t))}return this.state.inFSharpPipelineDirectBody=l,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var n;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(n=e.extra)==null?void 0:n.trailingCommaLoc),e.innerComments&&lo(t,e.innerComments),e.callee.trailingComments&&lo(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,n=null,{type:a}=this.state;switch(a){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(e):this.match(10)?this.optionFlags&512?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise($.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let u=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(u)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let u=e.callee=this.parseNoCallExpr();if(u.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise($.UnsupportedBind,u)}case 139:return this.raise($.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let u=this.getPluginOption("pipelineOperator","proposal");if(u)return this.parseTopicReference(u);throw this.unexpected()}case 47:{let u=this.input.codePointAt(this.nextTokenStart());throw Qn(u)||u===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(ot(a)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let u=this.state.potentialArrowAt===this.state.start,l=this.state.containsEsc,p=this.parseIdentifier();if(!l&&p.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(p),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(p));if(ot(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(p)):p;if(h===90)return this.resetPreviousNodeTrailingComments(p),this.parseDo(this.startNodeAtNode(p),!0)}return u&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(p),[p],!1)):p}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=mn(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(t){let e=this.startNode(),n=this.state.startLoc,a=this.state.type;return this.next(),this.finishTopicReference(e,n,t,a)}finishTopicReference(t,e,n,a){if(this.testTopicReferenceConfiguration(n,e,a))return this.topicReferenceIsAllowedInCurrentContext()||this.raise($.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,"TopicReference");throw this.raise($.PipeTopicUnconfiguredToken,e,{token:Wa(a)})}testTopicReferenceConfiguration(t,e,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Wa(n)}]);case"smart":return n===27;default:throw this.raise($.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Bh(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise($.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let n=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise($.SuperNotAllowed,t):this.scope.allowSuper||this.raise($.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise($.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(mn(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(e,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,n){t.meta=e;let a=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||a)&&this.raise($.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let e=this.isContextual(105);return this.expectPlugin(e?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=e?"source":"defer",this.parseImportCall(t)}else{let e=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise($.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}}parseLiteralAtNode(t,e,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=t,this.next(),this.finishNode(n,e)}parseLiteral(t,e){let n=this.startNode();return this.parseLiteralAtNode(t,e,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){{let e;try{e=BigInt(t)}catch{e=null}return this.parseLiteral(e,"BigIntLiteral")}}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.startNode();return this.addExtra(e,"raw",this.input.slice(this.offsetToSourcePos(e.start),this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e=this.state.startLoc,n;this.next(),this.expressionScope.enter(SI());let a=this.state.maybeInArrowParameters,u=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let l=this.state.startLoc,p=[],h=new Ph,d=!0,m,D;for(;!this.match(11);){if(d)d=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){D=this.state.startLoc;break}if(this.match(21)){let b=this.state.startLoc;if(m=this.state.startLoc,p.push(this.parseParenItem(this.parseRestBinding(),b)),!this.checkCommaAfterRest(41))break}else p.push(this.parseMaybeAssignAllowInOrVoidPattern(11,h,this.parseParenItem))}let g=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=a,this.state.inFSharpPipelineDirectBody=u;let x=this.startNodeAt(e);return t&&this.shouldParseArrow(p)&&(x=this.parseArrow(x))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(x,p,!1),x):(this.expressionScope.exit(),p.length||this.unexpected(this.state.lastTokStartLoc),D&&this.unexpected(D),m&&this.unexpected(m),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(p,!0),p.length>1?(n=this.startNodeAt(l),n.expressions=p,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,g)):n=p[0],this.wrapParenthesis(e,n))}wrapParenthesis(t,e){if(!(this.optionFlags&1024))return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let n=this.parseMetaProperty(t,e,"target");return this.scope.allowNewTarget||this.raise($.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let e=this.match(83),n=this.parseNoCallExpr();t.callee=n,e&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise($.ImportCallNotNewExpression,n)}parseTemplateElement(t){let{start:e,startLoc:n,end:a,value:u}=this.state,l=e+1,p=this.startNodeAt(mn(n,1));u===null&&(t||this.raise($.InvalidEscapeSequenceTemplate,mn(this.state.firstInvalidTemplateEscapePos,1)));let h=this.match(24),d=h?-1:-2,m=a+d;p.value={raw:this.input.slice(l,m).replace(/\r\n?/g,`
|
|
298
|
+
`),cooked:u===null?null:u.slice(1,d)},p.tail=h,this.next();let D=this.finishNode(p,"TemplateElement");return this.resetEndLocation(D,mn(this.state.lastTokEndLoc,d)),D}parseTemplate(t){let e=this.startNode(),n=this.parseTemplateElement(t),a=[n],u=[];for(;!n.tail;)u.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),a.push(n=this.parseTemplateElement(t));return e.expressions=u,e.quasis=a,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,n,a){n&&this.expectPlugin("recordAndTuple");let u=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let l=!1,p=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(p)p=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let m;e?m=this.parseBindingProperty():(m=this.parsePropertyDefinition(a),l=this.checkProto(m,n,l,a)),n&&!this.isObjectProperty(m)&&m.type!=="SpreadElement"&&this.raise($.InvalidRecordProperty,m),h.properties.push(m)}this.next(),this.state.inFSharpPipelineDirectBody=u;let d="ObjectExpression";return e?d="ObjectPattern":n&&(d="RecordExpression"),this.finishNode(h,d)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise($.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());let n=this.startNode(),a=!1,u=!1,l;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(n.decorators=e,e=[]),n.method=!1,t&&(l=this.state.startLoc);let p=this.eat(55);this.parsePropertyNamePrefixOperator(n);let h=this.state.containsEsc;if(this.parsePropertyName(n,t),!p&&!h&&this.maybeAsyncOrAccessorProp(n)){let{key:d}=n,m=d.name;m==="async"&&!this.hasPrecedingLineBreak()&&(a=!0,this.resetPreviousNodeTrailingComments(d),p=this.eat(55),this.parsePropertyName(n)),(m==="get"||m==="set")&&(u=!0,this.resetPreviousNodeTrailingComments(d),n.kind=m,this.match(55)&&(p=!0,this.raise($.AccessorIsGenerator,this.state.curPosition(),{kind:m}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,l,p,a,!1,u,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var a;let e=this.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t);n.length!==e&&this.raise(t.kind==="get"?$.BadGetterArity:$.BadSetterArity,t),t.kind==="set"&&((a=n[n.length-1])==null?void 0:a.type)==="RestElement"&&this.raise($.BadSetterRestParameter,t)}parseObjectMethod(t,e,n,a,u){if(u){let l=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(l),l}if(n||e||this.match(10))return a&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,n,a){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,a),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(e,this.cloneIdentifier(t.key));else if(this.match(29)){let u=this.state.startLoc;a!=null?a.shorthandAssignLoc===null&&(a.shorthandAssignLoc=u):this.raise($.InvalidCoverInitializedName,u),t.value=this.parseMaybeDefault(e,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,e,n,a,u,l,p){let h=this.parseObjectMethod(t,n,a,u,l)||this.parseObjectProperty(t,e,u,p);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:a}=this.state,u;if(wn(n))u=this.parseIdentifier(!0);else switch(n){case 135:u=this.parseNumericLiteral(a);break;case 134:u=this.parseStringLiteral(a);break;case 136:u=this.parseBigIntLiteral(a);break;case 139:{let l=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=l):this.raise($.UnexpectedPrivateField,l),u=this.parsePrivateName();break}default:this.unexpected()}t.key=u,n!==139&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,n,a,u,l,p=!1){this.initFunction(t,n),t.generator=e,this.scope.enter(530|(p?576:0)|(u?32:0)),this.prodParam.enter(Bh(n,t.generator)),this.parseFunctionParams(t,a);let h=this.parseFunctionBodyAndFinish(t,l,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,n){e&&this.expectPlugin("recordAndTuple");let a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let u=this.startNode();return this.next(),u.elements=this.parseExprList(t,!e,n,u),this.state.inFSharpPipelineDirectBody=a,this.finishNode(u,e?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,n,a){this.scope.enter(518);let u=Bh(n,!1);!this.match(5)&&this.prodParam.hasIn&&(u|=8),this.prodParam.enter(u),this.initFunction(t,n);let l=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,a)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=l,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,n){this.toAssignableList(e,n,!1),t.params=e}parseFunctionBodyAndFinish(t,e,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,e)}parseFunctionBody(t,e,n=!1){let a=e&&!this.match(5);if(this.expressionScope.enter(Iv()),a)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let u=this.state.strict,l=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,p=>{let h=!this.isSimpleParamList(t.params);p&&h&&this.raise($.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let d=!u&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!n&&!h,e,d),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,d)}),this.prodParam.exit(),this.state.labels=l}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,n=t.length;e<n;e++)if(!this.isSimpleParameter(t[e]))return!1;return!0}checkParams(t,e,n,a=!0){let u=!e&&new Set,l={type:"FormalParameters"};for(let p of t.params)this.checkLVal(p,l,5,u,a)}parseExprList(t,e,n,a){let u=[],l=!0;for(;!this.eat(t);){if(l)l=!1;else if(this.expect(12),this.match(t)){a&&this.addTrailingCommaExtraToNode(a),this.next();break}u.push(this.parseExprListItem(t,e,n))}return u}parseExprListItem(t,e,n,a){let u;if(this.match(12))e||this.raise($.UnexpectedToken,this.state.curPosition(),{unexpected:","}),u=null;else if(this.match(21)){let l=this.state.startLoc;u=this.parseParenItem(this.parseSpread(n),l)}else if(this.match(17)){this.expectPlugin("partialApplication"),a||this.raise($.UnexpectedArgumentPlaceholder,this.state.startLoc);let l=this.startNode();this.next(),u=this.finishNode(l,"ArgumentPlaceholder")}else u=this.parseMaybeAssignAllowInOrVoidPattern(t,n,this.parseParenItem);return u}parseIdentifier(t){let e=this.startNode(),n=this.parseIdentifierName(t);return this.createIdentifier(e,n)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}createIdentifierAt(t,e,n){return t.name=e,t.loc.identifierName=e,this.finishNodeAt(t,"Identifier",n)}parseIdentifierName(t){let e,{startLoc:n,type:a}=this.state;wn(a)?e=this.state.value:this.unexpected();let u=kk(a);return t?u&&this.replaceToken(132):this.checkReservedWord(e,n,u,!1),this.next(),e}checkReservedWord(t,e,n,a){if(!(t.length>10||!Yk(t))){if(n&&Gk(t)){this.raise($.UnexpectedKeyword,e,{keyword:t});return}if((this.state.strict?a?Tv:vv:Fv)(t,this.inModule)){this.raise($.UnexpectedReservedWord,e,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise($.YieldBindingIdentifier,e);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise($.AwaitBindingIdentifier,e);return}if(this.scope.inStaticBlock){this.raise($.AwaitBindingIdentifierInStaticBlock,e);return}this.expressionScope.recordAsyncArrowParametersError(e)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise($.ArgumentsInClass,e);return}}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError($.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise($.ObsoleteAwaitStar,e),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||i0(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let e=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError($.YieldInParameter,e);let n=!1,a=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:a=this.parseMaybeAssign()}return e.delegate=n,e.argument=a,this.finishNode(e,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise($.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise($.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let n=this.startNodeAt(e);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else{let n=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise($.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise($.PipelineTopicUnused,t)}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(e|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(e&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let a=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=n,a}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{n()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let e=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(e,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,e,n){if(e!=null&&this.match(88)){let a=this.lookaheadCharCode();if(a===44||a===(t===3?93:t===8?125:41)||a===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(e))}return this.parseMaybeAssignAllowIn(e,n)}parsePropertyNamePrefixOperator(t){}},my={kind:1},qI={kind:2},HI=/[\uD800-\uDFFF]/u,yy=/in(?:stanceof)?/y;function VI(r,t,e){for(let n=0;n<r.length;n++){let a=r[n],{type:u}=a;typeof u=="number"&&(a.type=bv(u))}return r}var JI=class extends UI{parseTopLevel(t,e){return t.program=this.parseProgram(e,140,this.options.sourceType==="module"?"module":"script"),t.comments=this.comments,this.optionFlags&256&&(t.tokens=VI(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,e,n){if(t.sourceType=n,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[u,l]of Array.from(this.scope.undefinedExports))this.raise($.ModuleExportUndefined,l,{localName:u});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let a;return e===140?a=this.finishNode(t,"Program"):a=this.finishNodeAt(t,"Program",mn(this.state.startLoc,-1)),a}stmtToDirective(t){let e=this.castNodeTo(t,"Directive"),n=this.castNodeTo(t.expression,"DirectiveLiteral"),a=n.value,u=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),l=n.value=u.slice(1,-1);return this.addExtra(n,"raw",u),this.addExtra(n,"rawValue",l),this.addExtra(n,"expressionValue",a),e.value=n,delete t.expression,e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let n=this.lookaheadCharCodeSince(t+2);if(n!==61&&n!==58&&n!==59)return!1}return!!(this.chStartsBindingIdentifier(e,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return this.chStartsBindingIdentifier(e,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return!0}return!1}chStartsBindingIdentifier(t,e){if(Qn(t)){if(yy.lastIndex=e,yy.test(this.input)){let n=this.codePointAtPos(yy.lastIndex);if(!Yi(n)&&n!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return e===123||this.chStartsBindingIdentifier(e,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let n=this.state.type,a=this.startNode(),u=!!(t&2),l=!!(t&4),p=t&1;switch(n){case 60:return this.parseBreakContinueStatement(a,!0);case 63:return this.parseBreakContinueStatement(a,!1);case 64:return this.parseDebuggerStatement(a);case 90:return this.parseDoWhileStatement(a);case 91:return this.parseForStatement(a);case 68:if(this.lookaheadCharCode()===46)break;return l||this.raise(this.state.strict?$.StrictFunction:this.options.annexB?$.SloppyFunctionAnnexB:$.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(a,!1,!u&&l);case 80:return u||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,a),!0);case 69:return this.parseIfStatement(a);case 70:return this.parseReturnStatement(a);case 71:return this.parseSwitchStatement(a);case 72:return this.parseThrowStatement(a);case 73:return this.parseTryStatement(a);case 96:if(this.isAwaitUsing())return this.allowsUsing()?u?this.recordAwaitIfAllowed()||this.raise($.AwaitUsingNotInAsyncContext,a):this.raise($.UnexpectedLexicalDeclaration,a):this.raise($.UnexpectedUsingDeclaration,a),this.next(),this.parseVarStatement(a,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?u||this.raise($.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise($.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(a,"using");case 100:{if(this.state.containsEsc)break;let m=this.nextTokenStart(),D=this.codePointAtPos(m);if(D!==91&&(!u&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(D,m)&&D!==123))break}case 75:u||this.raise($.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let m=this.state.value;return this.parseVarStatement(a,m)}case 92:return this.parseWhileStatement(a);case 76:return this.parseWithStatement(a);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(a);case 83:{let m=this.lookaheadCharCode();if(m===40||m===46)break}case 82:{!(this.optionFlags&8)&&!p&&this.raise($.UnexpectedImportExport,this.state.startLoc),this.next();let m;return n===83?m=this.parseImport(a):m=this.parseExport(a,e),this.assertModuleNodeAllowed(m),m}default:if(this.isAsyncFunction())return u||this.raise($.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(a,!0,!u&&l)}let h=this.state.value,d=this.parseExpression();return ot(n)&&d.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(a,h,d,t):this.parseExpressionStatement(a,d,e)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise($.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,n){var a;return t&&((a=e.decorators)!=null&&a.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise($.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),n&&this.resetStartLocationFromNode(n,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise($.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise($.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e=this.state.startLoc,n;if(this.match(10)){let a=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(a,n);let u=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n,a),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise($.DecoratorArgumentsOutsideParentheses,u)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let a=this.startNodeAt(e);a.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),a.computed=!1,n=this.finishNode(a,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(n,e)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,e){if(this.eat(10)){let n=this.startNodeAt(e);return n.callee=t,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let n;for(n=0;n<this.state.labels.length;++n){let a=this.state.labels[n];if((t.label==null||a.name===t.label.name)&&(a.kind!=null&&(e||a.kind===1)||t.label&&e))break}if(n===this.state.labels.length){let a=e?"BreakStatement":"ContinueStatement";this.raise($.IllegalBreakContinue,t,{type:a})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(my),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(my);let e=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(e=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let n=this.isContextual(100);{let h=this.isAwaitUsing(),d=h||this.isForUsing(),m=n&&this.hasFollowingBindingAtom()||d;if(this.match(74)||this.match(75)||m){let D=this.startNode(),g;h?(g="await using",this.recordAwaitIfAllowed()||this.raise($.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):g=this.state.value,this.next(),this.parseVar(D,!0,g);let x=this.finishNode(D,"VariableDeclaration"),b=this.match(58);return b&&d&&this.raise($.ForInUsing,x),(b||this.isContextual(102))&&x.declarations.length===1?this.parseForIn(t,x,e):(e!==null&&this.unexpected(e),this.parseFor(t,x))}}let a=this.isContextual(95),u=new Ph,l=this.parseExpression(!0,u),p=this.isContextual(102);if(p&&(n&&this.raise($.ForOfLet,l),e===null&&a&&l.type==="Identifier"&&this.raise($.ForOfAsync,l)),p||this.match(58)){this.checkDestructuringPrivate(u),this.toAssignable(l,!0);let h=p?"ForOfStatement":"ForInStatement";return this.checkLVal(l,{type:h}),this.parseForIn(t,l,e)}else this.checkExpressionErrors(u,!0);return e!==null&&this.unexpected(e),this.parseFor(t,l)}parseFunctionStatement(t,e,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise($.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(qI),this.scope.enter(256);let n;for(let a;!this.match(8);)if(this.match(61)||this.match(65)){let u=this.match(61);n&&this.finishNode(n,"SwitchCase"),e.push(n=this.startNode()),n.consequent=[],this.next(),u?n.test=this.parseExpression():(a&&this.raise($.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),a=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise($.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise($.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,n=!1){return this.next(),this.parseVar(t,!1,e,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(my),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise($.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,n,a){for(let l of this.state.labels)l.name===e&&this.raise($.LabelRedeclaration,n,{labelName:e});let u=Ok(this.state.type)?1:this.match(71)?2:null;for(let l=this.state.labels.length-1;l>=0;l--){let p=this.state.labels[l];if(p.statementStart===t.start)p.statementStart=this.sourceToOffsetPos(this.state.start),p.kind=u;else break}return this.state.labels.push({name:e,kind:u,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=a&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,n){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,n){let a=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(a,t,!1,8,n),e&&this.scope.exit(),this.finishNode(a,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,n,a,u){let l=t.body=[],p=t.directives=[];this.parseBlockOrModuleBlockBody(l,e?p:void 0,n,a,u)}parseBlockOrModuleBlockBody(t,e,n,a,u){let l=this.state.strict,p=!1,h=!1;for(;!this.match(a);){let d=n?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(d)){let m=this.stmtToDirective(d);e.push(m),!p&&m.value.value==="use strict"&&(p=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(d)}u==null||u.call(this,p),l||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,n){let a=this.match(58);return this.next(),a?n!==null&&this.unexpected(n):t.await=n!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!a||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise($.ForInOfLoopInitializer,e,{type:a?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise($.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=a?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,a?"ForInStatement":"ForOfStatement")}parseVar(t,e,n,a=!1){let u=t.declarations=[];for(t.kind=n;;){let l=this.startNode();if(this.parseVarId(l,n),l.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,l.init===null&&!a&&(l.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(102)))?this.raise($.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise($.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),u.push(this.finishNode(l,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let n=this.parseBindingAtom();e==="using"||e==="await using"?(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise($.UsingDeclarationHasBindingPattern,n.loc.start):n.type==="VoidPattern"&&this.raise($.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},e==="var"?5:8201),t.id=n}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let n=e&2,a=!!(e&1),u=a&&!(e&4),l=!!(e&8);this.initFunction(t,l),this.match(55)&&(n&&this.raise($.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),a&&(t.id=this.parseFunctionId(u));let p=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Bh(l,t.generator)),a||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,a?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),a&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=p,t}parseFunctionId(t){return t||ot(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(vI()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,n){this.next();let a=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,a),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:t},a=[],u=this.startNode();if(u.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(a.length>0)throw this.raise($.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){a.push(this.parseDecorator());continue}let l=this.startNode();a.length&&(l.decorators=a,this.resetStartLocationFromNode(l,a[0]),a=[]),this.parseClassMember(u,l,n),l.kind==="constructor"&&l.decorators&&l.decorators.length>0&&this.raise($.DecoratorConstructor,l)}}),this.state.strict=e,this.next(),a.length)throw this.raise($.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(u,"ClassBody")}parseClassMemberFromModifier(t,e){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let a=e;return a.kind="method",a.computed=!1,a.key=n,a.static=!1,this.pushClassMethod(t,a,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let a=e;return a.computed=!1,a.key=n,a.static=!1,t.body.push(this.parseClassProperty(a)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,e,n){let a=this.isContextual(106);if(a){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,n,a)}parseClassMemberWithIsStatic(t,e,n,a){let u=e,l=e,p=e,h=e,d=e,m=u,D=u;if(e.static=a,this.parsePropertyNamePrefixOperator(e),this.eat(55)){m.kind="method";let v=this.match(139);if(this.parseClassElementName(m),this.parsePostMemberNameModifiers(m),v){this.pushClassPrivateMethod(t,l,!0,!1);return}this.isNonstaticConstructor(u)&&this.raise($.ConstructorIsGenerator,u.key),this.pushClassMethod(t,u,!0,!1,!1,!1);return}let g=!this.state.containsEsc&&ot(this.state.type),x=this.parseClassElementName(e),b=g?x.name:null,C=this.isPrivateName(x),S=this.state.startLoc;if(this.parsePostMemberNameModifiers(D),this.isClassMethod()){if(m.kind="method",C){this.pushClassPrivateMethod(t,l,!1,!1);return}let v=this.isNonstaticConstructor(u),F=!1;v&&(u.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise($.DuplicateConstructor,x),v&&this.hasPlugin("typescript")&&e.override&&this.raise($.OverrideOnConstructor,x),n.hadConstructor=!0,F=n.hadSuperClass),this.pushClassMethod(t,u,!1,!1,v,F)}else if(this.isClassProperty())C?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,p);else if(b==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);let v=this.eat(55);D.optional&&this.unexpected(S),m.kind="method";let F=this.match(139);this.parseClassElementName(m),this.parsePostMemberNameModifiers(D),F?this.pushClassPrivateMethod(t,l,v,!0):(this.isNonstaticConstructor(u)&&this.raise($.ConstructorIsAsync,u.key),this.pushClassMethod(t,u,v,!0,!1,!1))}else if((b==="get"||b==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(x),m.kind=b;let v=this.match(139);this.parseClassElementName(u),v?this.pushClassPrivateMethod(t,l,!1,!1):(this.isNonstaticConstructor(u)&&this.raise($.ConstructorIsAccessor,u.key),this.pushClassMethod(t,u,!1,!1,!1,!1)),this.checkGetterSetterParams(u)}else if(b==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(x);let v=this.match(139);this.parseClassElementName(p),this.pushClassAccessorProperty(t,d,v)}else this.isLineTerminator()?C?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,p):this.unexpected()}parseClassElementName(t){let{type:e,value:n}=this.state;if((e===132||e===134)&&t.static&&n==="prototype"&&this.raise($.StaticPrototype,this.state.startLoc),e===139){n==="constructor"&&this.raise($.ConstructorClassPrivateField,this.state.startLoc);let a=this.parsePrivateName();return t.key=a,a}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var u;this.scope.enter(720);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let a=e.body=[];this.parseBlockOrModuleBlockBody(a,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,t.body.push(this.finishNode(e,"StaticBlock")),(u=e.decorators)!=null&&u.length&&this.raise($.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise($.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let n=this.parseClassPrivateProperty(e);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(t,e,n){!n&&!e.computed&&this.nameIsConstructor(e.key)&&this.raise($.ConstructorClassField,e.key);let a=this.parseClassAccessorProperty(e);t.body.push(a),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),0,a.key.loc.start)}pushClassMethod(t,e,n,a,u,l){t.body.push(this.parseMethod(e,n,a,u,l,"ClassMethod",!0))}pushClassPrivateMethod(t,e,n,a){let u=this.parseMethod(e,n,a,!1,!1,"ClassPrivateMethod",!0);t.body.push(u);let l=u.kind==="get"?u.static?6:2:u.kind==="set"?u.static?5:1:0;this.declareClassPrivateMethodInScope(u,l)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(Iv()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,n,a=8331){if(ot(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,a);else if(n||!e)t.id=null;else throw this.raise($.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){var g;let n=this.parseMaybeImportPhase(t,!0),a=this.maybeParseExportDefaultSpecifier(t,n),u=!a||this.eat(12),l=u&&this.eatExportStar(t),p=l&&this.maybeParseExportNamespaceSpecifier(t),h=u&&(!p||this.eat(12)),d=a||l;if(l&&!p){if(a&&this.unexpected(),e)throw this.raise($.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let m=this.maybeParseExportNamedSpecifiers(t);a&&u&&!l&&!m&&this.unexpected(null,5),p&&h&&this.unexpected(null,98);let D;if(d||m){if(D=!1,e)throw this.raise($.UnsupportedDecoratorExport,t);this.parseExportFrom(t,d)}else D=this.maybeParseExportDeclaration(t);if(d||m||D){let x=t;if(this.checkExport(x,!0,!1,!!x.source),((g=x.declaration)==null?void 0:g.type)==="ClassDeclaration")this.maybeTakeDecorators(e,x.declaration,x);else if(e)throw this.raise($.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(x,"ExportNamedDeclaration")}if(this.eat(65)){let x=t,b=this.parseExportDefaultExpression();if(x.declaration=b,b.type==="ClassDeclaration")this.maybeTakeDecorators(e,b,x);else if(e)throw this.raise($.UnsupportedDecoratorExport,t);return this.checkExport(x,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(x,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e==null?void 0:e.loc.start);let n=e||this.parseIdentifier(!0),a=this.startNodeAtNode(n);return a.exported=n,t.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers??(t.specifiers=[]);let e=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let e=t;e.specifiers||(e.specifiers=[]);let n=e.exportKind==="type";return e.specifiers.push(...this.parseExportSpecifiers(n)),e.source=null,e.attributes=[],e.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise($.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise($.UnsupportedDefaultExport,this.state.startLoc);let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(ot(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let a=this.nextTokenStart(),u=this.input.charCodeAt(a);if(u===123||this.chStartsBindingIdentifier(u,a)&&!this.input.startsWith("from",a))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),n=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||ot(this.state.type)&&n)return!0;if(this.match(65)&&n){let a=this.input.charCodeAt(this.nextTokenStartSince(e+4));return a===34||a===39}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise($.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise($.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise($.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,n,a){var u,l;if(e){if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){let p=t.declaration;p.type==="Identifier"&&p.name==="from"&&p.end-p.start===4&&!((u=p.extra)!=null&&u.parenthesized)&&this.raise($.ExportDefaultFromAsIdentifier,p)}}else if((l=t.specifiers)!=null&&l.length)for(let p of t.specifiers){let{exported:h}=p,d=h.type==="Identifier"?h.name:h.value;if(this.checkDuplicateExports(p,d),!a&&p.local){let{local:m}=p;m.type!=="Identifier"?this.raise($.ExportBindingIsString,p,{localName:m.value,exportName:d}):(this.checkReservedWord(m.name,m.loc.start,!0,!1),this.scope.checkLocalExport(m))}}else if(t.declaration){let p=t.declaration;if(p.type==="FunctionDeclaration"||p.type==="ClassDeclaration"){let{id:h}=p;if(!h)throw new Error("Assertion failure");this.checkDuplicateExports(t,h.name)}else if(p.type==="VariableDeclaration")for(let h of p.declarations)this.checkDeclaration(h.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise($.DuplicateDefaultExport,t):this.raise($.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let a=this.isContextual(130),u=this.match(134),l=this.startNode();l.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(l,u,t,a))}return e}parseExportSpecifier(t,e,n,a){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),e=HI.exec(t.value);return e&&this.raise($.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:n})=>n.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){var a;let{specifiers:e}=t,n=e.length===1?e[0].type:null;t.phase==="source"?n!=="ImportDefaultSpecifier"&&this.raise($.SourcePhaseImportRequiresDefault,e[0].loc.start):t.phase==="defer"?n!=="ImportNamespaceSpecifier"&&this.raise($.DeferImportRequiresNamespace,e[0].loc.start):t.module&&(n!=="ImportDefaultSpecifier"&&this.raise($.ImportReflectionNotBinding,e[0].loc.start),((a=t.assertions)==null?void 0:a.length)>0&&this.raise($.ImportReflectionHasAssertion,e[0].loc.start))}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:e}=t;if(e!=null){let n=e.find(a=>{let u;if(a.type==="ExportSpecifier"?u=a.local:a.type==="ImportSpecifier"&&(u=a.imported),u!==void 0)return u.type==="Identifier"?u.name!=="default":u.value!=="default"});n!==void 0&&this.raise($.ImportJSONBindingNotDefault,n.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(t,e,n,a){e||(this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",a),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",a),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let n=this.startNode(),a=this.parseIdentifierName(!0),{type:u}=this.state;return(wn(u)?u!==98||this.lookaheadCharCode()===102:u!==12)?(this.applyImportPhase(t,e,a,n.loc.start),null):(this.applyImportPhase(t,e,null),this.createIdentifier(n,a))}isPrecedingIdImportPhase(t){let{type:e}=this.state;return ot(e)?e!==98||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),a=n&&this.maybeParseStarImportSpecifier(t);return n&&!a&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return t.specifiers??(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,n){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,n))}finishImportSpecifier(t,e,n=8201){return this.checkLVal(t.local,{type:e},n),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let n=this.startNode(),a=this.state.value;if(e.has(a)&&this.raise($.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:a}),e.add(a),this.match(134)?n.key=this.parseStringLiteral(a):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise($.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise($.ModuleAttributeDifferentFromType,n.key),e.has(n.key.name)&&this.raise($.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),e.add(n.key.name),this.expect(14),!this.match(134))throw this.raise($.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),e=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise($.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),e=this.parseImportAttributes()):e=[];t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let n=this.startNodeAtNode(e);return n.local=e,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(wn(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise($.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),a=this.match(134),u=this.isContextual(130);n.imported=this.parseModuleExportName();let l=this.parseImportSpecifier(n,a,t.importKind==="type"||t.importKind==="typeof",u,void 0);t.specifiers.push(l)}}parseImportSpecifier(t,e,n,a,u){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:l}=t;if(e)throw this.raise($.ImportBindingIsString,t,{importName:l.value});this.checkReservedWord(l.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(l))}return this.finishImportSpecifier(t,"ImportSpecifier",u)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Rv=class extends JI{constructor(t,e,n){let a=Tk(t);super(a,e),this.options=a,this.initializeScopes(),this.plugins=n,this.filename=a.sourceFilename,this.startIndex=a.startIndex;let u=0;a.allowAwaitOutsideFunction&&(u|=1),a.allowReturnOutsideFunction&&(u|=2),a.allowImportExportEverywhere&&(u|=8),a.allowSuperOutsideMethod&&(u|=16),a.allowUndeclaredExports&&(u|=64),a.allowNewTargetOutsideFunction&&(u|=4),a.allowYieldOutsideFunction&&(u|=32),a.ranges&&(u|=128),a.tokens&&(u|=256),a.createImportExpressions&&(u|=512),a.createParenthesizedExpressions&&(u|=1024),a.errorRecovery&&(u|=2048),a.attachComment&&(u|=4096),a.annexB&&(u|=8192),this.optionFlags=u}getScopeHandler(){return zD}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();this.nextToken(),t.errors=null;let n=this.parseTopLevel(t,e);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}};function _v(r,t){if((t==null?void 0:t.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let e=Zl(t,r),n=e.parse();if(e.sawUnambiguousESM)return n;if(e.ambiguousScriptDifferentAst)try{return t.sourceType="script",Zl(t,r).parse()}catch{}else n.program.sourceType="script";return n}catch(e){try{return t.sourceType="script",Zl(t,r).parse()}catch{}throw e}}else return Zl(t,r).parse()}function jv(r,t){let e=Zl(t,r);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function XI(r){let t={};for(let e of Object.keys(r))t[e]=bv(r[e]);return t}XI(Pk);function Zl(r,t){let e=Rv,n=new Map;if(r!=null&&r.plugins){for(let a of r.plugins){let u,l;typeof a=="string"?u=a:[u,l]=a,n.has(u)||n.set(u,l||{})}$I(n),e=GI(n)}return new e(r,t,n)}var ZA=new Map;function GI(r){let t=[];for(let a of zI)r.has(a)&&t.push(a);let e=t.join("|"),n=ZA.get(e);if(!n){n=Rv;for(let a of t)n=Lv[a](n);ZA.set(e,n)}return n}function $v(r){return(t,e,n)=>{let a=!!(n!=null&&n.backwards);if(e===!1)return!1;let{length:u}=t,l=e;for(;l>=0&&l<u;){let p=t.charAt(l);if(r instanceof RegExp){if(!r.test(p))return l}else if(!r.includes(p))return l;a?l--:l++}return l===-1||l===u?l:!1}}var KI=$v(" "),QI=$v(/[^\n\r]/u);function YI(r,t){if(t===!1)return!1;if(r.charAt(t)==="/"&&r.charAt(t+1)==="*"){for(let e=t+2;e<r.length;++e)if(r.charAt(e)==="*"&&r.charAt(e+1)==="/")return e+2}return t}var WI=YI,e2=r=>r===`
|
|
299
|
+
`||r==="\r"||r==="\u2028"||r==="\u2029";function ZI(r,t,e){let n=!!(e!=null&&e.backwards);if(t===!1)return!1;let a=r.charAt(t);if(n){if(r.charAt(t-1)==="\r"&&a===`
|
|
300
|
+
`)return t-2;if(e2(a))return t-1}else{if(a==="\r"&&r.charAt(t+1)===`
|
|
301
|
+
`)return t+2;if(e2(a))return t+1}return t}var eM=ZI;function tM(r,t){return t===!1?!1:r.charAt(t)==="/"&&r.charAt(t+1)==="/"?QI(r,t):t}var rM=tM;function nM(r,t){let e=null,n=t;for(;n!==e;)e=n,n=KI(r,n),n=WI(r,n),n=rM(r,n),n=eM(r,n);return n}var sM=nM;function aM(r){let t=[];for(let e of r)try{return e()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}function iM(r){if(!r.startsWith("#!"))return"";let t=r.indexOf(`
|
|
302
|
+
`);return t===-1?r:r.slice(0,t)}var zv=iM,UD=(r,t)=>(e,n,...a)=>e|1&&n==null?void 0:(t.call(n)??n[r]).apply(n,a),uM=Array.prototype.findLast??function(r){for(let t=this.length-1;t>=0;t--){let e=this[t];if(r(e,t,this))return e}},oM=UD("findLast",function(){if(Array.isArray(this))return uM}),lM=oM;function cM(r){return this[r<0?this.length+r:r]}var pM=UD("at",function(){if(Array.isArray(this)||typeof this=="string")return cM}),hM=pM;function Us(r){var n,a,u;let t=((n=r.range)==null?void 0:n[0])??r.start,e=(u=((a=r.declaration)==null?void 0:a.decorators)??r.decorators)==null?void 0:u[0];return e?Math.min(Us(e),t):t}function Yn(r){var t;return((t=r.range)==null?void 0:t[1])??r.end}function dM(r){let t=new Set(r);return e=>t.has(e==null?void 0:e.type)}var qD=dM,fM=qD(["Block","CommentBlock","MultiLine"]),HD=fM,mM=qD(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),yM=mM,Dy=new WeakMap;function DM(r){return Dy.has(r)||Dy.set(r,HD(r)&&r.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(r.value)),Dy.get(r)}var gM=DM;function xM(r){if(!HD(r))return!1;let t=`*${r.value}*`.split(`
|
|
303
|
+
`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var gy=new WeakMap;function EM(r){return gy.has(r)||gy.set(r,xM(r)),gy.get(r)}var t2=EM;function bM(r){if(r.length<2)return;let t;for(let e=r.length-1;e>=0;e--){let n=r[e];if(t&&Yn(n)===Us(t)&&t2(n)&&t2(t)&&(r.splice(e+1,1),n.value+="*//*"+t.value,n.range=[Us(n),Yn(t)]),!yM(n)&&!HD(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var AM=bM;function CM(r){return r!==null&&typeof r=="object"}var FM=CM,Gl=null;function uc(r){if(Gl!==null&&typeof Gl.property){let t=Gl;return Gl=uc.prototype=null,t}return Gl=uc.prototype=r??Object.create(null),new uc}var vM=10;for(let r=0;r<=vM;r++)uc();function SM(r){return uc(r)}function TM(r,t="type"){SM(r);function e(n){let a=n[t],u=r[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return e}var wM=TM,I=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],NM={AccessorProperty:I[0],AnyTypeAnnotation:I[1],ArgumentPlaceholder:I[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:I[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:I[3],AsExpression:I[4],AssignmentExpression:I[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:I[6],BigIntLiteral:I[1],BigIntLiteralTypeAnnotation:I[1],BigIntTypeAnnotation:I[1],BinaryExpression:I[5],BindExpression:["object","callee"],BlockStatement:I[7],BooleanLiteral:I[1],BooleanLiteralTypeAnnotation:I[1],BooleanTypeAnnotation:I[1],BreakStatement:I[8],CallExpression:I[9],CatchClause:["param","body"],ChainExpression:I[3],ClassAccessorProperty:I[0],ClassBody:I[10],ClassDeclaration:I[11],ClassExpression:I[11],ClassImplements:I[12],ClassMethod:I[13],ClassPrivateMethod:I[13],ClassPrivateProperty:I[14],ClassProperty:I[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:I[15],ConditionalExpression:I[16],ConditionalTypeAnnotation:I[17],ContinueStatement:I[8],DebuggerStatement:I[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:I[18],DeclareEnum:I[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:I[20],DeclareFunction:["id","predicate"],DeclareHook:I[21],DeclareInterface:I[22],DeclareModule:I[19],DeclareModuleExports:I[23],DeclareNamespace:I[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:I[24],DeclareVariable:I[21],Decorator:I[3],Directive:I[18],DirectiveLiteral:I[1],DoExpression:I[10],DoWhileStatement:I[25],EmptyStatement:I[1],EmptyTypeAnnotation:I[1],EnumBigIntBody:I[26],EnumBigIntMember:I[27],EnumBooleanBody:I[26],EnumBooleanMember:I[27],EnumDeclaration:I[19],EnumDefaultedMember:I[21],EnumNumberBody:I[26],EnumNumberMember:I[27],EnumStringBody:I[26],EnumStringMember:I[27],EnumSymbolBody:I[26],ExistsTypeAnnotation:I[1],ExperimentalRestProperty:I[6],ExperimentalSpreadProperty:I[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:I[28],ExportNamedDeclaration:I[20],ExportNamespaceSpecifier:I[28],ExportSpecifier:["local","exported"],ExpressionStatement:I[3],File:["program"],ForInStatement:I[29],ForOfStatement:I[29],ForStatement:["init","test","update","body"],FunctionDeclaration:I[30],FunctionExpression:I[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:I[15],GenericTypeAnnotation:I[12],HookDeclaration:I[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:I[16],ImportAttribute:I[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:I[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:I[33],ImportSpecifier:["imported","local"],IndexedAccessType:I[34],InferredPredicate:I[1],InferTypeAnnotation:I[35],InterfaceDeclaration:I[22],InterfaceExtends:I[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:I[1],IntersectionTypeAnnotation:I[36],JsExpressionRoot:I[37],JsonRoot:I[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:I[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:I[1],JSXExpressionContainer:I[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:I[1],JSXMemberExpression:I[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:I[1],JSXSpreadAttribute:I[6],JSXSpreadChild:I[3],JSXText:I[1],KeyofTypeAnnotation:I[6],LabeledStatement:["label","body"],Literal:I[1],LogicalExpression:I[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:I[21],MatchExpression:I[39],MatchExpressionCase:I[40],MatchIdentifierPattern:I[21],MatchLiteralPattern:I[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:I[6],MatchStatement:I[39],MatchStatementCase:I[40],MatchUnaryPattern:I[6],MatchWildcardPattern:I[1],MemberExpression:I[38],MetaProperty:["meta","property"],MethodDefinition:I[42],MixedTypeAnnotation:I[1],ModuleExpression:I[10],NeverTypeAnnotation:I[1],NewExpression:I[9],NGChainedExpression:I[43],NGEmptyExpression:I[1],NGMicrosyntax:I[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:I[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:I[32],NGPipeExpression:["left","right","arguments"],NGRoot:I[37],NullableTypeAnnotation:I[23],NullLiteral:I[1],NullLiteralTypeAnnotation:I[1],NumberLiteralTypeAnnotation:I[1],NumberTypeAnnotation:I[1],NumericLiteral:I[1],ObjectExpression:["properties"],ObjectMethod:I[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:I[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:I[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:I[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:I[9],OptionalIndexedAccessType:I[34],OptionalMemberExpression:I[38],ParenthesizedExpression:I[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:I[1],PipelineTopicExpression:I[3],Placeholder:I[1],PrivateIdentifier:I[1],PrivateName:I[21],Program:I[7],Property:I[32],PropertyDefinition:I[14],QualifiedTypeIdentifier:I[44],QualifiedTypeofIdentifier:I[44],RegExpLiteral:I[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:I[6],SatisfiesExpression:I[4],SequenceExpression:I[43],SpreadElement:I[6],StaticBlock:I[10],StringLiteral:I[1],StringLiteralTypeAnnotation:I[1],StringTypeAnnotation:I[1],Super:I[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:I[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:I[1],TemplateLiteral:["quasis","expressions"],ThisExpression:I[1],ThisTypeAnnotation:I[1],ThrowStatement:I[6],TopicReference:I[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:I[45],TSAbstractKeyword:I[1],TSAbstractMethodDefinition:I[32],TSAbstractPropertyDefinition:I[45],TSAnyKeyword:I[1],TSArrayType:I[2],TSAsExpression:I[4],TSAsyncKeyword:I[1],TSBigIntKeyword:I[1],TSBooleanKeyword:I[1],TSCallSignatureDeclaration:I[46],TSClassImplements:I[47],TSConditionalType:I[17],TSConstructorType:I[46],TSConstructSignatureDeclaration:I[46],TSDeclareFunction:I[31],TSDeclareKeyword:I[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:I[26],TSEnumDeclaration:I[19],TSEnumMember:["id","initializer"],TSExportAssignment:I[3],TSExportKeyword:I[1],TSExternalModuleReference:I[3],TSFunctionType:I[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:I[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:I[35],TSInstantiationExpression:I[47],TSInterfaceBody:I[10],TSInterfaceDeclaration:I[22],TSInterfaceHeritage:I[47],TSIntersectionType:I[36],TSIntrinsicKeyword:I[1],TSJSDocAllType:I[1],TSJSDocNonNullableType:I[23],TSJSDocNullableType:I[23],TSJSDocUnknownType:I[1],TSLiteralType:I[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:I[10],TSModuleDeclaration:I[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:I[21],TSNeverKeyword:I[1],TSNonNullExpression:I[3],TSNullKeyword:I[1],TSNumberKeyword:I[1],TSObjectKeyword:I[1],TSOptionalType:I[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:I[23],TSPrivateKeyword:I[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:I[1],TSPublicKeyword:I[1],TSQualifiedName:I[5],TSReadonlyKeyword:I[1],TSRestType:I[23],TSSatisfiesExpression:I[4],TSStaticKeyword:I[1],TSStringKeyword:I[1],TSSymbolKeyword:I[1],TSTemplateLiteralType:["quasis","types"],TSThisType:I[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:I[23],TSTypeAssertion:I[4],TSTypeLiteral:I[26],TSTypeOperator:I[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:I[48],TSTypeParameterInstantiation:I[48],TSTypePredicate:I[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:I[1],TSUnionType:I[36],TSUnknownKeyword:I[1],TSVoidKeyword:I[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:I[24],TypeAnnotation:I[23],TypeCastExpression:I[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:I[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:I[48],TypeParameterInstantiation:I[48],TypePredicate:I[49],UnaryExpression:I[6],UndefinedTypeAnnotation:I[1],UnionTypeAnnotation:I[36],UnknownTypeAnnotation:I[1],UpdateExpression:I[6],V8IntrinsicIdentifier:I[1],VariableDeclaration:["declarations"],VariableDeclarator:I[27],Variance:I[1],VoidPattern:I[1],VoidTypeAnnotation:I[1],WhileStatement:I[25],WithStatement:["object","body"],YieldExpression:I[6]},BM=wM(NM),PM=BM;function kh(r,t){if(!FM(r))return r;if(Array.isArray(r)){for(let n=0;n<r.length;n++)r[n]=kh(r[n],t);return r}if(t.onEnter){let n=t.onEnter(r)??r;if(n!==r)return kh(n,t);r=n}let e=PM(r);for(let n=0;n<e.length;n++)r[e[n]]=kh(r[e[n]],t);return t.onLeave&&(r=t.onLeave(r)||r),r}var kM=kh;qD(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function IM(r,t){let{parser:e,text:n}=t,{comments:a}=r,u=e==="oxc"&&t.oxcAstType==="ts";AM(a);let l=r.type==="File"?r.program:r;l.interpreter&&(a.unshift(l.interpreter),delete l.interpreter),u&&r.hashbang&&(a.unshift(r.hashbang),delete r.hashbang),r.type==="Program"&&(r.range=[0,n.length]);let p;return r=kM(r,{onEnter(h){switch(h.type){case"ParenthesizedExpression":{let{expression:d}=h,m=Us(h);if(d.type==="TypeCastExpression")return d.range=[m,Yn(h)],d;let D=!1;if(!u){if(!p){p=[];for(let x of a)gM(x)&&p.push(Yn(x))}let g=lM(0,p,x=>x<=m);D=g&&n.slice(g,m).trim().length===0}return D?void 0:(d.extra={...d.extra,parenthesized:!0},d)}case"TemplateLiteral":if(h.expressions.length!==h.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(e==="flow"||e==="hermes"||e==="espree"||e==="typescript"||u){let d=Us(h)+1,m=Yn(h)-(h.tail?1:2);h.range=[d,m]}break;case"VariableDeclaration":{let d=hM(0,h.declarations,-1);d!=null&&d.init&&n[Yn(d)]!==";"&&(h.range=[Us(h),Yn(d)]);break}case"TSParenthesizedType":return h.typeAnnotation;case"TopicReference":r.extra={...r.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(h.types.length===1)return h.types[0];break;case"ImportExpression":e==="hermes"&&h.attributes&&!h.options&&(h.options=h.attributes);break}},onLeave(h){switch(h.type){case"LogicalExpression":if(Uv(h))return h0(h);break;case"TSImportType":!h.source&&h.argument.type==="TSLiteralType"&&(h.source=h.argument.literal,delete h.argument);break}}}),r}function Uv(r){return r.type==="LogicalExpression"&&r.right.type==="LogicalExpression"&&r.operator===r.right.operator}function h0(r){return Uv(r)?h0({type:"LogicalExpression",operator:r.operator,left:h0({type:"LogicalExpression",operator:r.operator,left:r.left,right:r.right.left,range:[Us(r.left),Yn(r.right.left)]}),right:r.right.right,range:[Us(r),Yn(r)]}):r}var MM=IM;function OM(r,t){let e=new SyntaxError(r+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var qv=OM,r2="Unexpected parseExpression() input: ";function LM(r){let{message:t,loc:e,reasonCode:n}=r;if(!e)return r;let{line:a,column:u}=e,l=r;(n==="MissingPlugin"||n==="MissingOneOfPlugins")&&(t="Unexpected token.",l=void 0);let p=` (${a}:${u})`;return t.endsWith(p)&&(t=t.slice(0,-p.length)),t.startsWith(r2)&&(t=t.slice(r2.length)),qv(t,{loc:{start:{line:a,column:u+1}},cause:l})}var Hv=LM,RM=String.prototype.replaceAll??function(r,t){return r.global?this.replace(r,t):this.split(r).join(t)},_M=UD("replaceAll",function(){if(typeof this=="string")return RM}),mh=_M,jM=/\*\/$/,$M=/^\/\*\*?/,zM=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,UM=/(^|\s+)\/\/([^\n\r]*)/g,n2=/^(\r?\n)+/,qM=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,s2=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,HM=/(\r?\n|^) *\* ?/g,VM=[];function JM(r){let t=r.match(zM);return t?t[0].trimStart():""}function XM(r){r=mh(0,r.replace($M,"").replace(jM,""),HM,"$1");let t="";for(;t!==r;)t=r,r=mh(0,r,qM,`
|
|
304
|
+
$1 $2
|
|
305
|
+
`);r=r.replace(n2,"").trimEnd();let e=Object.create(null),n=mh(0,r,s2,"").replace(n2,"").trimEnd(),a;for(;a=s2.exec(r);){let u=mh(0,a[2],UM,"");if(typeof e[a[1]]=="string"||Array.isArray(e[a[1]])){let l=e[a[1]];e[a[1]]=[...VM,...Array.isArray(l)?l:[l],u]}else e[a[1]]=u}return{comments:n,pragmas:e}}var GM=["noformat","noprettier"],KM=["format","prettier"];function Vv(r){let t=zv(r);t&&(r=r.slice(t.length+1));let e=JM(r),{pragmas:n,comments:a}=XM(e);return{shebang:t,text:r,pragmas:n,comments:a}}function QM(r){let{pragmas:t}=Vv(r);return KM.some(e=>Object.prototype.hasOwnProperty.call(t,e))}function YM(r){let{pragmas:t}=Vv(r);return GM.some(e=>Object.prototype.hasOwnProperty.call(t,e))}function WM(r){return r=typeof r=="function"?{parse:r}:r,{astFormat:"estree",hasPragma:QM,hasIgnorePragma:YM,locStart:Us,locEnd:Yn,...r}}var Oc=WM,VD="module",Jv="commonjs";function ZM(r){if(typeof r=="string"){if(r=r.toLowerCase(),/\.(?:mjs|mts)$/iu.test(r))return VD;if(/\.(?:cjs|cts)$/iu.test(r))return Jv}}function eO(r,t){let{type:e="JsExpressionRoot",rootMarker:n,text:a}=t,{tokens:u,comments:l}=r;return delete r.tokens,delete r.comments,{tokens:u,comments:l,type:e,node:r,range:[0,a.length],rootMarker:n}}var Xv=eO,Uo=r=>Oc(aO(r)),tO={sourceType:VD,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},a2="v8intrinsic",i2=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],Gs=(r,t=tO)=>({...t,plugins:[...t.plugins,...r]}),rO=/@(?:no)?flow\b/u;function nO(r,t){if(t!=null&&t.endsWith(".js.flow"))return!0;let e=zv(r);e&&(r=r.slice(e.length));let n=sM(r,0);return n!==!1&&(r=r.slice(0,n)),rO.test(r)}function sO(r,t,e){let n=r(t,e),a=n.errors.find(u=>!iO.has(u.reasonCode));if(a)throw a;return n}function aO({isExpression:r=!1,optionsCombinations:t}){return(e,n={})=>{let{filepath:a}=n;if(typeof a!="string"&&(a=void 0),(n.parser==="babel"||n.parser==="__babel_estree")&&nO(e,a))return n.parser="babel-flow",Kv.parse(e,n);let u=t,l=n.__babelSourceType??ZM(a);l&&l!==VD&&(u=u.map(m=>({...m,sourceType:l,...l===Jv?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let p=/%[A-Z]/u.test(e);e.includes("|>")?u=(p?[...i2,a2]:i2).flatMap(m=>u.map(D=>Gs([m],D))):p&&(u=u.map(m=>Gs([a2],m)));let h=r?jv:_v,d;try{d=aM(u.map(m=>()=>sO(h,e,m)))}catch({errors:[m]}){throw Hv(m)}return r&&(d=Xv(d,{text:e,rootMarker:n.rootMarker})),MM(d,{text:e})}}var iO=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),Gv=[Gs(["jsx"])],u2=Uo({optionsCombinations:Gv}),o2=Uo({optionsCombinations:[Gs(["jsx","typescript"]),Gs(["typescript"])]}),l2=Uo({isExpression:!0,optionsCombinations:[Gs(["jsx"])]}),c2=Uo({isExpression:!0,optionsCombinations:[Gs(["typescript"])]}),Kv=Uo({optionsCombinations:[Gs(["jsx",["flow",{all:!0}],"flowComments"])]}),uO=Uo({optionsCombinations:Gv.map(r=>Gs(["estree"],r))}),Qv={};ND(Qv,{json:()=>cO,"json-stringify":()=>dO,json5:()=>pO,jsonc:()=>hO});function oO(r){return Array.isArray(r)&&r.length>0}var Yv=oO,Wv={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function lO(r){let t=_v(r,Wv),{program:e}=t;if(e.body.length===0&&e.directives.length===0&&!e.interpreter)return t}function yd(r,t={}){let{allowComments:e=!0,allowEmpty:n=!1}=t,a;try{a=jv(r,Wv)}catch(u){if(n&&u.code==="BABEL_PARSER_SYNTAX_ERROR"&&u.reasonCode==="ParseExpressionEmptyInput")try{a=lO(r)}catch{}if(!a)throw Hv(u)}if(!e&&Yv(a.comments))throw _a(a.comments[0],"Comment");return a=Xv(a,{type:"JsonRoot",text:r}),a.node.type==="File"?delete a.node:ro(a.node),a}function _a(r,t){let[e,n]=[r.loc.start,r.loc.end].map(({line:a,column:u})=>({line:a,column:u+1}));return qv(`${t} is not allowed in JSON.`,{loc:{start:e,end:n}})}function ro(r){switch(r.type){case"ArrayExpression":for(let t of r.elements)t!==null&&ro(t);return;case"ObjectExpression":for(let t of r.properties)ro(t);return;case"ObjectProperty":if(r.computed)throw _a(r.key,"Computed key");if(r.shorthand)throw _a(r.key,"Shorthand property");r.key.type!=="Identifier"&&ro(r.key),ro(r.value);return;case"UnaryExpression":{let{operator:t,argument:e}=r;if(t!=="+"&&t!=="-")throw _a(r,`Operator '${r.operator}'`);if(e.type==="NumericLiteral"||e.type==="Identifier"&&(e.name==="Infinity"||e.name==="NaN"))return;throw _a(e,`Operator '${t}' before '${e.type}'`)}case"Identifier":if(r.name!=="Infinity"&&r.name!=="NaN"&&r.name!=="undefined")throw _a(r,`Identifier '${r.name}'`);return;case"TemplateLiteral":if(Yv(r.expressions))throw _a(r.expressions[0],"'TemplateLiteral' with expression");for(let t of r.quasis)ro(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw _a(r,`'${r.type}'`)}}var cO=Oc({parse:r=>yd(r),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),pO=Oc(r=>yd(r)),hO=Oc(r=>yd(r,{allowEmpty:!0})),dO=Oc({parse:r=>yd(r,{allowComments:!1}),astFormat:"estree-json"}),fO={...gv,...Qv},mO=Object.defineProperty,JD=(r,t)=>{for(var e in t)mO(r,e,{get:t[e],enumerable:!0})},Zv={};JD(Zv,{languages:()=>gU,options:()=>yU,printers:()=>DU});var yO=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],eS={};JD(eS,{canAttachComment:()=>RL,embed:()=>w_,features:()=>oU,getVisitorKeys:()=>uS,handleComments:()=>gR,hasPrettierIgnore:()=>xg,insertPragma:()=>U_,isBlockComment:()=>_n,isGap:()=>ER,massageAstNode:()=>PL,print:()=>j2,printComment:()=>J_,printPrettierIgnored:()=>j2,willPrintOwnComments:()=>CR});var XD=(r,t)=>(e,n,...a)=>e|1&&n==null?void 0:(t.call(n)??n[r]).apply(n,a),DO=String.prototype.replaceAll??function(r,t){return r.global?this.replace(r,t):this.split(r).join(t)},gO=XD("replaceAll",function(){if(typeof this=="string")return DO}),Yt=gO;function xO(r){return this[r<0?this.length+r:r]}var EO=XD("at",function(){if(Array.isArray(this)||typeof this=="string")return xO}),it=EO;function bO(r){return r!==null&&typeof r=="object"}var tS=bO;function*AO(r,t){let{getVisitorKeys:e,filter:n=()=>!0}=t,a=u=>tS(u)&&n(u);for(let u of e(r)){let l=r[u];if(Array.isArray(l))for(let p of l)a(p)&&(yield p);else a(l)&&(yield l)}}function*CO(r,t){let e=[r];for(let n=0;n<e.length;n++){let a=e[n];for(let u of AO(a,t))yield u,e.push(u)}}function FO(r,{getVisitorKeys:t,predicate:e}){for(let n of CO(r,{getVisitorKeys:t}))if(e(n))return!0;return!1}var vO=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function SO(r){return r===12288||r>=65281&&r<=65376||r>=65504&&r<=65510}function TO(r){return r>=4352&&r<=4447||r===8986||r===8987||r===9001||r===9002||r>=9193&&r<=9196||r===9200||r===9203||r===9725||r===9726||r===9748||r===9749||r>=9776&&r<=9783||r>=9800&&r<=9811||r===9855||r>=9866&&r<=9871||r===9875||r===9889||r===9898||r===9899||r===9917||r===9918||r===9924||r===9925||r===9934||r===9940||r===9962||r===9970||r===9971||r===9973||r===9978||r===9981||r===9989||r===9994||r===9995||r===10024||r===10060||r===10062||r>=10067&&r<=10069||r===10071||r>=10133&&r<=10135||r===10160||r===10175||r===11035||r===11036||r===11088||r===11093||r>=11904&&r<=11929||r>=11931&&r<=12019||r>=12032&&r<=12245||r>=12272&&r<=12287||r>=12289&&r<=12350||r>=12353&&r<=12438||r>=12441&&r<=12543||r>=12549&&r<=12591||r>=12593&&r<=12686||r>=12688&&r<=12773||r>=12783&&r<=12830||r>=12832&&r<=12871||r>=12880&&r<=42124||r>=42128&&r<=42182||r>=43360&&r<=43388||r>=44032&&r<=55203||r>=63744&&r<=64255||r>=65040&&r<=65049||r>=65072&&r<=65106||r>=65108&&r<=65126||r>=65128&&r<=65131||r>=94176&&r<=94180||r>=94192&&r<=94198||r>=94208&&r<=101589||r>=101631&&r<=101662||r>=101760&&r<=101874||r>=110576&&r<=110579||r>=110581&&r<=110587||r===110589||r===110590||r>=110592&&r<=110882||r===110898||r>=110928&&r<=110930||r===110933||r>=110948&&r<=110951||r>=110960&&r<=111355||r>=119552&&r<=119638||r>=119648&&r<=119670||r===126980||r===127183||r===127374||r>=127377&&r<=127386||r>=127488&&r<=127490||r>=127504&&r<=127547||r>=127552&&r<=127560||r===127568||r===127569||r>=127584&&r<=127589||r>=127744&&r<=127776||r>=127789&&r<=127797||r>=127799&&r<=127868||r>=127870&&r<=127891||r>=127904&&r<=127946||r>=127951&&r<=127955||r>=127968&&r<=127984||r===127988||r>=127992&&r<=128062||r===128064||r>=128066&&r<=128252||r>=128255&&r<=128317||r>=128331&&r<=128334||r>=128336&&r<=128359||r===128378||r===128405||r===128406||r===128420||r>=128507&&r<=128591||r>=128640&&r<=128709||r===128716||r>=128720&&r<=128722||r>=128725&&r<=128728||r>=128732&&r<=128735||r===128747||r===128748||r>=128756&&r<=128764||r>=128992&&r<=129003||r===129008||r>=129292&&r<=129338||r>=129340&&r<=129349||r>=129351&&r<=129535||r>=129648&&r<=129660||r>=129664&&r<=129674||r>=129678&&r<=129734||r===129736||r>=129741&&r<=129756||r>=129759&&r<=129770||r>=129775&&r<=129784||r>=131072&&r<=196605||r>=196608&&r<=262141}var wO="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",NO=/[^\x20-\x7F]/u,BO=new Set(wO);function PO(r){if(!r)return 0;if(!NO.test(r))return r.length;r=r.replace(vO(),e=>BO.has(e)?" ":" ");let t=0;for(let e of r){let n=e.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=SO(n)||TO(n)?2:1)}return t}var So=PO;function GD(r){return(t,e,n)=>{let a=!!(n!=null&&n.backwards);if(e===!1)return!1;let{length:u}=t,l=e;for(;l>=0&&l<u;){let p=t.charAt(l);if(r instanceof RegExp){if(!r.test(p))return l}else if(!r.includes(p))return l;a?l--:l++}return l===-1||l===u?l:!1}}var To=GD(" "),kO=GD(",; "),IO=GD(/[^\n\r]/u),p2=r=>r===`
|
|
306
|
+
`||r==="\r"||r==="\u2028"||r==="\u2029";function MO(r,t,e){let n=!!(e!=null&&e.backwards);if(t===!1)return!1;let a=r.charAt(t);if(n){if(r.charAt(t-1)==="\r"&&a===`
|
|
307
|
+
`)return t-2;if(p2(a))return t-1}else{if(a==="\r"&&r.charAt(t+1)===`
|
|
308
|
+
`)return t+2;if(p2(a))return t+1}return t}var wo=MO;function OO(r,t,e={}){let n=To(r,e.backwards?t-1:t,e),a=wo(r,n,e);return n!==a}var Mr=OO;function LO(r,t){if(t===!1)return!1;if(r.charAt(t)==="/"&&r.charAt(t+1)==="*"){for(let e=t+2;e<r.length;++e)if(r.charAt(e)==="*"&&r.charAt(e+1)==="/")return e+2}return t}var KD=LO;function RO(r,t){return t===!1?!1:r.charAt(t)==="/"&&r.charAt(t+1)==="/"?IO(r,t):t}var QD=RO;function _O(r,t){let e=null,n=t;for(;n!==e;)e=n,n=kO(r,n),n=KD(r,n),n=To(r,n);return n=QD(r,n),n=wo(r,n),n!==!1&&Mr(r,n)}var YD=_O;function jO(r){return Array.isArray(r)&&r.length>0}var At=jO,$O=()=>{},zO=$O,rS=Object.freeze({character:"'",codePoint:39}),nS=Object.freeze({character:'"',codePoint:34}),UO=Object.freeze({preferred:rS,alternate:nS}),qO=Object.freeze({preferred:nS,alternate:rS});function HO(r,t){let{preferred:e,alternate:n}=t===!0||t==="'"?UO:qO,{length:a}=r,u=0,l=0;for(let p=0;p<a;p++){let h=r.charCodeAt(p);h===e.codePoint?u++:h===n.codePoint&&l++}return(u>l?n:e).character}var sS=HO,VO=/\\(["'\\])|(["'])/gu;function JO(r,t){let e=t==='"'?"'":'"',n=Yt(0,r,VO,(a,u,l)=>u?u===e?e:a:l===t?"\\"+l:l);return t+n+t}var XO=JO;function GO(r,t){let e=r.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":sS(e,t.singleQuote);return r.charAt(0)===n?r:XO(e,n)}var No=GO,aS=r=>Number.isInteger(r)&&r>=0;function Ve(r){var n,a,u;let t=((n=r.range)==null?void 0:n[0])??r.start,e=(u=((a=r.declaration)==null?void 0:a.decorators)??r.decorators)==null?void 0:u[0];return e?Math.min(Ve(e),t):t}function ze(r){var t;return((t=r.range)==null?void 0:t[1])??r.end}function Dd(r,t){let e=Ve(r);return aS(e)&&e===Ve(t)}function KO(r,t){let e=ze(r);return aS(e)&&e===ze(t)}function QO(r,t){return Dd(r,t)&&KO(r,t)}var Kl=null;function oc(r){if(Kl!==null&&typeof Kl.property){let t=Kl;return Kl=oc.prototype=null,t}return Kl=oc.prototype=r??Object.create(null),new oc}var YO=10;for(let r=0;r<=YO;r++)oc();function WO(r){return oc(r)}function ZO(r,t="type"){WO(r);function e(n){let a=n[t],u=r[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return e}var iS=ZO,M=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],eL={AccessorProperty:M[0],AnyTypeAnnotation:M[1],ArgumentPlaceholder:M[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:M[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:M[3],AsExpression:M[4],AssignmentExpression:M[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:M[6],BigIntLiteral:M[1],BigIntLiteralTypeAnnotation:M[1],BigIntTypeAnnotation:M[1],BinaryExpression:M[5],BindExpression:["object","callee"],BlockStatement:M[7],BooleanLiteral:M[1],BooleanLiteralTypeAnnotation:M[1],BooleanTypeAnnotation:M[1],BreakStatement:M[8],CallExpression:M[9],CatchClause:["param","body"],ChainExpression:M[3],ClassAccessorProperty:M[0],ClassBody:M[10],ClassDeclaration:M[11],ClassExpression:M[11],ClassImplements:M[12],ClassMethod:M[13],ClassPrivateMethod:M[13],ClassPrivateProperty:M[14],ClassProperty:M[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:M[15],ConditionalExpression:M[16],ConditionalTypeAnnotation:M[17],ContinueStatement:M[8],DebuggerStatement:M[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:M[18],DeclareEnum:M[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:M[20],DeclareFunction:["id","predicate"],DeclareHook:M[21],DeclareInterface:M[22],DeclareModule:M[19],DeclareModuleExports:M[23],DeclareNamespace:M[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:M[24],DeclareVariable:M[21],Decorator:M[3],Directive:M[18],DirectiveLiteral:M[1],DoExpression:M[10],DoWhileStatement:M[25],EmptyStatement:M[1],EmptyTypeAnnotation:M[1],EnumBigIntBody:M[26],EnumBigIntMember:M[27],EnumBooleanBody:M[26],EnumBooleanMember:M[27],EnumDeclaration:M[19],EnumDefaultedMember:M[21],EnumNumberBody:M[26],EnumNumberMember:M[27],EnumStringBody:M[26],EnumStringMember:M[27],EnumSymbolBody:M[26],ExistsTypeAnnotation:M[1],ExperimentalRestProperty:M[6],ExperimentalSpreadProperty:M[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:M[28],ExportNamedDeclaration:M[20],ExportNamespaceSpecifier:M[28],ExportSpecifier:["local","exported"],ExpressionStatement:M[3],File:["program"],ForInStatement:M[29],ForOfStatement:M[29],ForStatement:["init","test","update","body"],FunctionDeclaration:M[30],FunctionExpression:M[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:M[15],GenericTypeAnnotation:M[12],HookDeclaration:M[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:M[16],ImportAttribute:M[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:M[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:M[33],ImportSpecifier:["imported","local"],IndexedAccessType:M[34],InferredPredicate:M[1],InferTypeAnnotation:M[35],InterfaceDeclaration:M[22],InterfaceExtends:M[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:M[1],IntersectionTypeAnnotation:M[36],JsExpressionRoot:M[37],JsonRoot:M[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:M[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:M[1],JSXExpressionContainer:M[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:M[1],JSXMemberExpression:M[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:M[1],JSXSpreadAttribute:M[6],JSXSpreadChild:M[3],JSXText:M[1],KeyofTypeAnnotation:M[6],LabeledStatement:["label","body"],Literal:M[1],LogicalExpression:M[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:M[21],MatchExpression:M[39],MatchExpressionCase:M[40],MatchIdentifierPattern:M[21],MatchLiteralPattern:M[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:M[6],MatchStatement:M[39],MatchStatementCase:M[40],MatchUnaryPattern:M[6],MatchWildcardPattern:M[1],MemberExpression:M[38],MetaProperty:["meta","property"],MethodDefinition:M[42],MixedTypeAnnotation:M[1],ModuleExpression:M[10],NeverTypeAnnotation:M[1],NewExpression:M[9],NGChainedExpression:M[43],NGEmptyExpression:M[1],NGMicrosyntax:M[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:M[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:M[32],NGPipeExpression:["left","right","arguments"],NGRoot:M[37],NullableTypeAnnotation:M[23],NullLiteral:M[1],NullLiteralTypeAnnotation:M[1],NumberLiteralTypeAnnotation:M[1],NumberTypeAnnotation:M[1],NumericLiteral:M[1],ObjectExpression:["properties"],ObjectMethod:M[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:M[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:M[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:M[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:M[9],OptionalIndexedAccessType:M[34],OptionalMemberExpression:M[38],ParenthesizedExpression:M[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:M[1],PipelineTopicExpression:M[3],Placeholder:M[1],PrivateIdentifier:M[1],PrivateName:M[21],Program:M[7],Property:M[32],PropertyDefinition:M[14],QualifiedTypeIdentifier:M[44],QualifiedTypeofIdentifier:M[44],RegExpLiteral:M[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:M[6],SatisfiesExpression:M[4],SequenceExpression:M[43],SpreadElement:M[6],StaticBlock:M[10],StringLiteral:M[1],StringLiteralTypeAnnotation:M[1],StringTypeAnnotation:M[1],Super:M[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:M[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:M[1],TemplateLiteral:["quasis","expressions"],ThisExpression:M[1],ThisTypeAnnotation:M[1],ThrowStatement:M[6],TopicReference:M[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:M[45],TSAbstractKeyword:M[1],TSAbstractMethodDefinition:M[32],TSAbstractPropertyDefinition:M[45],TSAnyKeyword:M[1],TSArrayType:M[2],TSAsExpression:M[4],TSAsyncKeyword:M[1],TSBigIntKeyword:M[1],TSBooleanKeyword:M[1],TSCallSignatureDeclaration:M[46],TSClassImplements:M[47],TSConditionalType:M[17],TSConstructorType:M[46],TSConstructSignatureDeclaration:M[46],TSDeclareFunction:M[31],TSDeclareKeyword:M[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:M[26],TSEnumDeclaration:M[19],TSEnumMember:["id","initializer"],TSExportAssignment:M[3],TSExportKeyword:M[1],TSExternalModuleReference:M[3],TSFunctionType:M[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:M[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:M[35],TSInstantiationExpression:M[47],TSInterfaceBody:M[10],TSInterfaceDeclaration:M[22],TSInterfaceHeritage:M[47],TSIntersectionType:M[36],TSIntrinsicKeyword:M[1],TSJSDocAllType:M[1],TSJSDocNonNullableType:M[23],TSJSDocNullableType:M[23],TSJSDocUnknownType:M[1],TSLiteralType:M[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:M[10],TSModuleDeclaration:M[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:M[21],TSNeverKeyword:M[1],TSNonNullExpression:M[3],TSNullKeyword:M[1],TSNumberKeyword:M[1],TSObjectKeyword:M[1],TSOptionalType:M[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:M[23],TSPrivateKeyword:M[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:M[1],TSPublicKeyword:M[1],TSQualifiedName:M[5],TSReadonlyKeyword:M[1],TSRestType:M[23],TSSatisfiesExpression:M[4],TSStaticKeyword:M[1],TSStringKeyword:M[1],TSSymbolKeyword:M[1],TSTemplateLiteralType:["quasis","types"],TSThisType:M[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:M[23],TSTypeAssertion:M[4],TSTypeLiteral:M[26],TSTypeOperator:M[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:M[48],TSTypeParameterInstantiation:M[48],TSTypePredicate:M[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:M[1],TSUnionType:M[36],TSUnknownKeyword:M[1],TSVoidKeyword:M[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:M[24],TypeAnnotation:M[23],TypeCastExpression:M[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:M[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:M[48],TypeParameterInstantiation:M[48],TypePredicate:M[49],UnaryExpression:M[6],UndefinedTypeAnnotation:M[1],UnionTypeAnnotation:M[36],UnknownTypeAnnotation:M[1],UpdateExpression:M[6],V8IntrinsicIdentifier:M[1],VariableDeclaration:["declarations"],VariableDeclarator:M[27],Variance:M[1],VoidPattern:M[1],VoidTypeAnnotation:M[1],WhileStatement:M[25],WithStatement:["object","body"],YieldExpression:M[6]},tL=iS(eL),uS=tL;function rL(r){let t=new Set(r);return e=>t.has(e==null?void 0:e.type)}var Me=rL;function nL(r){var t;return((t=r.extra)==null?void 0:t.raw)??r.raw}var Or=nL,sL=Me(["Block","CommentBlock","MultiLine"]),_n=sL,aL=Me(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),oS=aL,iL=Me(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Lc=iL;function uL(r,t){let e=t.split(".");for(let n=e.length-1;n>=0;n--){let a=e[n];if(n===0)return r.type==="Identifier"&&r.name===a;if(n===1&&r.type==="MetaProperty"&&r.property.type==="Identifier"&&r.property.name===a){r=r.meta;continue}if(r.type==="MemberExpression"&&!r.optional&&!r.computed&&r.property.type==="Identifier"&&r.property.name===a){r=r.object;continue}return!1}}function oL(r,t){return t.some(e=>uL(r,e))}var WD=oL;function lL({type:r}){return r.startsWith("TS")&&r.endsWith("Keyword")}var lS=lL;function cL({node:r,parent:t}){return(r==null?void 0:r.type)!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===r||t.alternate===r:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===r:!1}var ZD=cL;function d0(r,t){return t(r)||FO(r,{getVisitorKeys:uS,predicate:t})}function eg(r){return r.type==="AssignmentExpression"||r.type==="BinaryExpression"||r.type==="LogicalExpression"||r.type==="NGPipeExpression"||r.type==="ConditionalExpression"||nt(r)||bt(r)||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="BindExpression"||r.type==="UpdateExpression"&&!r.prefix||Nn(r)||r.type==="TSNonNullExpression"||r.type==="ChainExpression"}function pL(r){return r.expressions?r.expressions[0]:r.left??r.test??r.callee??r.object??r.tag??r.argument??r.expression}function cS(r){if(r.expressions)return["expressions",0];if(r.left)return["left"];if(r.test)return["test"];if(r.object)return["object"];if(r.callee)return["callee"];if(r.tag)return["tag"];if(r.argument)return["argument"];if(r.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var hL=Me(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),or=Me(["ArrayExpression"]),Mn=Me(["ObjectExpression"]);function dL(r){return r.type==="LogicalExpression"&&r.operator==="??"}function ts(r){return r.type==="NumericLiteral"||r.type==="Literal"&&typeof r.value=="number"}function fL(r){return r.type==="BooleanLiteral"||r.type==="Literal"&&typeof r.value=="boolean"}function pS(r){return r.type==="UnaryExpression"&&(r.operator==="+"||r.operator==="-")&&ts(r.argument)}function Zt(r){return!!(r&&(r.type==="StringLiteral"||r.type==="Literal"&&typeof r.value=="string"))}function hS(r){return r.type==="RegExpLiteral"||r.type==="Literal"&&!!r.regex}var tg=Me(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),mL=Me(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),ei=Me(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),xc=Me(["FunctionExpression","ArrowFunctionExpression"]);function yL(r){return r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"&&r.body.type==="BlockStatement"}function xy(r){return nt(r)&&r.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(r.callee.name)}var Wt=Me(["JSXElement","JSXFragment"]);function Rc(r){return r.method&&r.kind==="init"||r.kind==="get"||r.kind==="set"}function dS(r){return(r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.static&&!r.method&&r.kind!=="get"&&r.kind!=="set"&&r.value.type==="FunctionTypeAnnotation"}function DL(r){return(r.type==="TypeAnnotation"||r.type==="TSTypeAnnotation")&&r.typeAnnotation.type==="FunctionTypeAnnotation"&&!r.static&&!Dd(r,r.typeAnnotation)}var Ks=Me(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function no(r){return bt(r)||r.type==="BindExpression"&&!!r.object}var gL=Me(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function rg(r){return lS(r)||oS(r)||gL(r)||r.type==="GenericTypeAnnotation"&&!r.typeParameters||r.type==="TSTypeReference"&&!r.typeArguments}function xL(r){return r.type==="Identifier"&&(r.name==="beforeEach"||r.name==="beforeAll"||r.name==="afterEach"||r.name==="afterAll")}var EL=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function bL(r){return WD(r,EL)}function gd(r,t){if((r==null?void 0:r.type)!=="CallExpression"||r.optional)return!1;let e=Zr(r);if(e.length===1){if(xy(r)&&gd(t))return xc(e[0]);if(xL(r.callee))return xy(e[0])}else if((e.length===2||e.length===3)&&(e[0].type==="TemplateLiteral"||Zt(e[0]))&&bL(r.callee))return e[2]&&!ts(e[2])?!1:(e.length===2?xc(e[1]):yL(e[1])&&hr(e[1]).length<=1)||xy(e[1]);return!1}var fS=r=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),r(t)),nt=fS(Me(["CallExpression","OptionalCallExpression"])),bt=fS(Me(["MemberExpression","OptionalMemberExpression"]));function h2(r,t=5){return mS(r,t)<=t}function mS(r,t){let e=0;for(let n in r){let a=r[n];if(tS(a)&&typeof a.type=="string"&&(e++,e+=mS(a,t-e)),e>t)return e}return e}var AL=.25;function ng(r,t){let{printWidth:e}=t;if(de(r))return!1;let n=e*AL;if(r.type==="ThisExpression"||r.type==="Identifier"&&r.name.length<=n||pS(r)&&!de(r.argument))return!0;let a=r.type==="Literal"&&"regex"in r&&r.regex.pattern||r.type==="RegExpLiteral"&&r.pattern;return a?a.length<=n:Zt(r)?No(Or(r),t).length<=n:r.type==="TemplateLiteral"?r.expressions.length===0&&r.quasis[0].value.raw.length<=n&&!r.quasis[0].value.raw.includes(`
|
|
309
|
+
`):r.type==="UnaryExpression"?ng(r.argument,{printWidth:e}):r.type==="CallExpression"&&r.arguments.length===0&&r.callee.type==="Identifier"?r.callee.name.length<=n-2:tg(r)}function Pn(r,t){return Wt(t)?xd(t):de(t,xe.Leading,e=>Mr(r,ze(e)))}function d2(r){return r.quasis.some(t=>t.value.raw.includes(`
|
|
310
|
+
`))}function yS(r,t){return(r.type==="TemplateLiteral"&&d2(r)||r.type==="TaggedTemplateExpression"&&d2(r.quasi))&&!Mr(t,Ve(r),{backwards:!0})}function DS(r){if(!de(r))return!1;let t=it(0,Wi(r,xe.Dangling),-1);return t&&!_n(t)}function CL(r){if(r.length<=1)return!1;let t=0;for(let e of r)if(xc(e)){if(t+=1,t>1)return!0}else if(nt(e)){for(let n of Zr(e))if(xc(n))return!0}return!1}function gS(r){let{node:t,parent:e,key:n}=r;return n==="callee"&&nt(t)&&nt(e)&&e.arguments.length>0&&t.arguments.length>e.arguments.length}var FL=new Set(["!","-","+","~"]);function Tn(r,t=2){if(t<=0)return!1;if(r.type==="ChainExpression"||r.type==="TSNonNullExpression")return Tn(r.expression,t);let e=n=>Tn(n,t-1);if(hS(r))return So(r.pattern??r.regex.pattern)<=5;if(tg(r)||mL(r)||r.type==="ArgumentPlaceholder")return!0;if(r.type==="TemplateLiteral")return r.quasis.every(n=>!n.value.raw.includes(`
|
|
311
|
+
`))&&r.expressions.every(e);if(Mn(r))return r.properties.every(n=>!n.computed&&(n.shorthand||n.value&&e(n.value)));if(or(r))return r.elements.every(n=>n===null||e(n));if(Po(r)){if(r.type==="ImportExpression"||Tn(r.callee,t)){let n=Zr(r);return n.length<=t&&n.every(e)}return!1}return bt(r)?Tn(r.object,t)&&Tn(r.property,t):r.type==="UnaryExpression"&&FL.has(r.operator)||r.type==="UpdateExpression"?Tn(r.argument,t):!1}function us(r,t="es5"){return r.trailingComma==="es5"&&t==="es5"||r.trailingComma==="all"&&(t==="all"||t==="es5")}function gr(r,t){switch(r.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return gr(r.left,t);case"MemberExpression":case"OptionalMemberExpression":return gr(r.object,t);case"TaggedTemplateExpression":return r.tag.type==="FunctionExpression"?!1:gr(r.tag,t);case"CallExpression":case"OptionalCallExpression":return r.callee.type==="FunctionExpression"?!1:gr(r.callee,t);case"ConditionalExpression":return gr(r.test,t);case"UpdateExpression":return!r.prefix&&gr(r.argument,t);case"BindExpression":return r.object&&gr(r.object,t);case"SequenceExpression":return gr(r.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return gr(r.expression,t);default:return t(r)}}var f2={"==":!0,"!=":!0,"===":!0,"!==":!0},yh={"*":!0,"/":!0,"%":!0},f0={">>":!0,">>>":!0,"<<":!0};function sg(r,t){return!(Vh(t)!==Vh(r)||r==="**"||f2[r]&&f2[t]||t==="%"&&yh[r]||r==="%"&&yh[t]||t!==r&&yh[t]&&yh[r]||f0[r]&&f0[t])}var vL=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((r,t)=>r.map(e=>[e,t])));function Vh(r){return vL.get(r)}function SL(r){return!!f0[r]||r==="|"||r==="^"||r==="&"}function TL(r){var e;if(r.rest)return!0;let t=hr(r);return((e=it(0,t,-1))==null?void 0:e.type)==="RestElement"}var Ey=new WeakMap;function hr(r){if(Ey.has(r))return Ey.get(r);let t=[];return r.this&&t.push(r.this),t.push(...r.params),r.rest&&t.push(r.rest),Ey.set(r,t),t}function wL(r,t){let{node:e}=r,n=0,a=()=>t(r,n++);e.this&&r.call(a,"this"),r.each(a,"params"),e.rest&&r.call(a,"rest")}var by=new WeakMap;function Zr(r){if(by.has(r))return by.get(r);if(r.type==="ChainExpression")return Zr(r.expression);let t;return r.type==="ImportExpression"||r.type==="TSImportType"?(t=[r.source],r.options&&t.push(r.options)):r.type==="TSExternalModuleReference"?t=[r.expression]:t=r.arguments,by.set(r,t),t}function Jh(r,t){let{node:e}=r;if(e.type==="ChainExpression")return r.call(()=>Jh(r,t),"expression");e.type==="ImportExpression"||e.type==="TSImportType"?(r.call(()=>t(r,0),"source"),e.options&&r.call(()=>t(r,1),"options")):e.type==="TSExternalModuleReference"?r.call(()=>t(r,0),"expression"):r.each(t,"arguments")}function m2(r,t){let e=[];if(r.type==="ChainExpression"&&(r=r.expression,e.push("expression")),r.type==="ImportExpression"||r.type==="TSImportType"){if(t===0||t===(r.options?-2:-1))return[...e,"source"];if(r.options&&(t===1||t===-1))return[...e,"options"];throw new RangeError("Invalid argument index")}else if(r.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...e,"expression"]}else if(t<0&&(t=r.arguments.length+t),t>=0&&t<r.arguments.length)return[...e,"arguments",t];throw new RangeError("Invalid argument index")}function Bo(r){return r.value.trim()==="prettier-ignore"&&!r.unignore}function xd(r){return(r==null?void 0:r.prettierIgnore)||de(r,xe.PrettierIgnore)}var xe={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},xS=(r,t)=>{if(typeof r=="function"&&(t=r,r=0),r||t)return(e,n,a)=>!(r&xe.Leading&&!e.leading||r&xe.Trailing&&!e.trailing||r&xe.Dangling&&(e.leading||e.trailing)||r&xe.Block&&!_n(e)||r&xe.Line&&!Lc(e)||r&xe.First&&n!==0||r&xe.Last&&n!==a.length-1||r&xe.PrettierIgnore&&!Bo(e)||t&&!t(e))};function de(r,t,e){if(!At(r==null?void 0:r.comments))return!1;let n=xS(t,e);return n?r.comments.some(n):!0}function Wi(r,t,e){if(!Array.isArray(r==null?void 0:r.comments))return[];let n=xS(t,e);return n?r.comments.filter(n):r.comments}var os=(r,{originalText:t})=>YD(t,ze(r));function Po(r){return nt(r)||r.type==="NewExpression"||r.type==="ImportExpression"}function ui(r){return r&&(r.type==="ObjectProperty"||r.type==="Property"&&!Rc(r))}var Nn=Me(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),rs=Me(["TSUnionType","UnionTypeAnnotation"]),_c=Me(["TSIntersectionType","IntersectionTypeAnnotation"]),ti=Me(["TSConditionalType","ConditionalTypeAnnotation"]),NL=r=>(r==null?void 0:r.type)==="TSAsExpression"&&r.typeAnnotation.type==="TSTypeReference"&&r.typeAnnotation.typeName.type==="Identifier"&&r.typeAnnotation.typeName.name==="const",m0=Me(["TSTypeAliasDeclaration","TypeAlias"]);function ES({key:r,parent:t}){return!(r==="types"&&rs(t)||r==="types"&&_c(t))}var BL=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Zu=r=>{for(let t of r.quasis)delete t.value};function bS(r,t,e){var a;if(r.type==="Program"&&delete t.sourceType,(r.type==="BigIntLiteral"||r.type==="Literal")&&r.bigint&&(t.bigint=r.bigint.toLowerCase()),r.type==="EmptyStatement"&&!ZD({node:r,parent:e})||r.type==="JSXText"||r.type==="JSXExpressionContainer"&&(r.expression.type==="Literal"||r.expression.type==="StringLiteral")&&r.expression.value===" ")return null;if((r.type==="Property"||r.type==="ObjectProperty"||r.type==="MethodDefinition"||r.type==="ClassProperty"||r.type==="ClassMethod"||r.type==="PropertyDefinition"||r.type==="TSDeclareMethod"||r.type==="TSPropertySignature"||r.type==="ObjectTypeProperty"||r.type==="ImportAttribute")&&r.key&&!r.computed){let{key:u}=r;Zt(u)||ts(u)?t.key=String(u.value):u.type==="Identifier"&&(t.key=u.name)}if(r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(u=>u.type==="JSXAttribute"&&u.name.name==="jsx"))for(let{type:u,expression:l}of t.children)u==="JSXExpressionContainer"&&l.type==="TemplateLiteral"&&Zu(l);r.type==="JSXAttribute"&&r.name.name==="css"&&r.value.type==="JSXExpressionContainer"&&r.value.expression.type==="TemplateLiteral"&&Zu(t.value.expression),r.type==="JSXAttribute"&&((a=r.value)==null?void 0:a.type)==="Literal"&&/["']|"|'/u.test(r.value.value)&&(t.value.value=Yt(0,r.value.value,/["']|"|'/gu,'"'));let n=r.expression||r.callee;if(r.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let u=r.expression.arguments[0].properties;for(let[l,p]of t.expression.arguments[0].properties.entries())switch(u[l].key.name){case"styles":or(p.value)&&Zu(p.value.elements[0]);break;case"template":p.value.type==="TemplateLiteral"&&Zu(p.value);break}}r.type==="TaggedTemplateExpression"&&(r.tag.type==="MemberExpression"||r.tag.type==="Identifier"&&(r.tag.name==="gql"||r.tag.name==="graphql"||r.tag.name==="css"||r.tag.name==="md"||r.tag.name==="markdown"||r.tag.name==="html")||r.tag.type==="CallExpression")&&Zu(t.quasi),r.type==="TemplateLiteral"&&Zu(t),r.type==="ChainExpression"&&r.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}bS.ignoredProperties=BL;var PL=bS,kL=Me(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),IL=(r,[t])=>(t==null?void 0:t.type)==="ComponentParameter"&&t.shorthand&&t.name===r&&t.local!==t.name||(t==null?void 0:t.type)==="MatchObjectPatternProperty"&&t.shorthand&&t.key===r&&t.value!==t.key||(t==null?void 0:t.type)==="ObjectProperty"&&t.shorthand&&t.key===r&&t.value!==t.key||(t==null?void 0:t.type)==="Property"&&t.shorthand&&t.key===r&&!Rc(t)&&t.value!==t.key,ML=(r,[t])=>!!(r.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===r&&hr(r).length===0&&!r.returnType&&!At(r.typeParameters)&&r.body),y2=(r,[t])=>(t==null?void 0:t.typeAnnotation)===r&&NL(t),OL=(r,[t,...e])=>y2(r,[t])||(t==null?void 0:t.typeName)===r&&y2(t,e);function LL(r,t){return kL(r)||IL(r,t)||ML(r,t)?!1:r.type==="EmptyStatement"?ZD({node:r,parent:t[0]}):!(OL(r,t)||r.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var RL=LL;function _L(r){let t=r.type||r.kind||"(unknown type)",e=String(r.name||r.id&&(typeof r.id=="object"?r.id.name:r.id)||r.key&&(typeof r.key=="object"?r.key.name:r.key)||r.value&&(typeof r.value=="object"?"":String(r.value))||r.operator||"");return e.length>20&&(e=e.slice(0,19)+"…"),t+(e?" "+e:"")}function ag(r,t){(r.comments??(r.comments=[])).push(t),t.printed=!1,t.nodeDescription=_L(r)}function _t(r,t){t.leading=!0,t.trailing=!1,ag(r,t)}function Kr(r,t,e){t.leading=!1,t.trailing=!1,e&&(t.marker=e),ag(r,t)}function Bt(r,t){t.leading=!1,t.trailing=!0,ag(r,t)}function jL(r,t){let e=null,n=t;for(;n!==e;)e=n,n=To(r,n),n=KD(r,n),n=QD(r,n),n=wo(r,n);return n}var qo=jL;function $L(r,t){let e=qo(r,t);return e===!1?"":r.charAt(e)}var On=$L;function zL(r,t,e){for(let n=t;n<e;++n)if(r.charAt(n)===`
|
|
312
|
+
`)return!0;return!1}var Qr=zL,Ay=new WeakMap;function UL(r){return Ay.has(r)||Ay.set(r,_n(r)&&r.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(r.value)),Ay.get(r)}var AS=UL,ig=(r,t)=>Lc(r)||!Qr(t,Ve(r),ze(r));function qL(r){return[PS,FS,wS,eR,XL,ug,og,CS,vS,aR,rR,nR,cg,BS,iR,SS,NS,lg,GL,dR,kS,pg].some(t=>t(r))}function HL(r){return[JL,wS,FS,BS,ug,og,CS,vS,NS,tR,sR,cg,lR,lg,pR,hR,fR,kS,yR,mR,pg].some(t=>t(r))}function VL(r){return[PS,ug,og,ZL,SS,cg,WL,YL,lg,cR,pg].some(t=>t(r))}function au(r,t){let e=(r.body||r.properties).find(({type:n})=>n!=="EmptyStatement");e?_t(e,t):Kr(r,t)}function y0(r,t){r.type==="BlockStatement"?au(r,t):_t(r,t)}function JL({comment:r,followingNode:t}){return t&&AS(r)?(_t(t,r),!0):!1}function ug({comment:r,precedingNode:t,enclosingNode:e,followingNode:n,text:a}){if((e==null?void 0:e.type)!=="IfStatement"||!n)return!1;if(On(a,ze(r))===")")return Bt(t,r),!0;if(n.type==="BlockStatement"&&n===e.consequent&&Ve(r)>=ze(t)&&ze(r)<=Ve(n))return _t(n,r),!0;if(t===e.consequent&&n===e.alternate){let u=qo(a,ze(e.consequent));if(n.type==="BlockStatement"&&Ve(r)>=u&&ze(r)<=Ve(n))return _t(n,r),!0;if(Ve(r)<u||e.alternate.type==="BlockStatement")return t.type==="BlockStatement"||ig(r,a)&&!Qr(a,Ve(t),Ve(r))?(Bt(t,r),!0):(Kr(e,r),!0)}return n.type==="BlockStatement"?(au(n,r),!0):n.type==="IfStatement"?(y0(n.consequent,r),!0):e.consequent===n?(_t(n,r),!0):!1}function og({comment:r,precedingNode:t,enclosingNode:e,followingNode:n,text:a}){return(e==null?void 0:e.type)!=="WhileStatement"||!n?!1:On(a,ze(r))===")"?(Bt(t,r),!0):n.type==="BlockStatement"?(au(n,r),!0):e.body===n?(_t(n,r),!0):!1}function CS({comment:r,precedingNode:t,enclosingNode:e,followingNode:n}){return(e==null?void 0:e.type)!=="TryStatement"&&(e==null?void 0:e.type)!=="CatchClause"||!n?!1:e.type==="CatchClause"&&t?(Bt(t,r),!0):n.type==="BlockStatement"?(au(n,r),!0):n.type==="TryStatement"?(y0(n.finalizer,r),!0):n.type==="CatchClause"?(y0(n.body,r),!0):!1}function XL({comment:r,enclosingNode:t,followingNode:e}){return bt(t)&&(e==null?void 0:e.type)==="Identifier"?(_t(t,r),!0):!1}function GL({comment:r,enclosingNode:t,followingNode:e,options:n}){return!n.experimentalTernaries||!((t==null?void 0:t.type)==="ConditionalExpression"||ti(t))?!1:(e==null?void 0:e.type)==="ConditionalExpression"||ti(e)?(Kr(t,r),!0):!1}function FS({comment:r,precedingNode:t,enclosingNode:e,followingNode:n,text:a,options:u}){let l=t&&!Qr(a,ze(t),Ve(r));return(!t||!l)&&((e==null?void 0:e.type)==="ConditionalExpression"||ti(e))&&n?u.experimentalTernaries&&e.alternate===n&&!(_n(r)&&!Qr(u.originalText,Ve(r),ze(r)))?(Kr(e,r),!0):(_t(n,r),!0):!1}var KL=Me(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function vS({comment:r,precedingNode:t,enclosingNode:e,followingNode:n}){if(KL(e)){if(At(e.decorators)&&(n==null?void 0:n.type)!=="Decorator")return Bt(it(0,e.decorators,-1),r),!0;if(e.body&&n===e.body)return au(e.body,r),!0;if(n){if(e.superClass&&n===e.superClass&&t&&(t===e.id||t===e.typeParameters))return Bt(t,r),!0;for(let a of["implements","extends","mixins"])if(e[a]&&n===e[a][0])return t&&(t===e.id||t===e.typeParameters||t===e.superClass)?Bt(t,r):Kr(e,r,a),!0}}return!1}var QL=Me(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function SS({comment:r,precedingNode:t,enclosingNode:e,text:n}){return e&&t&&On(n,ze(r))==="("&&(e.type==="Property"||e.type==="TSDeclareMethod"||e.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&e.key===t&&On(n,ze(t))!==":"||(t==null?void 0:t.type)==="Decorator"&&QL(e)&&(Lc(r)||r.placement==="ownLine")?(Bt(t,r),!0):!1}var TS=Me(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function YL({comment:r,precedingNode:t,enclosingNode:e,text:n}){return On(n,ze(r))!=="("?!1:t&&TS(e)?(Bt(t,r),!0):!1}function WL({comment:r,enclosingNode:t,text:e}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=qo(e,ze(r));return n!==!1&&e.slice(n,n+2)==="=>"?(Kr(t,r),!0):!1}function ZL({comment:r,enclosingNode:t,text:e}){return On(e,ze(r))!==")"?!1:t&&(IS(t)&&hr(t).length===0||Po(t)&&Zr(t).length===0)?(Kr(t,r),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&hr(t.value).length===0?(Kr(t.value,r),!0):!1}function eR({comment:r,precedingNode:t,enclosingNode:e,followingNode:n,text:a}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((e==null?void 0:e.type)==="DeclareComponent"||(e==null?void 0:e.type)==="ComponentTypeAnnotation")&&(n==null?void 0:n.type)!=="ComponentTypeParameter"||((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(e==null?void 0:e.type)==="ComponentDeclaration"&&On(a,ze(r))===")"?(Bt(t,r),!0):!1}function wS({comment:r,precedingNode:t,enclosingNode:e,followingNode:n,text:a}){return(t==null?void 0:t.type)==="FunctionTypeParam"&&(e==null?void 0:e.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam"||((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement"||(t==null?void 0:t.type)==="TSParameterProperty")&&IS(e)&&On(a,ze(r))===")"?(Bt(t,r),!0):!_n(r)&&(n==null?void 0:n.type)==="BlockStatement"&&TS(e)&&(e.type==="MethodDefinition"?e.value.body:e.body)===n&&qo(a,ze(r))===Ve(n)?(au(n,r),!0):!1}function NS({comment:r,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(_t(t,r),!0):!1}function lg({comment:r,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(Bt(t,r),!0):!1}function tR({comment:r,precedingNode:t,enclosingNode:e}){return nt(e)&&t&&e.callee===t&&e.arguments.length>0?(_t(e.arguments[0],r),!0):!1}function rR({comment:r,precedingNode:t,enclosingNode:e,followingNode:n}){return rs(e)?(Bo(r)&&(n.prettierIgnore=!0,r.unignore=!0),t?(Bt(t,r),!0):!1):(rs(n)&&Bo(r)&&(n.types[0].prettierIgnore=!0,r.unignore=!0),!1)}function nR({comment:r,precedingNode:t,enclosingNode:e,followingNode:n}){return e&&e.type==="MatchOrPattern"?(Bo(r)&&(n.prettierIgnore=!0,r.unignore=!0),t?(Bt(t,r),!0):!1):(n&&n.type==="MatchOrPattern"&&Bo(r)&&(n.types[0].prettierIgnore=!0,r.unignore=!0),!1)}function sR({comment:r,enclosingNode:t}){return ui(t)?(_t(t,r),!0):!1}function cg({comment:r,enclosingNode:t,ast:e,isLastComment:n}){var a;return((a=e==null?void 0:e.body)==null?void 0:a.length)===0?(n?Kr(e,r):_t(e,r),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!At(t.directives)?(n?Kr(t,r):_t(t,r),!0):!1}function aR({comment:r,enclosingNode:t,followingNode:e}){return((t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement")&&e!==t.body?(_t(t,r),!0):!1}function BS({comment:r,precedingNode:t,enclosingNode:e,text:n}){if((e==null?void 0:e.type)==="ImportSpecifier"||(e==null?void 0:e.type)==="ExportSpecifier")return _t(e,r),!0;let a=(t==null?void 0:t.type)==="ImportSpecifier"&&(e==null?void 0:e.type)==="ImportDeclaration",u=(t==null?void 0:t.type)==="ExportSpecifier"&&(e==null?void 0:e.type)==="ExportNamedDeclaration";return(a||u)&&Mr(n,ze(r))?(Bt(t,r),!0):!1}function iR({comment:r,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(_t(t,r),!0):!1}var uR=Me(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),oR=Me(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function lR({comment:r,enclosingNode:t,followingNode:e}){return uR(t)&&e&&(oR(e)||_n(r))?(_t(e,r),!0):!1}function cR({comment:r,enclosingNode:t,precedingNode:e,followingNode:n,text:a}){return!n&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&(!e||e!==t.returnType)&&On(a,ze(r))===";"?(Bt(t,r),!0):!1}function PS({comment:r,enclosingNode:t,followingNode:e}){if(Bo(r)&&(t==null?void 0:t.type)==="TSMappedType"&&e===t.key)return t.prettierIgnore=!0,r.unignore=!0,!0}function kS({comment:r,precedingNode:t,enclosingNode:e}){if((e==null?void 0:e.type)==="TSMappedType"&&!t)return Kr(e,r),!0}function pR({comment:r,enclosingNode:t,followingNode:e}){return!t||t.type!=="SwitchCase"||t.test||!e||e!==t.consequent[0]?!1:(e.type==="BlockStatement"&&Lc(r)?au(e,r):Kr(t,r),!0)}function hR({comment:r,precedingNode:t,enclosingNode:e,followingNode:n}){return rs(t)&&((e.type==="TSArrayType"||e.type==="ArrayTypeAnnotation")&&!n||_c(e))?(Bt(it(0,t.types,-1),r),!0):!1}function dR({comment:r,enclosingNode:t,precedingNode:e,followingNode:n}){if(((t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern")&&(n==null?void 0:n.type)==="TSTypeAnnotation")return e?Bt(e,r):Kr(t,r),!0}function fR({comment:r,precedingNode:t,enclosingNode:e,followingNode:n,text:a}){return!n&&(e==null?void 0:e.type)==="UnaryExpression"&&((t==null?void 0:t.type)==="LogicalExpression"||(t==null?void 0:t.type)==="BinaryExpression")&&Qr(a,Ve(e.argument),Ve(t.right))&&ig(r,a)&&!Qr(a,Ve(t.right),Ve(r))?(Bt(t.right,r),!0):!1}function mR({enclosingNode:r,followingNode:t,comment:e}){if(r&&(r.type==="TSPropertySignature"||r.type==="ObjectTypeProperty")&&(rs(t)||_c(t)))return _t(t,e),!0}function pg({enclosingNode:r,precedingNode:t,followingNode:e,comment:n,text:a}){if(Nn(r)&&t===r.expression&&!ig(n,a))return e?_t(e,n):Bt(r,n),!0}function yR({comment:r,enclosingNode:t,followingNode:e,precedingNode:n}){return t&&e&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(_t(e,r),!0):!1}var IS=Me(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),DR={endOfLine:HL,ownLine:qL,remaining:VL},gR=DR;function xR(r,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return r=Yt(0,r,/[\s(]/gu,""),r===""||r==="/*"||r==="/*::"}var ER=xR,bR=Me(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function AR(r){let{key:t,parent:e}=r;if(t==="types"&&rs(e)||t==="argument"&&e.type==="JSXSpreadAttribute"||t==="expression"&&e.type==="JSXSpreadChild"||t==="superClass"&&(e.type==="ClassDeclaration"||e.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&bR(e)||t==="patterns"&&e.type==="MatchOrPattern")return!0;let{node:n}=r;return xd(n)?!1:rs(n)?ES(r):!!Wt(n)}var CR=AR,iu="string",Qs="array",Ho="cursor",uu="indent",ou="align",lu="trim",gn="group",oi="fill",Zn="if-break",cu="indent-if-break",pu="line-suffix",li="line-suffix-boundary",Rr="line",sa="label",aa="break-parent",MS=new Set([Ho,uu,ou,lu,gn,oi,Zn,cu,pu,li,Rr,sa,aa]);function FR(r){if(typeof r=="string")return iu;if(Array.isArray(r))return Qs;if(!r)return;let{type:t}=r;if(MS.has(t))return t}var ci=FR,vR=r=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(r);function SR(r){let t=r===null?"null":typeof r;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
313
|
+
Expected it to be 'string' or 'object'.`;if(ci(r))throw new Error("doc is valid.");let e=Object.prototype.toString.call(r);if(e!=="[object Object]")return`Unexpected doc '${e}'.`;let n=vR([...MS].map(a=>`'${a}'`));return`Unexpected doc.type '${r.type}'.
|
|
314
|
+
Expected it to be ${n}.`}var TR=class extends Error{constructor(t){super(SR(t));pe(this,"name","InvalidDocError");this.doc=t}},Ec=TR,D2={};function wR(r,t,e,n){let a=[r];for(;a.length>0;){let u=a.pop();if(u===D2){e(a.pop());continue}e&&a.push(u,D2);let l=ci(u);if(!l)throw new Ec(u);if((t==null?void 0:t(u))!==!1)switch(l){case Qs:case oi:{let p=l===Qs?u:u.parts;for(let h=p.length,d=h-1;d>=0;--d)a.push(p[d]);break}case Zn:a.push(u.flatContents,u.breakContents);break;case gn:if(n&&u.expandedStates)for(let p=u.expandedStates.length,h=p-1;h>=0;--h)a.push(u.expandedStates[h]);else a.push(u.contents);break;case ou:case uu:case cu:case sa:case pu:a.push(u.contents);break;case iu:case Ho:case lu:case li:case Rr:case aa:break;default:throw new Ec(u)}}}var hg=wR;function Vo(r,t){if(typeof r=="string")return t(r);let e=new Map;return n(r);function n(u){if(e.has(u))return e.get(u);let l=a(u);return e.set(u,l),l}function a(u){switch(ci(u)){case Qs:return t(u.map(n));case oi:return t({...u,parts:u.parts.map(n)});case Zn:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case gn:{let{expandedStates:l,contents:p}=u;return l?(l=l.map(n),p=l[0]):p=n(p),t({...u,contents:p,expandedStates:l})}case ou:case uu:case cu:case sa:case pu:return t({...u,contents:n(u.contents)});case iu:case Ho:case lu:case li:case Rr:case aa:return t(u);default:throw new Ec(u)}}}function OS(r,t,e){let n=e,a=!1;function u(l){if(a)return!1;let p=t(l);p!==void 0&&(a=!0,n=p)}return hg(r,u),n}function NR(r){if(r.type===gn&&r.break||r.type===Rr&&r.hard||r.type===aa)return!0}function Er(r){return OS(r,NR,!1)}function g2(r){if(r.length>0){let t=it(0,r,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function BR(r){let t=new Set,e=[];function n(u){if(u.type===aa&&g2(e),u.type===gn){if(e.push(u),t.has(u))return!1;t.add(u)}}function a(u){u.type===gn&&e.pop().break&&g2(e)}hg(r,n,a,!0)}function PR(r){return r.type===Rr&&!r.hard?r.soft?"":" ":r.type===Zn?r.flatContents:r}function Xh(r){return Vo(r,PR)}function kR(r){switch(ci(r)){case oi:if(r.parts.every(t=>t===""))return"";break;case gn:if(!r.contents&&!r.id&&!r.break&&!r.expandedStates)return"";if(r.contents.type===gn&&r.contents.id===r.id&&r.contents.break===r.break&&r.contents.expandedStates===r.expandedStates)return r.contents;break;case ou:case uu:case cu:case pu:if(!r.contents)return"";break;case Zn:if(!r.flatContents&&!r.breakContents)return"";break;case Qs:{let t=[];for(let e of r){if(!e)continue;let[n,...a]=Array.isArray(e)?e:[e];typeof n=="string"&&typeof it(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...a)}return t.length===0?"":t.length===1?t[0]:t}case iu:case Ho:case lu:case li:case Rr:case sa:case aa:break;default:throw new Ec(r)}return r}function dg(r){return Vo(r,t=>kR(t))}function ru(r,t=jS){return Vo(r,e=>typeof e=="string"?Xe(t,e.split(`
|
|
315
|
+
`)):e)}function IR(r){if(r.type===Rr)return!0}function MR(r){return OS(r,IR,!1)}function D0(r,t){return r.type===sa?{...r,contents:t(r.contents)}:t(r)}function OR(r){let t=!0;return hg(r,e=>{switch(ci(e)){case iu:if(e==="")break;case lu:case li:case Rr:case aa:return t=!1,!1}}),t}var LR=zO;function ie(r){return{type:uu,contents:r}}function Ln(r,t){return{type:ou,contents:t,n:r}}function RR(r){return Ln(Number.NEGATIVE_INFINITY,r)}function LS(r){return Ln(-1,r)}function _R(r,t,e){let n=r;if(t>0){for(let a=0;a<Math.floor(t/e);++a)n=ie(n);n=Ln(t%e,n),n=Ln(Number.NEGATIVE_INFINITY,n)}return n}var Ys={type:aa},Dh={type:Ho};function RS(r){return{type:oi,parts:r}}function Q(r,t={}){return LR(t.expandedStates),{type:gn,id:t.id,contents:r,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function zi(r,t){return Q(r[0],{...t,expandedStates:r})}function ke(r,t="",e={}){return{type:Zn,breakContents:r,flatContents:t,groupId:e.groupId}}function bc(r,t){return{type:cu,contents:r,groupId:t.groupId,negate:t.negate}}function Xe(r,t){let e=[];for(let n=0;n<t.length;n++)n!==0&&e.push(r),e.push(t[n]);return e}function jc(r,t){return r?{type:sa,label:r,contents:t}:t}var me={type:Rr},se={type:Rr,soft:!0},_S={type:Rr,hard:!0},le=[_S,Ys],jR={type:Rr,hard:!0,literal:!0},jS=[jR,Ys];function x2(r){return{type:pu,contents:r}}var ns={type:li},$R="cr",zR="crlf",UR="\r",qR=`\r
|
|
316
|
+
`,HR=`
|
|
317
|
+
`,VR=HR;function JR(r){return r===$R?UR:r===zR?qR:VR}var XR={type:0},GR={type:1},$S={value:"",length:0,queue:[],get root(){return $S}};function zS(r,t,e){let n=t.type===1?r.queue.slice(0,-1):[...r.queue,t],a="",u=0,l=0,p=0;for(let b of n)switch(b.type){case 0:m(),e.useTabs?h(1):d(e.tabWidth);break;case 3:{let{string:C}=b;m(),a+=C,u+=C.length;break}case 2:{let{width:C}=b;l+=1,p+=C;break}default:throw new Error(`Unexpected indent comment '${b.type}'.`)}return g(),{...r,value:a,length:u,queue:n};function h(b){a+=" ".repeat(b),u+=e.tabWidth*b}function d(b){a+=" ".repeat(b),u+=b}function m(){e.useTabs?D():g()}function D(){l>0&&h(l),x()}function g(){p>0&&d(p),x()}function x(){l=0,p=0}}function KR(r,t,e){if(!t)return r;if(t.type==="root")return{...r,root:r};if(t===Number.NEGATIVE_INFINITY)return r.root;let n;return typeof t=="number"?t<0?n=GR:n={type:2,width:t}:n={type:3,string:t},zS(r,n,e)}function QR(r,t){return zS(r,XR,t)}function YR(r){let t=0;for(let e=r.length-1;e>=0;e--){let n=r[e];if(n===" "||n===" ")t++;else break}return t}function US(r){let t=YR(r);return{text:t===0?r:r.slice(0,r.length-t),count:t}}var Ir=Symbol("MODE_BREAK"),Vn=Symbol("MODE_FLAT"),g0=Symbol("DOC_FILL_PRINTED_LENGTH");function gh(r,t,e,n,a,u){if(e===Number.POSITIVE_INFINITY)return!0;let l=t.length,p=!1,h=[r],d="";for(;e>=0;){if(h.length===0){if(l===0)return!0;h.push(t[--l]);continue}let{mode:m,doc:D}=h.pop(),g=ci(D);switch(g){case iu:D&&(p&&(d+=" ",e-=1,p=!1),d+=D,e-=So(D));break;case Qs:case oi:{let x=g===Qs?D:D.parts,b=D[g0]??0;for(let C=x.length-1;C>=b;C--)h.push({mode:m,doc:x[C]});break}case uu:case ou:case cu:case sa:h.push({mode:m,doc:D.contents});break;case lu:{let{text:x,count:b}=US(d);d=x,e+=b;break}case gn:{if(u&&D.break)return!1;let x=D.break?Ir:m,b=D.expandedStates&&x===Ir?it(0,D.expandedStates,-1):D.contents;h.push({mode:x,doc:b});break}case Zn:{let x=(D.groupId?a[D.groupId]||Vn:m)===Ir?D.breakContents:D.flatContents;x&&h.push({mode:m,doc:x});break}case Rr:if(m===Ir||D.hard)return!0;D.soft||(p=!0);break;case pu:n=!0;break;case li:if(n)return!1;break}}return!1}function qS(r,t){let e=Object.create(null),n=t.printWidth,a=JR(t.endOfLine),u=0,l=[{indent:$S,mode:Ir,doc:r}],p="",h=!1,d=[],m=[],D=[],g=[],x=0;for(BR(r);l.length>0;){let{indent:F,mode:w,doc:T}=l.pop();switch(ci(T)){case iu:{let B=a!==`
|
|
318
|
+
`?Yt(0,T,`
|
|
319
|
+
`,a):T;B&&(p+=B,l.length>0&&(u+=So(B)));break}case Qs:for(let B=T.length-1;B>=0;B--)l.push({indent:F,mode:w,doc:T[B]});break;case Ho:if(m.length>=2)throw new Error("There are too many 'cursor' in doc.");m.push(x+p.length);break;case uu:l.push({indent:QR(F,t),mode:w,doc:T.contents});break;case ou:l.push({indent:KR(F,T.n,t),mode:w,doc:T.contents});break;case lu:v();break;case gn:switch(w){case Vn:if(!h){l.push({indent:F,mode:T.break?Ir:Vn,doc:T.contents});break}case Ir:{h=!1;let B={indent:F,mode:Vn,doc:T.contents},_=n-u,V=d.length>0;if(!T.break&&gh(B,l,_,V,e))l.push(B);else if(T.expandedStates){let U=it(0,T.expandedStates,-1);if(T.break){l.push({indent:F,mode:Ir,doc:U});break}else for(let Y=1;Y<T.expandedStates.length+1;Y++)if(Y>=T.expandedStates.length){l.push({indent:F,mode:Ir,doc:U});break}else{let O=T.expandedStates[Y],H={indent:F,mode:Vn,doc:O};if(gh(H,l,_,V,e)){l.push(H);break}}}else l.push({indent:F,mode:Ir,doc:T.contents});break}}T.id&&(e[T.id]=it(0,l,-1).mode);break;case oi:{let B=n-u,_=T[g0]??0,{parts:V}=T,U=V.length-_;if(U===0)break;let Y=V[_+0],O=V[_+1],H={indent:F,mode:Vn,doc:Y},re={indent:F,mode:Ir,doc:Y},X=gh(H,[],B,d.length>0,e,!0);if(U===1){X?l.push(H):l.push(re);break}let ge={indent:F,mode:Vn,doc:O},Be={indent:F,mode:Ir,doc:O};if(U===2){X?l.push(ge,H):l.push(Be,re);break}let J=V[_+2],ce={indent:F,mode:w,doc:{...T,[g0]:_+2}},oe=gh({indent:F,mode:Vn,doc:[Y,O,J]},[],B,d.length>0,e,!0);l.push(ce),oe?l.push(ge,H):X?l.push(Be,H):l.push(Be,re);break}case Zn:case cu:{let B=T.groupId?e[T.groupId]:w;if(B===Ir){let _=T.type===Zn?T.breakContents:T.negate?T.contents:ie(T.contents);_&&l.push({indent:F,mode:w,doc:_})}if(B===Vn){let _=T.type===Zn?T.flatContents:T.negate?ie(T.contents):T.contents;_&&l.push({indent:F,mode:w,doc:_})}break}case pu:d.push({indent:F,mode:w,doc:T.contents});break;case li:d.length>0&&l.push({indent:F,mode:w,doc:_S});break;case Rr:switch(w){case Vn:if(T.hard)h=!0;else{T.soft||(p+=" ",u+=1);break}case Ir:if(d.length>0){l.push({indent:F,mode:w,doc:T},...d.reverse()),d.length=0;break}T.literal?(p+=a,u=0,F.root&&(F.root.value&&(p+=F.root.value),u=F.root.length)):(v(),p+=a+F.value,u=F.length);break}break;case sa:l.push({indent:F,mode:w,doc:T.contents});break;case aa:break;default:throw new Ec(T)}l.length===0&&d.length>0&&(l.push(...d.reverse()),d.length=0)}let b=D.join("")+p,C=[...g,...m];if(C.length!==2)return{formatted:b};let S=C[0];return{formatted:b,cursorNodeStart:S,cursorNodeText:b.slice(S,it(0,C,-1))};function v(){let{text:F,count:w}=US(p);F&&(D.push(F),x+=F.length),p="",u-=w,m.length>0&&(g.push(...m.map(T=>Math.min(T,x))),m.length=0)}}function WR(r,t,e=0){let n=0;for(let a=e;a<r.length;++a)r[a]===" "?n=n+t-n%t:n++;return n}var ZR=WR;function e_(r,t){let e=r.lastIndexOf(`
|
|
320
|
+
`);return e===-1?0:ZR(r.slice(e+1).match(/^[\t ]*/u)[0],t)}var t_=e_;function HS(r,t,e){let{node:n}=r;if(n.type==="TemplateLiteral"&&a_(r)){let h=n_(r,t,e);if(h)return h}let a="expressions";n.type==="TSTemplateLiteralType"&&(a="types");let u=[],l=r.map(e,a);u.push(ns,"`");let p=0;return r.each(({index:h,node:d})=>{if(u.push(e()),d.tail)return;let{tabWidth:m}=t,D=d.value.raw,g=D.includes(`
|
|
321
|
+
`)?t_(D,m):p;p=g;let x=l[h],b=n[a][h],C=Qr(t.originalText,ze(d),Ve(n.quasis[h+1]));if(!C){let v=qS(x,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;v.includes(`
|
|
322
|
+
`)?C=!0:x=v}C&&(de(b)||b.type==="Identifier"||bt(b)||b.type==="ConditionalExpression"||b.type==="SequenceExpression"||Nn(b)||Ks(b))&&(x=[ie([se,x]),se]);let S=g===0&&D.endsWith(`
|
|
323
|
+
`)?Ln(Number.NEGATIVE_INFINITY,x):_R(x,g,m);u.push(Q(["${",S,ns,"}"]))},"quasis"),u.push("`"),u}function r_(r,t,e){let n=e("quasi"),{node:a}=r,u="",l=Wi(a.quasi,xe.Leading)[0];return l&&(Qr(t.originalText,ze(a.typeArguments??a.tag),Ve(l))?u=se:u=" "),jc(n.label&&{tagged:!0,...n.label},[e("tag"),e("typeArguments"),u,ns,n])}function n_(r,t,e){let{node:n}=r,a=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(a.length>1||a.some(u=>u.length>0)){t.__inJestEach=!0;let u=r.map(e,"expressions");t.__inJestEach=!1;let l=u.map(D=>"${"+qS(D,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),p=[{hasLineBreak:!1,cells:[]}];for(let D=1;D<n.quasis.length;D++){let g=it(0,p,-1),x=l[D-1];g.cells.push(x),x.includes(`
|
|
324
|
+
`)&&(g.hasLineBreak=!0),n.quasis[D].value.raw.includes(`
|
|
325
|
+
`)&&p.push({hasLineBreak:!1,cells:[]})}let h=Math.max(a.length,...p.map(D=>D.cells.length)),d=Array.from({length:h}).fill(0),m=[{cells:a},...p.filter(D=>D.cells.length>0)];for(let{cells:D}of m.filter(g=>!g.hasLineBreak))for(let[g,x]of D.entries())d[g]=Math.max(d[g],So(x));return[ns,"`",ie([le,Xe(le,m.map(D=>Xe(" | ",D.cells.map((g,x)=>D.hasLineBreak?g:g+" ".repeat(d[x]-So(g))))))]),le,"`"]}}function s_(r,t){let{node:e}=r,n=t();return de(e)&&(n=Q([ie([se,n]),se])),["${",n,ns,"}"]}function fg(r,t){return r.map(()=>s_(r,t),"expressions")}function VS(r,t){return Vo(r,e=>typeof e=="string"?t?Yt(0,e,/(\\*)`/gu,"$1$1\\`"):JS(e):e)}function JS(r){return Yt(0,r,/([\\`]|\$\{)/gu,"\\$1")}function a_({node:r,parent:t}){let e=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===r&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&e.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&e.test(t.tag.object.object.name))}var x0=[(r,t)=>r.type==="ObjectExpression"&&t==="properties",(r,t)=>r.type==="CallExpression"&&r.callee.type==="Identifier"&&r.callee.name==="Component"&&t==="arguments",(r,t)=>r.type==="Decorator"&&t==="expression"];function i_(r){let t=n=>n.type==="TemplateLiteral",e=(n,a)=>ui(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&a==="value";return r.match(t,(n,a)=>or(n)&&a==="elements",e,...x0)||r.match(t,e,...x0)}function u_(r){return r.match(t=>t.type==="TemplateLiteral",(t,e)=>ui(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&e==="value",...x0)}function Cy(r,t){return de(r,xe.Block|xe.Leading,({value:e})=>e===` ${t} `)}function XS({node:r,parent:t},e){return Cy(r,e)||o_(t)&&Cy(t,e)||t.type==="ExpressionStatement"&&Cy(t,e)}function o_(r){return r.type==="AsConstExpression"||r.type==="TSAsExpression"&&r.typeAnnotation.type==="TSTypeReference"&&r.typeAnnotation.typeName.type==="Identifier"&&r.typeAnnotation.typeName.name==="const"}async function l_(r,t,e){let{node:n}=e,a="";for(let[h,d]of n.quasis.entries()){let{raw:m}=d.value;h>0&&(a+="@prettier-placeholder-"+(h-1)+"-id"),a+=m}let u=await r(a,{parser:"scss"}),l=fg(e,t),p=c_(u,l);if(!p)throw new Error("Couldn't insert all the expressions");return["`",ie([le,p]),se,"`"]}function c_(r,t){if(!At(t))return r;let e=0,n=Vo(dg(r),a=>typeof a!="string"||!a.includes("@prettier-placeholder")?a:a.split(/@prettier-placeholder-(\d+)-id/u).map((u,l)=>l%2===0?ru(u):(e++,t[u])));return t.length===e?n:null}function p_(r){return r.match(void 0,(t,e)=>e==="quasi"&&t.type==="TaggedTemplateExpression"&&WD(t.tag,["css","css.global","css.resolve"]))||r.match(void 0,(t,e)=>e==="expression"&&t.type==="JSXExpressionContainer",(t,e)=>e==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function xh(r){return r.type==="Identifier"&&r.name==="styled"}function E2(r){return/^[A-Z]/u.test(r.object.name)&&r.property.name==="extend"}function h_({parent:r}){if(!r||r.type!=="TaggedTemplateExpression")return!1;let t=r.tag.type==="ParenthesizedExpression"?r.tag.expression:r.tag;switch(t.type){case"MemberExpression":return xh(t.object)||E2(t);case"CallExpression":return xh(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(xh(t.callee.object.object)||E2(t.callee.object))||t.callee.object.type==="CallExpression"&&xh(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function d_({parent:r,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&r.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var f_=r=>p_(r)||h_(r)||d_(r)||i_(r);async function m_(r,t,e){let{node:n}=e,a=n.quasis.length,u=fg(e,t),l=[];for(let p=0;p<a;p++){let h=n.quasis[p],d=p===0,m=p===a-1,D=h.value.cooked,g=D.split(`
|
|
326
|
+
`),x=g.length,b=u[p],C=x>2&&g[0].trim()===""&&g[1].trim()==="",S=x>2&&g[x-1].trim()===""&&g[x-2].trim()==="",v=g.every(w=>/^\s*(?:#[^\n\r]*)?$/u.test(w));if(!m&&/#[^\n\r]*$/u.test(g[x-1]))return null;let F=null;v?F=y_(g):F=await r(D,{parser:"graphql"}),F?(F=VS(F,!1),!d&&C&&l.push(""),l.push(F),!m&&S&&l.push("")):!d&&!m&&C&&l.push(""),b&&l.push(b)}return["`",ie([le,Xe(le,l)]),le,"`"]}function y_(r){let t=[],e=!1,n=r.map(a=>a.trim());for(let[a,u]of n.entries())u!==""&&(n[a-1]===""&&e?t.push([le,u]):t.push(u),e=!0);return t.length===0?null:Xe(le,t)}function D_({node:r,parent:t}){return XS({node:r,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}var Fy=0;async function GS(r,t,e,n,a){let{node:u}=n,l=Fy;Fy=Fy+1>>>0;let p=v=>`PRETTIER_HTML_PLACEHOLDER_${v}_${l}_IN_JS`,h=u.quasis.map((v,F,w)=>F===w.length-1?v.value.cooked:v.value.cooked+p(F)).join(""),d=fg(n,e),m=new RegExp(p("(\\d+)"),"gu"),D=0,g=await t(h,{parser:r,__onHtmlRoot(v){D=v.children.length}}),x=Vo(g,v=>{if(typeof v!="string")return v;let F=[],w=v.split(m);for(let T=0;T<w.length;T++){let B=w[T];if(T%2===0){B&&(B=JS(B),a.__embeddedInHtml&&(B=Yt(0,B,/<\/(?=script\b)/giu,"<\\/")),F.push(B));continue}let _=Number(B);F.push(d[_])}return F}),b=/^\s/u.test(h)?" ":"",C=/\s$/u.test(h)?" ":"",S=a.htmlWhitespaceSensitivity==="ignore"?le:b&&C?me:null;return S?Q(["`",ie([S,Q(x)]),S,"`"]):jc({hug:!1},Q(["`",b,D>1?ie(Q(x)):Q(x),C,"`"]))}function g_(r){return XS(r,"HTML")||r.match(t=>t.type==="TemplateLiteral",(t,e)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&e==="quasi")}var x_=GS.bind(void 0,"html"),E_=GS.bind(void 0,"angular");async function b_(r,t,e){let{node:n}=e,a=Yt(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(h,d)=>"\\".repeat(d.length/2)+"`"),u=A_(a),l=u!=="";l&&(a=Yt(0,a,new RegExp(`^${u}`,"gmu"),""));let p=VS(await r(a,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",l?ie([se,p]):[jS,RR(p)],se,"`"]}function A_(r){let t=r.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function C_({node:r,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&r.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var F_=[{test:f_,print:l_},{test:D_,print:m_},{test:g_,print:x_},{test:u_,print:E_},{test:C_,print:b_}].map(({test:r,print:t})=>({test:r,print:S_(t)}));function v_(r){let{node:t}=r;if(t.type!=="TemplateLiteral"||T_(t))return;let e=F_.find(({test:n})=>n(r));if(e)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":e.print}function S_(r){return async(...t)=>{let e=await r(...t);return e&&jc({embed:!0,...e.label},e)}}function T_({quasis:r}){return r.some(({value:{cooked:t}})=>t===null)}var w_=v_,N_=/\*\/$/,B_=/^\/\*\*?/,KS=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,P_=/(^|\s+)\/\/([^\n\r]*)/g,b2=/^(\r?\n)+/,k_=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,A2=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,I_=/(\r?\n|^) *\* ?/g,QS=[];function M_(r){let t=r.match(KS);return t?t[0].trimStart():""}function O_(r){var e;let t=(e=r.match(KS))==null?void 0:e[0];return t==null?r:r.slice(t.length)}function L_(r){r=Yt(0,r.replace(B_,"").replace(N_,""),I_,"$1");let t="";for(;t!==r;)t=r,r=Yt(0,r,k_,`
|
|
327
|
+
$1 $2
|
|
328
|
+
`);r=r.replace(b2,"").trimEnd();let e=Object.create(null),n=Yt(0,r,A2,"").replace(b2,"").trimEnd(),a;for(;a=A2.exec(r);){let u=Yt(0,a[2],P_,"");if(typeof e[a[1]]=="string"||Array.isArray(e[a[1]])){let l=e[a[1]];e[a[1]]=[...QS,...Array.isArray(l)?l:[l],u]}else e[a[1]]=u}return{comments:n,pragmas:e}}function R_({comments:r="",pragmas:t={}}){let e=Object.keys(t),n=e.flatMap(u=>C2(u,t[u])).map(u=>` * ${u}
|
|
329
|
+
`).join("");if(!r){if(e.length===0)return"";if(e.length===1&&!Array.isArray(t[e[0]])){let u=t[e[0]];return`/** ${C2(e[0],u)[0]} */`}}let a=r.split(`
|
|
330
|
+
`).map(u=>` * ${u}`).join(`
|
|
331
|
+
`)+`
|
|
332
|
+
`;return`/**
|
|
333
|
+
`+(r?a:"")+(r&&e.length>0?` *
|
|
334
|
+
`:"")+n+" */"}function C2(r,t){return[...QS,...Array.isArray(t)?t:[t]].map(e=>`@${r} ${e}`.trim())}var __="format";function j_(r){if(!r.startsWith("#!"))return"";let t=r.indexOf(`
|
|
335
|
+
`);return t===-1?r:r.slice(0,t)}var $_=j_;function z_(r){let t=$_(r);t&&(r=r.slice(t.length+1));let e=M_(r),{pragmas:n,comments:a}=L_(e);return{shebang:t,text:r,pragmas:n,comments:a}}function U_(r){let{shebang:t,text:e,pragmas:n,comments:a}=z_(r),u=O_(e),l=R_({pragmas:{[__]:"",...n},comments:a.trimStart()});return(t?`${t}
|
|
336
|
+
`:"")+l+(u.startsWith(`
|
|
337
|
+
`)?`
|
|
338
|
+
`:`
|
|
339
|
+
|
|
340
|
+
`)+u}function q_(r){if(!_n(r))return!1;let t=`*${r.value}*`.split(`
|
|
341
|
+
`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var vy=new WeakMap;function H_(r){return vy.has(r)||vy.set(r,q_(r)),vy.get(r)}var V_=H_;function J_(r,t){let e=r.node;if(Lc(e))return t.originalText.slice(Ve(e),ze(e)).trimEnd();if(V_(e))return X_(e);if(_n(e))return["/*",ru(e.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(e))}function X_(r){let t=r.value.split(`
|
|
342
|
+
`);return["/*",Xe(le,t.map((e,n)=>n===0?e.trimEnd():" "+(n<t.length-1?e.trim():e.trimStart()))),"*/"]}function E0(r,t){var u,l,p,h,d,m,D,g,x;if(r.isRoot)return!1;let{node:e,key:n,parent:a}=r;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&Y_(e)&&ec(r))return!0;if(G_(e))return!1;if(e.type==="Identifier"){if((u=e.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.name)||n==="left"&&(e.name==="async"&&!a.await||e.name==="let")&&a.type==="ForOfStatement")return!0;if(e.name==="let"){let b=(l=r.findAncestor(C=>C.type==="ForOfStatement"))==null?void 0:l.left;if(b&&gr(b,C=>C===e))return!0}if(n==="object"&&e.name==="let"&&a.type==="MemberExpression"&&a.computed&&!a.optional){let b=r.findAncestor(S=>S.type==="ExpressionStatement"||S.type==="ForStatement"||S.type==="ForInStatement"),C=b?b.type==="ExpressionStatement"?b.expression:b.type==="ForStatement"?b.init:b.left:void 0;if(C&&gr(C,S=>S===e))return!0}if(n==="expression")switch(e.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let b=r.findAncestor(C=>!Nn(C));if(b!==a&&b.type==="ExpressionStatement")return!0}}return!1}if(e.type==="ObjectExpression"||e.type==="FunctionExpression"||e.type==="ClassExpression"||e.type==="DoExpression"){let b=(p=r.findAncestor(C=>C.type==="ExpressionStatement"))==null?void 0:p.expression;if(b&&gr(b,C=>C===e))return!0}if(e.type==="ObjectExpression"){let b=(h=r.findAncestor(C=>C.type==="ArrowFunctionExpression"))==null?void 0:h.body;if(b&&b.type!=="SequenceExpression"&&b.type!=="AssignmentExpression"&&gr(b,C=>C===e))return!0}switch(a.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(e.type==="ArrowFunctionExpression"||e.type==="AssignmentExpression"||e.type==="AwaitExpression"||e.type==="BinaryExpression"||e.type==="ConditionalExpression"||e.type==="LogicalExpression"||e.type==="NewExpression"||e.type==="ObjectExpression"||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="UnaryExpression"||e.type==="UpdateExpression"||e.type==="YieldExpression"||e.type==="TSNonNullExpression"||e.type==="ClassExpression"&&At(e.decorators)))return!0;break;case"ExportDefaultDeclaration":return YS(r,t)||e.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!Z_(e))return!0;break;case"TypeAnnotation":if(r.match(void 0,void 0,(b,C)=>C==="returnType"&&b.type==="ArrowFunctionExpression")&&Q_(e))return!0;break;case"BinaryExpression":if(n==="left"&&(a.operator==="in"||a.operator==="instanceof")&&e.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&r.match(void 0,void 0,(b,C)=>C==="declarations"&&b.type==="VariableDeclaration",(b,C)=>C==="left"&&b.type==="ForInStatement"))return!0;break}switch(e.type){case"UpdateExpression":if(a.type==="UnaryExpression")return e.prefix&&(e.operator==="++"&&a.operator==="+"||e.operator==="--"&&a.operator==="-");case"UnaryExpression":switch(a.type){case"UnaryExpression":return e.operator===a.operator&&(e.operator==="+"||e.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&a.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(a.type==="UpdateExpression"||e.operator==="in"&&K_(r))return!0;if(e.operator==="|>"&&((d=e.extra)!=null&&d.parenthesized)){let b=r.grandparent;if(b.type==="BinaryExpression"&&b.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(a.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Nn(e);case"ConditionalExpression":return Nn(e)||dL(e);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(e.type==="TSTypeAssertion"||Nn(e));case"LogicalExpression":if(e.type==="LogicalExpression")return a.operator!==e.operator;case"BinaryExpression":{let{operator:b,type:C}=e;if(!b&&C!=="TSTypeAssertion")return!0;let S=Vh(b),v=a.operator,F=Vh(v);return!!(F>S||n==="right"&&F===S||F===S&&!sg(v,b)||F<S&&b==="%"&&(v==="+"||v==="-")||SL(v))}default:return!1}case"SequenceExpression":return a.type!=="ForStatement";case"YieldExpression":if(a.type==="AwaitExpression"||a.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(a.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!e.argument&&a.operator==="|>");default:return!1}case"TSFunctionType":if(r.match(b=>b.type==="TSFunctionType",(b,C)=>C==="typeAnnotation"&&b.type==="TSTypeAnnotation",(b,C)=>C==="returnType"&&b.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&ti(e)&&a.type===e.type||n==="checkType"&&ti(a))return!0;if(n==="extendsType"&&a.type==="TSConditionalType"){let{typeAnnotation:b}=e.returnType||e.typeAnnotation;if(b.type==="TSTypePredicate"&&b.typeAnnotation&&(b=b.typeAnnotation.typeAnnotation),b.type==="TSInferType"&&b.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(rs(a)||_c(a))return!0;case"TSInferType":if(e.type==="TSInferType"){if(a.type==="TSRestType")return!1;if(n==="types"&&(a.type==="TSUnionType"||a.type==="TSIntersectionType")&&e.typeParameter.type==="TSTypeParameter"&&e.typeParameter.constraint)return!0}case"TSTypeOperator":return a.type==="TSArrayType"||a.type==="TSOptionalType"||a.type==="TSRestType"||n==="objectType"&&a.type==="TSIndexedAccessType"||a.type==="TSTypeOperator"||a.type==="TSTypeAnnotation"&&r.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&a.type==="TSIndexedAccessType"||n==="elementType"&&a.type==="TSArrayType";case"TypeOperator":return a.type==="ArrayTypeAnnotation"||a.type==="NullableTypeAnnotation"||n==="objectType"&&(a.type==="IndexedAccessType"||a.type==="OptionalIndexedAccessType")||a.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(a.type==="IndexedAccessType"||a.type==="OptionalIndexedAccessType")||n==="elementType"&&a.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return a.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return a.type==="TypeOperator"||a.type==="KeyofTypeAnnotation"||a.type==="ArrayTypeAnnotation"||a.type==="NullableTypeAnnotation"||a.type==="IntersectionTypeAnnotation"||a.type==="UnionTypeAnnotation"||n==="objectType"&&(a.type==="IndexedAccessType"||a.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return a.type==="ArrayTypeAnnotation"||n==="objectType"&&(a.type==="IndexedAccessType"||a.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(e.type==="ComponentTypeAnnotation"&&(e.rendersType===null||e.rendersType===void 0))return!1;if(r.match(void 0,(C,S)=>S==="typeAnnotation"&&C.type==="TypeAnnotation",(C,S)=>S==="returnType"&&C.type==="ArrowFunctionExpression")||r.match(void 0,(C,S)=>S==="typeAnnotation"&&C.type==="TypePredicate",(C,S)=>S==="typeAnnotation"&&C.type==="TypeAnnotation",(C,S)=>S==="returnType"&&C.type==="ArrowFunctionExpression"))return!0;let b=a.type==="NullableTypeAnnotation"?r.grandparent:a;return b.type==="UnionTypeAnnotation"||b.type==="IntersectionTypeAnnotation"||b.type==="ArrayTypeAnnotation"||n==="objectType"&&(b.type==="IndexedAccessType"||b.type==="OptionalIndexedAccessType")||n==="checkType"&&a.type==="ConditionalTypeAnnotation"||n==="extendsType"&&a.type==="ConditionalTypeAnnotation"&&((m=e.returnType)==null?void 0:m.type)==="InferTypeAnnotation"&&((D=e.returnType)==null?void 0:D.typeParameter.bound)||b.type==="NullableTypeAnnotation"||a.type==="FunctionTypeParam"&&a.name===null&&hr(e).some(C=>{var S;return((S=C.typeAnnotation)==null?void 0:S.type)==="NullableTypeAnnotation"})}case"OptionalIndexedAccessType":return n==="objectType"&&a.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof e.value=="string"&&a.type==="ExpressionStatement"&&typeof a.directive!="string"){let b=r.grandparent;return b.type==="Program"||b.type==="BlockStatement"}return n==="object"&&bt(a)&&ts(e);case"AssignmentExpression":return!((n==="init"||n==="update")&&a.type==="ForStatement"||n==="expression"&&e.left.type!=="ObjectPattern"&&a.type==="ExpressionStatement"||n==="key"&&a.type==="TSPropertySignature"||a.type==="AssignmentExpression"||n==="expressions"&&a.type==="SequenceExpression"&&r.match(void 0,void 0,(b,C)=>(C==="init"||C==="update")&&b.type==="ForStatement")||n==="value"&&a.type==="Property"&&r.match(void 0,void 0,(b,C)=>C==="properties"&&b.type==="ObjectPattern")||a.type==="NGChainedExpression"||n==="node"&&a.type==="JsExpressionRoot");case"ConditionalExpression":switch(a.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(a.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(a.type){case"BinaryExpression":return a.operator!=="|>"||((g=e.extra)==null?void 0:g.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(a.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(W_(r))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(a.type==="BindExpression"||a.type==="NewExpression")){let b=e;for(;b;)switch(b.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":b=b.object;break;case"TaggedTemplateExpression":b=b.tag;break;case"TSNonNullExpression":b=b.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(a.type==="BindExpression"||a.type==="NewExpression")||n==="object"&&bt(a);case"NGPipeExpression":return!(a.type==="NGRoot"||a.type==="NGMicrosyntaxExpression"||a.type==="ObjectProperty"&&!((x=e.extra)!=null&&x.parenthesized)||or(a)||n==="arguments"&&nt(a)||n==="right"&&a.type==="NGPipeExpression"||n==="property"&&a.type==="MemberExpression"||a.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&a.type==="BinaryExpression"&&a.operator==="<"||!or(a)&&a.type!=="ArrowFunctionExpression"&&a.type!=="AssignmentExpression"&&a.type!=="AssignmentPattern"&&a.type!=="BinaryExpression"&&a.type!=="NewExpression"&&a.type!=="ConditionalExpression"&&a.type!=="ExpressionStatement"&&a.type!=="JsExpressionRoot"&&a.type!=="JSXAttribute"&&a.type!=="JSXElement"&&a.type!=="JSXExpressionContainer"&&a.type!=="JSXFragment"&&a.type!=="LogicalExpression"&&!nt(a)&&!ui(a)&&a.type!=="ReturnStatement"&&a.type!=="ThrowStatement"&&a.type!=="TypeCastExpression"&&a.type!=="VariableDeclarator"&&a.type!=="YieldExpression"&&a.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&bt(a);case"MatchOrPattern":return a.type==="MatchAsPattern"}return!1}var G_=Me(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function K_(r){let t=0,{node:e}=r;for(;e;){let n=r.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===e)return!0;e=n}return!1}function Q_(r){return d0(r,t=>t.type==="ObjectTypeAnnotation"&&d0(t,e=>e.type==="FunctionTypeAnnotation"))}function Y_(r){return Mn(r)}function ec(r){let{parent:t,key:e}=r;switch(t.type){case"NGPipeExpression":if(e==="arguments"&&r.isLast)return r.callParent(ec);break;case"ObjectProperty":if(e==="value")return r.callParent(()=>r.key==="properties"&&r.isLast);break;case"BinaryExpression":case"LogicalExpression":if(e==="right")return r.callParent(ec);break;case"ConditionalExpression":if(e==="alternate")return r.callParent(ec);break;case"UnaryExpression":if(t.prefix)return r.callParent(ec);break}return!1}function YS(r,t){let{node:e,parent:n}=r;return e.type==="FunctionExpression"||e.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!E0(r,t):!eg(e)||n.type!=="ExportDefaultDeclaration"&&E0(r,t)?!1:r.call(()=>YS(r,t),...cS(e))}function W_(r){return!!(r.match(void 0,(t,e)=>e==="expression"&&t.type==="ChainExpression",(t,e)=>e==="tag"&&t.type==="TaggedTemplateExpression")||r.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,e)=>e==="tag"&&t.type==="TaggedTemplateExpression")||r.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,e)=>e==="expression"&&t.type==="TSNonNullExpression",(t,e)=>e==="tag"&&t.type==="TaggedTemplateExpression")||r.match(void 0,(t,e)=>e==="expression"&&t.type==="ChainExpression",(t,e)=>e==="expression"&&t.type==="TSNonNullExpression",(t,e)=>e==="tag"&&t.type==="TaggedTemplateExpression")||r.match(void 0,(t,e)=>e==="expression"&&t.type==="TSNonNullExpression",(t,e)=>e==="expression"&&t.type==="ChainExpression",(t,e)=>e==="tag"&&t.type==="TaggedTemplateExpression")||r.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,e)=>e==="object"&&t.type==="MemberExpression"||e==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||r.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,e)=>e==="expression"&&t.type==="TSNonNullExpression",(t,e)=>e==="object"&&t.type==="MemberExpression"||e==="callee"&&t.type==="CallExpression")||r.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,e)=>e==="expression"&&t.type==="ChainExpression")&&(r.match(void 0,void 0,(t,e)=>e==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||e==="object"&&t.type==="MemberExpression"&&!t.optional)||r.match(void 0,void 0,(t,e)=>e==="expression"&&t.type==="TSNonNullExpression",(t,e)=>e==="object"&&t.type==="MemberExpression"||e==="callee"&&t.type==="CallExpression"))||r.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,e)=>e==="expression"&&t.type==="TSNonNullExpression",(t,e)=>e==="expression"&&t.type==="ChainExpression",(t,e)=>e==="object"&&t.type==="MemberExpression"||e==="callee"&&t.type==="CallExpression"))}function b0(r){return r.type==="Identifier"?!0:bt(r)?!r.computed&&!r.optional&&r.property.type==="Identifier"&&b0(r.object):!1}function Z_(r){return r.type==="ChainExpression"&&(r=r.expression),b0(r)||nt(r)&&!r.optional&&b0(r.callee)}var pi=E0;function ej(r,t){let e=t-1;e=To(r,e,{backwards:!0}),e=wo(r,e,{backwards:!0}),e=To(r,e,{backwards:!0});let n=wo(r,e,{backwards:!0});return e!==n}var tj=ej,rj=()=>!0;function mg(r,t){let e=r.node;return e.printed=!0,t.printer.printComment(r,t)}function nj(r,t){var d;let e=r.node,n=[mg(r,t)],{printer:a,originalText:u,locStart:l,locEnd:p}=t;if((d=a.isBlockComment)!=null&&d.call(a,e)){let m=Mr(u,p(e))?Mr(u,l(e),{backwards:!0})?le:me:" ";n.push(m)}else n.push(le);let h=wo(u,To(u,p(e)));return h!==!1&&Mr(u,h)&&n.push(le),n}function sj(r,t,e){var d;let n=r.node,a=mg(r,t),{printer:u,originalText:l,locStart:p}=t,h=(d=u.isBlockComment)==null?void 0:d.call(u,n);if(e!=null&&e.hasLineSuffix&&!(e!=null&&e.isBlock)||Mr(l,p(n),{backwards:!0})){let m=tj(l,p(n));return{doc:x2([le,m?le:"",a]),isBlock:h,hasLineSuffix:!0}}return!h||e!=null&&e.hasLineSuffix?{doc:[x2([" ",a]),Ys],isBlock:h,hasLineSuffix:!0}:{doc:[" ",a],isBlock:h,hasLineSuffix:!1}}function Et(r,t,e={}){let{node:n}=r;if(!At(n==null?void 0:n.comments))return"";let{indent:a=!1,marker:u,filter:l=rj}=e,p=[];if(r.each(({node:d})=>{d.leading||d.trailing||d.marker!==u||!l(d)||p.push(mg(r,t))},"comments"),p.length===0)return"";let h=Xe(le,p);return a?ie([le,h]):h}function Ed(r,t){let e=r.node;if(!e)return{};let n=t[Symbol.for("printedComments")];if((e.comments||[]).filter(p=>!n.has(p)).length===0)return{leading:"",trailing:""};let a=[],u=[],l;return r.each(()=>{let p=r.node;if(n!=null&&n.has(p))return;let{leading:h,trailing:d}=p;h?a.push(nj(r,t)):d&&(l=sj(r,t,l),u.push(l.doc))},"comments"),{leading:a,trailing:u}}function yn(r,t,e){let{leading:n,trailing:a}=Ed(r,e);return!n&&!a?t:D0(t,u=>[n,u,a])}var Gh=class extends Error{constructor(){super(...arguments);pe(this,"name","ArgExpansionBailout")}};function hu(r,t,e,n,a){let u=r.node,l=hr(u),p=a&&u.typeParameters?e("typeParameters"):"";if(l.length===0)return[p,"(",Et(r,t,{filter:x=>On(t.originalText,ze(x))===")"}),")"];let{parent:h}=r,d=gd(h),m=WS(u),D=[];if(wL(r,(x,b)=>{let C=b===l.length-1;C&&u.rest&&D.push("..."),D.push(e()),!C&&(D.push(","),d||m?D.push(" "):os(l[b],t)?D.push(le,le):D.push(me))}),n&&!ij(r)){if(Er(p)||Er(D))throw new Gh;return Q([Xh(p),"(",Xh(D),")"])}let g=l.every(x=>!At(x.decorators));return m&&g?[p,"(",...D,")"]:d?[p,"(",...D,")"]:(dS(h)||DL(h)||h.type==="TypeAlias"||h.type==="UnionTypeAnnotation"||h.type==="IntersectionTypeAnnotation"||h.type==="FunctionTypeAnnotation"&&h.returnType===u)&&l.length===1&&l[0].name===null&&u.this!==l[0]&&l[0].typeAnnotation&&u.typeParameters===null&&rg(l[0].typeAnnotation)&&!u.rest?t.arrowParens==="always"||u.type==="HookTypeAnnotation"?["(",...D,")"]:D:[p,"(",ie([se,...D]),ke(!TL(u)&&us(t,"all")?",":""),se,")"]}function WS(r){if(!r)return!1;let t=hr(r);if(t.length!==1)return!1;let[e]=t;return!de(e)&&(e.type==="ObjectPattern"||e.type==="ArrayPattern"||e.type==="Identifier"&&e.typeAnnotation&&(e.typeAnnotation.type==="TypeAnnotation"||e.typeAnnotation.type==="TSTypeAnnotation")&&ei(e.typeAnnotation.typeAnnotation)||e.type==="FunctionTypeParam"&&ei(e.typeAnnotation)&&e!==r.rest||e.type==="AssignmentPattern"&&(e.left.type==="ObjectPattern"||e.left.type==="ArrayPattern")&&(e.right.type==="Identifier"||Mn(e.right)&&e.right.properties.length===0||or(e.right)&&e.right.elements.length===0))}function aj(r){let t;return r.returnType?(t=r.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):r.typeAnnotation&&(t=r.typeAnnotation),t}function Jo(r,t){var a;let e=aj(r);if(!e)return!1;let n=(a=r.typeParameters)==null?void 0:a.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return hr(r).length===1&&(ei(e)||Er(t))}function ij(r){return r.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,e)=>{if(t.type==="CallExpression"&&e==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,e)=>t.type==="VariableDeclarator"&&e==="init"||t.type==="ExportDefaultDeclaration"&&e==="declaration"||t.type==="TSExportAssignment"&&e==="expression"||t.type==="AssignmentExpression"&&e==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function uj(r){let t=hr(r);return t.length>1&&t.some(e=>e.type==="TSParameterProperty")}function lc(r,t){return(t==="params"||t==="this"||t==="rest")&&WS(r)}function Ar(r){let{node:t}=r;return!t.optional||t.type==="Identifier"&&t===r.parent.key?"":nt(t)||bt(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function ZS(r){return r.node.definite||r.match(void 0,(t,e)=>e==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var oj=Me(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Yr(r){let{node:t}=r;return t.declare||oj(t)&&r.parent.type!=="DeclareExportDeclaration"?"declare ":""}var lj=Me(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function bd({node:r}){return r.abstract||lj(r)?"abstract ":""}function Oa(r,t,e){return r.type==="EmptyStatement"?de(r,xe.Leading)?[" ",t]:t:r.type==="BlockStatement"||e?[" ",t]:ie([me,t])}function Ad(r){return r.accessibility?r.accessibility+" ":""}var cj=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,pj=r=>cj.test(r),hj=pj;function dj(r){return r.length===1?r:r.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var ko=dj,fj=0;function eT(r,t,e){var T;let{node:n,parent:a,grandparent:u,key:l}=r,p=l!=="body"&&(a.type==="IfStatement"||a.type==="WhileStatement"||a.type==="SwitchStatement"||a.type==="DoWhileStatement"),h=n.operator==="|>"&&((T=r.root.extra)==null?void 0:T.__isUsingHackPipeline),d=A0(r,t,e,!1,p);if(p)return d;if(h)return Q(d);if(l==="callee"&&(nt(a)||a.type==="NewExpression")||a.type==="UnaryExpression"||bt(a)&&!a.computed)return Q([ie([se,...d]),se]);let m=a.type==="ReturnStatement"||a.type==="ThrowStatement"||a.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&a.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(a.type==="NGRoot"&&t.parser==="__ng_binding"||a.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===a.body&&a.type==="ArrowFunctionExpression"||n!==a.body&&a.type==="ForStatement"||a.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!nt(u)&&u.type!=="NewExpression"||a.type==="TemplateLiteral"||yj(r),D=a.type==="AssignmentExpression"||a.type==="VariableDeclarator"||a.type==="ClassProperty"||a.type==="PropertyDefinition"||a.type==="TSAbstractPropertyDefinition"||a.type==="ClassPrivateProperty"||ui(a),g=Ks(n.left)&&sg(n.operator,n.left.operator);if(m||Ac(n)&&!g||!Ac(n)&&D)return Q(d);if(d.length===0)return"";let x=Wt(n.right),b=d.findIndex(B=>typeof B!="string"&&!Array.isArray(B)&&B.type===gn),C=d.slice(0,b===-1?1:b+1),S=d.slice(C.length,x?-1:void 0),v=Symbol("logicalChain-"+ ++fj),F=Q([...C,ie(S)],{id:v});if(!x)return F;let w=it(0,d,-1);return Q([F,bc(w,{groupId:v})])}function A0(r,t,e,n,a){var S;let{node:u}=r;if(!Ks(u))return[Q(e())];let l=[];sg(u.operator,u.left.operator)?l=r.call(()=>A0(r,t,e,!0,a),"left"):l.push(Q(e("left")));let p=Ac(u),h=u.right.type==="ChainExpression"?u.right.expression:u.right,d=(u.operator==="|>"||u.type==="NGPipeExpression"||mj(r,t))&&!Pn(t.originalText,h),m=!de(h,xe.Leading,AS)&&Pn(t.originalText,h),D=u.type==="NGPipeExpression"?"|":u.operator,g=u.type==="NGPipeExpression"&&u.arguments.length>0?Q(ie([se,": ",Xe([me,": "],r.map(()=>Ln(2,Q(e())),"arguments"))])):"",x;if(p)x=[D,Pn(t.originalText,h)?ie([me,e("right"),g]):[" ",e("right"),g]];else{let v=D==="|>"&&((S=r.root.extra)!=null&&S.__isUsingHackPipeline)?r.call(()=>A0(r,t,e,!0,a),"right"):e("right");if(t.experimentalOperatorPosition==="start"){let F="";if(m)switch(ci(v)){case Qs:F=v.splice(0,1)[0];break;case sa:F=v.contents.splice(0,1)[0];break}x=[me,F,D," ",v,g]}else x=[d?me:"",D,d?" ":me,v,g]}let{parent:b}=r,C=de(u.left,xe.Trailing|xe.Line);if((C||!(a&&u.type==="LogicalExpression")&&b.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type)&&(x=Q(x,{shouldBreak:C})),t.experimentalOperatorPosition==="start"?l.push(p||m?" ":"",x):l.push(d?"":" ",x),n&&de(u)){let v=dg(yn(r,l,t));return v.type===oi?v.parts:Array.isArray(v)?v:[v]}return l}function Ac(r){return r.type!=="LogicalExpression"?!1:!!(Mn(r.right)&&r.right.properties.length>0||or(r.right)&&r.right.elements.length>0||Wt(r.right))}var F2=r=>r.type==="BinaryExpression"&&r.operator==="|";function mj(r,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&F2(r.node)&&!r.hasAncestor(e=>!F2(e)&&e.type!=="JsExpressionRoot")}function yj(r){if(r.key!=="arguments")return!1;let{parent:t}=r;if(!(nt(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:e}=t;return e.type==="Identifier"&&e.name==="Boolean"}function tT(r,t,e){let{node:n}=r,{parent:a}=r,u=a.type!=="TypeParameterInstantiation"&&(!ti(a)||!t.experimentalTernaries)&&a.type!=="TSTypeParameterInstantiation"&&a.type!=="GenericTypeAnnotation"&&a.type!=="TSTypeReference"&&a.type!=="TSTypeAssertion"&&a.type!=="TupleTypeAnnotation"&&a.type!=="TSTupleType"&&!(a.type==="FunctionTypeParam"&&!a.name&&r.grandparent.this!==a)&&!((m0(a)||a.type==="VariableDeclarator")&&Pn(t.originalText,n))&&!(m0(a)&&de(a.id,xe.Trailing|xe.Line)),l=rT(n),p=r.map(()=>{let x=e();return l||(x=Ln(2,x)),yn(r,x,t)},"types"),h="",d="";if(ES(r)&&({leading:h,trailing:d}=Ed(r,t)),l)return[h,Xe(" | ",p),d];let m=u&&!Pn(t.originalText,n),D=[ke([m?me:"","| "]),Xe([me,"| "],p)];if(pi(r,t))return[h,Q([ie(D),se]),d];let g=[h,Q(D)];return(a.type==="TupleTypeAnnotation"||a.type==="TSTupleType")&&a[a.type==="TupleTypeAnnotation"&&a.types?"types":"elementTypes"].length>1?[Q([ie([ke(["(",se]),g]),se,ke(")")]),d]:[Q(u?ie(g):g),d]}var Dj=Me(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),gj=Me(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function rT(r){let{types:t}=r;if(t.some(n=>de(n)))return!1;let e=t.find(n=>gj(n));return e?t.every(n=>n===e||Dj(n)):!1}function xj(r){return rg(r)||ei(r)?!0:rs(r)?rT(r):!1}var Ej=new WeakSet;function ir(r,t,e="typeAnnotation"){let{node:{[e]:n}}=r;if(!n)return"";let a=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let u=r.call(nT,e);(u==="=>"||u===":"&&de(n,xe.Leading))&&(a=!0),Ej.add(n)}return a?[" ",t(e)]:t(e)}var nT=r=>r.match(t=>t.type==="TSTypeAnnotation",(t,e)=>(e==="returnType"||e==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":r.match(t=>t.type==="TSTypeAnnotation",(t,e)=>e==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||r.match(t=>t.type==="TypeAnnotation",(t,e)=>e==="typeAnnotation"&&t.type==="Identifier",(t,e)=>e==="id"&&t.type==="DeclareFunction")||r.match(t=>t.type==="TypeAnnotation",(t,e)=>e==="typeAnnotation"&&t.type==="Identifier",(t,e)=>e==="id"&&t.type==="DeclareHook")||r.match(t=>t.type==="TypeAnnotation",(t,e)=>e==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function sT(r,t,e){let n=nT(r);return n?[n," ",e("typeAnnotation")]:e("typeAnnotation")}function bj(r,t,e,n){let{node:a}=r,u=a.inexact?"...":"";return de(a,xe.Dangling)?Q([e,u,Et(r,t,{indent:!0}),se,n]):[e,u,n]}function yg(r,t,e){let{node:n}=r,a=[],u="[",l="]",p=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",h=n[p];if(h.length===0)a.push(bj(r,t,u,l));else{let d=it(0,h,-1),m=(d==null?void 0:d.type)!=="RestElement"&&!n.inexact,D=d===null,g=Symbol("array"),x=!t.__inJestEach&&h.length>1&&h.every((S,v,F)=>{let w=S==null?void 0:S.type;if(!or(S)&&!Mn(S))return!1;let T=F[v+1];if(T&&w!==T.type)return!1;let B=or(S)?"elements":"properties";return S[B]&&S[B].length>1}),b=aT(n,t),C=m?D?",":us(t)?b?ke(",","",{groupId:g}):ke(","):"":"";a.push(Q([u,ie([se,b?Cj(r,t,e,C):[Aj(r,t,e,p,n.inexact),C],Et(r,t)]),se,l],{shouldBreak:x,id:g}))}return a.push(Ar(r),ir(r,e)),a}function aT(r,t){return or(r)&&r.elements.length>0&&r.elements.every(e=>e&&(ts(e)||pS(e)&&!de(e.argument))&&!de(e,xe.Trailing|xe.Line,n=>!Mr(t.originalText,Ve(n),{backwards:!0})))}function iT({node:r},{originalText:t}){let e=ze(r);if(e===Ve(r))return!1;let{length:n}=t;for(;e<n&&t[e]!==",";)e=KD(t,QD(t,e+1));return YD(t,e)}function Aj(r,t,e,n,a){let u=[];return r.each(({node:l,isLast:p})=>{u.push(l?Q(e()):""),(!p||a)&&u.push([",",me,l&&iT(r,t)?se:""])},n),a&&u.push("..."),u}function Cj(r,t,e,n){let a=[];return r.each(({isLast:u,next:l})=>{a.push([e(),u?n:","]),u||a.push(iT(r,t)?[le,le]:de(l,xe.Leading|xe.Line)?le:me)},"elements"),RS(a)}function Fj(r,t,e){let{node:n}=r,a=Zr(n);if(a.length===0)return["(",Et(r,t),")"];let u=a.length-1;if(Tj(a)){let D=["("];return Jh(r,(g,x)=>{D.push(e()),x!==u&&D.push(", ")}),D.push(")"),D}let l=!1,p=[];Jh(r,({node:D},g)=>{let x=e();g===u||(os(D,t)?(l=!0,x=[x,",",le,le]):x=[x,",",me]),p.push(x)});let h=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&us(t,"all")?",":"";function d(){return Q(["(",ie([me,...p]),h,me,")"],{shouldBreak:!0})}if(l||r.parent.type!=="Decorator"&&CL(a))return d();if(Sj(a)){let D=p.slice(1);if(D.some(Er))return d();let g;try{g=e(m2(n,0),{expandFirstArg:!0})}catch(x){if(x instanceof Gh)return d();throw x}return Er(g)?[Ys,zi([["(",Q(g,{shouldBreak:!0}),", ",...D,")"],d()])]:zi([["(",g,", ",...D,")"],["(",Q(g,{shouldBreak:!0}),", ",...D,")"],d()])}if(vj(a,p,t)){let D=p.slice(0,-1);if(D.some(Er))return d();let g;try{g=e(m2(n,-1),{expandLastArg:!0})}catch(x){if(x instanceof Gh)return d();throw x}return Er(g)?[Ys,zi([["(",...D,Q(g,{shouldBreak:!0}),")"],d()])]:zi([["(",...D,g,")"],["(",...D,Q(g,{shouldBreak:!0}),")"],d()])}let m=["(",ie([se,...p]),ke(h),se,")"];return gS(r)?m:Q(m,{shouldBreak:p.some(Er)||l})}function cc(r,t=!1){return Mn(r)&&(r.properties.length>0||de(r))||or(r)&&(r.elements.length>0||de(r))||r.type==="TSTypeAssertion"&&cc(r.expression)||Nn(r)&&cc(r.expression)||r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"&&(!r.returnType||!r.returnType.typeAnnotation||r.returnType.typeAnnotation.type!=="TSTypeReference"||wj(r.body))&&(r.body.type==="BlockStatement"||r.body.type==="ArrowFunctionExpression"&&cc(r.body,!0)||Mn(r.body)||or(r.body)||!t&&(nt(r.body)||r.body.type==="ConditionalExpression")||Wt(r.body))||r.type==="DoExpression"||r.type==="ModuleExpression"}function vj(r,t,e){var u,l;let n=it(0,r,-1);if(r.length===1){let p=it(0,t,-1);if((u=p.label)!=null&&u.embed&&((l=p.label)==null?void 0:l.hug)!==!1)return!0}let a=it(0,r,-2);return!de(n,xe.Leading)&&!de(n,xe.Trailing)&&cc(n)&&(!a||a.type!==n.type)&&(r.length!==2||a.type!=="ArrowFunctionExpression"||!or(n))&&!(r.length>1&&aT(n,e))}function Sj(r){if(r.length!==2)return!1;let[t,e]=r;return t.type==="ModuleExpression"&&Nj(e)?!0:!de(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&e.type!=="FunctionExpression"&&e.type!=="ArrowFunctionExpression"&&e.type!=="ConditionalExpression"&&uT(e)&&!cc(e)}function uT(r){if(r.type==="ParenthesizedExpression")return uT(r.expression);if(Nn(r)||r.type==="TypeCastExpression"){let{typeAnnotation:t}=r;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let e=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;(e==null?void 0:e.params.length)===1&&(t=e.params[0])}return rg(t)&&Tn(r.expression,1)}return Po(r)&&Zr(r).length>1?!1:Ks(r)?Tn(r.left,1)&&Tn(r.right,1):hS(r)||Tn(r)}function Tj(r){return r.length===2?v2(r,0):r.length===3?r[0].type==="Identifier"&&v2(r,1):!1}function v2(r,t){let e=r[t],n=r[t+1];return e.type==="ArrowFunctionExpression"&&hr(e).length===0&&e.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!r.some(a=>de(a))}function wj(r){return r.type==="BlockStatement"&&(r.body.some(t=>t.type!=="EmptyStatement")||de(r,xe.Dangling))}function Nj(r){if(!(r.type==="ObjectExpression"&&r.properties.length===1))return!1;let[t]=r.properties;return ui(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||Zt(t.key)&&t.key.value==="type")&&Zt(t.value)&&t.value.value==="module":!1}var C0=Fj;function Bj(r,t,e){return[e("object"),Q(ie([se,oT(r,t,e)]))]}function oT(r,t,e){return["::",e("callee")]}var Pj=r=>((r.type==="ChainExpression"||r.type==="TSNonNullExpression")&&(r=r.expression),nt(r)&&Zr(r).length>0);function kj(r){let{node:t,ancestors:e}=r;for(let n of e){if(!(bt(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function Ij(r,t,e){var d;let n=e("object"),a=lT(r,t,e),{node:u}=r,l=r.findAncestor(m=>!(bt(m)||m.type==="TSNonNullExpression")),p=r.findAncestor(m=>!(m.type==="ChainExpression"||m.type==="TSNonNullExpression")),h=l.type==="BindExpression"||l.type==="AssignmentExpression"&&l.left.type!=="Identifier"||kj(r)||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!bt(p)||(p.type==="AssignmentExpression"||p.type==="VariableDeclarator")&&(Pj(u.object)||((d=n.label)==null?void 0:d.memberChain));return jc(n.label,[n,h?a:Q(ie([se,a]))])}function lT(r,t,e){let n=e("property"),{node:a}=r,u=Ar(r);return a.computed?!a.property||ts(a.property)?[u,"[",n,"]"]:Q([u,"[",ie([se,n]),se,"]"]):[u,".",n]}function cT(r,t,e){if(r.node.type==="ChainExpression")return r.call(()=>cT(r,t,e),"expression");let n=(r.parent.type==="ChainExpression"?r.grandparent:r.parent).type==="ExpressionStatement",a=[];function u(X){let{originalText:ge}=t,Be=qo(ge,ze(X));return ge.charAt(Be)===")"?Be!==!1&&YD(ge,Be+1):os(X,t)}function l(){let{node:X}=r;if(X.type==="ChainExpression")return r.call(l,"expression");if(nt(X)&&(no(X.callee)||nt(X.callee))){let ge=u(X);a.unshift({node:X,hasTrailingEmptyLine:ge,printed:[yn(r,[Ar(r),e("typeArguments"),C0(r,t,e)],t),ge?le:""]}),r.call(l,"callee")}else no(X)?(a.unshift({node:X,needsParens:pi(r,t),printed:yn(r,bt(X)?lT(r,t,e):oT(r,t,e),t)}),r.call(l,"object")):X.type==="TSNonNullExpression"?(a.unshift({node:X,printed:yn(r,"!",t)}),r.call(l,"expression")):a.unshift({node:X,printed:e()})}let{node:p}=r;a.unshift({node:p,printed:[Ar(r),e("typeArguments"),C0(r,t,e)]}),p.callee&&r.call(l,"callee");let h=[],d=[a[0]],m=1;for(;m<a.length&&(a[m].node.type==="TSNonNullExpression"||nt(a[m].node)||bt(a[m].node)&&a[m].node.computed&&ts(a[m].node.property));++m)d.push(a[m]);if(!nt(a[0].node))for(;m+1<a.length&&no(a[m].node)&&no(a[m+1].node);++m)d.push(a[m]);h.push(d),d=[];let D=!1;for(;m<a.length;++m){if(D&&no(a[m].node)){if(a[m].node.computed&&ts(a[m].node.property)){d.push(a[m]);continue}h.push(d),d=[],D=!1}(nt(a[m].node)||a[m].node.type==="ImportExpression")&&(D=!0),d.push(a[m]),de(a[m].node,xe.Trailing)&&(h.push(d),d=[],D=!1)}d.length>0&&h.push(d);function g(X){return/^[A-Z]|^[$_]+$/u.test(X)}function x(X){return X.length<=t.tabWidth}function b(X){var J;let ge=(J=X[1][0])==null?void 0:J.node.computed;if(X[0].length===1){let ce=X[0][0].node;return ce.type==="ThisExpression"||ce.type==="Identifier"&&(g(ce.name)||n&&x(ce.name)||ge)}let Be=it(0,X[0],-1).node;return bt(Be)&&Be.property.type==="Identifier"&&(g(Be.property.name)||ge)}let C=h.length>=2&&!de(h[1][0].node)&&b(h);function S(X){let ge=X.map(Be=>Be.printed);return X.length>0&&it(0,X,-1).needsParens?["(",...ge,")"]:ge}function v(X){return X.length===0?"":ie([le,Xe(le,X.map(S))])}let F=h.map(S),w=F,T=C?3:2,B=h.flat(),_=B.slice(1,-1).some(X=>de(X.node,xe.Leading))||B.slice(0,-1).some(X=>de(X.node,xe.Trailing))||h[T]&&de(h[T][0].node,xe.Leading);if(h.length<=T&&!_&&!h.some(X=>it(0,X,-1).hasTrailingEmptyLine))return gS(r)?w:Q(w);let V=it(0,h[C?1:0],-1).node,U=!nt(V)&&u(V),Y=[S(h[0]),C?h.slice(1,2).map(S):"",U?le:"",v(h.slice(C?2:1))],O=a.map(({node:X})=>X).filter(nt);function H(){let X=it(0,it(0,h,-1),-1).node,ge=it(0,F,-1);return nt(X)&&Er(ge)&&O.slice(0,-1).some(Be=>Be.arguments.some(xc))}let re;return _||O.length>2&&O.some(X=>!X.arguments.every(ge=>Tn(ge)))||F.slice(0,-1).some(Er)||H()?re=Q(Y):re=[Er(w)||U?Ys:"",zi([w,Y])],jc({memberChain:!0},re)}var Mj=cT;function Kh(r,t,e){var D;let{node:n}=r,a=n.type==="NewExpression",u=Ar(r),l=Zr(n),p=n.type!=="TSImportType"&&n.typeArguments?e("typeArguments"):"",h=l.length===1&&yS(l[0],t.originalText);if(h||Lj(r)||Rj(r)||gd(n,r.parent)){let g=[];if(Jh(r,()=>{g.push(e())}),!(h&&((D=g[0].label)!=null&&D.embed)))return[a?"new ":"",S2(r,e),u,p,"(",Xe(", ",g),")"]}let d=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!d&&!a&&no(n.callee)&&!r.call(()=>pi(r,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return Mj(r,t,e);let m=[a?"new ":"",S2(r,e),u,p,C0(r,t,e)];return d||nt(n.callee)?Q(m):m}function S2(r,t){let{node:e}=r;return e.type==="ImportExpression"?`import${e.phase?`.${e.phase}`:""}`:e.type==="TSImportType"?"import":e.type==="TSExternalModuleReference"?"require":t("callee")}var Oj=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function Lj(r){let{node:t}=r;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&WD(t.callee,Oj)))return!1;let e=Zr(t);return e.length===1&&Zt(e[0])&&!de(e[0])}function Rj(r){let{node:t}=r;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let e=Zr(t);return t.callee.name==="require"?(e.length===1&&Zt(e[0])||e.length>1)&&!de(e[0]):t.callee.name==="define"&&r.parent.type==="ExpressionStatement"?e.length===1||e.length===2&&e[0].type==="ArrayExpression"||e.length===3&&Zt(e[0])&&e[1].type==="ArrayExpression":!1}function $c(r,t,e,n,a,u){let l=$j(r,t,e,n,u),p=u?e(u,{assignmentLayout:l}):"";switch(l){case"break-after-operator":return Q([Q(n),a,Q(ie([me,p]))]);case"never-break-after-operator":return Q([Q(n),a," ",p]);case"fluid":{let h=Symbol("assignment");return Q([Q(n),a,Q(ie(me),{id:h}),ns,bc(p,{groupId:h})])}case"break-lhs":return Q([n,a," ",Q(p)]);case"chain":return[Q(n),a,me,p];case"chain-tail":return[Q(n),a,ie([me,p])];case"chain-tail-arrow-chain":return[Q(n),a,p];case"only-left":return n}}function _j(r,t,e){let{node:n}=r;return $c(r,t,e,e("left"),[" ",n.operator],"right")}function jj(r,t,e){return $c(r,t,e,e("id")," =","init")}function $j(r,t,e,n,a){let{node:u}=r,l=u[a];if(!l)return"only-left";let p=!Ih(l);if(r.match(Ih,pT,m=>!p||m.type!=="ExpressionStatement"&&m.type!=="VariableDeclaration"))return p?l.type==="ArrowFunctionExpression"&&l.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!p&&Ih(l.right)||Pn(t.originalText,l))return"break-after-operator";if(u.type==="ImportAttribute"||l.type==="CallExpression"&&l.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let h=MR(n);if(Uj(u)||Vj(u)||hT(u)&&h)return"break-lhs";let d=Jj(u,n,t);return r.call(()=>zj(r,t,e,d),a)?"break-after-operator":qj(u)?"break-lhs":!h&&(d||l.type==="TemplateLiteral"||l.type==="TaggedTemplateExpression"||fL(l)||ts(l)||l.type==="ClassExpression")?"never-break-after-operator":"fluid"}function zj(r,t,e,n){let a=r.node;if(Ks(a)&&!Ac(a))return!0;switch(a.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!Kj(a))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:d}=a;return Ks(d)&&!Ac(d)}let{consequent:p,alternate:h}=a;return p.type==="ConditionalExpression"||h.type==="ConditionalExpression"}case"ClassExpression":return At(a.decorators)}if(n)return!1;let u=a,l=[];for(;;)if(u.type==="UnaryExpression"||u.type==="AwaitExpression"||u.type==="YieldExpression"&&u.argument!==null)u=u.argument,l.push("argument");else if(u.type==="TSNonNullExpression")u=u.expression,l.push("expression");else break;return!!(Zt(u)||r.call(()=>dT(r,t,e),...l))}function Uj(r){if(pT(r)){let t=r.left||r.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(e=>{var n;return ui(e)&&(!e.shorthand||((n=e.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function Ih(r){return r.type==="AssignmentExpression"}function pT(r){return Ih(r)||r.type==="VariableDeclarator"}function qj(r){let t=Hj(r);if(At(t)){let e=r.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[e]||n.default))return!0}return!1}function Hj(r){var t;if(m0(r))return(t=r.typeParameters)==null?void 0:t.params}function Vj(r){if(r.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=r.id;if(!t||!t.typeAnnotation)return!1;let e=T2(t.typeAnnotation);return At(e)&&e.length>1&&e.some(n=>At(T2(n))||n.type==="TSConditionalType")}function hT(r){var t;return r.type==="VariableDeclarator"&&((t=r.init)==null?void 0:t.type)==="ArrowFunctionExpression"}function T2(r){let t;switch(r.type){case"GenericTypeAnnotation":t=r.typeParameters;break;case"TSTypeReference":t=r.typeArguments;break}return t==null?void 0:t.params}function dT(r,t,e,n=!1){var l;let{node:a}=r,u=()=>dT(r,t,e,!0);if(a.type==="ChainExpression"||a.type==="TSNonNullExpression")return r.call(u,"expression");if(nt(a)){if((l=Kh(r,t,e).label)!=null&&l.memberChain)return!1;let p=Zr(a);return!(p.length===0||p.length===1&&ng(p[0],t))||Xj(a,e)?!1:r.call(u,"callee")}return bt(a)?r.call(u,"object"):n&&(a.type==="Identifier"||a.type==="ThisExpression")}function Jj(r,t,e){return ui(r)?(t=dg(t),typeof t=="string"&&So(t)<e.tabWidth+3):!1}function Xj(r,t){let e=Gj(r);if(At(e)){if(e.length>1)return!0;if(e.length===1){let a=e[0];if(rs(a)||_c(a)||a.type==="TSTypeLiteral"||a.type==="ObjectTypeAnnotation")return!0}let n=r.typeParameters?"typeParameters":"typeArguments";if(Er(t(n)))return!0}return!1}function Gj(r){var t;return(t=r.typeParameters??r.typeArguments)==null?void 0:t.params}function w2(r){switch(r.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!r.typeParameters;case"TSTypeReference":return!!r.typeArguments;default:return!1}}function Kj(r){return w2(r.checkType)||w2(r.extendsType)}var Mh=new WeakMap;function fT(r){return/^(?:\d+|\d+\.\d+)$/u.test(r)}function N2(r,t){return t.parser==="json"||t.parser==="jsonc"||!Zt(r.key)||No(Or(r.key),t).slice(1,-1)!==r.key.value?!1:!!(hj(r.key.value)&&!(t.parser==="babel-ts"&&r.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&r.type==="PropertyDefinition")||fT(r.key.value)&&String(Number(r.key.value))===r.key.value&&r.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function Qj(r,t){let{key:e}=r.node;return(e.type==="Identifier"||ts(e)&&fT(ko(Or(e)))&&String(e.value)===ko(Or(e))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Mh.get(r.parent))}function zc(r,t,e){let{node:n}=r;if(n.computed)return["[",e("key"),"]"];let{parent:a}=r,{key:u}=n;if(t.quoteProps==="consistent"&&!Mh.has(a)){let l=r.siblings.some(p=>!p.computed&&Zt(p.key)&&!N2(p,t));Mh.set(a,l)}if(Qj(r,t)){let l=No(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return r.call(()=>yn(r,l,t),"key")}return N2(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Mh.get(a))?r.call(()=>yn(r,/^\d/u.test(u.value)?ko(u.value):u.value,t),"key"):e("key")}function Sy(r,t,e){let{node:n}=r;return n.shorthand?e("value"):$c(r,t,e,zc(r,t,e),":","value")}var Yj=({node:r,key:t,parent:e})=>t==="value"&&r.type==="FunctionExpression"&&(e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="ClassPrivateMethod"||e.type==="MethodDefinition"||e.type==="TSAbstractMethodDefinition"||e.type==="TSDeclareMethod"||e.type==="Property"&&Rc(e));function mT(r,t,e,n){if(Yj(r))return Dg(r,t,e);let{node:a}=r,u=!1;if((a.type==="FunctionDeclaration"||a.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:m}=r;nt(m)&&(Zr(m).length>1||hr(a).every(D=>D.type==="Identifier"&&!D.typeAnnotation))&&(u=!0)}let l=[Yr(r),a.async?"async ":"",`function${a.generator?"*":""} `,a.id?e("id"):""],p=hu(r,t,e,u),h=Cd(r,e),d=Jo(a,h);return l.push(e("typeParameters"),Q([d?Q(p):p,h]),a.body?" ":"",e("body")),t.semi&&(a.declare||!a.body)&&l.push(";"),l}function F0(r,t,e){let{node:n}=r,{kind:a}=n,u=n.value||n,l=[];return!a||a==="init"||a==="method"||a==="constructor"?u.async&&l.push("async "):l.push(a," "),u.generator&&l.push("*"),l.push(zc(r,t,e),n.optional?"?":"",n===u?Dg(r,t,e):e("value")),l}function Dg(r,t,e){let{node:n}=r,a=hu(r,t,e),u=Cd(r,e),l=uj(n),p=Jo(n,u),h=[e("typeParameters"),Q([l?Q(a,{shouldBreak:!0}):p?Q(a):a,u])];return n.body?h.push(" ",e("body")):h.push(t.semi?";":""),h}function Wj(r){let t=hr(r);return t.length===1&&!r.typeParameters&&!de(r,xe.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!de(t[0])&&!t[0].optional&&!r.predicate&&!r.returnType}function yT(r,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:e}=r;return Wj(e)}return!1}function Cd(r,t){let{node:e}=r,n=[ir(r,t,"returnType")];return e.predicate&&n.push(t("predicate")),n}function DT(r,t,e){let{node:n}=r,a=[];if(n.argument){let p=e("argument");t$(t,n.argument)?p=["(",ie([le,p]),le,")"]:(Ks(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(p=Q([ke("("),ie([se,p]),se,ke(")")])),a.push(" ",p)}let u=de(n,xe.Dangling),l=t.semi&&u&&de(n,xe.Last|xe.Line);return l&&a.push(";"),u&&a.push(" ",Et(r,t)),!l&&t.semi&&a.push(";"),a}function Zj(r,t,e){return["return",DT(r,t,e)]}function e$(r,t,e){return["throw",DT(r,t,e)]}function t$(r,t){if(Pn(r.originalText,t)||de(t,xe.Leading,e=>Qr(r.originalText,Ve(e),ze(e)))&&!Wt(t))return!0;if(eg(t)){let e=t,n;for(;n=pL(e);)if(e=n,Pn(r.originalText,e))return!0}return!1}function r$(r,t){if(t.semi||xT(r,t)||bT(r,t)||ET(r,t))return!1;let{node:e,key:n,parent:a}=r;return!!(e.type==="ExpressionStatement"&&(n==="body"&&(a.type==="Program"||a.type==="BlockStatement"||a.type==="StaticBlock"||a.type==="TSModuleBlock")||n==="consequent"&&a.type==="SwitchCase")&&r.call(()=>gT(r,t),"expression"))}function gT(r,t){let{node:e}=r;switch(e.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!yT(r,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:a}=e;if(n&&(a==="+"||a==="-"))return!0;break}case"BindExpression":if(!e.object)return!0;break;case"Literal":if(e.regex)return!0;break;default:if(Wt(e))return!0}return pi(r,t)?!0:eg(e)?r.call(()=>gT(r,t),...cS(e)):!1}var gg=({node:r,parent:t})=>r.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function xT(r,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&gg(r)&&Wt(r.node.expression)}function ET(r,t){return t.__isHtmlInlineEventHandler&&gg(r)}function bT(r,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&gg(r)}var n$=class extends Error{constructor(t,e,n="type"){super(`Unexpected ${e} node ${n}: ${JSON.stringify(t[n])}.`);pe(this,"name","UnexpectedNodeError");this.node=t}},Xo=n$;function s$(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var dn,Wh,AT,aC,a$=(aC=class{constructor(r){Se(this,Wh);Se(this,dn);De(this,dn,new Set(r))}getLeadingWhitespaceCount(r){let t=L(this,dn),e=0;for(let n=0;n<r.length&&t.has(r.charAt(n));n++)e++;return e}getTrailingWhitespaceCount(r){let t=L(this,dn),e=0;for(let n=r.length-1;n>=0&&t.has(r.charAt(n));n--)e++;return e}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return L(this,dn).has(r.charAt(0))}hasTrailingWhitespace(r){return L(this,dn).has(it(0,r,-1))}trimStart(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(t)}trimEnd(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(0,r.length-t)}trim(r){return this.trimEnd(this.trimStart(r))}split(r,t=!1){let e=`[${s$([...L(this,dn)].join(""))}]+`,n=new RegExp(t?`(${e})`:e,"u");return r.split(n)}hasWhitespaceCharacter(r){let t=L(this,dn);return Array.prototype.some.call(r,e=>t.has(e))}hasNonWhitespaceCharacter(r){let t=L(this,dn);return Array.prototype.some.call(r,e=>!t.has(e))}isWhitespaceOnly(r){let t=L(this,dn);return Array.prototype.every.call(r,e=>t.has(e))}dedentString(r){let t=Ie(this,Wh,AT).call(this,r);return t===0?r:r.split(`
|
|
343
|
+
`).map(e=>e.slice(t)).join(`
|
|
344
|
+
`)}},dn=new WeakMap,Wh=new WeakSet,AT=function(r){let t=Number.POSITIVE_INFINITY;for(let e of r.split(`
|
|
345
|
+
`)){if(e.length===0)continue;let n=this.getLeadingWhitespaceCount(e);if(n===0)return 0;e.length!==n&&n<t&&(t=n)}return t===Number.POSITIVE_INFINITY?0:t},aC),i$=a$,Oh=new i$(`
|
|
346
|
+
\r `),Ty=r=>r===""||r===me||r===le||r===se;function u$(r,t,e){var w,T,B,_,V;let{node:n}=r;if(n.type==="JSXElement"&&C$(n))return[e("openingElement"),e("closingElement")];let a=n.type==="JSXElement"?e("openingElement"):e("openingFragment"),u=n.type==="JSXElement"?e("closingElement"):e("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[a,...r.map(e,"children"),u];n.children=n.children.map(U=>F$(U)?{type:"JSXText",value:" ",raw:" "}:U);let l=n.children.some(Wt),p=n.children.filter(U=>U.type==="JSXExpressionContainer").length>1,h=n.type==="JSXElement"&&n.openingElement.attributes.length>1,d=Er(a)||l||h||p,m=r.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',g=m?me:ke([D,se]," "),x=((T=(w=n.openingElement)==null?void 0:w.name)==null?void 0:T.name)==="fbt",b=o$(r,t,e,g,x),C=n.children.some(U=>Cc(U));for(let U=b.length-2;U>=0;U--){let Y=b[U]===""&&b[U+1]==="",O=b[U]===le&&b[U+1]===""&&b[U+2]===le,H=(b[U]===se||b[U]===le)&&b[U+1]===""&&b[U+2]===g,re=b[U]===g&&b[U+1]===""&&(b[U+2]===se||b[U+2]===le),X=b[U]===g&&b[U+1]===""&&b[U+2]===g,ge=b[U]===se&&b[U+1]===""&&b[U+2]===le||b[U]===le&&b[U+1]===""&&b[U+2]===se;O&&C||Y||H||X||ge?b.splice(U,2):re&&b.splice(U+1,2)}for(;b.length>0&&Ty(it(0,b,-1));)b.pop();for(;b.length>1&&Ty(b[0])&&Ty(b[1]);)b.shift(),b.shift();let S=[""];for(let[U,Y]of b.entries()){if(Y===g){if(U===1&&OR(b[U-1])){if(b.length===2){S.push([S.pop(),D]);continue}S.push([D,le],"");continue}else if(U===b.length-1){S.push([S.pop(),D]);continue}else if(b[U-1]===""&&b[U-2]===le){S.push([S.pop(),D]);continue}}U%2===0?S.push([S.pop(),Y]):S.push(Y,""),Er(Y)&&(d=!0)}let v=C?RS(S):Q(S,{shouldBreak:!0});if(((B=t.cursorNode)==null?void 0:B.type)==="JSXText"&&n.children.includes(t.cursorNode)?v=[Dh,v,Dh]:((_=t.nodeBeforeCursor)==null?void 0:_.type)==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?v=[Dh,v]:((V=t.nodeAfterCursor)==null?void 0:V.type)==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(v=[v,Dh]),m)return v;let F=Q([a,ie([le,v]),le,u]);return d?F:zi([Q([a,...b,u]),F])}function o$(r,t,e,n,a){let u="",l=[u];function p(d){u=d,l.push([l.pop(),d])}function h(d){d!==""&&(u=d,l.push(d,""))}return r.each(({node:d,next:m})=>{if(d.type==="JSXText"){let D=Or(d);if(Cc(d)){let g=Oh.split(D,!0);g[0]===""&&(g.shift(),/\n/u.test(g[0])?h(P2(a,g[1],d,m)):h(n),g.shift());let x;if(it(0,g,-1)===""&&(g.pop(),x=g.pop()),g.length===0)return;for(let[b,C]of g.entries())b%2===1?h(me):p(C);x!==void 0?/\n/u.test(x)?h(P2(a,u,d,m)):h(n):h(B2(a,u,d,m))}else/\n/u.test(D)?D.match(/\n/gu).length>1&&h(le):h(n)}else{let D=e();if(p(D),m&&Cc(m)){let g=Oh.trim(Or(m)),[x]=Oh.split(g);h(B2(a,x,d,m))}else h(le)}},"children"),l}function B2(r,t,e,n){return r?"":e.type==="JSXElement"&&!e.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?se:le:se}function P2(r,t,e,n){return r?le:t.length===1?e.type==="JSXElement"&&!e.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?le:se:le}var l$=Me(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function c$(r,t,e){let{parent:n}=r;if(l$(n))return t;let a=p$(r),u=pi(r,e);return Q([u?"":ke("("),ie([se,t]),se,u?"":ke(")")],{shouldBreak:a})}function p$(r){return r.match(void 0,(t,e)=>e==="body"&&t.type==="ArrowFunctionExpression",(t,e)=>e==="arguments"&&nt(t))&&(r.match(void 0,void 0,void 0,(t,e)=>e==="expression"&&t.type==="JSXExpressionContainer")||r.match(void 0,void 0,void 0,(t,e)=>e==="expression"&&t.type==="ChainExpression",(t,e)=>e==="expression"&&t.type==="JSXExpressionContainer"))}function h$(r,t,e){let{node:n}=r,a=[e("name")];if(n.value){let u;if(Zt(n.value)){let l=Or(n.value),p=Yt(0,Yt(0,l.slice(1,-1),"'","'"),""",'"'),h=sS(p,t.jsxSingleQuote);p=h==='"'?Yt(0,p,'"',"""):Yt(0,p,"'","'"),u=r.call(()=>yn(r,ru(h+p+h),t),"value")}else u=e("value");a.push("=",u)}return a}function d$(r,t,e){let{node:n}=r,a=(u,l)=>u.type==="JSXEmptyExpression"||!de(u)&&(or(u)||Mn(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(a(u.argument,u)||u.argument.type==="JSXElement")||nt(u)||u.type==="ChainExpression"&&nt(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||Wt(l)&&(u.type==="ConditionalExpression"||Ks(u)));return a(n.expression,r.parent)?Q(["{",e("expression"),ns,"}"]):Q(["{",ie([se,e("expression")]),se,ns,"}"])}function f$(r,t,e){var p,h;let{node:n}=r,a=de(n.name)||de(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!a)return["<",e("name"),e("typeArguments")," />"];if(((p=n.attributes)==null?void 0:p.length)===1&&Zt(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
|
|
347
|
+
`)&&!a&&!de(n.attributes[0]))return Q(["<",e("name"),e("typeArguments")," ",...r.map(e,"attributes"),n.selfClosing?" />":">"]);let u=(h=n.attributes)==null?void 0:h.some(d=>Zt(d.value)&&d.value.value.includes(`
|
|
348
|
+
`)),l=t.singleAttributePerLine&&n.attributes.length>1?le:me;return Q(["<",e("name"),e("typeArguments"),ie(r.map(()=>[l,e()],"attributes")),...m$(n,t,a)],{shouldBreak:u})}function m$(r,t,e){return r.selfClosing?[me,"/>"]:y$(r,t,e)?[">"]:[se,">"]}function y$(r,t,e){let n=r.attributes.length>0&&de(it(0,r.attributes,-1),xe.Trailing);return r.attributes.length===0&&!e||(t.bracketSameLine||t.jsxBracketSameLine)&&(!e||r.attributes.length>0)&&!n}function D$(r,t,e){let{node:n}=r,a=["</"],u=e("name");return de(n.name,xe.Leading|xe.Line)?a.push(ie([le,u]),le):de(n.name,xe.Leading|xe.Block)?a.push(" ",u):a.push(u),a.push(">"),a}function g$(r,t){let{node:e}=r,n=de(e),a=de(e,xe.Line),u=e.type==="JSXOpeningFragment";return[u?"<":"</",ie([a?le:n&&!u?" ":"",Et(r,t)]),a?le:"",">"]}function x$(r,t,e){let n=yn(r,u$(r,t,e),t);return c$(r,n,t)}function E$(r,t){let{node:e}=r,n=de(e,xe.Line);return[Et(r,t,{indent:n}),n?le:""]}function b$(r,t,e){let{node:n}=r;return["{",r.call(({node:a})=>{let u=["...",e()];return de(a)?[ie([se,yn(r,u,t)]),se]:u},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function A$(r,t,e){let{node:n}=r;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return h$(r,t,e);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return Xe(":",[e("namespace"),e("name")]);case"JSXMemberExpression":return Xe(".",[e("object"),e("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return b$(r,t,e);case"JSXExpressionContainer":return d$(r,t,e);case"JSXFragment":case"JSXElement":return x$(r,t,e);case"JSXOpeningElement":return f$(r,t,e);case"JSXClosingElement":return D$(r,t,e);case"JSXOpeningFragment":case"JSXClosingFragment":return g$(r,t);case"JSXEmptyExpression":return E$(r,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Xo(n,"JSX")}}function C$(r){if(r.children.length===0)return!0;if(r.children.length>1)return!1;let t=r.children[0];return t.type==="JSXText"&&!Cc(t)}function Cc(r){return r.type==="JSXText"&&(Oh.hasNonWhitespaceCharacter(Or(r))||!/\n/u.test(Or(r)))}function F$(r){return r.type==="JSXExpressionContainer"&&Zt(r.expression)&&r.expression.value===" "&&!de(r.expression)}function v$(r){let{node:t,parent:e}=r;if(!Wt(t)||!Wt(e))return!1;let{index:n,siblings:a}=r,u;for(let l=n;l>0;l--){let p=a[l-1];if(!(p.type==="JSXText"&&!Cc(p))){u=p;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&xd(u.expression)}function S$(r){return xd(r.node)||v$(r)}var xg=S$;function T$(r,t,e){let{node:n}=r;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return e("node");case"NGPipeExpression":return eT(r,t,e);case"NGChainedExpression":return Q(Xe([";",me],r.map(()=>B$(r)?e():["(",e(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return r.map(()=>[r.isFirst?"":k2(r)?" ":[";",me],e()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[e("expression"),n.alias===null?"":[" as ",e("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:a,parent:u}=r,l=k2(r)||w$(r)||(a===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||a===2&&(n.key.name==="else"&&u.body[a-1].type==="NGMicrosyntaxKeyedExpression"&&u.body[a-1].key.name==="then"||n.key.name==="track"))&&u.body[0].type==="NGMicrosyntaxExpression";return[e("key"),l?" ":": ",e("expression")]}case"NGMicrosyntaxLet":return["let ",e("key"),n.value===null?"":[" = ",e("value")]];case"NGMicrosyntaxAs":return[e("key")," as ",e("alias")];default:throw new Xo(n,"Angular")}}function k2({node:r,index:t}){return r.type==="NGMicrosyntaxKeyedExpression"&&r.key.name==="of"&&t===1}function w$(r){let{node:t}=r;return r.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var N$=Me(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function B$({node:r}){return d0(r,N$)}function CT(r,t,e){let{node:n}=r;return Q([Xe(me,r.map(e,"decorators")),FT(n,t)?le:me])}function P$(r,t,e){return vT(r.node)?[Xe(le,r.map(e,"declaration","decorators")),le]:""}function k$(r,t,e){let{node:n,parent:a}=r,{decorators:u}=n;if(!At(u)||vT(a)||xg(r))return"";let l=n.type==="ClassExpression"||n.type==="ClassDeclaration"||FT(n,t);return[r.key==="declaration"&&hL(a)?le:l?Ys:"",Xe(me,r.map(e,"decorators")),me]}function FT(r,t){return r.decorators.some(e=>Mr(t.originalText,ze(e)))}function vT(r){var e;if(r.type!=="ExportDefaultDeclaration"&&r.type!=="ExportNamedDeclaration"&&r.type!=="DeclareExportDeclaration")return!1;let t=(e=r.declaration)==null?void 0:e.decorators;return At(t)&&Dd(r,t[0])}var wy=new WeakMap;function ST(r){return wy.has(r)||wy.set(r,r.type==="ConditionalExpression"&&!gr(r,t=>t.type==="ObjectExpression")),wy.get(r)}var I$=r=>r.type==="SequenceExpression";function M$(r,t,e,n={}){let a=[],u,l=[],p=!1,h=!n.expandLastArg&&r.node.body.type==="ArrowFunctionExpression",d;(function v(){let{node:F}=r,w=O$(r,t,e,n);if(a.length===0)a.push(w);else{let{leading:T,trailing:B}=Ed(r,t);a.push([T,w]),l.unshift(B)}h&&(p||(p=F.returnType&&hr(F).length>0||F.typeParameters||hr(F).some(T=>T.type!=="Identifier"))),!h||F.body.type!=="ArrowFunctionExpression"?(u=e("body",n),d=F.body):r.call(v,"body")})();let m=!Pn(t.originalText,d)&&(I$(d)||L$(d,u,t)||!p&&ST(d)),D=r.key==="callee"&&Po(r.parent),g=Symbol("arrow-chain"),x=R$(r,n,{signatureDocs:a,shouldBreak:p}),b=!1,C=!1,S=!1;return h&&(D||n.assignmentLayout)&&(C=!0,S=!de(r.node,xe.Leading&xe.Line),b=n.assignmentLayout==="chain-tail-arrow-chain"||D&&!m),u=_$(r,t,n,{bodyDoc:u,bodyComments:l,functionBody:d,shouldPutBodyOnSameLine:m}),Q([Q(C?ie([S?se:"",x]):x,{shouldBreak:b,id:g})," =>",h?bc(u,{groupId:g}):Q(u),h&&D?ke(se,"",{groupId:g}):""])}function O$(r,t,e,n){let{node:a}=r,u=[];if(a.async&&u.push("async "),yT(r,t))u.push(e(["params",0]));else{let p=n.expandLastArg||n.expandFirstArg,h=Cd(r,e);if(p){if(Er(h))throw new Gh;h=Q(Xh(h))}u.push(Q([hu(r,t,e,p,!0),h]))}let l=Et(r,t,{filter(p){let h=qo(t.originalText,ze(p));return h!==!1&&t.originalText.slice(h,h+2)==="=>"}});return l&&u.push(" ",l),u}function L$(r,t,e){var n,a;return or(r)||Mn(r)||r.type==="ArrowFunctionExpression"||r.type==="DoExpression"||r.type==="BlockStatement"||Wt(r)||((n=t.label)==null?void 0:n.hug)!==!1&&(((a=t.label)==null?void 0:a.embed)||yS(r,e.originalText))}function R$(r,t,{signatureDocs:e,shouldBreak:n}){if(e.length===1)return e[0];let{parent:a,key:u}=r;return u!=="callee"&&Po(a)||Ks(a)?Q([e[0]," =>",ie([me,Xe([" =>",me],e.slice(1))])],{shouldBreak:n}):u==="callee"&&Po(a)||t.assignmentLayout?Q(Xe([" =>",me],e),{shouldBreak:n}):Q(ie(Xe([" =>",me],e)),{shouldBreak:n})}function _$(r,t,e,{bodyDoc:n,bodyComments:a,functionBody:u,shouldPutBodyOnSameLine:l}){let{node:p,parent:h}=r,d=e.expandLastArg&&us(t,"all")?ke(","):"",m=(e.expandLastArg||h.type==="JSXExpressionContainer")&&!de(p)?se:"";return l&&ST(u)?[" ",Q([ke("","("),ie([se,n]),ke("",")"),d,m]),a]:l?[" ",n,a]:[ie([me,n,a]),d,m]}var j$=Array.prototype.findLast??function(r){for(let t=this.length-1;t>=0;t--){let e=this[t];if(r(e,t,this))return e}},$$=XD("findLast",function(){if(Array.isArray(this))return j$}),z$=$$;function v0(r,t,e,n){let{node:a}=r,u=[],l=z$(0,a[n],p=>p.type!=="EmptyStatement");return r.each(({node:p})=>{p.type!=="EmptyStatement"&&(u.push(e()),p!==l&&(u.push(le),os(p,t)&&u.push(le)))},n),u}function TT(r,t,e){let n=U$(r,t,e),{node:a,parent:u}=r;if(a.type==="Program"&&(u==null?void 0:u.type)!=="ModuleExpression")return n?[n,le]:"";let l=[];if(a.type==="StaticBlock"&&l.push("static "),l.push("{"),n)l.push(ie([le,n]),le);else{let p=r.grandparent;u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression"||u.type==="FunctionDeclaration"||u.type==="ComponentDeclaration"||u.type==="HookDeclaration"||u.type==="ObjectMethod"||u.type==="ClassMethod"||u.type==="ClassPrivateMethod"||u.type==="ForStatement"||u.type==="WhileStatement"||u.type==="DoWhileStatement"||u.type==="DoExpression"||u.type==="ModuleExpression"||u.type==="CatchClause"&&!p.finalizer||u.type==="TSModuleDeclaration"||u.type==="MatchStatementCase"||a.type==="StaticBlock"||l.push(le)}return l.push("}"),l}function U$(r,t,e){let{node:n}=r,a=At(n.directives),u=n.body.some(h=>h.type!=="EmptyStatement"),l=de(n,xe.Dangling);if(!a&&!u&&!l)return"";let p=[];return a&&(p.push(v0(r,t,e,"directives")),(u||l)&&(p.push(le),os(it(0,n.directives,-1),t)&&p.push(le))),u&&p.push(v0(r,t,e,"body")),l&&p.push(Et(r,t)),p}function q$(r){let t=new WeakMap;return function(e){return t.has(e)||t.set(e,Symbol(r)),t.get(e)}}var H$=q$;function Eg(r,t,e){let{node:n}=r,a=[],u=n.type==="ObjectTypeAnnotation",l=!wT(r),p=l?me:le,h=de(n,xe.Dangling),[d,m]=u&&n.exact?["{|","|}"]:"{}",D;if(V$(r,({node:g,next:x,isLast:b})=>{if(D??(D=g),a.push(e()),l&&u){let{parent:C}=r;C.inexact||!b?a.push(","):us(t)&&a.push(ke(","))}!l&&(J$({node:g,next:x},t)||BT({node:g,next:x},t))&&a.push(";"),b||(a.push(p),os(g,t)&&a.push(le))}),h&&a.push(Et(r,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let g;de(n,xe.Dangling)?g=[de(n,xe.Line)||Mr(t.originalText,ze(it(0,Wi(n),-1)))?le:me,"..."]:g=[D?me:"","..."],a.push(g)}if(l){let g=h||t.objectWrap==="preserve"&&D&&Qr(t.originalText,Ve(n),Ve(D)),x;if(a.length===0)x=d+m;else{let b=t.bracketSpacing?me:se;x=[d,ie([b,...a]),b,m]}return r.match(void 0,(b,C)=>C==="typeAnnotation",(b,C)=>C==="typeAnnotation",lc)||r.match(void 0,(b,C)=>b.type==="FunctionTypeParam"&&C==="typeAnnotation",lc)?x:Q(x,{shouldBreak:g})}return[d,a.length>0?[ie([le,a]),le]:"",m]}function wT(r){let{node:t}=r;if(t.type==="ObjectTypeAnnotation"){let{key:e,parent:n}=r;return e==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function V$(r,t){let{node:e}=r;if(e.type==="ClassBody"||e.type==="TSInterfaceBody"){r.each(t,"body");return}if(e.type==="TSTypeLiteral"){r.each(t,"members");return}if(e.type==="ObjectTypeAnnotation"){let n=["properties","indexers","callProperties","internalSlots"].flatMap(a=>r.map(({node:u,index:l})=>({node:u,loc:Ve(u),selector:[a,l]}),a)).sort((a,u)=>a.loc-u.loc);for(let[a,{node:u,selector:l}]of n.entries())r.call(()=>{var p;return t({node:u,next:(p=n[a+1])==null?void 0:p.node,isLast:a===n.length-1})},...l)}}function js(r,t){let{parent:e}=r;return r.callParent(wT)?t.semi||e.type==="ObjectTypeAnnotation"?";":"":e.type==="TSTypeLiteral"?r.isLast?t.semi?ke(";"):"":t.semi||BT({node:r.node,next:r.next},t)?";":ke("",";"):""}var I2=Me(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),NT=r=>{if(r.computed||r.typeAnnotation)return!1;let{type:t,name:e}=r.key;return t==="Identifier"&&(e==="static"||e==="get"||e==="set")};function J$({node:r,next:t},e){var n;if(e.semi||!I2(r))return!1;if(!r.value&&NT(r))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let a=(n=t.key)==null?void 0:n.name;if(a==="in"||a==="instanceof")return!0}if(I2(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let a=t.value?t.value.generator:t.generator;return!!(t.computed||a)}case"TSIndexSignature":return!0}return!1}var X$=Me(["TSPropertySignature"]);function BT({node:r,next:t},e){if(e.semi||!X$(r))return!1;if(NT(r))return!0;if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":return!0}return!1}var G$=H$("heritageGroup"),K$=Me(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function bg(r,t,e){let{node:n}=r,a=K$(n),u=[Yr(r),bd(r),a?"interface":"class"],l=kT(r),p=[],h=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&p.push(" ");for(let m of["id","typeParameters"])if(n[m]){let{leading:D,trailing:g}=r.call(()=>Ed(r,t),m);p.push(D,e(m),ie(g))}}if(n.superClass){let m=[W$(r,t,e),e(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],D=r.call(()=>["extends ",yn(r,m,t)],"superClass");l?h.push(me,Q(D)):h.push(" ",D)}else h.push(By(r,t,e,"extends"));h.push(By(r,t,e,"mixins"),By(r,t,e,"implements"));let d;return l?(d=G$(n),u.push(Q([...p,ie(h)],{id:d}))):u.push(...p,...h),!a&&l&&Q$(n.body)?u.push(ke(le," ",{groupId:d})):u.push(" "),u.push(e("body")),u}function Q$(r){return r.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>At(r[t])):At(r.body)}function PT(r){let t=r.superClass?1:0;for(let e of["extends","mixins","implements"])if(Array.isArray(r[e])&&(t+=r[e].length),t>1)return!0;return t>1}function Y$(r){var n,a,u;let{node:t}=r;if(de(t.id,xe.Trailing)||de(t.typeParameters,xe.Trailing)||de(t.superClass)||PT(t))return!0;if(t.superClass)return r.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&bt(t.superClass);let e=((n=t.extends)==null?void 0:n[0])??((a=t.mixins)==null?void 0:a[0])??((u=t.implements)==null?void 0:u[0]);return e?e.type==="InterfaceExtends"&&e.id.type==="QualifiedTypeIdentifier"&&!e.typeParameters||(e.type==="TSClassImplements"||e.type==="TSInterfaceHeritage")&&bt(e.expression)&&!e.typeArguments:!1}var Ny=new WeakMap;function kT(r){let{node:t}=r;return Ny.has(t)||Ny.set(t,Y$(r)),Ny.get(t)}function By(r,t,e,n){let{node:a}=r;if(!At(a[n]))return"";let u=Et(r,t,{marker:n}),l=Xe([",",me],r.map(e,n));if(!PT(a)){let p=[`${n} `,u,l];return kT(r)?[me,Q(p)]:[" ",p]}return[me,u,u&&le,n,Q(ie([me,l]))]}function W$(r,t,e){let n=e("superClass"),{parent:a}=r;return a.type==="AssignmentExpression"?Q(ke(["(",ie([se,n]),se,")"],n)):n}function IT(r,t,e){let{node:n}=r,a=[];return At(n.decorators)&&a.push(CT(r,t,e)),a.push(Ad(n)),n.static&&a.push("static "),a.push(bd(r)),n.override&&a.push("override "),a.push(F0(r,t,e)),a}function MT(r,t,e){let{node:n}=r,a=[];At(n.decorators)&&a.push(CT(r,t,e)),a.push(Yr(r),Ad(n)),n.static&&a.push("static "),a.push(bd(r)),n.override&&a.push("override "),n.readonly&&a.push("readonly "),n.variance&&a.push(e("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&a.push("accessor "),a.push(zc(r,t,e),Ar(r),ZS(r),ir(r,e));let u=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[$c(r,t,e,a," =",u?void 0:"value"),t.semi?";":""]}var Z$=Me(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function OT(r){return Z$(r)?OT(r.expression):r}var ez=Me(["FunctionExpression","ArrowFunctionExpression"]);function tz(r){return r.type==="MemberExpression"||r.type==="OptionalMemberExpression"||r.type==="Identifier"&&r.name!=="undefined"}function rz(r,t){if(bT(r,t)){let e=OT(r.node.expression);return ez(e)||tz(e)}return!(!t.semi||xT(r,t)||ET(r,t))}function nz(r,t,e){return[e("expression"),rz(r,t)?";":""]}function sz(r,t,e){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=r.map(e,"program","body",0,"params");if(n.length===1)return n[0];let a=Xe([",",me],n);return t.__isVueForBindingLeft?["(",ie([se,Q(a)]),se,")"]:a}if(t.__isEmbeddedTypescriptGenericParameters){let n=r.map(e,"program","body",0,"typeParameters","params");return Xe([",",me],n)}}function az(r,t){let{node:e}=r;switch(e.type){case"RegExpLiteral":return M2(e);case"BigIntLiteral":return S0(e.extra.raw);case"NumericLiteral":return ko(e.extra.raw);case"StringLiteral":return ru(No(e.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(e.value);case"DirectiveLiteral":return O2(e.extra.raw,t);case"Literal":{if(e.regex)return M2(e.regex);if(e.bigint)return S0(e.raw);let{value:n}=e;return typeof n=="number"?ko(e.raw):typeof n=="string"?iz(r)?O2(e.raw,t):ru(No(e.raw,t)):String(n)}}}function iz(r){if(r.key!=="expression")return;let{parent:t}=r;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function S0(r){return r.toLowerCase()}function M2({pattern:r,flags:t}){return t=[...t].sort().join(""),`/${r}/${t}`}var uz="use strict";function O2(r,t){let e=r.slice(1,-1);if(e===uz||!(e.includes('"')||e.includes("'"))){let n=t.singleQuote?"'":'"';return n+e+n}return r}function oz(r,t,e){let n=r.originalText.slice(t,e);for(let a of r[Symbol.for("comments")]){let u=Ve(a);if(u>e)break;let l=ze(a);if(l<t)continue;let p=u-t,h=l-t;n=n.slice(0,p)+Yt(0,n.slice(p,h),/[^\n]/gu," ")+n.slice(h)}return n}var Fd=oz,LT=Me(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),lz=Me(["EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function Ag(r,t,e){var S;let{node:n,parent:a}=r,u=lz(n),l=n.type==="TSEnumBody"||u,p=LT(n),h=u&&n.hasUnknownMembers,d=l?"members":p?"attributes":"properties",m=n[d],D=l||n.type==="ObjectPattern"&&a.type!=="FunctionDeclaration"&&a.type!=="FunctionExpression"&&a.type!=="ArrowFunctionExpression"&&a.type!=="ObjectMethod"&&a.type!=="ClassMethod"&&a.type!=="ClassPrivateMethod"&&a.type!=="AssignmentPattern"&&a.type!=="CatchClause"&&n.properties.some(v=>v.value&&(v.value.type==="ObjectPattern"||v.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&m.length>0&&cz(n,m[0],t),g=[],x=r.map(({node:v})=>{let F=[...g,Q(e())];return g=[",",me],os(v,t)&&g.push(le),F},d);if(h){let v;if(de(n,xe.Dangling)){let F=de(n,xe.Line);v=[Et(r,t),F||Mr(t.originalText,ze(it(0,Wi(n),-1)))?le:me,"..."]}else v=["..."];x.push([...g,...v])}let b=!(h||((S=it(0,m,-1))==null?void 0:S.type)==="RestElement"),C;if(x.length===0){if(!de(n,xe.Dangling))return["{}",ir(r,e)];C=Q(["{",Et(r,t,{indent:!0}),se,"}",Ar(r),ir(r,e)])}else{let v=t.bracketSpacing?me:se;C=["{",ie([v,...x]),ke(b&&us(t)?",":""),v,"}",Ar(r),ir(r,e)]}return r.match(v=>v.type==="ObjectPattern"&&!At(v.decorators),lc)||ei(n)&&(r.match(void 0,(v,F)=>F==="typeAnnotation",(v,F)=>F==="typeAnnotation",lc)||r.match(void 0,(v,F)=>v.type==="FunctionTypeParam"&&F==="typeAnnotation",lc))||!D&&r.match(v=>v.type==="ObjectPattern",v=>v.type==="AssignmentExpression"||v.type==="VariableDeclarator")?C:Q(C,{shouldBreak:D})}function cz(r,t,e){let n=e.originalText,a=Ve(r),u=Ve(t);if(LT(r)){let l=Ve(r),p=Fd(e,l,u);a=l+p.lastIndexOf("{")}return Qr(n,a,u)}function pz(r,t,e){let{node:n}=r;return["import",n.phase?` ${n.phase}`:"",jT(n),zT(r,t,e),$T(r,t,e),qT(r,t,e),t.semi?";":""]}var RT=r=>r.type==="ExportDefaultDeclaration"||r.type==="DeclareExportDeclaration"&&r.default;function _T(r,t,e){let{node:n}=r,a=[P$(r,t,e),Yr(r),"export",RT(n)?" default":""],{declaration:u,exported:l}=n;return de(n,xe.Dangling)&&(a.push(" ",Et(r,t)),DS(n)&&a.push(le)),u?a.push(" ",e("declaration")):(a.push(fz(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(a.push(" *"),l&&a.push(" as ",e("exported"))):a.push(zT(r,t,e)),a.push($T(r,t,e),qT(r,t,e))),a.push(dz(n,t)),a}var hz=Me(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function dz(r,t){return t.semi&&(!r.declaration||RT(r)&&!hz(r.declaration))?";":""}function Cg(r,t=!0){return r&&r!=="value"?`${t?" ":""}${r}${t?"":" "}`:""}function jT(r,t){return Cg(r.importKind,t)}function fz(r){return Cg(r.exportKind)}function $T(r,t,e){let{node:n}=r;return n.source?[UT(n,t)?" from":""," ",e("source")]:""}function zT(r,t,e){let{node:n}=r;if(!UT(n,t))return"";let a=[" "];if(At(n.specifiers)){let u=[],l=[];r.each(()=>{let p=r.node.type;if(p==="ExportNamespaceSpecifier"||p==="ExportDefaultSpecifier"||p==="ImportNamespaceSpecifier"||p==="ImportDefaultSpecifier")u.push(e());else if(p==="ExportSpecifier"||p==="ImportSpecifier")l.push(e());else throw new Xo(n,"specifier")},"specifiers"),a.push(Xe(", ",u)),l.length>0&&(u.length>0&&a.push(", "),l.length>1||u.length>0||n.specifiers.some(p=>de(p))?a.push(Q(["{",ie([t.bracketSpacing?me:se,Xe([",",me],l)]),ke(us(t)?",":""),t.bracketSpacing?me:se,"}"])):a.push(["{",t.bracketSpacing?" ":"",...l,t.bracketSpacing?" ":"","}"]))}else a.push("{}");return a}function UT(r,t){return r.type!=="ImportDeclaration"||At(r.specifiers)||r.importKind==="type"?!0:Fd(t,Ve(r),Ve(r.source)).trimEnd().endsWith("from")}function mz(r,t){var n,a;if((n=r.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let e=Fd(t,ze(r.source),(a=r.attributes)!=null&&a[0]?Ve(r.attributes[0]):ze(r)).trimStart();return e.startsWith("assert")?"assert":e.startsWith("with")||At(r.attributes)?"with":void 0}var yz=r=>{let{attributes:t}=r;if(t.length!==1)return!1;let[e]=t,{type:n,key:a,value:u}=e;return n==="ImportAttribute"&&(a.type==="Identifier"&&a.name==="type"||Zt(a)&&a.value==="type")&&Zt(u)&&!de(e)&&!de(a)&&!de(u)};function qT(r,t,e){let{node:n}=r;if(!n.source)return"";let a=mz(n,t);if(!a)return"";let u=Ag(r,t,e);return yz(n)&&(u=Xh(u)),[` ${a} `,u]}function Dz(r,t,e){let{node:n}=r,{type:a}=n,u=a.startsWith("Import"),l=u?"imported":"local",p=u?"local":"exported",h=n[l],d=n[p],m="",D="";return a==="ExportNamespaceSpecifier"||a==="ImportNamespaceSpecifier"?m="*":h&&(m=e(l)),d&&!gz(n)&&(D=e(p)),[Cg(a==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&D?" as ":"",D]}function gz(r){if(r.type!=="ImportSpecifier"&&r.type!=="ExportSpecifier")return!1;let{local:t,[r.type==="ImportSpecifier"?"imported":"exported"]:e}=r;if(t.type!==e.type||!QO(t,e))return!1;if(Zt(t))return t.value===e.value&&Or(t)===Or(e);switch(t.type){case"Identifier":return t.name===e.name;default:return!1}}function T0(r,t){return["...",t("argument"),ir(r,t)]}function xz(r){let t=[r];for(let e=0;e<t.length;e++){let n=t[e];for(let a of["test","consequent","alternate"]){let u=n[a];if(Wt(u))return!0;u.type==="ConditionalExpression"&&t.push(u)}}return!1}function Ez(r,t,e){let{node:n}=r,a=n.type==="ConditionalExpression",u=a?"alternate":"falseType",{parent:l}=r,p=a?e("test"):[e("checkType")," ","extends"," ",e("extendsType")];return l.type===n.type&&l[u]===n?Ln(2,p):p}var bz=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function Az(r){let{node:t}=r;if(t.type!=="ConditionalExpression")return!1;let e,n=t;for(let a=0;!e;a++){let u=r.getParentNode(a);if(u.type==="ChainExpression"&&u.expression===n||nt(u)&&u.callee===n||bt(u)&&u.object===n||u.type==="TSNonNullExpression"&&u.expression===n){n=u;continue}u.type==="NewExpression"&&u.callee===n||Nn(u)&&u.expression===n?(e=r.getParentNode(a+1),n=u):e=u}return n===t?!1:e[bz.get(e.type)]===n}function Cz(r,t,e){let{node:n}=r,a=n.type==="ConditionalExpression",u=a?"consequent":"trueType",l=a?"alternate":"falseType",p=a?["test"]:["checkType","extendsType"],h=n[u],d=n[l],m=[],D=!1,{parent:g}=r,x=g.type===n.type&&p.some(U=>g[U]===n),b=g.type===n.type&&!x,C,S,v=0;do S=C||n,C=r.getParentNode(v),v++;while(C&&C.type===n.type&&p.every(U=>C[U]!==S));let F=C||g,w=S;if(a&&(Wt(n[p[0]])||Wt(h)||Wt(d)||xz(w))){D=!0,b=!0;let U=O=>[ke("("),ie([se,O]),se,ke(")")],Y=O=>O.type==="NullLiteral"||O.type==="Literal"&&O.value===null||O.type==="Identifier"&&O.name==="undefined";m.push(" ? ",Y(h)?e(u):U(e(u))," : ",d.type===n.type||Y(d)?e(l):U(e(l)))}else{let U=O=>t.useTabs?ie(e(O)):Ln(2,e(O)),Y=[me,"? ",h.type===n.type?ke("","("):"",U(u),h.type===n.type?ke("",")"):"",me,": ",U(l)];m.push(g.type!==n.type||g[l]===n||x?Y:t.useTabs?LS(ie(Y)):Ln(Math.max(0,t.tabWidth-2),Y))}let T=U=>g===F?Q(U):U,B=!D&&(bt(g)||g.type==="NGPipeExpression"&&g.left===n)&&!g.computed,_=Az(r),V=T([Ez(r,t,e),b?m:ie(m),a&&B&&!_?se:""]);return x||_?Q([ie([se,V]),se]):V}function Fz(r,t){return(bt(t)||t.type==="NGPipeExpression"&&t.left===r)&&!t.computed}function vz(r,t,e,n){return[...r.map(a=>Wi(a)),Wi(t),Wi(e)].flat().some(a=>_n(a)&&Qr(n.originalText,Ve(a),ze(a)))}var Sz=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function Tz(r){let{node:t}=r;if(t.type!=="ConditionalExpression")return!1;let e,n=t;for(let a=0;!e;a++){let u=r.getParentNode(a);if(u.type==="ChainExpression"&&u.expression===n||nt(u)&&u.callee===n||bt(u)&&u.object===n||u.type==="TSNonNullExpression"&&u.expression===n){n=u;continue}u.type==="NewExpression"&&u.callee===n||Nn(u)&&u.expression===n?(e=r.getParentNode(a+1),n=u):e=u}return n===t?!1:e[Sz.get(e.type)]===n}var Py=r=>[ke("("),ie([se,r]),se,ke(")")];function Fg(r,t,e,n){if(!t.experimentalTernaries)return Cz(r,t,e);let{node:a}=r,u=a.type==="ConditionalExpression",l=ti(a),p=u?"consequent":"trueType",h=u?"alternate":"falseType",d=u?["test"]:["checkType","extendsType"],m=a[p],D=a[h],g=d.map(bn=>a[bn]),{parent:x}=r,b=x.type===a.type,C=b&&d.some(bn=>x[bn]===a),S=b&&x[h]===a,v=m.type===a.type,F=D.type===a.type,w=F||S,T=t.tabWidth>2||t.useTabs,B,_,V=0;do _=B||a,B=r.getParentNode(V),V++;while(B&&B.type===a.type&&d.every(bn=>B[bn]!==_));let U=B||x,Y=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(x.type==="AssignmentExpression"||x.type==="VariableDeclarator"||x.type==="ClassProperty"||x.type==="PropertyDefinition"||x.type==="ClassPrivateProperty"||x.type==="ObjectProperty"||x.type==="Property"),O=(x.type==="ReturnStatement"||x.type==="ThrowStatement")&&!(v||F),H=u&&U.type==="JSXExpressionContainer"&&r.grandparent.type!=="JSXAttribute",re=Tz(r),X=Fz(a,x),ge=l&&pi(r,t),Be=T?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",J=vz(g,m,D,t)||v||F,ce=!w&&!b&&!l&&(H?m.type==="NullLiteral"||m.type==="Literal"&&m.value===null:ng(m,t)&&h2(a.test,3)),oe=w||S||l&&!b||b&&u&&h2(a.test,1)||ce,ve=[];!v&&de(m,xe.Dangling)&&r.call(()=>{ve.push(Et(r,t),le)},"consequent");let be=[];de(a.test,xe.Dangling)&&r.call(()=>{be.push(Et(r,t))},"test"),!F&&de(D,xe.Dangling)&&r.call(()=>{be.push(Et(r,t))},"alternate"),de(a,xe.Dangling)&&be.push(Et(r,t));let j=Symbol("test"),ee=Symbol("consequent"),fe=Symbol("test-and-consequent"),he=u?[Py(e("test")),a.test.type==="ConditionalExpression"?Ys:""]:[e("checkType")," ","extends"," ",ti(a.extendsType)||a.extendsType.type==="TSMappedType"?e("extendsType"):Q(Py(e("extendsType")))],Ce=Q([he," ?"],{id:j}),Oe=e(p),Ue=ie([v||H&&(Wt(m)||b||w)?le:me,ve,Oe]),Mt=oe?Q([Ce,w?Ue:ke(Ue,Q(Ue,{id:ee}),{groupId:j})],{id:fe}):[Ce,Ue],ht=e(h),en=ce?ke(ht,LS(Py(ht)),{groupId:fe}):ht,dr=[Mt,be.length>0?[ie([le,be]),le]:F?le:ce?ke(me," ",{groupId:fe}):me,":",F?" ":T?oe?ke(Be,ke(w||ce?" ":Be," "),{groupId:fe}):ke(Be," "):" ",F?en:Q([ie(en),H&&!ce?se:""]),X&&!re?se:"",J?Ys:""];return Y&&!J?Q(ie([se,Q(dr)])):Y||O?Q(ie(dr)):re||l&&C?Q([ie([se,dr]),ge?se:""]):x===U?Q(dr):dr}function wz(r,t,e,n){let{node:a}=r;if(tg(a))return az(r,t);switch(a.type){case"JsExpressionRoot":return e("node");case"JsonRoot":return[Et(r,t),e("node"),le];case"File":return sz(r,t,e)??e("program");case"ExpressionStatement":return nz(r,t,e);case"ChainExpression":return e("expression");case"ParenthesizedExpression":return!de(a.expression)&&(Mn(a.expression)||or(a.expression))?["(",e("expression"),")"]:Q(["(",ie([se,e("expression")]),se,")"]);case"AssignmentExpression":return _j(r,t,e);case"VariableDeclarator":return jj(r,t,e);case"BinaryExpression":case"LogicalExpression":return eT(r,t,e);case"AssignmentPattern":return[e("left")," = ",e("right")];case"OptionalMemberExpression":case"MemberExpression":return Ij(r,t,e);case"MetaProperty":return[e("meta"),".",e("property")];case"BindExpression":return Bj(r,t,e);case"Identifier":return[a.name,Ar(r),ZS(r),ir(r,e)];case"V8IntrinsicIdentifier":return["%",a.name];case"SpreadElement":return T0(r,e);case"RestElement":return T0(r,e);case"FunctionDeclaration":case"FunctionExpression":return mT(r,t,e,n);case"ArrowFunctionExpression":return M$(r,t,e,n);case"YieldExpression":return[`yield${a.delegate?"*":""}`,a.argument?[" ",e("argument")]:""];case"AwaitExpression":{let u=["await"];if(a.argument){u.push(" ",e("argument"));let{parent:l}=r;if(nt(l)&&l.callee===a||bt(l)&&l.object===a){u=[ie([se,...u]),se];let p=r.findAncestor(h=>h.type==="AwaitExpression"||h.type==="BlockStatement");if((p==null?void 0:p.type)!=="AwaitExpression"||!gr(p.argument,h=>h===a))return Q(u)}}return u}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return _T(r,t,e);case"ImportDeclaration":return pz(r,t,e);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Dz(r,t,e);case"ImportAttribute":return Sy(r,t,e);case"Program":case"BlockStatement":case"StaticBlock":return TT(r,t,e);case"ClassBody":return Eg(r,t,e);case"ThrowStatement":return e$(r,t,e);case"ReturnStatement":return Zj(r,t,e);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Kh(r,t,e);case"ObjectExpression":case"ObjectPattern":return Ag(r,t,e);case"Property":return Rc(a)?F0(r,t,e):Sy(r,t,e);case"ObjectProperty":return Sy(r,t,e);case"ObjectMethod":return F0(r,t,e);case"Decorator":return["@",e("expression")];case"ArrayExpression":case"ArrayPattern":return yg(r,t,e);case"SequenceExpression":{let{parent:u}=r;if(u.type==="ExpressionStatement"||u.type==="ForStatement"){let p=[];return r.each(({isFirst:h})=>{h?p.push(e()):p.push(",",ie([me,e()]))},"expressions"),Q(p)}let l=Xe([",",me],r.map(e,"expressions"));return(u.type==="ReturnStatement"||u.type==="ThrowStatement")&&r.key==="argument"||u.type==="ArrowFunctionExpression"&&r.key==="body"?Q(ke([ie([se,l]),se],l)):Q(l)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[e("value"),t.semi?";":""];case"UnaryExpression":{let u=[a.operator];return/[a-z]$/u.test(a.operator)&&u.push(" "),de(a.argument)?u.push(Q(["(",ie([se,e("argument")]),se,")"])):u.push(e("argument")),u}case"UpdateExpression":return[a.prefix?a.operator:"",e("argument"),a.prefix?"":a.operator];case"ConditionalExpression":return Fg(r,t,e,n);case"VariableDeclaration":{let u=r.map(e,"declarations"),l=r.parent,p=l.type==="ForStatement"||l.type==="ForInStatement"||l.type==="ForOfStatement",h=a.declarations.some(m=>m.init),d;return u.length===1&&!de(a.declarations[0])?d=u[0]:u.length>0&&(d=ie(u[0])),Q([Yr(r),a.kind,d?[" ",d]:"",ie(u.slice(1).map(m=>[",",h&&!p?le:me,m])),t.semi&&!(p&&l.body!==a)?";":""])}case"WithStatement":return Q(["with (",e("object"),")",Oa(a.body,e("body"))]);case"IfStatement":{let u=Oa(a.consequent,e("consequent")),l=[Q(["if (",Q([ie([se,e("test")]),se]),")",u])];if(a.alternate){let p=de(a.consequent,xe.Trailing|xe.Line)||DS(a),h=a.consequent.type==="BlockStatement"&&!p;l.push(h?" ":le),de(a,xe.Dangling)&&l.push(Et(r,t),p?le:" "),l.push("else",Q(Oa(a.alternate,e("alternate"),a.alternate.type==="IfStatement")))}return l}case"ForStatement":{let u=Oa(a.body,e("body")),l=Et(r,t),p=l?[l,se]:"";return!a.init&&!a.test&&!a.update?[p,Q(["for (;;)",u])]:[p,Q(["for (",Q([ie([se,e("init"),";",me,e("test"),";",a.update?[me,e("update")]:ke("",me)]),se]),")",u])]}case"WhileStatement":return Q(["while (",Q([ie([se,e("test")]),se]),")",Oa(a.body,e("body"))]);case"ForInStatement":return Q(["for (",e("left")," in ",e("right"),")",Oa(a.body,e("body"))]);case"ForOfStatement":return Q(["for",a.await?" await":""," (",e("left")," of ",e("right"),")",Oa(a.body,e("body"))]);case"DoWhileStatement":{let u=Oa(a.body,e("body"));return[Q(["do",u]),a.body.type==="BlockStatement"?" ":le,"while (",Q([ie([se,e("test")]),se]),")",t.semi?";":""]}case"DoExpression":return[a.async?"async ":"","do ",e("body")];case"BreakStatement":case"ContinueStatement":return[a.type==="BreakStatement"?"break":"continue",a.label?[" ",e("label")]:"",t.semi?";":""];case"LabeledStatement":return[e("label"),`:${a.body.type==="EmptyStatement"&&!de(a.body,xe.Leading)?"":" "}`,e("body")];case"TryStatement":return["try ",e("block"),a.handler?[" ",e("handler")]:"",a.finalizer?[" finally ",e("finalizer")]:""];case"CatchClause":if(a.param){let u=de(a.param,p=>!_n(p)||p.leading&&Mr(t.originalText,ze(p))||p.trailing&&Mr(t.originalText,Ve(p),{backwards:!0})),l=e("param");return["catch ",u?["(",ie([se,l]),se,") "]:["(",l,") "],e("body")]}return["catch ",e("body")];case"SwitchStatement":return[Q(["switch (",ie([se,e("discriminant")]),se,")"])," {",a.cases.length>0?ie([le,Xe(le,r.map(({node:u,isLast:l})=>[e(),!l&&os(u,t)?le:""],"cases"))]):"",le,"}"];case"SwitchCase":{let u=[];a.test?u.push("case ",e("test"),":"):u.push("default:"),de(a,xe.Dangling)&&u.push(" ",Et(r,t));let l=a.consequent.filter(p=>p.type!=="EmptyStatement");if(l.length>0){let p=v0(r,t,e,"consequent");u.push(l.length===1&&l[0].type==="BlockStatement"?[" ",p]:ie([le,p]))}return u}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return bg(r,t,e);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return IT(r,t,e);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return MT(r,t,e);case"TemplateElement":return ru(a.value.raw);case"TemplateLiteral":return HS(r,t,e);case"TaggedTemplateExpression":return r_(r,t,e);case"PrivateIdentifier":return["#",a.name];case"PrivateName":return["#",e("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",e("body")];case"VoidPattern":return"void";case"EmptyStatement":if(ZD(r))return";";case"InterpreterDirective":default:throw new Xo(a,"ESTree")}}function HT(r){return[r("elementType"),"[]"]}var Nz=Me(["SatisfiesExpression","TSSatisfiesExpression"]);function VT(r,t,e){let{parent:n,node:a,key:u}=r,l=a.type==="AsConstExpression"?"const":e("typeAnnotation"),p=[e("expression")," ",Nz(a)?"satisfies":"as"," ",l];return u==="callee"&&nt(n)||u==="object"&&bt(n)?Q([ie([se,...p]),se]):p}function Bz(r,t,e){let{node:n}=r,a=[Yr(r),"component"];n.id&&a.push(" ",e("id")),a.push(e("typeParameters"));let u=Pz(r,t,e);return n.rendersType?a.push(Q([u," ",e("rendersType")])):a.push(Q([u])),n.body&&a.push(" ",e("body")),t.semi&&n.type==="DeclareComponent"&&a.push(";"),a}function Pz(r,t,e){let{node:n}=r,a=n.params;if(n.rest&&(a=[...a,n.rest]),a.length===0)return["(",Et(r,t,{filter:l=>On(t.originalText,ze(l))===")"}),")"];let u=[];return Iz(r,(l,p)=>{let h=p===a.length-1;h&&n.rest&&u.push("..."),u.push(e()),!h&&(u.push(","),os(a[p],t)?u.push(le,le):u.push(me))}),["(",ie([se,...u]),ke(us(t,"all")&&!kz(n,a)?",":""),se,")"]}function kz(r,t){var e;return r.rest||((e=it(0,t,-1))==null?void 0:e.type)==="RestElement"}function Iz(r,t){let{node:e}=r,n=0,a=u=>t(u,n++);r.each(a,"params"),e.rest&&r.call(a,"rest")}function Mz(r,t,e){let{node:n}=r;return n.shorthand?e("local"):[e("name")," as ",e("local")]}function Oz(r,t,e){let{node:n}=r,a=[];return n.name&&a.push(e("name"),n.optional?"?: ":": "),a.push(e("typeAnnotation")),a}function JT(r,t,e){return Ag(r,t,e)}function Lz(r,t,e){let{node:n}=r;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",JT(r,t,e)]}function XT(r,t){let{node:e}=r,n=t("id");e.computed&&(n=["[",n,"]"]);let a="";return e.initializer&&(a=t("initializer")),e.init&&(a=t("init")),a?[n," = ",a]:n}function GT(r,t){let{node:e}=r;return[Yr(r),e.const?"const ":"","enum ",t("id")," ",t("body")]}function KT(r,t,e){let{node:n}=r,a=[bd(r)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&a.push("new ");let u=hu(r,t,e,!1,!0),l=[];return n.type==="FunctionTypeAnnotation"?l.push(Rz(r)?" => ":": ",e("returnType")):l.push(ir(r,e,"returnType")),Jo(n,l)&&(u=Q(u)),a.push(u,l),[Q(a),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?js(r,t):""]}function Rz(r){var n;let{node:t,parent:e}=r;return t.type==="FunctionTypeAnnotation"&&(dS(e)||!((e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.variance&&!e.optional&&Dd(e,t)||e.type==="ObjectTypeCallProperty"||((n=r.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function _z(r,t,e){let{node:n}=r,a=["hook"];n.id&&a.push(" ",e("id"));let u=hu(r,t,e,!1,!0),l=Cd(r,e),p=Jo(n,l);return a.push(Q([p?Q(u):u,l]),n.body?" ":"",e("body")),a}function jz(r,t,e){let{node:n}=r,a=[Yr(r),"hook"];return n.id&&a.push(" ",e("id")),t.semi&&a.push(";"),a}function L2(r){var e;let{node:t}=r;return t.type==="HookTypeAnnotation"&&((e=r.getParentNode(2))==null?void 0:e.type)==="DeclareHook"}function $z(r,t,e){let{node:n}=r,a=hu(r,t,e,!1,!0),u=[L2(r)?": ":" => ",e("returnType")];return Q([L2(r)?"":"hook ",Jo(n,u)?Q(a):a,u])}function QT(r,t,e){return[e("objectType"),Ar(r),"[",e("indexType"),"]"]}function YT(r,t,e){return["infer ",e("typeParameter")]}function WT(r,t,e){let n=!1;return Q(r.map(({isFirst:a,previous:u,node:l,index:p})=>{let h=e();if(a)return h;let d=ei(l),m=ei(u);return m&&d?[" & ",n?ie(h):h]:!m&&!d||Pn(t.originalText,l)?t.experimentalOperatorPosition==="start"?ie([me,"& ",h]):ie([" &",me,h]):(p>1&&(n=!0),[" & ",p>1?ie(h):h])},"types"))}function zz(r){switch(r){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function Uz(r,t,e){let{node:n}=r;return[Q([n.variance?e("variance"):"","[",ie([e("keyTparam")," in ",e("sourceType")]),"]",zz(n.optional),": ",e("propType")]),js(r,t)]}function R2(r,t){return r==="+"||r==="-"?r+t:t}function qz(r,t,e){let{node:n}=r,a=!1;if(t.objectWrap==="preserve"){let u=Ve(n),l=Fd(t,u+1,Ve(n.key)),p=u+1+l.search(/\S/u);Qr(t.originalText,u,p)&&(a=!0)}return Q(["{",ie([t.bracketSpacing?me:se,de(n,xe.Dangling)?Q([Et(r,t),le]):"",Q([n.readonly?[R2(n.readonly,"readonly")," "]:"","[",e("key")," in ",e("constraint"),n.nameType?[" as ",e("nameType")]:"","]",n.optional?R2(n.optional,"?"):"",n.typeAnnotation?": ":"",e("typeAnnotation")]),t.semi?ke(";"):""]),t.bracketSpacing?me:se,"}"],{shouldBreak:a})}function Hz(r,t,e){let{node:n}=r;return[Q(["match (",ie([se,e("argument")]),se,")"])," {",n.cases.length>0?ie([le,Xe(le,r.map(({node:a,isLast:u})=>[e(),!u&&os(a,t)?le:""],"cases"))]):"",le,"}"]}function Vz(r,t,e){let{node:n}=r,a=de(n,xe.Dangling)?[" ",Et(r,t)]:[],u=n.type==="MatchStatementCase"?[" ",e("body")]:ie([me,e("body"),","]);return[e("pattern"),n.guard?Q([ie([me,"if (",e("guard"),")"])]):"",Q([" =>",a,u])]}function Jz(r,t,e){let{node:n}=r;switch(n.type){case"MatchOrPattern":return Kz(r,t,e);case"MatchAsPattern":return[e("pattern")," as ",e("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return e("literal");case"MatchUnaryPattern":return[n.operator,e("argument")];case"MatchIdentifierPattern":return e("id");case"MatchMemberPattern":{let a=n.property.type==="Identifier"?[".",e("property")]:["[",ie([se,e("property")]),se,"]"];return Q([e("base"),a])}case"MatchBindingPattern":return[n.kind," ",e("id")];case"MatchObjectPattern":{let a=r.map(e,"properties");return n.rest&&a.push(e("rest")),Q(["{",ie([se,Xe([",",me],a)]),n.rest?"":ke(","),se,"}"])}case"MatchArrayPattern":{let a=r.map(e,"elements");return n.rest&&a.push(e("rest")),Q(["[",ie([se,Xe([",",me],a)]),n.rest?"":ke(","),se,"]"])}case"MatchObjectPatternProperty":return n.shorthand?e("pattern"):Q([e("key"),":",ie([me,e("pattern")])]);case"MatchRestPattern":{let a=["..."];return n.argument&&a.push(e("argument")),a}}}var ZT=Me(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function Xz(r){let{patterns:t}=r;if(t.some(n=>de(n)))return!1;let e=t.find(n=>n.type==="MatchObjectPattern");return e?t.every(n=>n===e||ZT(n)):!1}function Gz(r){return ZT(r)||r.type==="MatchObjectPattern"?!0:r.type==="MatchOrPattern"?Xz(r):!1}function Kz(r,t,e){let{node:n}=r,{parent:a}=r,u=a.type!=="MatchStatementCase"&&a.type!=="MatchExpressionCase"&&a.type!=="MatchArrayPattern"&&a.type!=="MatchObjectPatternProperty"&&!Pn(t.originalText,n),l=Gz(n),p=r.map(()=>{let d=e();return l||(d=Ln(2,d)),yn(r,d,t)},"patterns");if(l)return Xe(" | ",p);let h=[ke(["| "]),Xe([me,"| "],p)];return pi(r,t)?Q([ie([ke([se]),h]),se]):a.type==="MatchArrayPattern"&&a.elements.length>1?Q([ie([ke(["(",se]),h]),se,ke(")")]):Q(u?ie(h):h)}function Qz(r,t,e){let{node:n}=r,a=[Yr(r),"opaque type ",e("id"),e("typeParameters")];if(n.supertype&&a.push(": ",e("supertype")),n.lowerBound||n.upperBound){let u=[];n.lowerBound&&u.push(ie([me,"super ",e("lowerBound")])),n.upperBound&&u.push(ie([me,"extends ",e("upperBound")])),a.push(Q(u))}return n.impltype&&a.push(" = ",e("impltype")),a.push(t.semi?";":""),a}function e3(r,t,e){let{node:n}=r;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[e("label"),": "]:[],e("typeAnnotation")]}function t3(r,t,e){let{node:n}=r;return[n.variance?e("variance"):"",e("label"),n.optional?"?":"",": ",e("elementType")]}function r3(r,t,e){let{node:n}=r,a=[Yr(r),"type ",e("id"),e("typeParameters")],u=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[$c(r,t,e,a," =",u),t.semi?";":""]}function Yz(r,t,e){let{node:n}=r;return hr(n).length===1&&n.type.startsWith("TS")&&!n[e][0].constraint&&r.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function pc(r,t,e,n){let{node:a}=r;if(!a[n])return"";if(!Array.isArray(a[n]))return e(n);let u=gd(r.grandparent),l=r.match(h=>!(h[n].length===1&&ei(h[n][0])),void 0,(h,d)=>d==="typeAnnotation",h=>h.type==="Identifier",hT);if(a[n].length===0||!l&&(u||a[n].length===1&&(a[n][0].type==="NullableTypeAnnotation"||xj(a[n][0]))))return["<",Xe(", ",r.map(e,n)),Wz(r,t),">"];let p=a.type==="TSTypeParameterInstantiation"?"":Yz(r,t,n)?",":us(t)?ke(","):"";return Q(["<",ie([se,Xe([",",me],r.map(e,n))]),p,se,">"])}function Wz(r,t){let{node:e}=r;if(!de(e,xe.Dangling))return"";let n=!de(e,xe.Line),a=Et(r,t,{indent:!n});return n?a:[a,le]}function n3(r,t,e){let{node:n}=r,a=[n.const?"const ":""],u=n.type==="TSTypeParameter"?e("name"):n.name;if(n.variance&&a.push(e("variance")),n.in&&a.push("in "),n.out&&a.push("out "),a.push(u),n.bound&&(n.usesExtendsBound&&a.push(" extends "),a.push(ir(r,e,"bound"))),n.constraint){let l=Symbol("constraint");a.push(" extends",Q(ie(me),{id:l}),ns,bc(e("constraint"),{groupId:l}))}if(n.default){let l=Symbol("default");a.push(" =",Q(ie(me),{id:l}),ns,bc(e("default"),{groupId:l}))}return Q(a)}function s3(r,t){let{node:e}=r;return[e.type==="TSTypePredicate"&&e.asserts?"asserts ":e.type==="TypePredicate"&&e.kind?`${e.kind} `:"",t("parameterName"),e.typeAnnotation?[" is ",ir(r,t)]:""]}function a3({node:r},t){let e=r.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(e),t("typeArguments")]}function Zz(r,t,e){let{node:n}=r;if(oS(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return Bz(r,t,e);case"ComponentParameter":return Mz(r,t,e);case"ComponentTypeParameter":return Oz(r,t,e);case"HookDeclaration":return _z(r,t,e);case"DeclareHook":return jz(r,t,e);case"HookTypeAnnotation":return $z(r,t,e);case"DeclareFunction":return[Yr(r),"function ",e("id"),e("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",e("id")," ",e("body")];case"DeclareModuleExports":return["declare module.exports",ir(r,e),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",e("id")," ",e("body")];case"DeclareVariable":return[Yr(r),n.kind??"var"," ",e("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return _T(r,t,e);case"DeclareOpaqueType":case"OpaqueType":return Qz(r,t,e);case"DeclareTypeAlias":case"TypeAlias":return r3(r,t,e);case"IntersectionTypeAnnotation":return WT(r,t,e);case"UnionTypeAnnotation":return tT(r,t,e);case"ConditionalTypeAnnotation":return Fg(r,t,e);case"InferTypeAnnotation":return YT(r,t,e);case"FunctionTypeAnnotation":return KT(r,t,e);case"TupleTypeAnnotation":return yg(r,t,e);case"TupleTypeLabeledElement":return t3(r,t,e);case"TupleTypeSpreadElement":return e3(r,t,e);case"GenericTypeAnnotation":return[e("id"),pc(r,t,e,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return QT(r,t,e);case"TypeAnnotation":return sT(r,t,e);case"TypeParameter":return n3(r,t,e);case"TypeofTypeAnnotation":return a3(r,e);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return HT(e);case"DeclareEnum":case"EnumDeclaration":return GT(r,e);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return Lz(r,t,e);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return XT(r,e);case"FunctionTypeParam":{let a=n.name?e("name"):r.parent.this===n?"this":"";return[a,Ar(r),a?": ":"",e("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return bg(r,t,e);case"ObjectTypeAnnotation":return Eg(r,t,e);case"ClassImplements":case"InterfaceExtends":return[e("id"),e("typeParameters")];case"NullableTypeAnnotation":return["?",e("typeAnnotation")];case"Variance":{let{kind:a}=n;return a==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",e("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",e("value"),js(r,t)];case"ObjectTypeMappedTypeProperty":return Uz(r,t,e);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?e("variance"):"","[",e("id"),n.id?": ":"",e("key"),"]: ",e("value"),js(r,t)];case"ObjectTypeProperty":{let a="";return n.proto?a="proto ":n.static&&(a="static "),[a,n.kind!=="init"?n.kind+" ":"",n.variance?e("variance"):"",zc(r,t,e),Ar(r),Rc(n)?"":": ",e("value"),js(r,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",e("id"),"]]",Ar(r),n.method?"":": ",e("value"),js(r,t)];case"ObjectTypeSpreadProperty":return T0(r,e);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[e("qualification"),".",e("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return ru(No(Or(n),t));case"NumberLiteralTypeAnnotation":return ko(Or(n));case"BigIntLiteralTypeAnnotation":return S0(Or(n));case"TypeCastExpression":return["(",e("expression"),ir(r,e),")"];case"TypePredicate":return s3(r,e);case"TypeOperator":return[n.operator," ",e("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return pc(r,t,e,"params");case"InferredPredicate":case"DeclaredPredicate":return[r.key==="predicate"&&r.parent.type!=="DeclareFunction"&&!r.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",e("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return VT(r,t,e);case"MatchExpression":case"MatchStatement":return Hz(r,t,e);case"MatchExpressionCase":case"MatchStatementCase":return Vz(r,t,e);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return Jz(r,t,e)}}function eU(r,t,e){let{node:n}=r,a=n.parameters.length>1?ke(us(t)?",":""):"",u=Q([ie([se,Xe([", ",se],r.map(e,"parameters"))]),a,se]);return[r.key==="body"&&r.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?u:"","]",ir(r,e),js(r,t)]}function _2(r,t,e){let{node:n}=r;return[n.postfix?"":e,ir(r,t),n.postfix?e:""]}function tU(r,t,e){let{node:n}=r,a=[],u=n.kind&&n.kind!=="method"?`${n.kind} `:"";a.push(Ad(n),u,n.computed?"[":"",e("key"),n.computed?"]":"",Ar(r));let l=hu(r,t,e,!1,!0),p=ir(r,e,"returnType"),h=Jo(n,p);return a.push(h?Q(l):l),n.returnType&&a.push(Q(p)),[Q(a),js(r,t)]}function rU(r,t,e){let{node:n}=r;return[Yr(r),n.kind==="global"?"":`${n.kind} `,e("id"),n.body?[" ",Q(e("body"))]:t.semi?";":""]}function nU(r,t,e){let{node:n}=r,a=!(or(n.expression)||Mn(n.expression)),u=Q(["<",ie([se,e("typeAnnotation")]),se,">"]),l=[ke("("),ie([se,e("expression")]),se,ke(")")];return a?zi([[u,e("expression")],[u,Q(l,{shouldBreak:!0})],[u,e("expression")]]):Q([u,e("expression")])}function sU(r,t,e){let{node:n}=r;if(n.type.startsWith("TS")){if(lS(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return nU(r,t,e);case"TSDeclareFunction":return mT(r,t,e);case"TSExportAssignment":return["export = ",e("expression"),t.semi?";":""];case"TSModuleBlock":return TT(r,t,e);case"TSInterfaceBody":case"TSTypeLiteral":return Eg(r,t,e);case"TSTypeAliasDeclaration":return r3(r,t,e);case"TSQualifiedName":return[e("left"),".",e("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return IT(r,t,e);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return MT(r,t,e);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[e("expression"),e("typeArguments")];case"TSTemplateLiteralType":return HS(r,t,e);case"TSNamedTupleMember":return t3(r,t,e);case"TSRestType":return e3(r,t,e);case"TSOptionalType":return[e("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return bg(r,t,e);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return pc(r,t,e,"params");case"TSTypeParameter":return n3(r,t,e);case"TSAsExpression":case"TSSatisfiesExpression":return VT(r,t,e);case"TSArrayType":return HT(e);case"TSPropertySignature":return[n.readonly?"readonly ":"",zc(r,t,e),Ar(r),ir(r,e),js(r,t)];case"TSParameterProperty":return[Ad(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",e("parameter")];case"TSTypeQuery":return a3(r,e);case"TSIndexSignature":return eU(r,t,e);case"TSTypePredicate":return s3(r,e);case"TSNonNullExpression":return[e("expression"),"!"];case"TSImportType":return[Kh(r,t,e),n.qualifier?[".",e("qualifier")]:"",pc(r,t,e,"typeArguments")];case"TSLiteralType":return e("literal");case"TSIndexedAccessType":return QT(r,t,e);case"TSTypeOperator":return[n.operator," ",e("typeAnnotation")];case"TSMappedType":return qz(r,t,e);case"TSMethodSignature":return tU(r,t,e);case"TSNamespaceExportDeclaration":return["export as namespace ",e("id"),t.semi?";":""];case"TSEnumDeclaration":return GT(r,e);case"TSEnumBody":return JT(r,t,e);case"TSEnumMember":return XT(r,e);case"TSImportEqualsDeclaration":return["import ",jT(n,!1),e("id")," = ",e("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return Kh(r,t,e);case"TSModuleDeclaration":return rU(r,t,e);case"TSConditionalType":return Fg(r,t,e);case"TSInferType":return YT(r,t,e);case"TSIntersectionType":return WT(r,t,e);case"TSUnionType":return tT(r,t,e);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return KT(r,t,e);case"TSTupleType":return yg(r,t,e);case"TSTypeReference":return[e("typeName"),pc(r,t,e,"typeArguments")];case"TSTypeAnnotation":return sT(r,t,e);case"TSEmptyBodyFunctionExpression":return Dg(r,t,e);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return _2(r,e,"?");case"TSJSDocNonNullableType":return _2(r,e,"!");case"TSParenthesizedType":default:throw new Xo(n,"TypeScript")}}}function aU(r,t,e,n){for(let a of[T$,A$,Zz,sU,wz]){let u=a(r,t,e,n);if(u!==void 0)return u}}var iU=Me(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function uU(r,t,e,n){var D;r.isRoot&&((D=t.__onHtmlBindingRoot)==null||D.call(t,r.node,t));let{node:a}=r,u=xg(r)?t.originalText.slice(Ve(a),ze(a)):aU(r,t,e,n);if(!u)return"";if(iU(a))return u;let l=At(a.decorators),p=k$(r,t,e),h=a.type==="ClassExpression";if(l&&!h)return D0(u,g=>Q([p,g]));let d=pi(r,t),m=r$(r,t);return!p&&!d&&!m?u:D0(u,g=>[m?";":"",d?"(":"",d&&h&&l?[ie([me,p,g]),me]:[p,g],d?")":""])}var j2=uU,oU={experimental_avoidAstMutation:!0},lU=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],i3={};JD(i3,{getVisitorKeys:()=>hU,massageAstNode:()=>u3,print:()=>dU});var eo=[[]],cU={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:eo[0],BooleanLiteral:eo[0],StringLiteral:eo[0],NumericLiteral:eo[0],Identifier:eo[0],TemplateLiteral:["quasis"],TemplateElement:eo[0]},pU=iS(cU),hU=pU;function dU(r,t,e){let{node:n}=r;switch(n.type){case"JsonRoot":return[e("node"),le];case"ArrayExpression":{if(n.elements.length===0)return"[]";let a=r.map(()=>r.node===null?"null":e(),"elements");return["[",ie([le,Xe([",",le],a)]),le,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",ie([le,Xe([",",le],r.map(e,"properties"))]),le,"}"];case"ObjectProperty":return[e("key"),": ",e("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,e("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return $2(r)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return $2(r)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return e(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Xo(n,"JSON")}}function $2(r){return r.key==="key"&&r.parent.type==="ObjectProperty"}var fU=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function u3(r,t){let{type:e}=r;if(e==="ObjectProperty"){let{key:n}=r;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(e==="UnaryExpression"&&r.operator==="+")return t.argument;if(e==="ArrayExpression"){for(let[n,a]of r.elements.entries())a===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(e==="TemplateLiteral")return{type:"StringLiteral",value:r.quasis[0].value.cooked}}u3.ignoredProperties=fU;var Ql={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},La="JavaScript",mU={arrowParens:{category:La,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Ql.bracketSameLine,objectWrap:Ql.objectWrap,bracketSpacing:Ql.bracketSpacing,jsxBracketSameLine:{category:La,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:La,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:La,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:La,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Ql.singleQuote,jsxSingleQuote:{category:La,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:La,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:La,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Ql.singleAttributePerLine},yU=mU,DU={estree:eS,"estree-json":i3},gU=[...yO,...lU];async function xU(r){const t=r.trim();if(!t)return r;try{return(await yF.format(t,{parser:"json5",plugins:[Dv,Zv],tabWidth:2,trailingComma:"none"})).trim()}catch{return r}}var EU=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,bU=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,AU=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,ky={Space_Separator:EU,ID_Start:bU,ID_Continue:AU},Rt={isSpaceSeparator(r){return typeof r=="string"&&ky.Space_Separator.test(r)},isIdStartChar(r){return typeof r=="string"&&(r>="a"&&r<="z"||r>="A"&&r<="Z"||r==="$"||r==="_"||ky.ID_Start.test(r))},isIdContinueChar(r){return typeof r=="string"&&(r>="a"&&r<="z"||r>="A"&&r<="Z"||r>="0"&&r<="9"||r==="$"||r==="_"||r===""||r===""||ky.ID_Continue.test(r))},isDigit(r){return typeof r=="string"&&/[0-9]/.test(r)},isHexDigit(r){return typeof r=="string"&&/[0-9A-Fa-f]/.test(r)}};let w0,br,_s,Qh,ri,kn,Qt,vg,hc;var CU=function(t,e){w0=String(t),br="start",_s=[],Qh=0,ri=1,kn=0,Qt=void 0,vg=void 0,hc=void 0;do Qt=FU(),TU[br]();while(Qt.type!=="eof");return typeof e=="function"?N0({"":hc},"",e):hc};function N0(r,t,e){const n=r[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let a=0;a<n.length;a++){const u=String(a),l=N0(n,u,e);l===void 0?delete n[u]:Object.defineProperty(n,u,{value:l,writable:!0,enumerable:!0,configurable:!0})}else for(const a in n){const u=N0(n,a,e);u===void 0?delete n[a]:Object.defineProperty(n,a,{value:u,writable:!0,enumerable:!0,configurable:!0})}return e.call(r,t,n)}let He,Re,tc,ks,We;function FU(){for(He="default",Re="",tc=!1,ks=1;;){We=qs();const r=o3[He]();if(r)return r}}function qs(){if(w0[Qh])return String.fromCodePoint(w0.codePointAt(Qh))}function ue(){const r=qs();return r===`
|
|
349
|
+
`?(ri++,kn=0):r?kn+=r.length:kn++,r&&(Qh+=r.length),r}const o3={default(){switch(We){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
|
|
350
|
+
`:case"\r":case"\u2028":case"\u2029":ue();return;case"/":ue(),He="comment";return;case void 0:return ue(),St("eof")}if(Rt.isSpaceSeparator(We)){ue();return}return o3[br]()},comment(){switch(We){case"*":ue(),He="multiLineComment";return;case"/":ue(),He="singleLineComment";return}throw Tt(ue())},multiLineComment(){switch(We){case"*":ue(),He="multiLineCommentAsterisk";return;case void 0:throw Tt(ue())}ue()},multiLineCommentAsterisk(){switch(We){case"*":ue();return;case"/":ue(),He="default";return;case void 0:throw Tt(ue())}ue(),He="multiLineComment"},singleLineComment(){switch(We){case`
|
|
351
|
+
`:case"\r":case"\u2028":case"\u2029":ue(),He="default";return;case void 0:return ue(),St("eof")}ue()},value(){switch(We){case"{":case"[":return St("punctuator",ue());case"n":return ue(),ki("ull"),St("null",null);case"t":return ue(),ki("rue"),St("boolean",!0);case"f":return ue(),ki("alse"),St("boolean",!1);case"-":case"+":ue()==="-"&&(ks=-1),He="sign";return;case".":Re=ue(),He="decimalPointLeading";return;case"0":Re=ue(),He="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Re=ue(),He="decimalInteger";return;case"I":return ue(),ki("nfinity"),St("numeric",1/0);case"N":return ue(),ki("aN"),St("numeric",NaN);case'"':case"'":tc=ue()==='"',Re="",He="string";return}throw Tt(ue())},identifierNameStartEscape(){if(We!=="u")throw Tt(ue());ue();const r=B0();switch(r){case"$":case"_":break;default:if(!Rt.isIdStartChar(r))throw z2();break}Re+=r,He="identifierName"},identifierName(){switch(We){case"$":case"_":case"":case"":Re+=ue();return;case"\\":ue(),He="identifierNameEscape";return}if(Rt.isIdContinueChar(We)){Re+=ue();return}return St("identifier",Re)},identifierNameEscape(){if(We!=="u")throw Tt(ue());ue();const r=B0();switch(r){case"$":case"_":case"":case"":break;default:if(!Rt.isIdContinueChar(r))throw z2();break}Re+=r,He="identifierName"},sign(){switch(We){case".":Re=ue(),He="decimalPointLeading";return;case"0":Re=ue(),He="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Re=ue(),He="decimalInteger";return;case"I":return ue(),ki("nfinity"),St("numeric",ks*(1/0));case"N":return ue(),ki("aN"),St("numeric",NaN)}throw Tt(ue())},zero(){switch(We){case".":Re+=ue(),He="decimalPoint";return;case"e":case"E":Re+=ue(),He="decimalExponent";return;case"x":case"X":Re+=ue(),He="hexadecimal";return}return St("numeric",ks*0)},decimalInteger(){switch(We){case".":Re+=ue(),He="decimalPoint";return;case"e":case"E":Re+=ue(),He="decimalExponent";return}if(Rt.isDigit(We)){Re+=ue();return}return St("numeric",ks*Number(Re))},decimalPointLeading(){if(Rt.isDigit(We)){Re+=ue(),He="decimalFraction";return}throw Tt(ue())},decimalPoint(){switch(We){case"e":case"E":Re+=ue(),He="decimalExponent";return}if(Rt.isDigit(We)){Re+=ue(),He="decimalFraction";return}return St("numeric",ks*Number(Re))},decimalFraction(){switch(We){case"e":case"E":Re+=ue(),He="decimalExponent";return}if(Rt.isDigit(We)){Re+=ue();return}return St("numeric",ks*Number(Re))},decimalExponent(){switch(We){case"+":case"-":Re+=ue(),He="decimalExponentSign";return}if(Rt.isDigit(We)){Re+=ue(),He="decimalExponentInteger";return}throw Tt(ue())},decimalExponentSign(){if(Rt.isDigit(We)){Re+=ue(),He="decimalExponentInteger";return}throw Tt(ue())},decimalExponentInteger(){if(Rt.isDigit(We)){Re+=ue();return}return St("numeric",ks*Number(Re))},hexadecimal(){if(Rt.isHexDigit(We)){Re+=ue(),He="hexadecimalInteger";return}throw Tt(ue())},hexadecimalInteger(){if(Rt.isHexDigit(We)){Re+=ue();return}return St("numeric",ks*Number(Re))},string(){switch(We){case"\\":ue(),Re+=vU();return;case'"':if(tc)return ue(),St("string",Re);Re+=ue();return;case"'":if(!tc)return ue(),St("string",Re);Re+=ue();return;case`
|
|
352
|
+
`:case"\r":throw Tt(ue());case"\u2028":case"\u2029":wU(We);break;case void 0:throw Tt(ue())}Re+=ue()},start(){switch(We){case"{":case"[":return St("punctuator",ue())}He="value"},beforePropertyName(){switch(We){case"$":case"_":Re=ue(),He="identifierName";return;case"\\":ue(),He="identifierNameStartEscape";return;case"}":return St("punctuator",ue());case'"':case"'":tc=ue()==='"',He="string";return}if(Rt.isIdStartChar(We)){Re+=ue(),He="identifierName";return}throw Tt(ue())},afterPropertyName(){if(We===":")return St("punctuator",ue());throw Tt(ue())},beforePropertyValue(){He="value"},afterPropertyValue(){switch(We){case",":case"}":return St("punctuator",ue())}throw Tt(ue())},beforeArrayValue(){if(We==="]")return St("punctuator",ue());He="value"},afterArrayValue(){switch(We){case",":case"]":return St("punctuator",ue())}throw Tt(ue())},end(){throw Tt(ue())}};function St(r,t){return{type:r,value:t,line:ri,column:kn}}function ki(r){for(const t of r){if(qs()!==t)throw Tt(ue());ue()}}function vU(){switch(qs()){case"b":return ue(),"\b";case"f":return ue(),"\f";case"n":return ue(),`
|
|
353
|
+
`;case"r":return ue(),"\r";case"t":return ue()," ";case"v":return ue(),"\v";case"0":if(ue(),Rt.isDigit(qs()))throw Tt(ue());return"\0";case"x":return ue(),SU();case"u":return ue(),B0();case`
|
|
354
|
+
`:case"\u2028":case"\u2029":return ue(),"";case"\r":return ue(),qs()===`
|
|
355
|
+
`&&ue(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Tt(ue());case void 0:throw Tt(ue())}return ue()}function SU(){let r="",t=qs();if(!Rt.isHexDigit(t)||(r+=ue(),t=qs(),!Rt.isHexDigit(t)))throw Tt(ue());return r+=ue(),String.fromCodePoint(parseInt(r,16))}function B0(){let r="",t=4;for(;t-- >0;){const e=qs();if(!Rt.isHexDigit(e))throw Tt(ue());r+=ue()}return String.fromCodePoint(parseInt(r,16))}const TU={start(){if(Qt.type==="eof")throw Ii();Iy()},beforePropertyName(){switch(Qt.type){case"identifier":case"string":vg=Qt.value,br="afterPropertyName";return;case"punctuator":Eh();return;case"eof":throw Ii()}},afterPropertyName(){if(Qt.type==="eof")throw Ii();br="beforePropertyValue"},beforePropertyValue(){if(Qt.type==="eof")throw Ii();Iy()},beforeArrayValue(){if(Qt.type==="eof")throw Ii();if(Qt.type==="punctuator"&&Qt.value==="]"){Eh();return}Iy()},afterPropertyValue(){if(Qt.type==="eof")throw Ii();switch(Qt.value){case",":br="beforePropertyName";return;case"}":Eh()}},afterArrayValue(){if(Qt.type==="eof")throw Ii();switch(Qt.value){case",":br="beforeArrayValue";return;case"]":Eh()}},end(){}};function Iy(){let r;switch(Qt.type){case"punctuator":switch(Qt.value){case"{":r={};break;case"[":r=[];break}break;case"null":case"boolean":case"numeric":case"string":r=Qt.value;break}if(hc===void 0)hc=r;else{const t=_s[_s.length-1];Array.isArray(t)?t.push(r):Object.defineProperty(t,vg,{value:r,writable:!0,enumerable:!0,configurable:!0})}if(r!==null&&typeof r=="object")_s.push(r),Array.isArray(r)?br="beforeArrayValue":br="beforePropertyName";else{const t=_s[_s.length-1];t==null?br="end":Array.isArray(t)?br="afterArrayValue":br="afterPropertyValue"}}function Eh(){_s.pop();const r=_s[_s.length-1];r==null?br="end":Array.isArray(r)?br="afterArrayValue":br="afterPropertyValue"}function Tt(r){return Yh(r===void 0?`JSON5: invalid end of input at ${ri}:${kn}`:`JSON5: invalid character '${l3(r)}' at ${ri}:${kn}`)}function Ii(){return Yh(`JSON5: invalid end of input at ${ri}:${kn}`)}function z2(){return kn-=5,Yh(`JSON5: invalid identifier character at ${ri}:${kn}`)}function wU(r){console.warn(`JSON5: '${l3(r)}' in strings is not valid ECMAScript; consider escaping`)}function l3(r){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[r])return t[r];if(r<" "){const e=r.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return r}function Yh(r){const t=new SyntaxError(r);return t.lineNumber=ri,t.columnNumber=kn,t}var NU=function(t,e,n){const a=[];let u="",l,p,h="",d;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(n=e.space,d=e.quote,e=e.replacer),typeof e=="function")p=e;else if(Array.isArray(e)){l=[];for(const C of e){let S;typeof C=="string"?S=C:(typeof C=="number"||C instanceof String||C instanceof Number)&&(S=String(C)),S!==void 0&&l.indexOf(S)<0&&l.push(S)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),h=" ".substr(0,n)):typeof n=="string"&&(h=n.substr(0,10)),m("",{"":t});function m(C,S){let v=S[C];switch(v!=null&&(typeof v.toJSON5=="function"?v=v.toJSON5(C):typeof v.toJSON=="function"&&(v=v.toJSON(C))),p&&(v=p.call(S,C,v)),v instanceof Number?v=Number(v):v instanceof String?v=String(v):v instanceof Boolean&&(v=v.valueOf()),v){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof v=="string")return D(v);if(typeof v=="number")return String(v);if(typeof v=="object")return Array.isArray(v)?b(v):g(v)}function D(C){const S={"'":.1,'"':.2},v={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let F="";for(let T=0;T<C.length;T++){const B=C[T];switch(B){case"'":case'"':S[B]++,F+=B;continue;case"\0":if(Rt.isDigit(C[T+1])){F+="\\x00";continue}}if(v[B]){F+=v[B];continue}if(B<" "){let _=B.charCodeAt(0).toString(16);F+="\\x"+("00"+_).substring(_.length);continue}F+=B}const w=d||Object.keys(S).reduce((T,B)=>S[T]<S[B]?T:B);return F=F.replace(new RegExp(w,"g"),v[w]),w+F+w}function g(C){if(a.indexOf(C)>=0)throw TypeError("Converting circular structure to JSON5");a.push(C);let S=u;u=u+h;let v=l||Object.keys(C),F=[];for(const T of v){const B=m(T,C);if(B!==void 0){let _=x(T)+":";h!==""&&(_+=" "),_+=B,F.push(_)}}let w;if(F.length===0)w="{}";else{let T;if(h==="")T=F.join(","),w="{"+T+"}";else{let B=`,
|
|
356
|
+
`+u;T=F.join(B),w=`{
|
|
357
|
+
`+u+T+`,
|
|
358
|
+
`+S+"}"}}return a.pop(),u=S,w}function x(C){if(C.length===0)return D(C);const S=String.fromCodePoint(C.codePointAt(0));if(!Rt.isIdStartChar(S))return D(C);for(let v=S.length;v<C.length;v++)if(!Rt.isIdContinueChar(String.fromCodePoint(C.codePointAt(v))))return D(C);return C}function b(C){if(a.indexOf(C)>=0)throw TypeError("Converting circular structure to JSON5");a.push(C);let S=u;u=u+h;let v=[];for(let w=0;w<C.length;w++){const T=m(String(w),C);v.push(T!==void 0?T:"null")}let F;if(v.length===0)F="[]";else if(h==="")F="["+v.join(",")+"]";else{let w=`,
|
|
359
|
+
`+u,T=v.join(w);F=`[
|
|
360
|
+
`+u+T+`,
|
|
361
|
+
`+S+"]"}return a.pop(),u=S,F}};const BU={parse:CU,stringify:NU};var PU=BU;function P0(r){return PU.parse(r)}e0.languages.json5={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},property:{pattern:/(?:"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'|\b[a-zA-Z_$][\w$]*\b)(?=\s*:)/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},number:/-?(?:0x[\da-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?|Infinity|NaN)/,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:/\bnull\b/};function kU({value:r,onChange:t,error:e,height:n="200px"}){const[a,u]=P.useState(),l=P.useRef(null),p=P.useRef(null),h=P.useMemo(()=>{const b=r||"";return e0.highlight(b,e0.languages.json5,"json5")},[r]);P.useEffect(()=>{const b=window.setTimeout(()=>{if(!r.trim()){u(void 0);return}try{const C=P0(r);u(void 0),t(r,C)}catch(C){u(C instanceof Error?C.message:"Invalid JSON5")}},350);return()=>window.clearTimeout(b)},[r,t]);const d=()=>{!l.current||!p.current||(p.current.scrollTop=l.current.scrollTop,p.current.scrollLeft=l.current.scrollLeft)},[m,D]=P.useState(!1),g=P.useCallback(async()=>{D(!0);try{const b=await xU(r);t(b,P0(b)),u(void 0)}catch(b){u(b instanceof Error?b.message:"Invalid JSON5")}finally{D(!1)}},[r,t]),x=e||a;return k("div",{className:"space-y-2",children:[k("div",{className:"relative rounded-md border border-border bg-background font-mono text-xs text-foreground",style:{height:n},children:[E("div",{className:"flex items-center justify-between absolute top-2 right-2",children:E(ar,{type:"button",variant:"outline",size:"sm",onClick:g,disabled:!r.trim()||!!x||m,className:"h-7 text-xs cursor-pointer",children:"Format"})}),E("pre",{ref:p,className:`pointer-events-none absolute inset-0 overflow-auto p-3 font-mono text-xs
|
|
362
|
+
[&_.token.property]:text-blue-500
|
|
363
|
+
[&_.token.string]:text-green-500
|
|
364
|
+
[&_.token.number]:text-orange-400
|
|
365
|
+
[&_.token.boolean]:text-purple-400
|
|
366
|
+
[&_.token.null]:text-purple-400
|
|
367
|
+
[&_.token.punctuation]:text-gray-400
|
|
368
|
+
[&_.token.operator]:text-gray-400
|
|
369
|
+
[&_.token.comment]:text-gray-400`,style:{lineHeight:"20px",letterSpacing:"0.025em",whiteSpace:"pre-wrap",wordBreak:"break-word",boxSizing:"border-box",margin:0},"aria-hidden":!0,children:E("code",{style:{fontFamily:'ui-monospace, SFMono-Regular, SF Mono, Consolas, "Liberation Mono", Menlo, monospace',fontSize:"12px",lineHeight:"20px",letterSpacing:"0.025em",whiteSpace:"pre-wrap",wordBreak:"break-word",boxSizing:"border-box",padding:0,margin:0},dangerouslySetInnerHTML:{__html:h||" "}})}),E("textarea",{ref:l,value:r,onChange:b=>t(b.target.value),onScroll:d,spellCheck:!1,className:"absolute inset-0 h-full w-full resize-none bg-transparent p-3 text-transparent caret-foreground outline-none",style:{fontFamily:'ui-monospace, SFMono-Regular, SF Mono, Consolas, "Liberation Mono", Menlo, monospace',fontSize:"12px",lineHeight:"20px",letterSpacing:"0.025em",whiteSpace:"pre-wrap",wordBreak:"break-word",boxSizing:"border-box",tabSize:2}})]}),x&&E("div",{className:"rounded-md border border-red-500/40 bg-red-500/5 px-3 py-2 text-xs text-red-400",children:x})]})}function dc(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function k0(r,t,e,n,a,u,l){const p=u?"":",";if(t===null){r.lines.push({id:a,indent:n,foldable:!1,content:k(gt,{children:[e!==null&&k(gt,{children:[E("span",{className:"text-blue-500",children:l?`${e}`:`"${e}"`}),E("span",{className:"text-gray-400",children:": "})]}),E("span",{className:"text-purple-400",children:"null"}),E("span",{className:"text-gray-400",children:p})]})});return}if(typeof t=="boolean"){r.lines.push({id:a,indent:n,foldable:!1,content:k(gt,{children:[e!==null&&k(gt,{children:[E("span",{className:"text-blue-500",children:l?`${e}`:`"${e}"`}),E("span",{className:"text-gray-400",children:": "})]}),E("span",{className:"text-purple-400",children:t?"true":"false"}),E("span",{className:"text-gray-400",children:p})]})});return}if(typeof t=="number"){r.lines.push({id:a,indent:n,foldable:!1,content:k(gt,{children:[e!==null&&k(gt,{children:[E("span",{className:"text-blue-500",children:l?`${e}`:`"${e}"`}),E("span",{className:"text-gray-400",children:": "})]}),E("span",{className:"text-orange-400",children:t}),E("span",{className:"text-gray-400",children:p})]})});return}if(typeof t=="string"){r.lines.push({id:a,indent:n,foldable:!1,content:k(gt,{children:[e!==null&&k(gt,{children:[E("span",{className:"text-blue-500",children:l?`${e}`:`"${e}"`}),E("span",{className:"text-gray-400",children:": "})]}),k("span",{className:"text-green-500",children:['"',t,'"']}),E("span",{className:"text-gray-400",children:p})]})});return}if(Array.isArray(t)){const h=r.lines.length,d={id:a,indent:n,foldable:t.length>0,content:k(gt,{children:[e!==null&&k(gt,{children:[E("span",{className:"text-blue-500",children:l?`${e}`:`"${e}"`}),E("span",{className:"text-gray-400",children:": "})]}),E("span",{className:"text-gray-400",children:"["})]})};r.lines.push(d),t.forEach((m,D)=>{k0(r,m,String(D),n+1,`${a}[${D}]`,D===t.length-1,!0)}),r.lines.push({id:`${a}__end`,indent:n,foldable:!1,content:k("span",{className:"text-gray-400",children:["]",p]})}),r.lines[h].foldEnd=r.lines.length-1;return}if(dc(t)){const h=Object.entries(t),d=r.lines.length,m={id:a,indent:n,foldable:h.length>0,content:k(gt,{children:[e!==null&&k(gt,{children:[E("span",{className:"text-blue-500",children:l?`${e}`:`"${e}"`}),E("span",{className:"text-gray-400",children:": "})]}),E("span",{className:"text-gray-400",children:"{"})]})};r.lines.push(m),h.forEach(([D,g],x)=>{k0(r,g,D,n+1,`${a}.${D}`,x===h.length-1,!1)}),r.lines.push({id:`${a}__end`,indent:n,foldable:!1,content:k("span",{className:"text-gray-400",children:["}",p]})}),r.lines[d].foldEnd=r.lines.length-1;return}}function IU(r){const t={lines:[]};return k0(t,r,null,0,"root",!0,!1),t.lines}function MU(r){return Array.isArray(r)?`[${r.length} items]`:dc(r)?`{${Object.keys(r).length} keys}`:""}function rc({data:r,initialDepth:t=2,showHeader:e=!0}){const[n,a]=P.useState(!1),u=P.useMemo(()=>r===void 0?null:typeof r=="object"||typeof r=="string"||typeof r=="number"||typeof r=="boolean"?r:String(r),[r]),l=P.useMemo(()=>IU(u),[u]),p=P.useMemo(()=>{const C=new Set;function S(v,F,w){F>=t&&(Array.isArray(v)&&v.length>0||dc(v)&&Object.keys(v).length>0)&&C.add(w),Array.isArray(v)?v.forEach((T,B)=>S(T,F+1,`${w}[${B}]`)):dc(v)&&Object.entries(v).forEach(([T,B])=>S(B,F+1,`${w}.${T}`))}return S(u,0,"root"),C},[u,t]),[h,d]=P.useState(p),m=C=>{d(S=>{const v=new Set(S);return v.has(C)?v.delete(C):v.add(C),v})},D=P.useMemo(()=>{const C=[];let S=0;for(;S<l.length;){const v=l[S];C.push({line:v,lineNum:C.length+1,originalIndex:S}),v.foldable&&v.foldEnd!==void 0&&h.has(v.id)&&(S=v.foldEnd),S++}return C},[l,h]),g=C=>{if(C==="root")return u;const S=C.replace(/^root/,"").split(/\.|\[|\]/).filter(Boolean);let v=u;for(const F of S)if(Array.isArray(v))v=v[Number(F)];else if(dc(v))v=v[F];else return null;return v},x=()=>{navigator.clipboard.writeText(JSON.stringify(r,null,2)),a(!0),window.setTimeout(()=>a(!1),2e3)},b=String(D.length).length*8+12;return k("div",{className:e?"rounded-md border border-border bg-background":"",children:[e&&k("div",{className:"flex items-center justify-between border-b border-border/60 px-3 py-2",children:[E("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide font-mono",children:"JSON Response"}),E(ar,{variant:"ghost",size:"sm",onClick:x,className:"h-7 text-xs cursor-pointer",children:n?E(LB,{className:"h-3 w-3"}):E(LC,{className:"h-3 w-3"})})]}),E("div",{className:"max-h-[480px] overflow-auto font-mono text-xs",children:k("div",{className:"flex",children:[E("div",{className:"flex-shrink-0 select-none border-r border-border/40 bg-muted/30",style:{minWidth:b+24},children:D.map(({line:C,lineNum:S})=>k("div",{className:"flex h-5 items-center",children:[E("span",{className:"text-right text-[11px] text-muted-foreground/70 pr-1",style:{minWidth:b},children:S}),E("div",{className:"w-4 h-4 flex items-center justify-center",children:C.foldable&&E("button",{type:"button",onClick:()=>m(C.id),className:"w-4 h-4 flex items-center justify-center text-muted-foreground hover:text-foreground rounded hover:bg-muted",children:h.has(C.id)?E(Z0,{className:"h-3 w-3"}):E(W0,{className:"h-3 w-3"})})})]},C.id+S))}),E("div",{className:"flex-1 py-0",children:D.map(({line:C,lineNum:S})=>{const v=C.foldable&&h.has(C.id),F=v?g(C.id):null;return k("div",{className:"h-5 flex items-center whitespace-pre",children:[E("span",{style:{paddingLeft:C.indent*16},children:C.content}),v&&F!==null&&E("span",{className:"text-muted-foreground ml-0.5",children:MU(F)})]},C.id+S)})})]})})]})}function c3({logs:r,title:t="Terminal Output"}){const e=u=>{switch(u==null?void 0:u.toLowerCase()){case"error":return"text-red-500 dark:text-red-400";case"warn":return"text-yellow-500 dark:text-yellow-400";case"info":return"text-blue-500 dark:text-blue-400";case"debug":return"text-purple-500 dark:text-purple-400";default:return"text-gray-500 dark:text-gray-400"}},n=u=>new Date(u).toISOString().split("T")[1].slice(0,-1),a=u=>{if(!u)return{cleanMessage:"",properties:null};const l=/(\w+)=(?:"([^"]*)"|([^\s]*))/g,p=[...u.matchAll(l)];if(p.length===0)return{cleanMessage:u,properties:null};let h=u;const d={};return p.forEach(m=>{const[D,g,x,b]=m,C=x??b;h=h.replace(D,"");try{d[g]=C.startsWith("{")||C.startsWith("[")?JSON.parse(C):C}catch{d[g]=C}}),{cleanMessage:h.replace(/\s+/g," ").trim(),properties:d}};return!r||r.length===0?null:E(Bn,{title:t,icon:Yy,contentClassName:"p-0",headerExtra:k("span",{className:"ml-auto text-xs text-muted-foreground font-mono",children:[r.length," entries"]}),children:E("div",{className:"font-mono text-[11px] md:text-xs overflow-x-auto max-h-[500px] overflow-y-auto p-4 space-y-0.5",children:r.map(u=>{const l=u.message.includes("starting request")||u.message.includes("request completed")||u.message.includes("request failed"),{cleanMessage:p,properties:h}=l?a(u.message):{cleanMessage:u.message,properties:null};return k("div",{className:"group flex items-start gap-3 hover:bg-muted/50 px-2 -mx-2 rounded transition-colors py-0.5",children:[E("span",{className:"shrink-0 text-muted-foreground select-none w-20 md:w-24 tabular-nums opacity-70 group-hover:opacity-100 transition-opacity",children:n(u.timestamp)}),E("span",{className:`shrink-0 w-10 md:w-12 font-bold uppercase tracking-wider text-[10px] md:text-[11px] py-px ${e(u.level)}`,children:u.level}),k("div",{className:"flex-1 min-w-0",children:[k("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[E("span",{className:"text-foreground break-words whitespace-pre-wrap leading-relaxed",children:p}),l&&k(gt,{children:[h&&Object.entries(h).map(([d,m])=>k("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] bg-muted text-muted-foreground border border-border",children:[k("span",{className:"opacity-70 mr-1",children:[d,"="]}),E("span",{className:"font-medium text-foreground",children:String(m)})]},`meta-${d}`)),u.context&&Object.entries(u.context).map(([d,m])=>["request","response","sessionId","clientDuration"].includes(d)||h&&d in h?null:k("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] bg-blue-50 dark:bg-blue-900/30 text-blue-600 dark:text-blue-300 border border-blue-100 dark:border-blue-800/50",children:[k("span",{className:"opacity-70 mr-1",children:[d,"="]}),E("span",{className:"font-medium",children:typeof m=="object"?JSON.stringify(m):String(m)})]},`ctx-${d}`))]})]}),u.stack&&k("details",{className:"mt-1",children:[E("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground select-none inline-flex items-center gap-1 transition-colors",children:E("span",{className:"text-[10px] uppercase tracking-wide",children:"Show Stack Trace"})}),E("div",{className:"mt-2 pl-3 border-l-2 border-border text-muted-foreground overflow-x-auto",children:E("pre",{className:"font-mono text-[10px] leading-relaxed whitespace-pre select-text",children:u.stack})})]})]})]},u.id)})})})}const p3=P.createContext(null);function OU({children:r}){const[t,e]=P.useState([]),n=P.useCallback((u,l="info",p)=>{const h=Math.random().toString(36).slice(2),d={id:h,message:u,type:l,duration:p};return e(m=>[...m,d]),h},[]),a=P.useCallback(u=>{e(l=>l.filter(p=>p.id!==u))},[]);return E(p3.Provider,{value:{toasts:t,addToast:n,removeToast:a},children:r})}function Sg(){const r=P.useContext(p3);if(!r)throw new Error("useToast must be used within ToastProvider");return r}function LU(){var e;if((e=window.VISION_CONFIG)!=null&&e.apiUrl)return window.VISION_CONFIG.apiUrl;const r=window.location.protocol,t=window.location.host||"localhost:4000";return`${r}//${t}`}function bh(){return Math.random().toString(36).slice(2)+Date.now().toString(36)}function RU(){var V,U,Y;const{data:r=[]}=rP(),{addToast:t}=Sg(),e=zC(),n=P.useMemo(()=>({id:bh(),title:"New tab",sessionId:bh(),route:null,urlParams:{},queryParams:{},customQueryParams:[],requestBody:"",response:null,requestTime:null,executedAt:null}),[]),[a,u]=P.useState([n]),[l,p]=P.useState(n.id),[h,d]=P.useState(!1),m="vision.apiExplorer.tabs",D="vision.apiExplorer.activeTabId";P.useEffect(()=>{try{const O=localStorage.getItem(m),H=localStorage.getItem(D);if(O){const re=JSON.parse(O);Array.isArray(re)&&re.length>0&&(u(re),H&&re.some(X=>X.id===H)?p(H):p(re[0].id))}}catch{}},[]),P.useEffect(()=>{try{localStorage.setItem(m,JSON.stringify(a)),localStorage.setItem(D,l)}catch{}},[a,l]);const g=a.find(O=>O.id===l)||a[0],x=O=>{var re;const H=((re=O.requestBody)==null?void 0:re.template)||"";u(X=>X.map(ge=>ge.id===l?{...ge,route:O,title:O.path,response:null,requestTime:null,executedAt:null,urlParams:{},queryParams:{},customQueryParams:ge.customQueryParams||[],requestBody:H}:ge))},b=async()=>{const O=g;if(!O.route)return;d(!0),u(re=>re.map(X=>X.id===l?{...X,response:null}:X));const H=Date.now();try{let re=O.route.path;Object.entries(O.urlParams).forEach(([he,Ce])=>{re=re.replace(`:${he}`,Ce)});const X=Object.entries(O.queryParams).filter(([,he])=>he!==""),ge=(O.customQueryParams||[]).filter(he=>he.enabled&&he.key&&he.value).map(he=>[he.key,he.value]),Be=[...X,...ge],J=Be.length>0?"?"+Be.map(([he,Ce])=>`${encodeURIComponent(he)}=${encodeURIComponent(Ce)}`).join("&"):"",ce=`${LU()}${re}${J}`,oe={method:O.route.method,headers:{"Content-Type":"application/json","X-Vision-Session":O.sessionId}};if(["POST","PUT","PATCH"].includes(O.route.method)&&O.requestBody)try{const he=P0(O.requestBody);oe.body=JSON.stringify(he)}catch(he){t(he instanceof Error?he.message:"Invalid JSON5 body","error"),d(!1);return}const ve=await fetch(ce,oe),be=await ve.json(),j=Date.now()-H,ee={};ve.headers.forEach((he,Ce)=>{ee[Ce]=he}),u(he=>he.map(Ce=>Ce.id===l?{...Ce,response:{status:ve.status,data:be,headers:ee},requestTime:j,executedAt:H}:Ce)),t(`API call completed in ${j}ms`,"success");const fe=ve.headers.get("X-Vision-Trace-Id");console.log("📊 Trace ID from header:",fe,"Client duration:",j),fe&&e.mutate({traceId:fe,clientDuration:j})}catch(re){u(X=>X.map(ge=>ge.id===l?{...ge,response:{status:0,error:re instanceof Error?re.message:"Unknown error"},executedAt:H}:ge)),t(re instanceof Error?re.message:"API call failed","error")}finally{d(!1)}},C=(O,H)=>{u(re=>re.map(X=>X.id===l?{...X,urlParams:{...X.urlParams,[O]:H}}:X))},S=(O,H)=>{u(re=>re.map(X=>X.id===l?{...X,queryParams:{...X.queryParams,[O]:H}}:X))},v=O=>{u(H=>H.map(re=>re.id===l?{...re,requestBody:O}:re))},F=()=>{u(O=>O.map(H=>H.id===l?{...H,customQueryParams:[...H.customQueryParams||[],{key:"",value:"",enabled:!0}]}:H))},w=(O,H,re)=>{u(X=>X.map(ge=>ge.id===l?{...ge,customQueryParams:ge.customQueryParams.map((Be,J)=>J===O?{...Be,[H]:re}:Be)}:ge))},T=O=>{u(H=>H.map(re=>re.id===l?{...re,customQueryParams:re.customQueryParams.filter((X,ge)=>ge!==O)}:re))},B=()=>{const O={id:bh(),title:"New tab",sessionId:bh(),route:null,urlParams:{},queryParams:{},customQueryParams:[],requestBody:"",response:null,requestTime:null,executedAt:null};u(H=>[...H,O]),p(O.id)},_=O=>{u(H=>{if(H.length<=1)return H;const re=H.filter(X=>X.id!==O);if(l===O){const X=re[re.length-1];p(X.id)}return re})};return k("div",{className:"flex h-full bg-background",children:[E("div",{className:"w-64 border-r border-border bg-muted/20 overflow-y-auto flex-shrink-0",children:k("div",{className:"p-4",children:[E("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-3",children:"Endpoints"}),E("div",{className:"space-y-1",children:r.map((O,H)=>E("button",{onClick:()=>x(O),className:`w-full text-left p-2 rounded-md text-sm font-medium transition-colors
|
|
370
|
+
${g.route===O?"bg-primary text-primary-foreground":"hover:bg-accent text-foreground"}`,title:O.path,children:k("div",{className:"flex items-center gap-2",children:[E(xt,{className:`text-[10px] font-mono w-12 flex items-center justify-center border-0
|
|
371
|
+
${O.method==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300":""}
|
|
372
|
+
${O.method==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":""}
|
|
373
|
+
${O.method==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":""}
|
|
374
|
+
${O.method==="DELETE"?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":""}
|
|
375
|
+
`,children:O.method}),E("span",{className:"font-mono text-xs truncate",children:O.path})]})},H))})]})}),k("div",{className:"flex-1 overflow-y-auto bg-background",children:[E("div",{className:"px-6 pt-3 border-b border-border bg-muted/20",children:k("div",{className:"flex items-center gap-1 overflow-x-auto whitespace-nowrap pb-0",children:[a.map(O=>k("button",{className:`relative flex-none inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium transition-all ${O.id===l?"bg-background text-foreground rounded-t-md border-t border-x border-border":"text-muted-foreground hover:text-foreground hover:bg-background/50 rounded-t-md border-transparent border-t border-x"}`,onClick:()=>p(O.id),children:[E("span",{className:"font-mono text-sm truncate max-w-[200px]",children:O.title}),a.length>1&&E("button",{className:"ml-1 text-muted-foreground hover:text-foreground hover:bg-accent rounded-sm p-0.5 -mr-1",onClick:H=>{H.stopPropagation(),_(O.id)},children:E("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),O.id===l&&E("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary"})]},O.id)),k(ar,{variant:"ghost",size:"sm",className:"flex-none ml-2 text-sm font-medium text-muted-foreground hover:text-foreground",onClick:B,children:[E("svg",{className:"w-4 h-4 mr-1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"New tab"]})]})}),E("div",{className:"p-6 max-w-4xl",children:g.route?k("div",{className:"space-y-4",children:[k(Bn,{title:"API Caller",icon:HB,contentClassName:"space-y-4",children:[k("div",{children:[E(Bs,{className:"text-sm font-medium mb-2 block",children:"Endpoint"}),k("div",{className:"flex gap-2",children:[k("div",{className:"flex-1 bg-muted rounded-md p-2 font-mono text-sm border",children:[E("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:g.route.method})," ",E("span",{className:"text-foreground",children:g.route.path})]}),E(ar,{onClick:b,disabled:h,className:"bg-blue-600 dark:bg-blue-600 hover:bg-blue-700 dark:hover:bg-blue-700 text-white",children:h?k("span",{className:"flex items-center gap-2",children:[E("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),E("span",{className:"text-sm font-medium",children:"Sending..."})]}):k("span",{className:"flex items-center gap-2",children:[E(qB,{className:"w-4 h-4"}),E("span",{className:"text-sm font-medium",children:"Send"})]})})]})]}),g.route.path.includes(":")&&k("div",{children:[E(Bs,{className:"text-sm font-medium mb-2 block",children:"URL Parameters"}),E("div",{className:"space-y-3",children:(V=g.route.path.match(/:[^/]+/g))==null?void 0:V.map(O=>{const H=O.slice(1);return k("div",{className:"grid grid-cols-4 gap-3 items-center",children:[E(Bs,{htmlFor:H,className:"text-sm text-muted-foreground",children:H}),E(so,{id:H,type:"text",value:g.urlParams[H]||"",onChange:re=>C(H,re.target.value),placeholder:`Enter ${H}`,className:"col-span-3 text-sm"})]},H)})})]}),g.route.queryParams&&g.route.queryParams.fields.length>0||g.customQueryParams.length>0?k("div",{children:[k("div",{className:"flex items-center justify-between mb-2",children:[E(Bs,{className:"text-sm font-medium",children:"Query Parameters"}),k(ar,{type:"button",variant:"ghost",size:"sm",onClick:()=>F(),className:"h-6 px-2 text-xs",children:[E(rA,{className:"w-3 h-3 mr-1"}),"Add"]})]}),g.route.queryParams&&g.route.queryParams.fields.length>0&&E("div",{className:"space-y-3 mb-3",children:g.route.queryParams.fields.map(O=>k("div",{className:"grid grid-cols-4 gap-3 items-center",children:[k("div",{className:"flex items-center gap-2",children:[E(Bs,{htmlFor:`query-${O.name}`,className:"text-sm text-muted-foreground font-mono",children:O.name}),O.required&&E(xt,{variant:"destructive",className:"text-[10px] px-1 py-0",children:"required"})]}),E(so,{id:`query-${O.name}`,type:"text",value:g.queryParams[O.name]||"",onChange:H=>S(O.name,H.target.value),placeholder:O.description||`Enter ${O.name} (${O.type})`,className:"col-span-3 text-sm"})]},O.name))}),g.customQueryParams.length>0&&k("div",{className:"space-y-2",children:[E(Bs,{className:"text-xs text-muted-foreground",children:"Custom Parameters"}),g.customQueryParams.map((O,H)=>k("div",{className:"grid grid-cols-12 gap-2 items-center",children:[E("div",{className:"col-span-1 flex items-center justify-center",children:E(tF,{checked:O.enabled,onCheckedChange:re=>w(H,"enabled",re)})}),E(so,{type:"text",value:O.key,onChange:re=>w(H,"key",re.target.value),placeholder:"Key",className:"col-span-4 text-sm"}),E(so,{type:"text",value:O.value,onChange:re=>w(H,"value",re.target.value),placeholder:"Value",className:"col-span-6 text-sm"}),E("div",{className:"col-span-1 flex justify-center",children:E(ar,{type:"button",variant:"ghost",size:"sm",onClick:()=>T(H),className:"h-6 w-6 p-0 text-muted-foreground hover:text-destructive",children:E(jC,{className:"w-3 h-3"})})})]},H))]})]}):k("div",{children:[k("div",{className:"flex items-center justify-between mb-2",children:[E(Bs,{className:"text-sm font-medium",children:"Query Parameters"}),k(ar,{type:"button",variant:"ghost",size:"sm",onClick:()=>F(),className:"h-6 px-2 text-xs",children:[E(rA,{className:"w-3 h-3 mr-1"}),"Add"]})]}),E("div",{className:"p-4 bg-muted rounded-lg border",children:E("p",{className:"text-sm text-muted-foreground",children:'No query parameters defined. Click "Add" to add custom parameters.'})})]}),["POST","PUT","PATCH"].includes(g.route.method)&&k("div",{children:[E(Bs,{className:"text-sm font-medium mb-2 block",children:"Request Body"}),E(kU,{value:g.requestBody,onChange:O=>v(O)})]})]}),g.response&&E(Bn,{title:"Response",icon:XB,contentClassName:"p-0",headerExtra:k(gt,{children:[E(xt,{className:`text-xs font-mono ml-2
|
|
376
|
+
${g.response.status>=200&&g.response.status<300?"bg-green-500/20 text-green-400 hover:bg-green-500/20":""}
|
|
377
|
+
${g.response.status>=400?"bg-red-500/20 text-red-400 hover:bg-red-500/20":""}
|
|
378
|
+
`,children:g.response.status||"ERROR"}),g.requestTime&&k("span",{className:"flex items-center gap-1 text-xs text-muted-foreground font-mono",children:[E(nd,{className:"w-3 h-3"}),g.requestTime,"ms"]})]}),headerRight:E(ar,{variant:"ghost",size:"sm",className:"h-7 cursor-pointer",onClick:()=>navigator.clipboard.writeText(JSON.stringify(g.response.data,null,2)),children:E(LC,{className:"w-4 h-4"})}),children:E(rc,{data:g.response.data||g.response.error,showHeader:!1})}),g.response&&g.executedAt&&E(c3,{title:"Request Logs",logs:[{id:"req-start",timestamp:g.executedAt,level:"info",message:`INF starting request endpoint=${(U=g.route)==null?void 0:U.path} service=${(Y=g.route)==null?void 0:Y.handler}`},{id:"req-end",timestamp:g.executedAt+(g.requestTime||0),level:g.response.status===0||g.response.status>=500?"error":"info",message:g.response.status===0?`INF request failed error="${g.response.error}" duration=${g.requestTime}ms`:`INF request completed code=${g.response.status} duration=${g.requestTime}ms`}]})]}):E("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:E("p",{className:"text-sm",children:"Select an endpoint from the sidebar to get started"})})})]}),E(m4,{sessionId:g.sessionId})]})}function _U(r){const t=[...r].sort((a,u)=>a.startTime-u.startTime),e=new Map(t.map(a=>[a.id,{...a,children:[]}])),n=[];for(const a of t){const u=e.get(a.id);if(a.parentId){const l=e.get(a.parentId);l?l.children.push(u):n.push(u)}else n.push(u)}for(const[a,u]of e)u.children&&u.children.length>1&&u.children.sort((l,p)=>l.startTime-p.startTime);return n}function jU(r){return r.startsWith("http.")?{bg:"bg-gradient-to-r from-blue-500/90 to-blue-600/90",border:"border-blue-500/30",text:"text-blue-50"}:r.startsWith("db.")?{bg:"bg-gradient-to-r from-purple-500/90 to-purple-600/90",border:"border-purple-500/30",text:"text-purple-50"}:{bg:"bg-gradient-to-r from-emerald-500/90 to-emerald-600/90",border:"border-emerald-500/30",text:"text-emerald-50"}}function $U(r){return r.startsWith("http.")?E(_B,{className:"w-3.5 h-3.5"}):r.startsWith("db.")?E(eD,{className:"w-3.5 h-3.5"}):E(_o,{className:"w-3.5 h-3.5"})}function h3({span:r,depth:t,totalDuration:e,t0:n,formatDuration:a}){var C;const[u,l]=P.useState(!0),p=(((C=r.children)==null?void 0:C.length)||0)>0,h=(r.startTime-n)/e*100,d=(r.duration||0)/e*100,m=r.attributes&&Object.keys(r.attributes).length>0,[D,g]=P.useState(!1),x=jU(r.name),b=$U(r.name);return k(gt,{children:[E("div",{className:"group hover:bg-muted/50 transition-colors rounded-lg",children:k("div",{className:"flex items-start gap-3 p-3",children:[k("div",{className:"flex items-center gap-2 min-w-0 flex-shrink-0",style:{paddingLeft:`${t*20}px`},children:[p?E("button",{onClick:()=>l(!u),className:"p-0.5 hover:bg-muted rounded transition-colors",children:u?E(W0,{className:"w-3.5 h-3.5 text-muted-foreground"}):E(Z0,{className:"w-3.5 h-3.5 text-muted-foreground"})}):E("div",{className:"w-4"}),E("div",{className:`p-1.5 rounded-md ${x.bg.replace("/90","/20")} ${x.border} border`,children:b})]}),k("div",{className:"flex-1 min-w-0 space-y-2.5",children:[k("div",{className:"flex items-center justify-between gap-4",children:[k("div",{className:"flex items-center gap-3 min-w-0",children:[E("span",{className:"text-sm font-semibold font-mono truncate",children:r.name}),m&&k("button",{onClick:()=>g(!D),className:"text-xs px-2 py-0.5 rounded-full bg-muted hover:bg-muted/80 transition-colors font-medium",children:[Object.keys(r.attributes||{}).length," attrs"]})]}),E("div",{className:"flex items-center gap-2 flex-shrink-0",children:E("span",{className:"text-sm font-mono font-semibold tabular-nums",children:a(r.duration)})})]}),E("div",{className:"relative h-8 bg-muted/50 rounded-lg overflow-hidden border border-border/50",children:E("div",{className:`absolute h-full ${x.bg} ${x.border} border-2 flex items-center px-2.5 shadow-lg transition-all duration-200 group-hover:shadow-xl`,style:{left:`${h}%`,width:`${Math.max(d,.5)}%`},children:E("span",{className:`text-xs font-mono font-semibold ${x.text} truncate drop-shadow-sm`,children:r.name})})}),D&&m&&E("div",{className:"mt-2 p-3 bg-muted/30 rounded-lg border border-border/50 space-y-1.5",children:Object.entries(r.attributes||{}).map(([S,v])=>S==="http.request"||S==="http.response"?null:typeof v=="object"&&v!==null?k("div",{className:"font-mono text-xs flex items-start gap-2",children:[k("span",{className:"text-muted-foreground font-semibold",children:[S,":"]}),E("span",{className:"text-muted-foreground italic",children:"[object]"})]},S):k("div",{className:"font-mono text-xs flex items-start gap-2",children:[k("span",{className:"text-muted-foreground font-semibold min-w-[120px]",children:[S,":"]}),E("span",{className:"text-foreground break-all",children:String(v)})]},S))})]})]})}),u&&p&&E("div",{className:"space-y-1",children:r.children.map(S=>E(h3,{span:S,depth:t+1,totalDuration:e,t0:n,formatDuration:a},S.id))})]})}function zU({spans:r,formatDuration:t}){if(r.length===0)return E("div",{className:"text-center py-12 text-sm text-muted-foreground",children:"No spans recorded"});const e=Math.min(...r.map(l=>l.startTime)),a=Math.max(...r.map(l=>l.endTime||l.startTime))-e||1,u=_U(r);return k("div",{className:"space-y-3",children:[k("div",{className:"flex justify-between items-center px-4 py-2 bg-muted/30 rounded-lg border border-border/50",children:[k("div",{className:"flex items-center gap-2",children:[E("span",{className:"text-xs font-semibold text-muted-foreground",children:"Timeline"}),k("span",{className:"text-xs px-2 py-0.5 rounded-full bg-primary/10 text-primary font-mono font-semibold",children:[r.length," ",r.length===1?"span":"spans"]})]}),k("div",{className:"flex items-center gap-4 text-xs font-mono font-semibold tabular-nums",children:[E("span",{className:"text-muted-foreground",children:"0ms"}),E("div",{className:"w-px h-4 bg-border"}),E("span",{className:"text-foreground",children:t(a)})]})]}),E("div",{className:"space-y-1",children:u.map(l=>E(h3,{span:l,depth:0,totalDuration:a,t0:e,formatDuration:t},l.id))})]})}function UU({trace:r,formatDuration:t}){var l,p,h,d;const e=r.spans.find(m=>m.name==="http.request"),n=((l=r.metadata)==null?void 0:l.request)||((p=e==null?void 0:e.attributes)==null?void 0:p["http.request"]),a=((h=r.metadata)==null?void 0:h.response)||((d=e==null?void 0:e.attributes)==null?void 0:d["http.response"]),u=m=>m?m>=200&&m<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":m>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400";return k("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[E(Bn,{title:"Request",icon:kB,headerExtra:k(gt,{children:[E(xt,{className:"font-mono text-xs ml-2",children:r.method}),E("span",{className:"font-mono text-xs text-muted-foreground ml-2",children:t(r.duration)})]}),children:k("div",{className:"space-y-3",children:[E("div",{className:"font-mono text-sm break-all text-muted-foreground",children:(n==null?void 0:n.url)||r.path}),(n==null?void 0:n.headers)&&k("div",{children:[E("p",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wide",children:"Headers"}),E(rc,{data:n.headers,showHeader:!1})]}),(n==null?void 0:n.body)!==void 0&&k("div",{children:[E("p",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wide",children:"Body"}),E(rc,{data:n.body,showHeader:!1})]})]})}),E(Bn,{title:"Response",icon:BB,headerExtra:k(gt,{children:[E(xt,{className:`font-mono text-xs ml-2 ${u(r.statusCode)}`,children:r.statusCode||(a==null?void 0:a.status)||"-"}),E("span",{className:"text-xs text-muted-foreground font-mono ml-2",children:t(r.duration)})]}),children:k("div",{className:"space-y-3",children:[(a==null?void 0:a.headers)&&k("div",{children:[E("p",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wide",children:"Headers"}),E(rc,{data:a.headers,showHeader:!1})]}),(a==null?void 0:a.body)!==void 0&&k("div",{children:[E("p",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wide",children:"Body"}),E(rc,{data:a.body,showHeader:!1})]})]})})]})}function qU(){const{data:r=[]}=$C({limit:100}),t=WB(),e=ZB(),{traceId:n}=X0(),{addToast:a}=Sg(),u=P.useRef(null),l=P.useRef(r.length);P.useEffect(()=>{r.length>l.current&&u.current&&(u.current.scrollTop=0),l.current=r.length},[r.length]);const p=async()=>{if(!(r.length===0||!window.confirm(`Remove ${r.length} trace${r.length===1?"":"s"}?`)))try{await t.mutateAsync()}catch(m){console.error("Failed to clear traces:",m),a("Failed to clear traces","error")}};return k("div",{className:"h-full flex bg-background",children:[k("div",{className:"w-1/3 flex flex-col border-r border-border bg-muted/20",children:[E("div",{className:"p-4 border-b border-border/50 bg-muted/20",children:k("div",{className:"flex items-center justify-between gap-3",children:[k("div",{children:[E("h1",{className:"text-lg font-semibold",children:"Traces"}),E("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Recent requests"})]}),k("div",{className:"flex gap-2",children:[k(ar,{variant:"outline",size:"sm",onClick:async()=>{try{const d=await e.mutateAsync({format:"json"}),m=typeof d=="string"?d:JSON.stringify(d,null,2),D=new Blob([m],{type:"application/json"}),g=URL.createObjectURL(D),x=document.createElement("a");x.href=g;const b=new Date().toISOString().replace(/[:.]/g,"-");x.download=`vision-traces-${b}.json`,document.body.appendChild(x),x.click(),document.body.removeChild(x),URL.revokeObjectURL(g)}catch(d){console.error("Failed to export traces:",d),a("Failed to export traces","error")}},disabled:e.isPending||r.length===0,className:"text-sm",children:[E(RB,{className:"w-4 h-4 mr-1.5"}),"Export"]}),k(ar,{variant:"outline",size:"sm",onClick:p,disabled:t.isPending||r.length===0,className:"text-sm",children:[E(_C,{className:"w-4 h-4 mr-1.5"}),"Clear"]})]})]})}),E("div",{className:"flex-1 min-h-0 overflow-y-auto",style:{contentVisibility:"auto"},children:r.length===0?k("div",{className:"flex flex-col items-center justify-center py-20 px-6 text-muted-foreground",children:[E(_o,{className:"w-12 h-12 mb-4 opacity-30"}),E("p",{className:"text-sm",children:"No traces yet"}),E("p",{className:"text-xs mt-1",children:"Make some API calls to see traces here"})]}):E("div",{className:"p-4 space-y-2",children:r.map((d,m)=>k("div",{children:[E(rd,{to:`/traces/${d.id}`,children:E(HU,{trace:d,isActive:d.id===n})}),m<r.length-1&&E(sd,{className:"my-2"})]},d.id))})})]}),E("div",{className:"w-2/3 flex flex-col min-h-0",children:E("div",{className:"flex-1 min-h-0 overflow-y-auto p-4",children:E(NC,{})})})]})}function HU({trace:r,isActive:t}){var l;const e=p=>{switch(p){case"GET":return"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900";case"POST":return"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900";case"PUT":return"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900";case"DELETE":return"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900";default:return"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300"}},n=p=>p?p>=200&&p<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":p>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",a=p=>p==null?"-":p<1?"< 1ms":p<1e3?`${Math.round(p)}ms`:`${(p/1e3).toFixed(2)}s`,u=p=>new Date(p).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3});return k("div",{className:`w-full bg-background rounded-md border p-3 transition-all text-left cursor-pointer ${t?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"}`,children:[k("div",{className:"flex items-center gap-2 mb-2",children:[E(xt,{className:`text-xs font-mono px-1.5 py-0 ${e(r.method)}`,children:r.method}),E(xt,{className:`text-xs font-mono px-1.5 py-0 ${n(r.statusCode)}`,children:r.statusCode||"..."}),r.spans.length>0&&k("span",{className:"text-xs text-muted-foreground ml-auto",children:[r.spans.length," span",r.spans.length>1?"s":""]})]}),E("div",{className:"font-mono text-sm text-foreground truncate mb-2",children:r.path}),((l=r.metadata)==null?void 0:l.sessionId)&&E("div",{className:"mb-2",children:k(xt,{variant:"outline",className:"text-[10px] h-5 font-mono text-muted-foreground",children:["session: ",r.metadata.sessionId]})}),k("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[k("div",{className:"flex items-center gap-1",children:[E(nd,{className:"w-3 h-3"}),E("span",{children:u(r.timestamp)})]}),k("div",{className:"flex items-center gap-1",children:[E(_o,{className:"w-3 h-3"}),E("span",{className:r.duration&&r.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:a(r.duration)})]})]})]})}function VU({trace:r,onBack:t}){var h;const e=Bc(),n=zC(),a=async()=>{var d;try{const m=r.spans.find(T=>{var B;return T.name==="http.request"||!!((B=T.attributes)!=null&&B["http.url"])}),D=((d=m==null?void 0:m.attributes)==null?void 0:d["http.url"])||r.path,g=Date.now();let x;try{new URL(D),x=D}catch{x=`http://localhost:3000${D.startsWith("/")?"":"/"}${D}`}const C=pr().on("trace.new",T=>{T.method===r.method&&T.timestamp>=g&&(e(`/traces/${T.id}`),C())}),S=Date.now(),v=await fetch(x,{method:r.method,headers:{"Content-Type":"application/json"}}),F=Date.now()-S,w=v.headers.get("X-Vision-Trace-Id");w&&n.mutate({traceId:w,clientDuration:F})}catch(m){console.error("Failed to replay request:",m)}},u=d=>d?d<1?"< 1ms":d<1e3?`${Math.round(d)}ms`:`${(d/1e3).toFixed(2)}s`:"-",l=d=>new Date(d).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,hour12:!1}),p=d=>d?d>=200&&d<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":d>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400";return k("div",{className:"w-full",children:[t&&E("div",{className:"flex items-center justify-between mb-6",children:k(ar,{variant:"ghost",size:"sm",onClick:t,className:"text-sm font-medium",children:[E(PB,{className:"w-4 h-4 mr-2"}),"Back to Traces"]})}),k("div",{className:"space-y-4",children:[E(Bn,{title:"Request Overview",icon:jB,headerRight:E(ar,{onClick:a,variant:"ghost",size:"sm",className:"h-7 cursor-pointer",children:E(VB,{className:"w-4 h-4"})}),children:k("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[k("div",{children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Method"}),E("p",{className:"font-mono text-sm font-medium",children:r.method})]}),k("div",{className:"col-span-2",children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Path"}),E("p",{className:"font-mono text-sm font-medium truncate",children:r.path})]}),k("div",{children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Status"}),E(xt,{className:`text-xs font-mono ${p(r.statusCode)}`,children:r.statusCode||"Pending"})]}),k("div",{children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Duration"}),(h=r.metadata)!=null&&h.clientDuration?k("div",{className:"space-y-1",children:[k("div",{className:"flex items-center gap-2",children:[E("span",{className:"text-xs text-muted-foreground",children:"Server:"}),E("span",{className:"font-mono text-sm",children:u(r.duration)})]}),k("div",{className:"flex items-center gap-2",children:[E("span",{className:"text-xs text-muted-foreground",children:"Total:"}),E("span",{className:"font-mono text-sm font-medium",children:u(r.metadata.clientDuration)})]}),k("div",{className:"flex items-center gap-2",children:[E("span",{className:"text-xs text-muted-foreground",children:"Network:"}),E("span",{className:"font-mono text-sm text-blue-600 dark:text-blue-400",children:u(r.metadata.clientDuration-(r.duration||0))})]})]}):E("p",{className:`font-mono text-sm font-medium ${r.duration&&r.duration>1e3?"text-orange-600 dark:text-orange-400":""}`,children:u(r.duration)})]}),k("div",{className:"col-span-2",children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Timestamp"}),E("p",{className:"font-mono text-sm",children:l(r.timestamp)})]}),k("div",{children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Trace ID"}),E("p",{className:"font-mono text-xs text-muted-foreground",children:r.id})]})]})}),(()=>{const d=["request","response","sessionId","clientDuration"],m=Object.keys(r.metadata||{}).filter(D=>!d.includes(D));return m.length===0?null:E(Bn,{title:"Context",icon:MB,children:E("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:m.map(D=>k("div",{children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:D}),E("div",{className:"font-mono text-sm bg-muted/50 rounded px-2 py-1 inline-block break-all",children:typeof r.metadata[D]=="object"?JSON.stringify(r.metadata[D]):String(r.metadata[D])})]},D))})})})(),E(UU,{trace:r,formatDuration:u}),r.logs&&r.logs.length>0&&E(c3,{logs:r.logs}),r.spans.length>0&&E(Bn,{title:"Spans Timeline",icon:$B,headerExtra:k("span",{className:"text-xs text-muted-foreground font-mono ml-2",children:[r.spans.length," ",r.spans.length===1?"span":"spans"]}),children:E(zU,{spans:r.spans,formatDuration:u})})]})]})}function to(r,t,e){let n=e.initialDeps??[],a;function u(){var l,p,h,d;let m;e.key&&((l=e.debug)!=null&&l.call(e))&&(m=Date.now());const D=r();if(!(D.length!==n.length||D.some((b,C)=>n[C]!==b)))return a;n=D;let x;if(e.key&&((p=e.debug)!=null&&p.call(e))&&(x=Date.now()),a=t(...D),e.key&&((h=e.debug)!=null&&h.call(e))){const b=Math.round((Date.now()-m)*100)/100,C=Math.round((Date.now()-x)*100)/100,S=C/16,v=(F,w)=>{for(F=String(F);F.length<w;)F=" "+F;return F};console.info(`%c⏱ ${v(C,5)} /${v(b,5)} ms`,`
|
|
379
|
+
font-size: .6rem;
|
|
380
|
+
font-weight: bold;
|
|
381
|
+
color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(d=e==null?void 0:e.onChange)==null||d.call(e,a),a}return u.updateDeps=l=>{n=l},u}function U2(r,t){if(r===void 0)throw new Error("Unexpected undefined");return r}const JU=(r,t)=>Math.abs(r-t)<1.01,XU=(r,t,e)=>{let n;return function(...a){r.clearTimeout(n),n=r.setTimeout(()=>t.apply(this,a),e)}},q2=r=>{const{offsetWidth:t,offsetHeight:e}=r;return{width:t,height:e}},GU=r=>r,KU=r=>{const t=Math.max(r.startIndex-r.overscan,0),e=Math.min(r.endIndex+r.overscan,r.count-1),n=[];for(let a=t;a<=e;a++)n.push(a);return n},QU=(r,t)=>{const e=r.scrollElement;if(!e)return;const n=r.targetWindow;if(!n)return;const a=l=>{const{width:p,height:h}=l;t({width:Math.round(p),height:Math.round(h)})};if(a(q2(e)),!n.ResizeObserver)return()=>{};const u=new n.ResizeObserver(l=>{const p=()=>{const h=l[0];if(h!=null&&h.borderBoxSize){const d=h.borderBoxSize[0];if(d){a({width:d.inlineSize,height:d.blockSize});return}}a(q2(e))};r.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(p):p()});return u.observe(e,{box:"border-box"}),()=>{u.unobserve(e)}},H2={passive:!0},V2=typeof window>"u"?!0:"onscrollend"in window,YU=(r,t)=>{const e=r.scrollElement;if(!e)return;const n=r.targetWindow;if(!n)return;let a=0;const u=r.options.useScrollendEvent&&V2?()=>{}:XU(n,()=>{t(a,!1)},r.options.isScrollingResetDelay),l=m=>()=>{const{horizontal:D,isRtl:g}=r.options;a=D?e.scrollLeft*(g&&-1||1):e.scrollTop,u(),t(a,m)},p=l(!0),h=l(!1);h(),e.addEventListener("scroll",p,H2);const d=r.options.useScrollendEvent&&V2;return d&&e.addEventListener("scrollend",h,H2),()=>{e.removeEventListener("scroll",p),d&&e.removeEventListener("scrollend",h)}},WU=(r,t,e)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[e.options.horizontal?"inlineSize":"blockSize"])}return r[e.options.horizontal?"offsetWidth":"offsetHeight"]},ZU=(r,{adjustments:t=0,behavior:e},n)=>{var a,u;const l=r+t;(u=(a=n.scrollElement)==null?void 0:a.scrollTo)==null||u.call(a,{[n.options.horizontal?"left":"top"]:l,behavior:e})};class eq{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const n=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(a=>{a.forEach(u=>{const l=()=>{this._measureElement(u.target,u)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var a;(a=n())==null||a.disconnect(),e=null},observe:a=>{var u;return(u=n())==null?void 0:u.observe(a,{box:"border-box"})},unobserve:a=>{var u;return(u=n())==null?void 0:u.unobserve(a)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([n,a])=>{typeof a>"u"&&delete e[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:GU,rangeExtractor:KU,onChange:()=>{},measureElement:WU,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var n,a;(a=(n=this.options).onChange)==null||a.call(n,this,e)},this.maybeNotify=to(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,u)=>{this.scrollAdjustments=0,this.scrollDirection=u?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=u,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,n)=>{const a=new Map,u=new Map;for(let l=n-1;l>=0;l--){const p=e[l];if(a.has(p.lane))continue;const h=u.get(p.lane);if(h==null||p.end>h.end?u.set(p.lane,p):p.end<h.end&&a.set(p.lane,!0),a.size===this.options.lanes)break}return u.size===this.options.lanes?Array.from(u.values()).sort((l,p)=>l.end===p.end?l.index-p.index:l.end-p.end)[0]:void 0},this.getMeasurementOptions=to(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,n,a,u,l)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:a,getItemKey:u,enabled:l}),{key:!1}),this.getMeasurements=to(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:n,scrollMargin:a,getItemKey:u,enabled:l},p)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(m=>{this.itemSizeCache.set(m.key,m.size)}));const h=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const d=this.measurementsCache.slice(0,h);for(let m=h;m<e;m++){const D=u(m),g=this.options.lanes===1?d[m-1]:this.getFurthestMeasurement(d,m),x=g?g.end+this.options.gap:n+a,b=p.get(D),C=typeof b=="number"?b:this.options.estimateSize(m),S=x+C,v=g?g.lane:m%this.options.lanes;d[m]={index:m,start:x,size:C,end:S,key:D,lane:v}}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=to(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,n,a,u)=>this.range=e.length>0&&n>0?tq({measurements:e,outerSize:n,scrollOffset:a,lanes:u}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=to(()=>{let e=null,n=null;const a=this.calculateRange();return a&&(e=a.startIndex,n=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,n]},(e,n,a,u,l)=>u===null||l===null?[]:e({startIndex:u,endIndex:l,overscan:n,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const n=this.options.indexAttribute,a=e.getAttribute(n);return a?parseInt(a,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(e,n)=>{const a=this.indexFromElement(e),u=this.measurementsCache[a];if(!u)return;const l=u.key,p=this.elementsCache.get(l);p!==e&&(p&&this.observer.unobserve(p),this.observer.observe(e),this.elementsCache.set(l,e)),e.isConnected&&this.resizeItem(a,this.options.measureElement(e,n,this))},this.resizeItem=(e,n)=>{const a=this.measurementsCache[e];if(!a)return;const u=this.itemSizeCache.get(a.key)??a.size,l=n-u;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,l,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,n)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((n,a)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(a))});return}this._measureElement(e,void 0)},this.getVirtualItems=to(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,n)=>{const a=[];for(let u=0,l=e.length;u<l;u++){const p=e[u],h=n[p];a.push(h)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const n=this.getMeasurements();if(n.length!==0)return U2(n[d3(0,n.length-1,a=>U2(n[a]).start,e)])},this.getOffsetForAlignment=(e,n,a=0)=>{const u=this.getSize(),l=this.getScrollOffset();n==="auto"&&(n=e>=l+u?"end":"start"),n==="center"?e+=(a-u)/2:n==="end"&&(e-=u);const p=this.getTotalSize()+this.options.scrollMargin-u;return Math.max(Math.min(p,e),0)},this.getOffsetForIndex=(e,n="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.measurementsCache[e];if(!a)return;const u=this.getSize(),l=this.getScrollOffset();if(n==="auto")if(a.end>=l+u-this.options.scrollPaddingEnd)n="end";else if(a.start<=l+this.options.scrollPaddingStart)n="start";else return[l,n];const p=n==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(p,n,a.size),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:n="start",behavior:a}={})=>{a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,n),{adjustments:void 0,behavior:a})},this.scrollToIndex=(e,{align:n="auto",behavior:a}={})=>{a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let u=0;const l=10,p=d=>{if(!this.targetWindow)return;const m=this.getOffsetForIndex(e,d);if(!m){console.warn("Failed to get offset for index:",e);return}const[D,g]=m;this._scrollToOffset(D,{adjustments:void 0,behavior:a}),this.targetWindow.requestAnimationFrame(()=>{const x=this.getScrollOffset(),b=this.getOffsetForIndex(e,g);if(!b){console.warn("Failed to get offset for index:",e);return}JU(b[0],x)||h(g)})},h=d=>{this.targetWindow&&(u++,u<l?this.targetWindow.requestAnimationFrame(()=>p(d)):console.warn(`Failed to scroll to index ${e} after ${l} attempts.`))};p(n)},this.scrollBy=(e,{behavior:n}={})=>{n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var e;const n=this.getMeasurements();let a;if(n.length===0)a=this.options.paddingStart;else if(this.options.lanes===1)a=((e=n[n.length-1])==null?void 0:e.end)??0;else{const u=Array(this.options.lanes).fill(null);let l=n.length-1;for(;l>=0&&u.some(p=>p===null);){const p=n[l];u[p.lane]===null&&(u[p.lane]=p.end),l--}a=Math.max(...u.filter(p=>p!==null))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:n,behavior:a})=>{this.options.scrollToFn(e,{behavior:a,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const d3=(r,t,e,n)=>{for(;r<=t;){const a=(r+t)/2|0,u=e(a);if(u<n)r=a+1;else if(u>n)t=a-1;else return a}return r>0?r-1:0};function tq({measurements:r,outerSize:t,scrollOffset:e,lanes:n}){const a=r.length-1,u=h=>r[h].start;if(r.length<=n)return{startIndex:0,endIndex:a};let l=d3(0,a,u,e),p=l;if(n===1)for(;p<a&&r[p].end<e+t;)p++;else if(n>1){const h=Array(n).fill(0);for(;p<a&&h.some(m=>m<e+t);){const m=r[p];h[m.lane]=m.end,p++}const d=Array(n).fill(e+t);for(;l>=0&&d.some(m=>m>=e);){const m=r[l];d[m.lane]=m.start,l--}l=Math.max(0,l-l%n),p=Math.min(a,p+(n-1-p%n))}return{startIndex:l,endIndex:p}}const J2=typeof document<"u"?P.useLayoutEffect:P.useEffect;function rq(r){const t=P.useReducer(()=>({}),{})[1],e={...r,onChange:(a,u)=>{var l;u?vB.flushSync(t):t(),(l=r.onChange)==null||l.call(r,a,u)}},[n]=P.useState(()=>new eq(e));return n.setOptions(e),J2(()=>n._didMount(),[]),J2(()=>n._willUpdate()),n}function nq(r){return rq({observeElementRect:QU,observeElementOffset:YU,scrollToFn:ZU,...r})}function sq(){const[r,t]=P.useState("all"),[e,n]=P.useState(""),a=tP(),u=Bc(),{data:l=[]}=eP({limit:1e4,level:r==="all"?void 0:r,search:e||void 0}),p=P.useRef(null),h=nq({count:l.length,getScrollElement:()=>p.current,estimateSize:()=>28,overscan:20,measureElement:b=>b.getBoundingClientRect().height}),d=()=>{confirm("Clear all logs?")&&a.mutate()},m=b=>{var F;const S=(b.message||"").match(/traceId=([^\s]+)/);if(S)return S[1];const v=(F=b==null?void 0:b.args)==null?void 0:F.find(w=>w&&typeof w=="object"&&"traceId"in w);return v==null?void 0:v.traceId},D=b=>{if(!b)return{cleanMessage:"",properties:null};const C=/(\w+)=(?:"([^"]*)"|([^\s]*))/g,S=[...b.matchAll(C)];if(S.length===0)return{cleanMessage:b,properties:null};let v=b;const F={};return S.forEach(w=>{const[T,B,_,V]=w,U=_??V;v=v.replace(T,"");try{F[B]=U.startsWith("{")||U.startsWith("[")?JSON.parse(U):U}catch{F[B]=U}}),{cleanMessage:v.replace(/\s+/g," ").trim(),properties:F}},g=b=>{switch(b==null?void 0:b.toLowerCase()){case"error":return"text-red-500 dark:text-red-400";case"warn":return"text-yellow-500 dark:text-yellow-400";case"info":return"text-blue-500 dark:text-blue-400";case"debug":return"text-purple-500 dark:text-purple-400";default:return"text-gray-500 dark:text-gray-400"}},x=b=>new Date(b).toISOString().split("T")[1].slice(0,-1);return k("div",{className:"h-full flex flex-col bg-background",children:[k("div",{className:"border-b border-border px-6 py-4 bg-background/80 backdrop-blur-sm",children:[k("div",{className:"flex items-center justify-between mb-4",children:[k("div",{className:"flex items-center gap-2",children:[E(Yy,{className:"w-5 h-5 text-muted-foreground"}),E("h1",{className:"text-lg font-semibold tracking-tight",children:"System Logs"})]}),E("div",{className:"flex gap-2",children:k(ar,{variant:"outline",size:"sm",onClick:d,className:"text-xs font-mono h-8",children:[E(_C,{className:"w-3.5 h-3.5 mr-1.5"}),"clear_logs"]})})]}),k("div",{className:"flex flex-col md:flex-row gap-4",children:[E("div",{className:"flex gap-1 p-1 bg-muted rounded-lg self-start",children:["all","log","info","warn","error","debug"].map(b=>E("button",{onClick:()=>t(b),className:`px-3 py-1 text-[11px] font-medium font-mono uppercase tracking-wider rounded-md transition-all ${r===b?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground hover:bg-background/50"}`,children:b},b))}),k("div",{className:"flex-1 max-w-md relative group",children:[E(JB,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground group-focus-within:text-primary transition-colors"}),E(so,{type:"text",placeholder:"grep logs...",value:e,onChange:b=>n(b.target.value),className:"pl-9 h-9 text-sm font-mono bg-muted/50 border-transparent focus:border-border focus:bg-background transition-all"})]}),E("div",{className:"flex items-center gap-2 ml-auto text-xs font-mono text-muted-foreground",children:k("span",{children:[l.length," entries"]})})]})]}),E("div",{ref:p,className:"flex-1 overflow-auto px-4 py-2 font-mono text-[11px] md:text-xs",children:l.length===0?k("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground opacity-50",children:[E(Yy,{className:"w-12 h-12 mb-4 stroke-1"}),E("p",{className:"text-sm",children:"No logs output"}),E("p",{className:"text-xs mt-1 font-mono",children:"Waiting for system activity..."})]}):E("div",{style:{height:`${h.getTotalSize()}px`,width:"100%",position:"relative"},children:h.getVirtualItems().map(b=>{const C=l[b.index],S=m(C),v=C.message.includes("starting request")||C.message.includes("request completed")||C.message.includes("request failed"),{cleanMessage:F,properties:w}=v?D(C.message):{cleanMessage:C.message,properties:null};return k("div",{"data-index":b.index,ref:h.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${b.start}px)`},className:"group flex items-start gap-3 hover:bg-muted/40 px-2 -mx-2 rounded transition-colors py-0.5",children:[E("span",{className:"shrink-0 text-muted-foreground select-none w-20 md:w-24 tabular-nums opacity-60 group-hover:opacity-100 transition-opacity",children:x(C.timestamp)}),E("span",{className:`shrink-0 w-10 md:w-12 font-bold uppercase tracking-wider text-[10px] md:text-[11px] py-px ${g(C.level)}`,children:C.level}),k("div",{className:"flex-1 min-w-0",children:[k("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[E("span",{className:"text-foreground break-words whitespace-pre-wrap leading-relaxed",children:F}),v&&k(gt,{children:[w&&Object.entries(w).map(([T,B])=>k("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] bg-muted text-muted-foreground border border-border",children:[k("span",{className:"opacity-70 mr-1",children:[T,"="]}),E("span",{className:"font-medium text-foreground",children:String(B)})]},`meta-${T}`)),C.context&&Object.entries(C.context).map(([T,B])=>["request","response","sessionId","clientDuration"].includes(T)||w&&T in w?null:k("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] bg-blue-50 dark:bg-blue-900/30 text-blue-600 dark:text-blue-300 border border-blue-100 dark:border-blue-800/50",children:[k("span",{className:"opacity-70 mr-1",children:[T,"="]}),E("span",{className:"font-medium",children:typeof B=="object"?JSON.stringify(B):String(B)})]},`ctx-${T}`))]}),S&&k("button",{onClick:()=>u(`/traces/${S}`),className:"inline-flex items-center gap-1 text-[10px] text-primary hover:underline opacity-0 group-hover:opacity-100 transition-opacity ml-auto",children:[k("span",{children:["trace:",S.slice(0,7)]}),E(IB,{className:"w-3 h-3"})]})]}),C.stack&&k("details",{className:"mt-1",onToggle:T=>{const B=T.currentTarget.closest("[data-index]")||void 0;B&&h.measureElement(B)},children:[E("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground select-none inline-flex items-center gap-1 transition-colors",children:E("span",{className:"text-[10px] uppercase tracking-wide",children:"Show Stack Trace"})}),E("div",{className:"mt-2 pl-3 border-l-2 border-border text-muted-foreground overflow-x-auto",children:E("pre",{className:"font-mono text-[10px] leading-relaxed whitespace-pre select-text",children:C.stack})})]})]})]},b.key)})})})]})}function aq(r){const t=r+"CollectionProvider",[e,n]=ad(t),[a,u]=e(t,{collectionRef:{current:null},itemMap:new Map}),l=C=>{const{scope:S,children:v}=C,F=Is.useRef(null),w=Is.useRef(new Map).current;return E(a,{scope:S,itemMap:w,collectionRef:F,children:v})};l.displayName=t;const p=r+"CollectionSlot",h=Zy(p),d=Is.forwardRef((C,S)=>{const{scope:v,children:F}=C,w=u(p,v),T=es(S,w.collectionRef);return E(h,{ref:T,children:F})});d.displayName=p;const m=r+"CollectionItemSlot",D="data-radix-collection-item",g=Zy(m),x=Is.forwardRef((C,S)=>{const{scope:v,children:F,...w}=C,T=Is.useRef(null),B=es(S,T),_=u(m,v);return Is.useEffect(()=>(_.itemMap.set(T,{ref:T,...w}),()=>void _.itemMap.delete(T))),E(g,{[D]:"",ref:B,children:F})});x.displayName=m;function b(C){const S=u(r+"CollectionConsumer",C);return Is.useCallback(()=>{const F=S.collectionRef.current;if(!F)return[];const w=Array.from(F.querySelectorAll(`[${D}]`));return Array.from(S.itemMap.values()).sort((_,V)=>w.indexOf(_.ref.current)-w.indexOf(V.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:d,ItemSlot:x},b,n]}var iq=iC[" useId ".trim().toString()]||(()=>{}),uq=0;function f3(r){const[t,e]=P.useState(iq());return gc(()=>{e(n=>n??String(uq++))},[r]),t?`radix-${t}`:""}var oq=iC[" useInsertionEffect ".trim().toString()]||gc;function m3({prop:r,defaultProp:t,onChange:e=()=>{},caller:n}){const[a,u,l]=lq({defaultProp:t,onChange:e}),p=r!==void 0,h=p?r:a;{const m=P.useRef(r!==void 0);P.useEffect(()=>{const D=m.current;D!==p&&console.warn(`${n} is changing from ${D?"controlled":"uncontrolled"} to ${p?"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=p},[p,n])}const d=P.useCallback(m=>{var D;if(p){const g=cq(m)?m(r):m;g!==r&&((D=l.current)==null||D.call(l,g))}else u(m)},[p,r,u,l]);return[h,d]}function lq({defaultProp:r,onChange:t}){const[e,n]=P.useState(r),a=P.useRef(e),u=P.useRef(t);return oq(()=>{u.current=t},[t]),P.useEffect(()=>{var l;a.current!==e&&((l=u.current)==null||l.call(u,e),a.current=e)},[e,a]),[e,n,u]}function cq(r){return typeof r=="function"}var My="rovingFocusGroup.onEntryFocus",pq={bubbles:!1,cancelable:!0},Uc="RovingFocusGroup",[I0,y3,hq]=aq(Uc),[dq,D3]=ad(Uc,[hq]),[fq,mq]=dq(Uc),g3=P.forwardRef((r,t)=>E(I0.Provider,{scope:r.__scopeRovingFocusGroup,children:E(I0.Slot,{scope:r.__scopeRovingFocusGroup,children:E(yq,{...r,ref:t})})}));g3.displayName=Uc;var yq=P.forwardRef((r,t)=>{const{__scopeRovingFocusGroup:e,orientation:n,loop:a=!1,dir:u,currentTabStopId:l,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...D}=r,g=P.useRef(null),x=es(t,g),b=sD(u),[C,S]=m3({prop:l,defaultProp:p??null,onChange:h,caller:Uc}),[v,F]=P.useState(!1),w=ja(d),T=y3(e),B=P.useRef(!1),[_,V]=P.useState(0);return P.useEffect(()=>{const U=g.current;if(U)return U.addEventListener(My,w),()=>U.removeEventListener(My,w)},[w]),E(fq,{scope:e,orientation:n,dir:b,loop:a,currentTabStopId:C,onItemFocus:P.useCallback(U=>S(U),[S]),onItemShiftTab:P.useCallback(()=>F(!0),[]),onFocusableItemAdd:P.useCallback(()=>V(U=>U+1),[]),onFocusableItemRemove:P.useCallback(()=>V(U=>U-1),[]),children:E(Wr.div,{tabIndex:v||_===0?-1:0,"data-orientation":n,...D,ref:x,style:{outline:"none",...r.style},onMouseDown:cr(r.onMouseDown,()=>{B.current=!0}),onFocus:cr(r.onFocus,U=>{const Y=!B.current;if(U.target===U.currentTarget&&Y&&!v){const O=new CustomEvent(My,pq);if(U.currentTarget.dispatchEvent(O),!O.defaultPrevented){const H=T().filter(J=>J.focusable),re=H.find(J=>J.active),X=H.find(J=>J.id===C),Be=[re,X,...H].filter(Boolean).map(J=>J.ref.current);b3(Be,m)}}B.current=!1}),onBlur:cr(r.onBlur,()=>F(!1))})})}),x3="RovingFocusGroupItem",E3=P.forwardRef((r,t)=>{const{__scopeRovingFocusGroup:e,focusable:n=!0,active:a=!1,tabStopId:u,children:l,...p}=r,h=f3(),d=u||h,m=mq(x3,e),D=m.currentTabStopId===d,g=y3(e),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:C}=m;return P.useEffect(()=>{if(n)return x(),()=>b()},[n,x,b]),E(I0.ItemSlot,{scope:e,id:d,focusable:n,active:a,children:E(Wr.span,{tabIndex:D?0:-1,"data-orientation":m.orientation,...p,ref:t,onMouseDown:cr(r.onMouseDown,S=>{n?m.onItemFocus(d):S.preventDefault()}),onFocus:cr(r.onFocus,()=>m.onItemFocus(d)),onKeyDown:cr(r.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){m.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const v=xq(S,m.orientation,m.dir);if(v!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let w=g().filter(T=>T.focusable).map(T=>T.ref.current);if(v==="last")w.reverse();else if(v==="prev"||v==="next"){v==="prev"&&w.reverse();const T=w.indexOf(S.currentTarget);w=m.loop?Eq(w,T+1):w.slice(T+1)}setTimeout(()=>b3(w))}}),children:typeof l=="function"?l({isCurrentTabStop:D,hasTabStop:C!=null}):l})})});E3.displayName=x3;var Dq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gq(r,t){return t!=="rtl"?r:r==="ArrowLeft"?"ArrowRight":r==="ArrowRight"?"ArrowLeft":r}function xq(r,t,e){const n=gq(r.key,e);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Dq[n]}function b3(r,t=!1){const e=document.activeElement;for(const n of r)if(n===e||(n.focus({preventScroll:t}),document.activeElement!==e))return}function Eq(r,t){return r.map((e,n)=>r[(t+n)%r.length])}var bq=g3,Aq=E3,vd="Tabs",[Cq]=ad(vd,[D3]),A3=D3(),[Fq,Tg]=Cq(vd),C3=P.forwardRef((r,t)=>{const{__scopeTabs:e,value:n,onValueChange:a,defaultValue:u,orientation:l="horizontal",dir:p,activationMode:h="automatic",...d}=r,m=sD(p),[D,g]=m3({prop:n,onChange:a,defaultProp:u??"",caller:vd});return E(Fq,{scope:e,baseId:f3(),value:D,onValueChange:g,orientation:l,dir:m,activationMode:h,children:E(Wr.div,{dir:m,"data-orientation":l,...d,ref:t})})});C3.displayName=vd;var F3="TabsList",v3=P.forwardRef((r,t)=>{const{__scopeTabs:e,loop:n=!0,...a}=r,u=Tg(F3,e),l=A3(e);return E(bq,{asChild:!0,...l,orientation:u.orientation,dir:u.dir,loop:n,children:E(Wr.div,{role:"tablist","aria-orientation":u.orientation,...a,ref:t})})});v3.displayName=F3;var S3="TabsTrigger",T3=P.forwardRef((r,t)=>{const{__scopeTabs:e,value:n,disabled:a=!1,...u}=r,l=Tg(S3,e),p=A3(e),h=B3(l.baseId,n),d=P3(l.baseId,n),m=n===l.value;return E(Aq,{asChild:!0,...p,focusable:!a,active:m,children:E(Wr.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":d,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:h,...u,ref:t,onMouseDown:cr(r.onMouseDown,D=>{!a&&D.button===0&&D.ctrlKey===!1?l.onValueChange(n):D.preventDefault()}),onKeyDown:cr(r.onKeyDown,D=>{[" ","Enter"].includes(D.key)&&l.onValueChange(n)}),onFocus:cr(r.onFocus,()=>{const D=l.activationMode!=="manual";!m&&!a&&D&&l.onValueChange(n)})})})});T3.displayName=S3;var w3="TabsContent",N3=P.forwardRef((r,t)=>{const{__scopeTabs:e,value:n,forceMount:a,children:u,...l}=r,p=Tg(w3,e),h=B3(p.baseId,n),d=P3(p.baseId,n),m=n===p.value,D=P.useRef(m);return P.useEffect(()=>{const g=requestAnimationFrame(()=>D.current=!1);return()=>cancelAnimationFrame(g)},[]),E($o,{present:a||m,children:({present:g})=>E(Wr.div,{"data-state":m?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":h,hidden:!g,id:d,tabIndex:0,...l,ref:t,style:{...r.style,animationDuration:D.current?"0s":void 0},children:g&&u})})});N3.displayName=w3;function B3(r,t){return`${r}-trigger-${t}`}function P3(r,t){return`${r}-content-${t}`}var vq=C3,k3=v3,I3=T3,M3=N3;const Sq=vq,O3=P.forwardRef(({className:r,...t},e)=>E(k3,{ref:e,className:qt("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",r),...t}));O3.displayName=k3.displayName;const M0=P.forwardRef(({className:r,...t},e)=>E(I3,{ref:e,className:qt("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",r),...t}));M0.displayName=I3.displayName;const O0=P.forwardRef(({className:r,...t},e)=>E(M3,{ref:e,className:qt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...t}));O0.displayName=M3.displayName;function Tq(){const{data:r=[],isLoading:t}=UC(),{data:e=[],isLoading:n}=sP(),a=t||n,u=p=>p?new Date(p).toLocaleString():"Never",l=(p,h)=>p===0?0:Math.round((p-h)/p*100);return a?E("div",{className:"flex items-center justify-center h-96",children:k("div",{className:"text-center",children:[E("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),E("p",{className:"text-gray-600",children:"Loading events and cron jobs..."})]})}):k("div",{className:"flex flex-col h-full bg-background",children:[k("div",{className:"bg-background border-b px-6 py-4 flex-shrink-0",children:[E("h1",{className:"text-lg font-semibold",children:"Events & Cron Jobs"}),E("p",{className:"text-sm text-muted-foreground mt-1.5",children:"Monitor your event-driven architecture and scheduled tasks"})]}),E("div",{className:"bg-background px-6 py-4 flex-1 min-h-0",children:k(Sq,{defaultValue:"events",className:"w-full h-full flex flex-col",children:[k(O3,{className:"grid w-full grid-cols-2",children:[k(M0,{value:"events",children:[E(_o,{className:"w-4 h-4 mr-2"}),"Events (",r.length,")"]}),k(M0,{value:"crons",children:[E(nd,{className:"w-4 h-4 mr-2"}),"Cron Jobs (",e.length,")"]})]}),E(O0,{value:"events",className:"flex-1 overflow-y-auto mt-4",children:r.length===0?E(_i,{children:E(ji,{className:"pt-4",children:E("p",{className:"text-gray-500 text-center",children:"No events registered yet"})})}):E("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:r.map(p=>k(_i,{className:"hover:shadow-md transition-shadow",children:[E(yc,{className:"pb-3",children:k("div",{className:"flex items-start justify-between",children:[k("div",{className:"flex items-start gap-3 flex-1",children:[E("div",{className:"text-xl mt-0.5",children:p.icon||"📡"}),k("div",{className:"flex-1",children:[E(Dc,{className:"text-base font-semibold",children:p.name}),p.description&&E("p",{className:"text-sm text-muted-foreground mt-1",children:p.description})]})]}),k("div",{className:"text-right",children:[E("div",{className:"text-xl font-semibold text-primary",children:p.totalCount}),E("p",{className:"text-xs text-gray-500",children:"total events"})]})]})}),k(ji,{className:"space-y-3",children:[k("div",{className:"grid grid-cols-2 gap-3",children:[k("div",{children:[E("p",{className:"text-xs text-gray-500 mb-1",children:"Handlers"}),E("p",{className:"text-sm font-medium",children:p.handlers})]}),k("div",{children:[E("p",{className:"text-xs text-gray-500 mb-1",children:"Success Rate"}),k("div",{className:"flex items-center gap-2",children:[E("div",{className:"flex-1 bg-muted rounded-full h-2",children:E("div",{className:"bg-green-500 h-2 rounded-full",style:{width:`${l(p.totalCount,p.failedCount)}%`}})}),k("span",{className:"text-sm font-medium",children:[l(p.totalCount,p.failedCount),"%"]})]})]})]}),k("div",{className:"grid grid-cols-2 gap-4 pt-2 border-t",children:[k("div",{children:[E("p",{className:"text-xs text-gray-500 mb-1",children:"Last Triggered"}),E("p",{className:"text-sm",children:u(p.lastTriggered)})]}),k("div",{children:[E("p",{className:"text-xs text-gray-500 mb-1",children:"Failed Events"}),E("div",{className:"flex items-center gap-2",children:p.failedCount>0?k(gt,{children:[E(jh,{className:"w-4 h-4 text-red-500"}),E("span",{className:"text-sm font-medium text-red-600",children:p.failedCount})]}):k(gt,{children:[E(tA,{className:"w-4 h-4 text-green-500"}),E("span",{className:"text-sm text-green-600",children:"No failures"})]})})]})]}),p.tags&&p.tags.length>0&&k("div",{className:"pt-2 border-t",children:[E("p",{className:"text-xs text-gray-500 mb-2",children:"Tags"}),E("div",{className:"flex flex-wrap gap-2",children:p.tags.map(h=>k(xt,{variant:"secondary",className:"text-xs",children:[E(nA,{className:"w-3 h-3 mr-1"}),h]},h))})]})]})]},p.name))})}),E(O0,{value:"crons",className:"flex-1 overflow-y-auto mt-4",children:e.length===0?E(_i,{children:E(ji,{className:"pt-4",children:E("p",{className:"text-gray-500 text-center",children:"No cron jobs scheduled"})})}):E("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:e.map(p=>k(_i,{className:"hover:shadow-md transition-shadow",children:[E(yc,{className:"pb-3",children:k("div",{className:"flex items-start justify-between",children:[k("div",{className:"flex items-start gap-3 flex-1",children:[E("div",{className:"text-xl mt-0.5",children:p.icon||"⏰"}),k("div",{className:"flex-1",children:[E(Dc,{className:"text-base font-semibold",children:p.name}),p.description&&E("p",{className:"text-sm text-muted-foreground mt-1",children:p.description}),k("div",{className:"mt-2 flex items-center gap-2",children:[E(OB,{className:"w-4 h-4 text-gray-500"}),E("code",{className:"text-xs bg-muted px-2 py-1 rounded font-mono",children:p.schedule})]})]})]}),k("div",{className:"text-right",children:[E("div",{className:"text-xl font-semibold text-primary",children:p.totalRuns}),E("p",{className:"text-xs text-gray-500",children:"total runs"})]})]})}),k(ji,{className:"space-y-3",children:[k("div",{className:"grid grid-cols-2 gap-3",children:[k("div",{children:[E("p",{className:"text-xs text-gray-500 mb-1",children:"Success Rate"}),k("div",{className:"flex items-center gap-2",children:[E("div",{className:"flex-1 bg-muted rounded-full h-2",children:E("div",{className:"bg-green-500 h-2 rounded-full",style:{width:`${l(p.totalRuns,p.failedRuns)}%`}})}),k("span",{className:"text-sm font-medium",children:[l(p.totalRuns,p.failedRuns),"%"]})]})]}),k("div",{children:[E("p",{className:"text-xs text-gray-500 mb-1",children:"Failed Runs"}),E("div",{className:"flex items-center gap-2",children:p.failedRuns>0?k(gt,{children:[E(jh,{className:"w-4 h-4 text-red-500"}),E("span",{className:"text-sm font-medium text-red-600",children:p.failedRuns})]}):k(gt,{children:[E(tA,{className:"w-4 h-4 text-green-500"}),E("span",{className:"text-sm text-green-600",children:"No failures"})]})})]})]}),k("div",{className:"grid grid-cols-2 gap-4 pt-2 border-t",children:[k("div",{children:[E("p",{className:"text-xs text-gray-500 mb-1",children:"Last Run"}),E("p",{className:"text-sm",children:u(p.lastRun)})]}),k("div",{children:[E("p",{className:"text-xs text-gray-500 mb-1",children:"Next Run"}),E("p",{className:"text-sm",children:u(p.nextRun)})]})]}),p.tags&&p.tags.length>0&&k("div",{className:"pt-2 border-t",children:[E("p",{className:"text-xs text-gray-500 mb-2",children:"Tags"}),E("div",{className:"flex flex-wrap gap-2",children:p.tags.map(h=>k(xt,{variant:"secondary",className:"text-xs",children:[E(nA,{className:"w-3 h-3 mr-1"}),h]},h))})]})]})]},p.name))})})]})})]})}function wq(){var F,w,T;const{data:r}=tD(),{data:t=[]}=nP(),e=Bc(),[n,a]=P.useState(null),[u,l]=P.useState(new Set),p=(F=r==null?void 0:r.metadata)==null?void 0:F.integrations,h=B=>{const _=new Set(u);_.has(B)?_.delete(B):_.add(B),l(_)},d=(B,_,V)=>{a({service:B,method:_,path:V})},m=()=>{n&&e(`/api-explorer?method=${n.method}&path=${n.path}`)},D=t.reduce((B,_)=>B+_.routes.length,0),g=n?(w=t.find(B=>B.name===n.service))==null?void 0:w.routes.find(B=>B.method===n.method&&B.path===n.path):null,x=B=>{const _=B==null?void 0:B.match(/:(\w+)/g);return _?_.map(V=>V.slice(1)):[]},b=B=>{switch(B){case"GET":return"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300";case"POST":return"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300";case"PUT":return"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300";case"DELETE":return"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300";case"PATCH":return"bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300";default:return"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300"}},C=B=>B.includes("database")||B.includes("postgres")||B.includes("mysql")?E(eD,{className:"w-4 h-4"}):E(Zm,{className:"w-4 h-4"}),S=B=>{try{const _=new URL(B);return _.password&&(_.password="***"),_.toString()}catch{return B}},v=x(n==null?void 0:n.path);return k("div",{className:"h-full flex bg-background",children:[k("div",{className:"w-80 border-r border-border bg-muted/20 flex flex-col",children:[E("div",{className:"px-4 py-3 border-b border-border bg-muted/20",children:k("div",{className:"flex items-center justify-between",children:[E("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Services"}),E(xt,{variant:"secondary",className:"text-xs",children:t.length})]})}),E(Uh,{className:"flex-1",style:{contentVisibility:"auto"},children:E("div",{className:"p-3",children:t.length===0?k("div",{className:"text-center text-sm text-muted-foreground py-12",children:[E(Zm,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),E("p",{className:"text-sm",children:"No services discovered yet"})]}):E("div",{className:"space-y-2",children:t.map(B=>k("div",{children:[k("button",{className:"w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left hover:bg-gray-100 dark:hover:bg-primary dark:hover:text-primary-foreground rounded",onClick:()=>h(B.name),children:[u.has(B.name)?E(W0,{className:"w-4 h-4 flex-shrink-0"}):E(Z0,{className:"w-4 h-4 flex-shrink-0"}),E("span",{className:"font-medium",children:B.name}),E("span",{className:"text-xs text-gray-500 ml-auto",children:B.routes.length})]}),u.has(B.name)&&E("div",{className:"ml-6 mt-1 space-y-0.5",children:B.routes.map((_,V)=>k("button",{className:`w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left rounded ${(n==null?void 0:n.service)===B.name&&(n==null?void 0:n.method)===_.method&&(n==null?void 0:n.path)===_.path?"bg-blue-50 text-blue-700":"hover:bg-gray-50 dark:hover:bg-primary dark:hover:text-primary-foreground"}`,onClick:()=>d(B.name,_.method,_.path),children:[E(xt,{className:`text-[10px] font-mono w-12 flex items-center justify-center px-1.5 py-0 ${b(_.method)}`,children:_.method}),E("span",{className:"text-xs truncate",children:_.path})]},`${_.method}-${_.path}-${V}`))})]},B.name))})})})]}),E(Uh,{className:"flex-1",children:k("div",{className:"p-6",children:[E("h1",{className:"text-lg font-semibold mb-6",children:"Service Catalog"}),k(Bn,{title:(r==null?void 0:r.name)||"Unknown Service",icon:NB,className:"mb-6",children:[k("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[k("div",{children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Version"}),E("p",{className:"text-sm font-medium",children:(r==null?void 0:r.version)||"N/A"})]}),k("div",{children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Framework"}),E("p",{className:"text-sm font-medium",children:((T=r==null?void 0:r.metadata)==null?void 0:T.framework)||"N/A"})]}),k("div",{children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Status"}),E(xt,{variant:r!=null&&r.running?"default":"secondary",className:r!=null&&r.running?"bg-green-600":"",children:r!=null&&r.running?"Running":"Stopped"})]}),k("div",{children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Endpoints"}),E("p",{className:"text-sm font-medium",children:D})]})]}),(r==null?void 0:r.description)&&k("div",{className:"mt-4 pt-4 border-t",children:[E("p",{className:"text-xs text-muted-foreground mb-1 uppercase tracking-wide",children:"Description"}),E("p",{className:"text-sm",children:r.description})]})]}),p&&Object.keys(p).length>0&&E(Bn,{title:"Integrations",icon:zB,className:"mb-6",children:E("div",{className:"space-y-3",children:Object.entries(p).map(([B,_])=>k("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[E("div",{className:"mt-0.5",children:C(B)}),k("div",{className:"flex-1 min-w-0",children:[E("p",{className:"text-sm font-medium capitalize",children:B}),E("p",{className:"text-xs text-muted-foreground font-mono truncate",title:_,children:S(_)})]})]},B))})}),n&&E(Bn,{title:n.path,icon:Zm,headerExtra:k(gt,{children:[E(xt,{className:`text-xs font-mono ml-2 ${b(n.method)}`,children:n.method}),E("span",{className:"text-xs text-muted-foreground font-mono ml-2",children:n.service})]}),headerRight:k(ar,{onClick:m,className:"bg-blue-600 hover:bg-blue-700 text-white text-xs cursor-pointer",size:"sm",children:[E(RC,{className:"w-4 h-4 mr-2"}),"Test in API Explorer"]}),children:k("div",{className:"space-y-6",children:[v.length>0?k("div",{children:[E("h3",{className:"text-sm font-semibold mb-3",children:"Path Parameters"}),E("div",{className:"space-y-2",children:v.map(B=>k("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[E("code",{className:"text-sm font-mono font-semibold text-primary",children:B}),E("span",{className:"text-xs text-muted-foreground mt-0.5",children:"string"})]},B))})]}):null,g!=null&&g.queryParams&&g.queryParams.fields.length>0?k("div",{children:[E("h3",{className:"text-sm font-semibold mb-3",children:"Query Parameters"}),E("div",{className:"space-y-2",children:g.queryParams.fields.map(B=>E("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:k("div",{className:"flex-1",children:[k("div",{className:"flex items-center gap-2",children:[E("code",{className:"text-sm font-mono font-semibold",children:B.name}),E(xt,{variant:"outline",className:"text-xs",children:B.type}),B.required&&E(xt,{variant:"destructive",className:"text-xs",children:"required"})]}),B.description&&E("p",{className:"text-xs text-muted-foreground mt-1",children:B.description})]})},B.name))}),E("p",{className:"text-xs text-muted-foreground mt-2",children:"Auto-generated from Zod schema"})]}):n.method==="GET"?k("div",{children:[E("h3",{className:"text-sm font-semibold mb-3",children:"Query Parameters"}),E("div",{className:"p-4 bg-muted rounded-lg border",children:E("p",{className:"text-sm text-muted-foreground",children:"No query schema defined. Add query parameters in API Explorer"})})]}):null,["POST","PUT","PATCH"].includes(n.method)&&k("div",{children:[E("h3",{className:"text-sm font-semibold mb-3",children:"Request Body Schema"}),g!=null&&g.requestBody?k("div",{className:"space-y-3",children:[E("div",{className:"space-y-2",children:g.requestBody.fields.map(B=>E("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:k("div",{className:"flex-1",children:[k("div",{className:"flex items-center gap-2",children:[E("code",{className:"text-sm font-mono font-semibold",children:B.name}),E(xt,{variant:"outline",className:"text-xs",children:B.type}),B.required&&E(xt,{variant:"destructive",className:"text-xs",children:"required"})]}),B.description&&E("p",{className:"text-xs text-muted-foreground mt-1",children:B.description})]})},B.name))}),E("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]}):E("div",{className:"p-4 bg-muted rounded-lg border",children:E("p",{className:"text-sm text-muted-foreground",children:"No schema defined. Configure request body in API Explorer"})})]}),(g==null?void 0:g.responseBody)&&k("div",{children:[E("h3",{className:"text-sm font-semibold mb-3",children:"Response Body Schema"}),k("div",{className:"space-y-3",children:[E("div",{className:"space-y-2",children:g.responseBody.fields.map(B=>E("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:k("div",{className:"flex-1",children:[k("div",{className:"flex items-center gap-2",children:[E("code",{className:"text-sm font-mono font-semibold",children:B.name}),E(xt,{variant:"outline",className:"text-xs",children:B.type}),B.required&&E(xt,{variant:"secondary",className:"text-xs",children:"always present"})]}),B.description&&E("p",{className:"text-xs text-muted-foreground mt-1",children:B.description})]})},B.name))}),E("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]})]}),(g==null?void 0:g.handler)&&g.handler!=="anonymous"&&k("div",{children:[E("h3",{className:"text-sm font-semibold mb-3",children:"Handler"}),E("code",{className:"text-sm bg-muted px-3 py-1.5 rounded border inline-block",children:g.handler})]})]})})]})})]})}const Nq=rD("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),L3=P.forwardRef(({className:r,variant:t,...e},n)=>E("div",{ref:n,role:"alert",className:qt(Nq({variant:t}),r),...e}));L3.displayName="Alert";const Bq=P.forwardRef(({className:r,...t},e)=>E("h5",{ref:e,className:qt("mb-1 font-medium leading-none tracking-tight",r),...t}));Bq.displayName="AlertTitle";const R3=P.forwardRef(({className:r,...t},e)=>E("div",{ref:e,className:qt("text-sm [&_p]:leading-relaxed",r),...t}));R3.displayName="AlertDescription";function Pq(){var n,a,u;const{data:r}=tD(),t=(n=r==null?void 0:r.metadata)==null?void 0:n.drizzle;if(!(t!=null&&t.detected))return E("div",{className:"h-full flex items-center justify-center bg-muted p-6",children:k(_i,{className:"max-w-lg",children:[E(yc,{children:k(Dc,{className:"flex items-center gap-2 text-base",children:[E(jh,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-500"}),"No Database Detected"]})}),k(ji,{className:"space-y-4",children:[E("p",{className:"text-sm text-muted-foreground",children:"Vision couldn't detect a Drizzle configuration file."}),k("div",{className:"space-y-3",children:[E("p",{className:"text-sm font-medium",children:"To enable database features:"}),k("ol",{className:"list-decimal list-inside space-y-2 text-sm text-muted-foreground",children:[k("li",{children:["Create ",E("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono border",children:"drizzle.config.ts"})]}),E("li",{children:"Enable auto-start in Vision config:"})]}),E("pre",{className:"bg-gray-900 dark:bg-gray-950 text-gray-300 dark:text-gray-400 p-4 rounded-md text-xs overflow-x-auto font-mono border",children:`app.use('*', visionAdapter({
|
|
382
|
+
drizzle: {
|
|
383
|
+
autoStart: true, // Auto-start Drizzle Studio
|
|
384
|
+
port: 4983 // Optional, default: 4983
|
|
385
|
+
}
|
|
386
|
+
}))`})]})]})]})});const e=t.studioUrl;return k("div",{className:"h-full flex flex-col bg-background",children:[E("div",{className:"border-b px-6 py-4 bg-background",children:k("div",{className:"flex items-center justify-between",children:[k("div",{className:"flex items-center gap-3",children:[E(eD,{className:"w-5 h-5 text-blue-600 dark:text-blue-500"}),k("div",{className:"flex items-center gap-3",children:[E("h1",{className:"text-lg font-semibold",children:"Drizzle Studio"}),k("div",{className:"flex items-center gap-2 mt-1",children:[E(xt,{variant:t.autoStarted?"default":"secondary",className:t.autoStarted?"bg-green-600 hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700 text-xs":"text-xs",children:t.autoStarted?"Running":"Stopped"}),E("span",{className:"text-xs text-muted-foreground",children:t.autoStarted?"Auto-started":"Manual start required"})]})]})]}),E("div",{className:"flex items-center gap-2",children:e&&k(ar,{variant:"outline",size:"sm",onClick:()=>window.open(e,"_blank"),children:[E(RC,{className:"w-4 h-4 mr-2"}),E("span",{className:"text-sm font-medium",children:"Open in New Tab"})]})})]})}),!t.autoStarted&&E("div",{className:"p-6",children:k(L3,{className:"border-yellow-200 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-950",children:[E(jh,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-500"}),E(R3,{children:k("div",{className:"space-y-3",children:[E("p",{className:"text-sm font-medium",children:"Drizzle Studio is not running"}),E("p",{className:"text-sm text-muted-foreground",children:"Start Drizzle Studio manually or enable auto-start:"}),E("pre",{className:"bg-gray-900 dark:bg-gray-950 text-gray-300 dark:text-gray-400 p-4 rounded-md text-xs overflow-x-auto font-mono border",children:`# Start manually:
|
|
387
|
+
npx drizzle-kit studio --port ${((u=(a=t.studioUrl)==null?void 0:a.match(/:(\d+)/))==null?void 0:u[1])||4983}
|
|
388
|
+
|
|
389
|
+
# Or enable auto-start:
|
|
390
|
+
drizzle: { autoStart: true }`})]})})]})}),e&&t.autoStarted&&E("div",{className:"flex-1 relative",children:E("iframe",{src:e,className:"absolute inset-0 w-full h-full border-0",title:"Drizzle Studio",allow:"cross-origin-isolated"})})]})}function kq({toasts:r,removeToast:t}){return E("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none",children:r.map(e=>E(Iq,{toast:e,onClose:()=>t(e.id)},e.id))})}function Iq({toast:r,onClose:t}){const[e,n]=P.useState(!1);P.useEffect(()=>{const u=r.duration??3e3,l=setTimeout(()=>{n(!0),setTimeout(t,300)},u);return()=>clearTimeout(l)},[r.duration,t]);const a={success:"bg-green-600",error:"bg-red-600",info:"bg-blue-600"}[r.type??"info"];return k("div",{className:`pointer-events-auto flex items-center gap-3 ${a} text-white px-4 py-3 rounded-lg shadow-lg min-w-[300px] max-w-[400px] transition-all duration-300 ${e?"opacity-0 translate-x-full":"opacity-100 translate-x-0"}`,children:[E("span",{className:"flex-1 text-sm",children:r.message}),E("button",{onClick:()=>{n(!0),setTimeout(t,300)},className:"text-white/80 hover:text-white transition-colors","aria-label":"Close",children:E(jC,{className:"w-4 h-4"})})]})}const Mq=new UN;function Oq({children:r}){const{connected:t,error:e}=QB();return e?E("div",{className:"flex items-center justify-center h-screen",children:k("div",{className:"text-center",children:[E("h1",{className:"text-2xl font-bold text-red-600 mb-2",children:"Connection Error"}),E("p",{className:"text-gray-600",children:e.message})]})}):t?E(gt,{children:r}):E("div",{className:"flex items-center justify-center h-screen",children:k("div",{className:"text-center",children:[E("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),E("p",{className:"text-gray-600",children:"Connecting to Vision Dashboard..."})]})})}function Lq(){const{traceId:r}=X0(),{data:t}=YB(r||"");return t?E(VU,{trace:t}):E("div",{className:"text-gray-500",children:"Loading trace..."})}function Rq(){return E(OU,{children:E(_q,{})})}function _q(){const{toasts:r,removeToast:t}=Sg();return k(gt,{children:[E(yB,{children:E(Oq,{children:E(X6,{children:k(qn,{path:"/",element:E(XP,{}),children:[E(qn,{index:!0,element:E(V6,{to:"/api-explorer",replace:!0})}),E(qn,{path:"api-explorer",element:E(RU,{})}),E(qn,{path:"traces",element:E(qU,{}),children:E(qn,{path:":traceId",element:E(Lq,{})})}),E(qn,{path:"logs",element:E(sq,{})}),E(qn,{path:"events",element:E(Tq,{})}),E(qn,{path:"services",element:E(wq,{})}),E(qn,{path:"database",element:E(Pq,{})})]})})})}),E(kq,{toasts:r,removeToast:t})]})}xN.createRoot(document.getElementById("app")).render(E(Is.StrictMode,{children:E(qN,{client:Mq,children:E(Rq,{})})}));
|