@illuma-ai/codeviz 1.0.12 → 1.0.18

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.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),S=require("react");function Pi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}function X1(e){if(Array.isArray(e))return e}function Y1(e,t,r){return(t=rc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K1(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var s,i,o,c,u=[],h=!0,f=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(h=(s=o.call(r)).done)&&(u.push(s.value),u.length!==t);h=!0);}catch(m){f=!0,i=m}finally{try{if(!h&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(f)throw i}}return u}}function Q1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,s)}return r}function Ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ni(Object(r),!0).forEach(function(s){Y1(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function J1(e,t){if(e==null)return{};var r,s,i=Z1(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Z1(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function ec(e,t){return X1(e)||K1(e,t)||nc(e,t)||Q1()}function tc(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rc(e){var t=tc(e,"string");return typeof t=="symbol"?t:t+""}function nc(e,t){if(e){if(typeof e=="string")return Pi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pi(e,t):void 0}}function sc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,s)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Li(Object(r),!0).forEach(function(s){sc(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Li(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function ic(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(s){return t.reduceRight(function(i,o){return o(i)},s)}}function $r(e){return function t(){for(var r=this,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var c=arguments.length,u=new Array(c),h=0;h<c;h++)u[h]=arguments[h];return t.apply(r,[].concat(i,u))}}}function _n(e){return{}.toString.call(e).includes("Object")}function ac(e){return!Object.keys(e).length}function Yr(e){return typeof e=="function"}function oc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function cc(e,t){return _n(t)||$t("changeType"),Object.keys(t).some(function(r){return!oc(e,r)})&&$t("changeField"),t}function lc(e){Yr(e)||$t("selectorType")}function uc(e){Yr(e)||_n(e)||$t("handlerType"),_n(e)&&Object.values(e).some(function(t){return!Yr(t)})&&$t("handlersType")}function pc(e){e||$t("initialIsRequired"),_n(e)||$t("initialType"),ac(e)&&$t("initialContent")}function hc(e,t){throw new Error(e[t]||e.default)}var fc={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},$t=$r(hc)(fc),fn={changes:cc,selector:lc,handler:uc,initial:pc};function dc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fn.initial(e),fn.handler(t);var r={current:e},s=$r(xc)(r,t),i=$r(gc)(r),o=$r(fn.changes)(e),c=$r(mc)(r);function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return fn.selector(f),f(r.current)}function h(f){ic(s,i,o,c)(f)}return[u,h]}function mc(e,t){return Yr(t)?t(e.current):t}function gc(e,t){return e.current=Di(Di({},e.current),t),t}function xc(e,t,r){return Yr(t)?t(e.current):Object.keys(r).forEach(function(s){var i;return(i=t[s])===null||i===void 0?void 0:i.call(t,e.current[s])}),r}var kc={create:dc},bc={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function yc(e){return function t(){for(var r=this,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var c=arguments.length,u=new Array(c),h=0;h<c;h++)u[h]=arguments[h];return t.apply(r,[].concat(i,u))}}}function vc(e){return{}.toString.call(e).includes("Object")}function wc(e){return e||Oi("configIsRequired"),vc(e)||Oi("configType"),e.urls?(_c(),{paths:{vs:e.urls.monacoBase}}):e}function _c(){console.warn(ha.deprecation)}function Sc(e,t){throw new Error(e[t]||e.default)}var ha={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),S=require("react");function Pi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}function Yc(e){if(Array.isArray(e))return e}function Kc(e,t,r){return(t=n1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qc(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var s,i,o,c,u=[],f=!0,h=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(s=o.call(r)).done)&&(u.push(s.value),u.length!==t);f=!0);}catch(d){h=!0,i=d}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(h)throw i}}return u}}function Jc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,s)}return r}function Ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ni(Object(r),!0).forEach(function(s){Kc(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function Zc(e,t){if(e==null)return{};var r,s,i=e1(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function e1(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function t1(e,t){return Yc(e)||Qc(e,t)||s1(e,t)||Jc()}function r1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n1(e){var t=r1(e,"string");return typeof t=="symbol"?t:t+""}function s1(e,t){if(e){if(typeof e=="string")return Pi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pi(e,t):void 0}}function i1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,s)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Li(Object(r),!0).forEach(function(s){i1(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Li(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function a1(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(s){return t.reduceRight(function(i,o){return o(i)},s)}}function Ur(e){return function t(){for(var r=this,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return t.apply(r,[].concat(i,u))}}}function In(e){return{}.toString.call(e).includes("Object")}function o1(e){return!Object.keys(e).length}function Qr(e){return typeof e=="function"}function c1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l1(e,t){return In(t)||Vt("changeType"),Object.keys(t).some(function(r){return!c1(e,r)})&&Vt("changeField"),t}function u1(e){Qr(e)||Vt("selectorType")}function p1(e){Qr(e)||In(e)||Vt("handlerType"),In(e)&&Object.values(e).some(function(t){return!Qr(t)})&&Vt("handlersType")}function h1(e){e||Vt("initialIsRequired"),In(e)||Vt("initialType"),o1(e)&&Vt("initialContent")}function f1(e,t){throw new Error(e[t]||e.default)}var d1={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Vt=Ur(f1)(d1),mn={changes:l1,selector:u1,handler:p1,initial:h1};function m1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};mn.initial(e),mn.handler(t);var r={current:e},s=Ur(k1)(r,t),i=Ur(x1)(r),o=Ur(mn.changes)(e),c=Ur(g1)(r);function u(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return mn.selector(h),h(r.current)}function f(h){a1(s,i,o,c)(h)}return[u,f]}function g1(e,t){return Qr(t)?t(e.current):t}function x1(e,t){return e.current=Di(Di({},e.current),t),t}function k1(e,t,r){return Qr(t)?t(e.current):Object.keys(r).forEach(function(s){var i;return(i=t[s])===null||i===void 0?void 0:i.call(t,e.current[s])}),r}var b1={create:m1},y1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function v1(e){return function t(){for(var r=this,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return t.apply(r,[].concat(i,u))}}}function w1(e){return{}.toString.call(e).includes("Object")}function _1(e){return e||Oi("configIsRequired"),w1(e)||Oi("configType"),e.urls?(S1(),{paths:{vs:e.urls.monacoBase}}):e}function S1(){console.warn(ha.deprecation)}function I1(e,t){throw new Error(e[t]||e.default)}var ha={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
3
3
  You are using deprecated way of configuration.
4
4
 
5
5
  Instead of using
@@ -8,7 +8,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8
8
  monaco.config({ paths: { vs: '...' } })
9
9
 
10
10
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
11
- `},Oi=yc(Sc)(ha),Ic={config:wc},Ec=function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return function(i){return r.reduceRight(function(o,c){return c(o)},i)}};function fa(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],fa(e[r],t[r]))}),Ri(Ri({},e),t)}var Cc={type:"cancelation",msg:"operation is manually canceled"};function fs(e){var t=!1,r=new Promise(function(s,i){e.then(function(o){return t?i(Cc):s(o)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var Tc=["monaco"],Ac=kc.create({config:bc,isInitialized:!1,resolve:null,reject:null,monaco:null}),da=ec(Ac,2),nn=da[0],Bn=da[1];function Pc(e){var t=Ic.config(e),r=t.monaco,s=J1(t,Tc);Bn(function(i){return{config:fa(i.config,s),monaco:r}})}function Nc(){var e=nn(function(t){var r=t.monaco,s=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:s,resolve:i}});if(!e.isInitialized){if(Bn({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fs(ds);if(window.monaco&&window.monaco.editor)return ma(window.monaco),e.resolve(window.monaco),fs(ds);Ec(Rc,Dc)(Oc)}return fs(ds)}function Rc(e){return document.body.appendChild(e)}function Lc(e){var t=document.createElement("script");return e&&(t.src=e),t}function Dc(e){var t=nn(function(s){var i=s.config,o=s.reject;return{config:i,reject:o}}),r=Lc("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Oc(){var e=nn(function(r){var s=r.config,i=r.resolve,o=r.reject;return{config:s,resolve:i,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var s=r.m||r;ma(s),e.resolve(s)},function(r){e.reject(r)})}function ma(e){nn().monaco||Bn({monaco:e})}function Mc(){return nn(function(e){var t=e.monaco;return t})}var ds=new Promise(function(e,t){return Bn({resolve:e,reject:t})}),ga={config:Pc,init:Nc,__getMonacoInstance:Mc},jc={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ms=jc,Fc={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Bc=Fc;function Vc({children:e}){return S.createElement("div",{style:Bc.container},e)}var $c=Vc,qc=$c;function Uc({width:e,height:t,isEditorReady:r,loading:s,_ref:i,className:o,wrapperProps:c}){return S.createElement("section",{style:{...ms.wrapper,width:e,height:t},...c},!r&&S.createElement(qc,null,s),S.createElement("div",{ref:i,style:{...ms.fullWidth,...!r&&ms.hide},className:o}))}var zc=Uc,xa=S.memo(zc);function Hc(e){S.useEffect(e,[])}var ka=Hc;function Wc(e,t,r=!0){let s=S.useRef(!0);S.useEffect(s.current||!r?()=>{s.current=!1}:e,t)}var et=Wc;function Ur(){}function yr(e,t,r,s){return Gc(e,s)||Xc(e,t,r,s)}function Gc(e,t){return e.editor.getModel(ba(e,t))}function Xc(e,t,r,s){return e.editor.createModel(t,r,s?ba(e,s):void 0)}function ba(e,t){return e.Uri.parse(t)}function Yc({original:e,modified:t,language:r,originalLanguage:s,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:h=!1,theme:f="light",loading:m="Loading...",options:x={},height:_="100%",width:y="100%",className:L,wrapperProps:j={},beforeMount:F=Ur,onMount:ne=Ur}){let[P,M]=S.useState(!1),[O,U]=S.useState(!0),H=S.useRef(null),G=S.useRef(null),A=S.useRef(null),z=S.useRef(ne),B=S.useRef(F),ce=S.useRef(!1);ka(()=>{let W=ga.init();return W.then(oe=>(G.current=oe)&&U(!1)).catch(oe=>(oe==null?void 0:oe.type)!=="cancelation"&&console.error("Monaco initialization: error:",oe)),()=>H.current?Me():W.cancel()}),et(()=>{if(H.current&&G.current){let W=H.current.getOriginalEditor(),oe=yr(G.current,e||"",s||r||"text",o||"");oe!==W.getModel()&&W.setModel(oe)}},[o],P),et(()=>{if(H.current&&G.current){let W=H.current.getModifiedEditor(),oe=yr(G.current,t||"",i||r||"text",c||"");oe!==W.getModel()&&W.setModel(oe)}},[c],P),et(()=>{let W=H.current.getModifiedEditor();W.getOption(G.current.editor.EditorOption.readOnly)?W.setValue(t||""):t!==W.getValue()&&(W.executeEdits("",[{range:W.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),W.pushUndoStop())},[t],P),et(()=>{var W,oe;(oe=(W=H.current)==null?void 0:W.getModel())==null||oe.original.setValue(e||"")},[e],P),et(()=>{let{original:W,modified:oe}=H.current.getModel();G.current.editor.setModelLanguage(W,s||r||"text"),G.current.editor.setModelLanguage(oe,i||r||"text")},[r,s,i],P),et(()=>{var W;(W=G.current)==null||W.editor.setTheme(f)},[f],P),et(()=>{var W;(W=H.current)==null||W.updateOptions(x)},[x],P);let Le=S.useCallback(()=>{var Te;if(!G.current)return;B.current(G.current);let W=yr(G.current,e||"",s||r||"text",o||""),oe=yr(G.current,t||"",i||r||"text",c||"");(Te=H.current)==null||Te.setModel({original:W,modified:oe})},[r,t,i,e,s,o,c]),$e=S.useCallback(()=>{var W;!ce.current&&A.current&&(H.current=G.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...x}),Le(),(W=G.current)==null||W.editor.setTheme(f),M(!0),ce.current=!0)},[x,f,Le]);S.useEffect(()=>{P&&z.current(H.current,G.current)},[P]),S.useEffect(()=>{!O&&!P&&$e()},[O,P,$e]);function Me(){var oe,Te,he,_e;let W=(oe=H.current)==null?void 0:oe.getModel();u||((Te=W==null?void 0:W.original)==null||Te.dispose()),h||((he=W==null?void 0:W.modified)==null||he.dispose()),(_e=H.current)==null||_e.dispose()}return S.createElement(xa,{width:y,height:_,isEditorReady:P,loading:m,_ref:A,className:L,wrapperProps:j})}var Kc=Yc;S.memo(Kc);function Qc(e){let t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var Jc=Qc,dn=new Map;function Zc({defaultValue:e,defaultLanguage:t,defaultPath:r,value:s,language:i,path:o,theme:c="light",line:u,loading:h="Loading...",options:f={},overrideServices:m={},saveViewState:x=!0,keepCurrentModel:_=!1,width:y="100%",height:L="100%",className:j,wrapperProps:F={},beforeMount:ne=Ur,onMount:P=Ur,onChange:M,onValidate:O=Ur}){let[U,H]=S.useState(!1),[G,A]=S.useState(!0),z=S.useRef(null),B=S.useRef(null),ce=S.useRef(null),Le=S.useRef(P),$e=S.useRef(ne),Me=S.useRef(),W=S.useRef(s),oe=Jc(o),Te=S.useRef(!1),he=S.useRef(!1);ka(()=>{let Z=ga.init();return Z.then(ae=>(z.current=ae)&&A(!1)).catch(ae=>(ae==null?void 0:ae.type)!=="cancelation"&&console.error("Monaco initialization: error:",ae)),()=>B.current?be():Z.cancel()}),et(()=>{var ae,de,ze,b;let Z=yr(z.current,e||s||"",t||i||"",o||r||"");Z!==((ae=B.current)==null?void 0:ae.getModel())&&(x&&dn.set(oe,(de=B.current)==null?void 0:de.saveViewState()),(ze=B.current)==null||ze.setModel(Z),x&&((b=B.current)==null||b.restoreViewState(dn.get(o))))},[o],U),et(()=>{var Z;(Z=B.current)==null||Z.updateOptions(f)},[f],U),et(()=>{!B.current||s===void 0||(B.current.getOption(z.current.editor.EditorOption.readOnly)?B.current.setValue(s):s!==B.current.getValue()&&(he.current=!0,B.current.executeEdits("",[{range:B.current.getModel().getFullModelRange(),text:s,forceMoveMarkers:!0}]),B.current.pushUndoStop(),he.current=!1))},[s],U),et(()=>{var ae,de;let Z=(ae=B.current)==null?void 0:ae.getModel();Z&&i&&((de=z.current)==null||de.editor.setModelLanguage(Z,i))},[i],U),et(()=>{var Z;u!==void 0&&((Z=B.current)==null||Z.revealLine(u))},[u],U),et(()=>{var Z;(Z=z.current)==null||Z.editor.setTheme(c)},[c],U);let _e=S.useCallback(()=>{var Z;if(!(!ce.current||!z.current)&&!Te.current){$e.current(z.current);let ae=o||r,de=yr(z.current,s||e||"",t||i||"",ae||"");B.current=(Z=z.current)==null?void 0:Z.editor.create(ce.current,{model:de,automaticLayout:!0,...f},m),x&&B.current.restoreViewState(dn.get(ae)),z.current.editor.setTheme(c),u!==void 0&&B.current.revealLine(u),H(!0),Te.current=!0}},[e,t,r,s,i,o,f,m,x,c,u]);S.useEffect(()=>{U&&Le.current(B.current,z.current)},[U]),S.useEffect(()=>{!G&&!U&&_e()},[G,U,_e]),W.current=s,S.useEffect(()=>{var Z,ae;U&&M&&((Z=Me.current)==null||Z.dispose(),Me.current=(ae=B.current)==null?void 0:ae.onDidChangeModelContent(de=>{he.current||M(B.current.getValue(),de)}))},[U,M]),S.useEffect(()=>{if(U){let Z=z.current.editor.onDidChangeMarkers(ae=>{var ze;let de=(ze=B.current.getModel())==null?void 0:ze.uri;if(de&&ae.find(b=>b.path===de.path)){let b=z.current.editor.getModelMarkers({resource:de});O==null||O(b)}});return()=>{Z==null||Z.dispose()}}return()=>{}},[U,O]);function be(){var Z,ae;(Z=Me.current)==null||Z.dispose(),_?x&&dn.set(o,B.current.saveViewState()):(ae=B.current.getModel())==null||ae.dispose(),B.current.dispose()}return S.createElement(xa,{width:y,height:L,isEditorReady:U,loading:h,_ref:ce,className:j,wrapperProps:F})}var el=Zc,tl=S.memo(el),rl=tl;const Hs=S.memo(function({size:t="md",label:r="Loading preview..."}){const s=t==="sm"?8:t==="md"?12:16,i=t==="sm"?4:t==="md"?6:8;return E.jsxs("div",{style:mn.container,children:[E.jsx("div",{style:{...mn.cubes,gap:i},children:[0,1,2].map(o=>E.jsx("div",{style:{...mn.cube,width:s,height:s,animationDelay:`${o*.15}s`}},o))}),r&&E.jsx("div",{style:mn.label,children:r}),E.jsx("style",{children:nl})]})}),nl=`
11
+ `},Oi=v1(I1)(ha),E1={config:_1},C1=function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return function(i){return r.reduceRight(function(o,c){return c(o)},i)}};function fa(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],fa(e[r],t[r]))}),Ri(Ri({},e),t)}var T1={type:"cancelation",msg:"operation is manually canceled"};function fs(e){var t=!1,r=new Promise(function(s,i){e.then(function(o){return t?i(T1):s(o)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var A1=["monaco"],P1=b1.create({config:y1,isInitialized:!1,resolve:null,reject:null,monaco:null}),da=t1(P1,2),an=da[0],Vn=da[1];function N1(e){var t=E1.config(e),r=t.monaco,s=Zc(t,A1);Vn(function(i){return{config:fa(i.config,s),monaco:r}})}function R1(){var e=an(function(t){var r=t.monaco,s=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:s,resolve:i}});if(!e.isInitialized){if(Vn({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fs(ds);if(window.monaco&&window.monaco.editor)return ma(window.monaco),e.resolve(window.monaco),fs(ds);C1(L1,O1)(M1)}return fs(ds)}function L1(e){return document.body.appendChild(e)}function D1(e){var t=document.createElement("script");return e&&(t.src=e),t}function O1(e){var t=an(function(s){var i=s.config,o=s.reject;return{config:i,reject:o}}),r=D1("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function M1(){var e=an(function(r){var s=r.config,i=r.resolve,o=r.reject;return{config:s,resolve:i,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var s=r.m||r;ma(s),e.resolve(s)},function(r){e.reject(r)})}function ma(e){an().monaco||Vn({monaco:e})}function j1(){return an(function(e){var t=e.monaco;return t})}var ds=new Promise(function(e,t){return Vn({resolve:e,reject:t})}),ga={config:N1,init:R1,__getMonacoInstance:j1},F1={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ms=F1,B1={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},$1=B1;function V1({children:e}){return S.createElement("div",{style:$1.container},e)}var q1=V1,U1=q1;function z1({width:e,height:t,isEditorReady:r,loading:s,_ref:i,className:o,wrapperProps:c}){return S.createElement("section",{style:{...ms.wrapper,width:e,height:t},...c},!r&&S.createElement(U1,null,s),S.createElement("div",{ref:i,style:{...ms.fullWidth,...!r&&ms.hide},className:o}))}var H1=z1,xa=S.memo(H1);function W1(e){S.useEffect(e,[])}var ka=W1;function G1(e,t,r=!0){let s=S.useRef(!0);S.useEffect(s.current||!r?()=>{s.current=!1}:e,t)}var et=G1;function Hr(){}function _r(e,t,r,s){return X1(e,s)||Y1(e,t,r,s)}function X1(e,t){return e.editor.getModel(ba(e,t))}function Y1(e,t,r,s){return e.editor.createModel(t,r,s?ba(e,s):void 0)}function ba(e,t){return e.Uri.parse(t)}function K1({original:e,modified:t,language:r,originalLanguage:s,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:d="Loading...",options:x={},height:y="100%",width:b="100%",className:N,wrapperProps:O={},beforeMount:F=Hr,onMount:ee=Hr}){let[P,D]=S.useState(!1),[j,U]=S.useState(!0),H=S.useRef(null),G=S.useRef(null),A=S.useRef(null),z=S.useRef(ee),B=S.useRef(F),ce=S.useRef(!1);ka(()=>{let W=ga.init();return W.then(oe=>(G.current=oe)&&U(!1)).catch(oe=>(oe==null?void 0:oe.type)!=="cancelation"&&console.error("Monaco initialization: error:",oe)),()=>H.current?je():W.cancel()}),et(()=>{if(H.current&&G.current){let W=H.current.getOriginalEditor(),oe=_r(G.current,e||"",s||r||"text",o||"");oe!==W.getModel()&&W.setModel(oe)}},[o],P),et(()=>{if(H.current&&G.current){let W=H.current.getModifiedEditor(),oe=_r(G.current,t||"",i||r||"text",c||"");oe!==W.getModel()&&W.setModel(oe)}},[c],P),et(()=>{let W=H.current.getModifiedEditor();W.getOption(G.current.editor.EditorOption.readOnly)?W.setValue(t||""):t!==W.getValue()&&(W.executeEdits("",[{range:W.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),W.pushUndoStop())},[t],P),et(()=>{var W,oe;(oe=(W=H.current)==null?void 0:W.getModel())==null||oe.original.setValue(e||"")},[e],P),et(()=>{let{original:W,modified:oe}=H.current.getModel();G.current.editor.setModelLanguage(W,s||r||"text"),G.current.editor.setModelLanguage(oe,i||r||"text")},[r,s,i],P),et(()=>{var W;(W=G.current)==null||W.editor.setTheme(h)},[h],P),et(()=>{var W;(W=H.current)==null||W.updateOptions(x)},[x],P);let Ae=S.useCallback(()=>{var Pe;if(!G.current)return;B.current(G.current);let W=_r(G.current,e||"",s||r||"text",o||""),oe=_r(G.current,t||"",i||r||"text",c||"");(Pe=H.current)==null||Pe.setModel({original:W,modified:oe})},[r,t,i,e,s,o,c]),Ve=S.useCallback(()=>{var W;!ce.current&&A.current&&(H.current=G.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...x}),Ae(),(W=G.current)==null||W.editor.setTheme(h),D(!0),ce.current=!0)},[x,h,Ae]);S.useEffect(()=>{P&&z.current(H.current,G.current)},[P]),S.useEffect(()=>{!j&&!P&&Ve()},[j,P,Ve]);function je(){var oe,Pe,he,_e;let W=(oe=H.current)==null?void 0:oe.getModel();u||((Pe=W==null?void 0:W.original)==null||Pe.dispose()),f||((he=W==null?void 0:W.modified)==null||he.dispose()),(_e=H.current)==null||_e.dispose()}return S.createElement(xa,{width:b,height:y,isEditorReady:P,loading:d,_ref:A,className:N,wrapperProps:O})}var Q1=K1;S.memo(Q1);function J1(e){let t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var Z1=J1,gn=new Map;function el({defaultValue:e,defaultLanguage:t,defaultPath:r,value:s,language:i,path:o,theme:c="light",line:u,loading:f="Loading...",options:h={},overrideServices:d={},saveViewState:x=!0,keepCurrentModel:y=!1,width:b="100%",height:N="100%",className:O,wrapperProps:F={},beforeMount:ee=Hr,onMount:P=Hr,onChange:D,onValidate:j=Hr}){let[U,H]=S.useState(!1),[G,A]=S.useState(!0),z=S.useRef(null),B=S.useRef(null),ce=S.useRef(null),Ae=S.useRef(P),Ve=S.useRef(ee),je=S.useRef(),W=S.useRef(s),oe=Z1(o),Pe=S.useRef(!1),he=S.useRef(!1);ka(()=>{let Q=ga.init();return Q.then(se=>(z.current=se)&&A(!1)).catch(se=>(se==null?void 0:se.type)!=="cancelation"&&console.error("Monaco initialization: error:",se)),()=>B.current?be():Q.cancel()}),et(()=>{var se,de,ze,v;let Q=_r(z.current,e||s||"",t||i||"",o||r||"");Q!==((se=B.current)==null?void 0:se.getModel())&&(x&&gn.set(oe,(de=B.current)==null?void 0:de.saveViewState()),(ze=B.current)==null||ze.setModel(Q),x&&((v=B.current)==null||v.restoreViewState(gn.get(o))))},[o],U),et(()=>{var Q;(Q=B.current)==null||Q.updateOptions(h)},[h],U),et(()=>{!B.current||s===void 0||(B.current.getOption(z.current.editor.EditorOption.readOnly)?B.current.setValue(s):s!==B.current.getValue()&&(he.current=!0,B.current.executeEdits("",[{range:B.current.getModel().getFullModelRange(),text:s,forceMoveMarkers:!0}]),B.current.pushUndoStop(),he.current=!1))},[s],U),et(()=>{var se,de;let Q=(se=B.current)==null?void 0:se.getModel();Q&&i&&((de=z.current)==null||de.editor.setModelLanguage(Q,i))},[i],U),et(()=>{var Q;u!==void 0&&((Q=B.current)==null||Q.revealLine(u))},[u],U),et(()=>{var Q;(Q=z.current)==null||Q.editor.setTheme(c)},[c],U);let _e=S.useCallback(()=>{var Q;if(!(!ce.current||!z.current)&&!Pe.current){Ve.current(z.current);let se=o||r,de=_r(z.current,s||e||"",t||i||"",se||"");B.current=(Q=z.current)==null?void 0:Q.editor.create(ce.current,{model:de,automaticLayout:!0,...h},d),x&&B.current.restoreViewState(gn.get(se)),z.current.editor.setTheme(c),u!==void 0&&B.current.revealLine(u),H(!0),Pe.current=!0}},[e,t,r,s,i,o,h,d,x,c,u]);S.useEffect(()=>{U&&Ae.current(B.current,z.current)},[U]),S.useEffect(()=>{!G&&!U&&_e()},[G,U,_e]),W.current=s,S.useEffect(()=>{var Q,se;U&&D&&((Q=je.current)==null||Q.dispose(),je.current=(se=B.current)==null?void 0:se.onDidChangeModelContent(de=>{he.current||D(B.current.getValue(),de)}))},[U,D]),S.useEffect(()=>{if(U){let Q=z.current.editor.onDidChangeMarkers(se=>{var ze;let de=(ze=B.current.getModel())==null?void 0:ze.uri;if(de&&se.find(v=>v.path===de.path)){let v=z.current.editor.getModelMarkers({resource:de});j==null||j(v)}});return()=>{Q==null||Q.dispose()}}return()=>{}},[U,j]);function be(){var Q,se;(Q=je.current)==null||Q.dispose(),y?x&&gn.set(o,B.current.saveViewState()):(se=B.current.getModel())==null||se.dispose(),B.current.dispose()}return S.createElement(xa,{width:b,height:N,isEditorReady:U,loading:f,_ref:ce,className:O,wrapperProps:F})}var tl=el,rl=S.memo(tl),nl=rl;const Hs=S.memo(function({size:t="md",label:r="Loading preview..."}){const s=t==="sm"?8:t==="md"?12:16,i=t==="sm"?4:t==="md"?6:8;return E.jsxs("div",{style:xn.container,children:[E.jsx("div",{style:{...xn.cubes,gap:i},children:[0,1,2].map(o=>E.jsx("div",{style:{...xn.cube,width:s,height:s,animationDelay:`${o*.15}s`}},o))}),r&&E.jsx("div",{style:xn.label,children:r}),E.jsx("style",{children:sl})]})}),sl=`
12
12
  @keyframes codevizBounce {
13
13
  0%, 80%, 100% {
14
14
  transform: scale(0.6);
@@ -23,9 +23,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23
23
  0%, 100% { opacity: 0.5; }
24
24
  50% { opacity: 1; }
25
25
  }
26
- `,mn={container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%",height:"100%",minHeight:120},cubes:{display:"flex",alignItems:"center"},cube:{borderRadius:2,backgroundColor:"#6366f1",animation:"codevizBounce 1.2s infinite ease-in-out"},label:{fontSize:12,color:"#94a3b8",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',animation:"codevizPulse 2s infinite ease-in-out"}},ya=S.memo(function({code:t,language:r,onChange:s,theme:i="dark",readOnly:o=!1,options:c,editorRef:u,baseCode:h}){const f=S.useRef(null),m=S.useRef([]),x=S.useCallback(j=>{const F=j.languages.typescript.typescriptDefaults,ne=j.languages.typescript.javascriptDefaults,P={noSemanticValidation:!0,noSyntaxValidation:!0,noSuggestionDiagnostics:!0};F.setDiagnosticsOptions(P),ne.setDiagnosticsOptions(P);const M={jsx:j.languages.typescript.JsxEmit.ReactJSX,allowJs:!0,allowNonTsExtensions:!0,esModuleInterop:!0,noEmit:!0,target:j.languages.typescript.ScriptTarget.ESNext,moduleResolution:j.languages.typescript.ModuleResolutionKind.NodeJs};F.setCompilerOptions(M),ne.setCompilerOptions(M)},[]),_=S.useCallback(j=>{f.current=j,u&&(u.current=j),il()},[u]),y=S.useCallback(j=>{s==null||s(j??"")},[s]);S.useEffect(()=>{const j=f.current;if(!j||h==null){j&&m.current.length>0&&(m.current=j.deltaDecorations(m.current,[]));return}const F=sl(h,t);m.current=j.deltaDecorations(m.current,F)},[h,t]);const L=al(r);return E.jsx("div",{style:ol.container,children:E.jsx(rl,{height:"100%",language:L,value:t,theme:i==="dark"?"vs-dark":"vs",onChange:y,beforeMount:x,onMount:_,loading:E.jsx(Hs,{size:"sm",label:"Loading editor..."}),options:{minimap:{enabled:!1},fontSize:13,lineHeight:20,padding:{top:8},scrollBeyondLastLine:!1,wordWrap:"on",tabSize:2,automaticLayout:!0,readOnly:o,domReadOnly:o,renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,glyphMargin:!0,scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8},...c}})})});function sl(e,t){const r=e.split(`
26
+ `,xn={container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%",height:"100%",minHeight:120},cubes:{display:"flex",alignItems:"center"},cube:{borderRadius:2,backgroundColor:"#6366f1",animation:"codevizBounce 1.2s infinite ease-in-out"},label:{fontSize:12,color:"#94a3b8",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',animation:"codevizPulse 2s infinite ease-in-out"}},ya=S.memo(function({code:t,language:r,onChange:s,theme:i="dark",readOnly:o=!1,options:c,editorRef:u,baseCode:f}){const h=S.useRef(null),d=S.useRef([]),x=S.useCallback(O=>{const F=O.languages.typescript.typescriptDefaults,ee=O.languages.typescript.javascriptDefaults,P={noSemanticValidation:!0,noSyntaxValidation:!0,noSuggestionDiagnostics:!0};F.setDiagnosticsOptions(P),ee.setDiagnosticsOptions(P);const D={jsx:O.languages.typescript.JsxEmit.ReactJSX,allowJs:!0,allowNonTsExtensions:!0,esModuleInterop:!0,noEmit:!0,target:O.languages.typescript.ScriptTarget.ESNext,moduleResolution:O.languages.typescript.ModuleResolutionKind.NodeJs};F.setCompilerOptions(D),ee.setCompilerOptions(D)},[]),y=S.useCallback(O=>{h.current=O,u&&(u.current=O),al()},[u]),b=S.useCallback(O=>{s==null||s(O??"")},[s]);S.useEffect(()=>{const O=h.current;if(!O||f==null){O&&d.current.length>0&&(d.current=O.deltaDecorations(d.current,[]));return}const F=il(f,t);d.current=O.deltaDecorations(d.current,F)},[f,t]);const N=ol(r);return E.jsx("div",{style:cl.container,children:E.jsx(nl,{height:"100%",language:N,value:t,theme:i==="dark"?"vs-dark":"vs",onChange:b,beforeMount:x,onMount:y,loading:E.jsx(Hs,{size:"sm",label:"Loading editor..."}),options:{minimap:{enabled:!1},fontSize:13,lineHeight:20,padding:{top:8},scrollBeyondLastLine:!1,wordWrap:"on",tabSize:2,automaticLayout:!0,readOnly:o,domReadOnly:o,renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,glyphMargin:!0,scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8},...c}})})});function il(e,t){const r=e.split(`
27
27
  `),s=t.split(`
28
- `),i=[];for(let o=0;o<s.length;o++){const c=o+1;o>=r.length?i.push({range:{startLineNumber:c,startColumn:1,endLineNumber:c,endColumn:1},options:{isWholeLine:!0,linesDecorationsClassName:"lp-diff-added-gutter",className:"lp-diff-added-line",overviewRuler:{color:"#22c55e",position:1}}}):s[o]!==r[o]&&i.push({range:{startLineNumber:c,startColumn:1,endLineNumber:c,endColumn:1},options:{isWholeLine:!0,linesDecorationsClassName:"lp-diff-modified-gutter",className:"lp-diff-modified-line",overviewRuler:{color:"#3b82f6",position:1}}})}if(r.length>s.length&&s.length>0){const o=s.length;i.push({range:{startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1},options:{isWholeLine:!1,linesDecorationsClassName:"lp-diff-deleted-gutter",overviewRuler:{color:"#ef4444",position:1}}})}return i}let Mi=!1;function il(){if(Mi)return;Mi=!0;const e=document.createElement("style");e.textContent=`
28
+ `),i=[];for(let o=0;o<s.length;o++){const c=o+1;o>=r.length?i.push({range:{startLineNumber:c,startColumn:1,endLineNumber:c,endColumn:1},options:{isWholeLine:!0,linesDecorationsClassName:"lp-diff-added-gutter",className:"lp-diff-added-line",overviewRuler:{color:"#22c55e",position:1}}}):s[o]!==r[o]&&i.push({range:{startLineNumber:c,startColumn:1,endLineNumber:c,endColumn:1},options:{isWholeLine:!0,linesDecorationsClassName:"lp-diff-modified-gutter",className:"lp-diff-modified-line",overviewRuler:{color:"#3b82f6",position:1}}})}if(r.length>s.length&&s.length>0){const o=s.length;i.push({range:{startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1},options:{isWholeLine:!1,linesDecorationsClassName:"lp-diff-deleted-gutter",overviewRuler:{color:"#ef4444",position:1}}})}return i}let Mi=!1;function al(){if(Mi)return;Mi=!0;const e=document.createElement("style");e.textContent=`
29
29
  /* Green bar — added lines */
30
30
  .lp-diff-added-gutter {
31
31
  background-color: #22c55e !important;
@@ -53,13 +53,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
53
53
  border-left: 3px solid #ef4444 !important;
54
54
  margin-left: 3px;
55
55
  }
56
- `,document.head.appendChild(e)}function al(e){return{tsx:"typescript",ts:"typescript",jsx:"javascript",js:"javascript",html:"html",css:"css",json:"json",md:"markdown",markdown:"markdown",mermaid:"markdown",mmd:"markdown",svg:"xml",csv:"plaintext",tsv:"plaintext",dot:"plaintext",gv:"plaintext",latex:"plaintext",tex:"plaintext",architecture:"xml",arch:"xml",drawio:"xml"}[e]||e}const ol={container:{width:"100%",height:"100%",overflow:"hidden"}};var d;(function(e){e[e.NONE=0]="NONE";const r=1;e[e._abstract=r]="_abstract";const s=r+1;e[e._accessor=s]="_accessor";const i=s+1;e[e._as=i]="_as";const o=i+1;e[e._assert=o]="_assert";const c=o+1;e[e._asserts=c]="_asserts";const u=c+1;e[e._async=u]="_async";const h=u+1;e[e._await=h]="_await";const f=h+1;e[e._checks=f]="_checks";const m=f+1;e[e._constructor=m]="_constructor";const x=m+1;e[e._declare=x]="_declare";const _=x+1;e[e._enum=_]="_enum";const y=_+1;e[e._exports=y]="_exports";const L=y+1;e[e._from=L]="_from";const j=L+1;e[e._get=j]="_get";const F=j+1;e[e._global=F]="_global";const ne=F+1;e[e._implements=ne]="_implements";const P=ne+1;e[e._infer=P]="_infer";const M=P+1;e[e._interface=M]="_interface";const O=M+1;e[e._is=O]="_is";const U=O+1;e[e._keyof=U]="_keyof";const H=U+1;e[e._mixins=H]="_mixins";const G=H+1;e[e._module=G]="_module";const A=G+1;e[e._namespace=A]="_namespace";const z=A+1;e[e._of=z]="_of";const B=z+1;e[e._opaque=B]="_opaque";const ce=B+1;e[e._out=ce]="_out";const Le=ce+1;e[e._override=Le]="_override";const $e=Le+1;e[e._private=$e]="_private";const Me=$e+1;e[e._protected=Me]="_protected";const W=Me+1;e[e._proto=W]="_proto";const oe=W+1;e[e._public=oe]="_public";const Te=oe+1;e[e._readonly=Te]="_readonly";const he=Te+1;e[e._require=he]="_require";const _e=he+1;e[e._satisfies=_e]="_satisfies";const be=_e+1;e[e._set=be]="_set";const Z=be+1;e[e._static=Z]="_static";const ae=Z+1;e[e._symbol=ae]="_symbol";const de=ae+1;e[e._type=de]="_type";const ze=de+1;e[e._unique=ze]="_unique";const b=ze+1;e[e._using=b]="_using"})(d||(d={}));var n;(function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const r=16;e[e.IS_KEYWORD=r]="IS_KEYWORD";const s=32;e[e.IS_ASSIGN=s]="IS_ASSIGN";const i=64;e[e.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const o=128;e[e.IS_PREFIX=o]="IS_PREFIX";const c=256;e[e.IS_POSTFIX=c]="IS_POSTFIX";const u=512;e[e.IS_EXPRESSION_START=u]="IS_EXPRESSION_START";const h=512;e[e.num=h]="num";const f=1536;e[e.bigint=f]="bigint";const m=2560;e[e.decimal=m]="decimal";const x=3584;e[e.regexp=x]="regexp";const _=4608;e[e.string=_]="string";const y=5632;e[e.name=y]="name";const L=6144;e[e.eof=L]="eof";const j=7680;e[e.bracketL=j]="bracketL";const F=8192;e[e.bracketR=F]="bracketR";const ne=9728;e[e.braceL=ne]="braceL";const P=10752;e[e.braceBarL=P]="braceBarL";const M=11264;e[e.braceR=M]="braceR";const O=12288;e[e.braceBarR=O]="braceBarR";const U=13824;e[e.parenL=U]="parenL";const H=14336;e[e.parenR=H]="parenR";const G=15360;e[e.comma=G]="comma";const A=16384;e[e.semi=A]="semi";const z=17408;e[e.colon=z]="colon";const B=18432;e[e.doubleColon=B]="doubleColon";const ce=19456;e[e.dot=ce]="dot";const Le=20480;e[e.question=Le]="question";const $e=21504;e[e.questionDot=$e]="questionDot";const Me=22528;e[e.arrow=Me]="arrow";const W=23552;e[e.template=W]="template";const oe=24576;e[e.ellipsis=oe]="ellipsis";const Te=25600;e[e.backQuote=Te]="backQuote";const he=27136;e[e.dollarBraceL=he]="dollarBraceL";const _e=27648;e[e.at=_e]="at";const be=29184;e[e.hash=be]="hash";const Z=29728;e[e.eq=Z]="eq";const ae=30752;e[e.assign=ae]="assign";const de=32640;e[e.preIncDec=de]="preIncDec";const ze=33664;e[e.postIncDec=ze]="postIncDec";const b=34432;e[e.bang=b]="bang";const I=35456;e[e.tilde=I]="tilde";const T=35841;e[e.pipeline=T]="pipeline";const C=36866;e[e.nullishCoalescing=C]="nullishCoalescing";const D=37890;e[e.logicalOR=D]="logicalOR";const Y=38915;e[e.logicalAND=Y]="logicalAND";const Q=39940;e[e.bitwiseOR=Q]="bitwiseOR";const le=40965;e[e.bitwiseXOR=le]="bitwiseXOR";const ve=41990;e[e.bitwiseAND=ve]="bitwiseAND";const me=43015;e[e.equality=me]="equality";const je=44040;e[e.lessThan=je]="lessThan";const we=45064;e[e.greaterThan=we]="greaterThan";const Ie=46088;e[e.relationalOrEqual=Ie]="relationalOrEqual";const Ee=47113;e[e.bitShiftL=Ee]="bitShiftL";const De=48137;e[e.bitShiftR=De]="bitShiftR";const At=49802;e[e.plus=At]="plus";const gt=50826;e[e.minus=gt]="minus";const xt=51723;e[e.modulo=xt]="modulo";const Tr=52235;e[e.star=Tr]="star";const lr=53259;e[e.slash=lr]="slash";const ur=54348;e[e.exponent=ur]="exponent";const pr=55296;e[e.jsxName=pr]="jsxName";const lt=56320;e[e.jsxText=lt]="jsxText";const Fe=57344;e[e.jsxEmptyText=Fe]="jsxEmptyText";const Pt=58880;e[e.jsxTagStart=Pt]="jsxTagStart";const Ze=59392;e[e.jsxTagEnd=Ze]="jsxTagEnd";const hr=60928;e[e.typeParameterStart=hr]="typeParameterStart";const Mt=61440;e[e.nonNullAssertion=Mt]="nonNullAssertion";const jt=62480;e[e._break=jt]="_break";const Ar=63504;e[e._case=Ar]="_case";const Ft=64528;e[e._catch=Ft]="_catch";const Pr=65552;e[e._continue=Pr]="_continue";const fr=66576;e[e._debugger=fr]="_debugger";const dr=67600;e[e._default=dr]="_default";const mr=68624;e[e._do=mr]="_do";const Nr=69648;e[e._else=Nr]="_else";const Rr=70672;e[e._finally=Rr]="_finally";const Lr=71696;e[e._for=Lr]="_for";const Xt=73232;e[e._function=Xt]="_function";const gr=73744;e[e._if=gr]="_if";const kt=74768;e[e._return=kt]="_return";const Dr=75792;e[e._switch=Dr]="_switch";const Or=77456;e[e._throw=Or]="_throw";const Mr=77840;e[e._try=Mr]="_try";const Yt=78864;e[e._var=Yt]="_var";const jr=79888;e[e._let=jr]="_let";const Fr=80912;e[e._const=Fr]="_const";const K=81936;e[e._while=K]="_while";const Ae=82960;e[e._with=Ae]="_with";const Se=84496;e[e._new=Se]="_new";const ut=85520;e[e._this=ut]="_this";const bt=86544;e[e._super=bt]="_super";const xr=87568;e[e._class=xr]="_class";const Nt=88080;e[e._extends=Nt]="_extends";const ns=89104;e[e._export=ns]="_export";const ss=90640;e[e._import=ss]="_import";const is=91664;e[e._yield=is]="_yield";const as=92688;e[e._null=as]="_null";const os=93712;e[e._true=os]="_true";const cs=94736;e[e._false=cs]="_false";const ls=95256;e[e._in=ls]="_in";const us=96280;e[e._instanceof=us]="_instanceof";const ps=97936;e[e._typeof=ps]="_typeof";const hs=98960;e[e._void=hs]="_void";const R1=99984;e[e._delete=R1]="_delete";const L1=100880;e[e._async=L1]="_async";const D1=101904;e[e._get=D1]="_get";const O1=102928;e[e._set=O1]="_set";const M1=103952;e[e._declare=M1]="_declare";const j1=104976;e[e._readonly=j1]="_readonly";const F1=106e3;e[e._abstract=F1]="_abstract";const B1=107024;e[e._static=B1]="_static";const V1=107536;e[e._public=V1]="_public";const $1=108560;e[e._private=$1]="_private";const q1=109584;e[e._protected=q1]="_protected";const U1=110608;e[e._override=U1]="_override";const z1=112144;e[e._as=z1]="_as";const H1=113168;e[e._enum=H1]="_enum";const W1=114192;e[e._type=W1]="_type";const G1=115216;e[e._implements=G1]="_implements"})(n||(n={}));function cl(e){switch(e){case n.num:return"num";case n.bigint:return"bigint";case n.decimal:return"decimal";case n.regexp:return"regexp";case n.string:return"string";case n.name:return"name";case n.eof:return"eof";case n.bracketL:return"[";case n.bracketR:return"]";case n.braceL:return"{";case n.braceBarL:return"{|";case n.braceR:return"}";case n.braceBarR:return"|}";case n.parenL:return"(";case n.parenR:return")";case n.comma:return",";case n.semi:return";";case n.colon:return":";case n.doubleColon:return"::";case n.dot:return".";case n.question:return"?";case n.questionDot:return"?.";case n.arrow:return"=>";case n.template:return"template";case n.ellipsis:return"...";case n.backQuote:return"`";case n.dollarBraceL:return"${";case n.at:return"@";case n.hash:return"#";case n.eq:return"=";case n.assign:return"_=";case n.preIncDec:return"++/--";case n.postIncDec:return"++/--";case n.bang:return"!";case n.tilde:return"~";case n.pipeline:return"|>";case n.nullishCoalescing:return"??";case n.logicalOR:return"||";case n.logicalAND:return"&&";case n.bitwiseOR:return"|";case n.bitwiseXOR:return"^";case n.bitwiseAND:return"&";case n.equality:return"==/!=";case n.lessThan:return"<";case n.greaterThan:return">";case n.relationalOrEqual:return"<=/>=";case n.bitShiftL:return"<<";case n.bitShiftR:return">>/>>>";case n.plus:return"+";case n.minus:return"-";case n.modulo:return"%";case n.star:return"*";case n.slash:return"/";case n.exponent:return"**";case n.jsxName:return"jsxName";case n.jsxText:return"jsxText";case n.jsxEmptyText:return"jsxEmptyText";case n.jsxTagStart:return"jsxTagStart";case n.jsxTagEnd:return"jsxTagEnd";case n.typeParameterStart:return"typeParameterStart";case n.nonNullAssertion:return"nonNullAssertion";case n._break:return"break";case n._case:return"case";case n._catch:return"catch";case n._continue:return"continue";case n._debugger:return"debugger";case n._default:return"default";case n._do:return"do";case n._else:return"else";case n._finally:return"finally";case n._for:return"for";case n._function:return"function";case n._if:return"if";case n._return:return"return";case n._switch:return"switch";case n._throw:return"throw";case n._try:return"try";case n._var:return"var";case n._let:return"let";case n._const:return"const";case n._while:return"while";case n._with:return"with";case n._new:return"new";case n._this:return"this";case n._super:return"super";case n._class:return"class";case n._extends:return"extends";case n._export:return"export";case n._import:return"import";case n._yield:return"yield";case n._null:return"null";case n._true:return"true";case n._false:return"false";case n._in:return"in";case n._instanceof:return"instanceof";case n._typeof:return"typeof";case n._void:return"void";case n._delete:return"delete";case n._async:return"async";case n._get:return"get";case n._set:return"set";case n._declare:return"declare";case n._readonly:return"readonly";case n._abstract:return"abstract";case n._static:return"static";case n._public:return"public";case n._private:return"private";case n._protected:return"protected";case n._override:return"override";case n._as:return"as";case n._enum:return"enum";case n._type:return"type";case n._implements:return"implements";default:return""}}let St=class{constructor(t,r,s){this.startTokenIndex=t,this.endTokenIndex=r,this.isFunctionScope=s}};class ll{constructor(t,r,s,i,o,c,u,h,f,m,x,_,y){this.potentialArrowAt=t,this.noAnonFunctionType=r,this.inDisallowConditionalTypesContext=s,this.tokensLength=i,this.scopesLength=o,this.pos=c,this.type=u,this.contextualKeyword=h,this.start=f,this.end=m,this.isType=x,this.scopeDepth=_,this.error=y}}class We{constructor(){We.prototype.__init.call(this),We.prototype.__init2.call(this),We.prototype.__init3.call(this),We.prototype.__init4.call(this),We.prototype.__init5.call(this),We.prototype.__init6.call(this),We.prototype.__init7.call(this),We.prototype.__init8.call(this),We.prototype.__init9.call(this),We.prototype.__init10.call(this),We.prototype.__init11.call(this),We.prototype.__init12.call(this),We.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=n.eof}__init8(){this.contextualKeyword=d.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new ll(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}}var g;(function(e){e[e.backSpace=8]="backSpace";const r=10;e[e.lineFeed=r]="lineFeed";const s=9;e[e.tab=s]="tab";const i=13;e[e.carriageReturn=i]="carriageReturn";const o=14;e[e.shiftOut=o]="shiftOut";const c=32;e[e.space=c]="space";const u=33;e[e.exclamationMark=u]="exclamationMark";const h=34;e[e.quotationMark=h]="quotationMark";const f=35;e[e.numberSign=f]="numberSign";const m=36;e[e.dollarSign=m]="dollarSign";const x=37;e[e.percentSign=x]="percentSign";const _=38;e[e.ampersand=_]="ampersand";const y=39;e[e.apostrophe=y]="apostrophe";const L=40;e[e.leftParenthesis=L]="leftParenthesis";const j=41;e[e.rightParenthesis=j]="rightParenthesis";const F=42;e[e.asterisk=F]="asterisk";const ne=43;e[e.plusSign=ne]="plusSign";const P=44;e[e.comma=P]="comma";const M=45;e[e.dash=M]="dash";const O=46;e[e.dot=O]="dot";const U=47;e[e.slash=U]="slash";const H=48;e[e.digit0=H]="digit0";const G=49;e[e.digit1=G]="digit1";const A=50;e[e.digit2=A]="digit2";const z=51;e[e.digit3=z]="digit3";const B=52;e[e.digit4=B]="digit4";const ce=53;e[e.digit5=ce]="digit5";const Le=54;e[e.digit6=Le]="digit6";const $e=55;e[e.digit7=$e]="digit7";const Me=56;e[e.digit8=Me]="digit8";const W=57;e[e.digit9=W]="digit9";const oe=58;e[e.colon=oe]="colon";const Te=59;e[e.semicolon=Te]="semicolon";const he=60;e[e.lessThan=he]="lessThan";const _e=61;e[e.equalsTo=_e]="equalsTo";const be=62;e[e.greaterThan=be]="greaterThan";const Z=63;e[e.questionMark=Z]="questionMark";const ae=64;e[e.atSign=ae]="atSign";const de=65;e[e.uppercaseA=de]="uppercaseA";const ze=66;e[e.uppercaseB=ze]="uppercaseB";const b=67;e[e.uppercaseC=b]="uppercaseC";const I=68;e[e.uppercaseD=I]="uppercaseD";const T=69;e[e.uppercaseE=T]="uppercaseE";const C=70;e[e.uppercaseF=C]="uppercaseF";const D=71;e[e.uppercaseG=D]="uppercaseG";const Y=72;e[e.uppercaseH=Y]="uppercaseH";const Q=73;e[e.uppercaseI=Q]="uppercaseI";const le=74;e[e.uppercaseJ=le]="uppercaseJ";const ve=75;e[e.uppercaseK=ve]="uppercaseK";const me=76;e[e.uppercaseL=me]="uppercaseL";const je=77;e[e.uppercaseM=je]="uppercaseM";const we=78;e[e.uppercaseN=we]="uppercaseN";const Ie=79;e[e.uppercaseO=Ie]="uppercaseO";const Ee=80;e[e.uppercaseP=Ee]="uppercaseP";const De=81;e[e.uppercaseQ=De]="uppercaseQ";const At=82;e[e.uppercaseR=At]="uppercaseR";const gt=83;e[e.uppercaseS=gt]="uppercaseS";const xt=84;e[e.uppercaseT=xt]="uppercaseT";const Tr=85;e[e.uppercaseU=Tr]="uppercaseU";const lr=86;e[e.uppercaseV=lr]="uppercaseV";const ur=87;e[e.uppercaseW=ur]="uppercaseW";const pr=88;e[e.uppercaseX=pr]="uppercaseX";const lt=89;e[e.uppercaseY=lt]="uppercaseY";const Fe=90;e[e.uppercaseZ=Fe]="uppercaseZ";const Pt=91;e[e.leftSquareBracket=Pt]="leftSquareBracket";const Ze=92;e[e.backslash=Ze]="backslash";const hr=93;e[e.rightSquareBracket=hr]="rightSquareBracket";const Mt=94;e[e.caret=Mt]="caret";const jt=95;e[e.underscore=jt]="underscore";const Ar=96;e[e.graveAccent=Ar]="graveAccent";const Ft=97;e[e.lowercaseA=Ft]="lowercaseA";const Pr=98;e[e.lowercaseB=Pr]="lowercaseB";const fr=99;e[e.lowercaseC=fr]="lowercaseC";const dr=100;e[e.lowercaseD=dr]="lowercaseD";const mr=101;e[e.lowercaseE=mr]="lowercaseE";const Nr=102;e[e.lowercaseF=Nr]="lowercaseF";const Rr=103;e[e.lowercaseG=Rr]="lowercaseG";const Lr=104;e[e.lowercaseH=Lr]="lowercaseH";const Xt=105;e[e.lowercaseI=Xt]="lowercaseI";const gr=106;e[e.lowercaseJ=gr]="lowercaseJ";const kt=107;e[e.lowercaseK=kt]="lowercaseK";const Dr=108;e[e.lowercaseL=Dr]="lowercaseL";const Or=109;e[e.lowercaseM=Or]="lowercaseM";const Mr=110;e[e.lowercaseN=Mr]="lowercaseN";const Yt=111;e[e.lowercaseO=Yt]="lowercaseO";const jr=112;e[e.lowercaseP=jr]="lowercaseP";const Fr=113;e[e.lowercaseQ=Fr]="lowercaseQ";const K=114;e[e.lowercaseR=K]="lowercaseR";const Ae=115;e[e.lowercaseS=Ae]="lowercaseS";const Se=116;e[e.lowercaseT=Se]="lowercaseT";const ut=117;e[e.lowercaseU=ut]="lowercaseU";const bt=118;e[e.lowercaseV=bt]="lowercaseV";const xr=119;e[e.lowercaseW=xr]="lowercaseW";const Nt=120;e[e.lowercaseX=Nt]="lowercaseX";const ns=121;e[e.lowercaseY=ns]="lowercaseY";const ss=122;e[e.lowercaseZ=ss]="lowercaseZ";const is=123;e[e.leftCurlyBrace=is]="leftCurlyBrace";const as=124;e[e.verticalBar=as]="verticalBar";const os=125;e[e.rightCurlyBrace=os]="rightCurlyBrace";const cs=126;e[e.tilde=cs]="tilde";const ls=160;e[e.nonBreakingSpace=ls]="nonBreakingSpace";const us=5760;e[e.oghamSpaceMark=us]="oghamSpaceMark";const ps=8232;e[e.lineSeparator=ps]="lineSeparator";const hs=8233;e[e.paragraphSeparator=hs]="paragraphSeparator"})(g||(g={}));let Vn,ue,xe,a,N,va;function Kr(){return va++}function ul(e){if("pos"in e){const t=hl(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}class pl{constructor(t,r){this.line=t,this.column=r}}function hl(e){let t=1,r=1;for(let s=0;s<e;s++)N.charCodeAt(s)===g.lineFeed?(t++,r=1):r++;return new pl(t,r)}function fl(e,t,r,s){N=e,a=new We,va=1,Vn=t,ue=r,xe=s}function q(e){return a.contextualKeyword===e}function Ws(e){const t=an();return t.type===n.name&&t.contextualKeyword===e}function Be(e){return a.contextualKeyword===e&&k(n.name)}function Oe(e){Be(e)||te()}function tt(){return p(n.eof)||p(n.braceR)||Xe()}function Xe(){const e=a.tokens[a.tokens.length-1],t=e?e.end:0;for(let r=t;r<a.start;r++){const s=N.charCodeAt(r);if(s===g.lineFeed||s===g.carriageReturn||s===8232||s===8233)return!0}return!1}function wa(){const e=Gs();for(let t=a.end;t<e;t++){const r=N.charCodeAt(t);if(r===g.lineFeed||r===g.carriageReturn||r===8232||r===8233)return!0}return!1}function vt(){return k(n.semi)||tt()}function Ce(){vt()||te('Unexpected token, expected ";"')}function v(e){k(e)||te(`Unexpected token, expected "${cl(e)}"`)}function te(e="Unexpected token",t=a.start){if(a.error)return;const r=new SyntaxError(e);r.pos=t,a.error=r,a.pos=N.length,ee(n.eof)}const _a=[9,11,12,g.space,g.nonBreakingSpace,g.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],ji=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Sa=new Uint8Array(65536);for(const e of _a)Sa[e]=1;function dl(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const ft=new Uint8Array(65536);for(let e=0;e<128;e++)ft[e]=dl(e)?1:0;for(let e=128;e<65536;e++)ft[e]=1;for(const e of _a)ft[e]=0;ft[8232]=0;ft[8233]=0;const sn=ft.slice();for(let e=g.digit0;e<=g.digit9;e++)sn[e]=0;const Fi=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,d._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,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(s>-1&&!ft[t]){a.pos=r,s&1?ee(s>>>1):ee(n.name,s>>>1);return}for(;r<N.length;){const i=N.charCodeAt(r);if(ft[i])r++;else if(i===g.backslash){if(r+=2,N.charCodeAt(r)===g.leftCurlyBrace){for(;r<N.length&&N.charCodeAt(r)!==g.rightCurlyBrace;)r++;r++}}else if(i===g.atSign&&N.charCodeAt(r+1)===g.atSign)r+=2;else break}a.pos=r,ee(n.name)}var X;(function(e){e[e.Access=0]="Access";const r=1;e[e.ExportAccess=r]="ExportAccess";const s=r+1;e[e.TopLevelDeclaration=s]="TopLevelDeclaration";const i=s+1;e[e.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const o=i+1;e[e.BlockScopedDeclaration=o]="BlockScopedDeclaration";const c=o+1;e[e.ObjectShorthandTopLevelDeclaration=c]="ObjectShorthandTopLevelDeclaration";const u=c+1;e[e.ObjectShorthandFunctionScopedDeclaration=u]="ObjectShorthandFunctionScopedDeclaration";const h=u+1;e[e.ObjectShorthandBlockScopedDeclaration=h]="ObjectShorthandBlockScopedDeclaration";const f=h+1;e[e.ObjectShorthand=f]="ObjectShorthand";const m=f+1;e[e.ImportDeclaration=m]="ImportDeclaration";const x=m+1;e[e.ObjectKey=x]="ObjectKey";const _=x+1;e[e.ImportAccess=_]="ImportAccess"})(X||(X={}));var ht;(function(e){e[e.NoChildren=0]="NoChildren";const r=1;e[e.OneChild=r]="OneChild";const s=r+1;e[e.StaticChildren=s]="StaticChildren";const i=s+1;e[e.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(ht||(ht={}));function Ia(e){const t=e.identifierRole;return t===X.TopLevelDeclaration||t===X.FunctionScopedDeclaration||t===X.BlockScopedDeclaration||t===X.ObjectShorthandTopLevelDeclaration||t===X.ObjectShorthandFunctionScopedDeclaration||t===X.ObjectShorthandBlockScopedDeclaration}function gl(e){const t=e.identifierRole;return t===X.FunctionScopedDeclaration||t===X.BlockScopedDeclaration||t===X.ObjectShorthandFunctionScopedDeclaration||t===X.ObjectShorthandBlockScopedDeclaration}function Ea(e){const t=e.identifierRole;return t===X.TopLevelDeclaration||t===X.ObjectShorthandTopLevelDeclaration||t===X.ImportDeclaration}function xl(e){const t=e.identifierRole;return t===X.TopLevelDeclaration||t===X.BlockScopedDeclaration||t===X.ObjectShorthandTopLevelDeclaration||t===X.ObjectShorthandBlockScopedDeclaration}function kl(e){const t=e.identifierRole;return t===X.FunctionScopedDeclaration||t===X.ObjectShorthandFunctionScopedDeclaration}function bl(e){return e.identifierRole===X.ObjectShorthandTopLevelDeclaration||e.identifierRole===X.ObjectShorthandBlockScopedDeclaration||e.identifierRole===X.ObjectShorthandFunctionScopedDeclaration}let $n=class{constructor(){this.type=a.type,this.contextualKeyword=a.contextualKeyword,this.start=a.start,this.end=a.end,this.scopeDepth=a.scopeDepth,this.isType=a.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}};function w(){a.tokens.push(new $n),Pa()}function Bt(){a.tokens.push(new $n),a.start=a.pos,Ml()}function yl(){a.type===n.assign&&--a.pos,Ll()}function ie(e){for(let r=a.tokens.length-e;r<a.tokens.length;r++)a.tokens[r].isType=!0;const t=a.isType;return a.isType=!0,t}function se(e){a.isType=e}function k(e){return p(e)?(w(),!0):!1}function Ca(e){const t=a.isType;a.isType=!0,k(e),a.isType=t}function p(e){return a.type===e}function Ne(){const e=a.snapshot();w();const t=a.type;return a.restoreFromSnapshot(e),t}class vl{constructor(t,r){this.type=t,this.contextualKeyword=r}}function an(){const e=a.snapshot();w();const t=a.type,r=a.contextualKeyword;return a.restoreFromSnapshot(e),new vl(t,r)}function Gs(){return Ta(a.pos)}function Ta(e){ji.lastIndex=e;const t=ji.exec(N);return e+t[0].length}function Aa(){return N.charCodeAt(Gs())}function Pa(){if(Ra(),a.start=a.pos,a.pos>=N.length){const e=a.tokens;e.length>=2&&e[e.length-1].start>=N.length&&e[e.length-2].start>=N.length&&te("Unexpectedly reached the end of input."),ee(n.eof);return}wl(N.charCodeAt(a.pos))}function wl(e){sn[e]||e===g.backslash||e===g.atSign&&N.charCodeAt(a.pos+1)===g.atSign?ml():Oa(e)}function _l(){for(;N.charCodeAt(a.pos)!==g.asterisk||N.charCodeAt(a.pos+1)!==g.slash;)if(a.pos++,a.pos>N.length){te("Unterminated comment",a.pos-2);return}a.pos+=2}function Na(e){let t=N.charCodeAt(a.pos+=e);if(a.pos<N.length)for(;t!==g.lineFeed&&t!==g.carriageReturn&&t!==g.lineSeparator&&t!==g.paragraphSeparator&&++a.pos<N.length;)t=N.charCodeAt(a.pos)}function Ra(){for(;a.pos<N.length;){const e=N.charCodeAt(a.pos);switch(e){case g.carriageReturn:N.charCodeAt(a.pos+1)===g.lineFeed&&++a.pos;case g.lineFeed:case g.lineSeparator:case g.paragraphSeparator:++a.pos;break;case g.slash:switch(N.charCodeAt(a.pos+1)){case g.asterisk:a.pos+=2,_l();break;case g.slash:Na(2);break;default:return}break;default:if(Sa[e])++a.pos;else return}}}function ee(e,t=d.NONE){a.end=a.pos,a.type=e,a.contextualKeyword=t}function Sl(){const e=N.charCodeAt(a.pos+1);if(e>=g.digit0&&e<=g.digit9){Ma(!0);return}e===g.dot&&N.charCodeAt(a.pos+2)===g.dot?(a.pos+=3,ee(n.ellipsis)):(++a.pos,ee(n.dot))}function Il(){N.charCodeAt(a.pos+1)===g.equalsTo?ke(n.assign,2):ke(n.slash,1)}function El(e){let t=e===g.asterisk?n.star:n.modulo,r=1,s=N.charCodeAt(a.pos+1);e===g.asterisk&&s===g.asterisk&&(r++,s=N.charCodeAt(a.pos+2),t=n.exponent),s===g.equalsTo&&N.charCodeAt(a.pos+2)!==g.greaterThan&&(r++,t=n.assign),ke(t,r)}function Cl(e){const t=N.charCodeAt(a.pos+1);if(t===e){N.charCodeAt(a.pos+2)===g.equalsTo?ke(n.assign,3):ke(e===g.verticalBar?n.logicalOR:n.logicalAND,2);return}if(e===g.verticalBar){if(t===g.greaterThan){ke(n.pipeline,2);return}else if(t===g.rightCurlyBrace&&xe){ke(n.braceBarR,2);return}}if(t===g.equalsTo){ke(n.assign,2);return}ke(e===g.verticalBar?n.bitwiseOR:n.bitwiseAND,1)}function Tl(){N.charCodeAt(a.pos+1)===g.equalsTo?ke(n.assign,2):ke(n.bitwiseXOR,1)}function Al(e){const t=N.charCodeAt(a.pos+1);if(t===e){ke(n.preIncDec,2);return}t===g.equalsTo?ke(n.assign,2):e===g.plusSign?ke(n.plus,1):ke(n.minus,1)}function Pl(){const e=N.charCodeAt(a.pos+1);if(e===g.lessThan){if(N.charCodeAt(a.pos+2)===g.equalsTo){ke(n.assign,3);return}a.isType?ke(n.lessThan,1):ke(n.bitShiftL,2);return}e===g.equalsTo?ke(n.relationalOrEqual,2):ke(n.lessThan,1)}function La(){if(a.isType){ke(n.greaterThan,1);return}const e=N.charCodeAt(a.pos+1);if(e===g.greaterThan){const t=N.charCodeAt(a.pos+2)===g.greaterThan?3:2;if(N.charCodeAt(a.pos+t)===g.equalsTo){ke(n.assign,t+1);return}ke(n.bitShiftR,t);return}e===g.equalsTo?ke(n.relationalOrEqual,2):ke(n.greaterThan,1)}function Da(){a.type===n.greaterThan&&(a.pos-=1,La())}function Nl(e){const t=N.charCodeAt(a.pos+1);if(t===g.equalsTo){ke(n.equality,N.charCodeAt(a.pos+2)===g.equalsTo?3:2);return}if(e===g.equalsTo&&t===g.greaterThan){a.pos+=2,ee(n.arrow);return}ke(e===g.equalsTo?n.eq:n.bang,1)}function Rl(){const e=N.charCodeAt(a.pos+1),t=N.charCodeAt(a.pos+2);e===g.questionMark&&!(xe&&a.isType)?t===g.equalsTo?ke(n.assign,3):ke(n.nullishCoalescing,2):e===g.dot&&!(t>=g.digit0&&t<=g.digit9)?(a.pos+=2,ee(n.questionDot)):(++a.pos,ee(n.question))}function Oa(e){switch(e){case g.numberSign:++a.pos,ee(n.hash);return;case g.dot:Sl();return;case g.leftParenthesis:++a.pos,ee(n.parenL);return;case g.rightParenthesis:++a.pos,ee(n.parenR);return;case g.semicolon:++a.pos,ee(n.semi);return;case g.comma:++a.pos,ee(n.comma);return;case g.leftSquareBracket:++a.pos,ee(n.bracketL);return;case g.rightSquareBracket:++a.pos,ee(n.bracketR);return;case g.leftCurlyBrace:xe&&N.charCodeAt(a.pos+1)===g.verticalBar?ke(n.braceBarL,2):(++a.pos,ee(n.braceL));return;case g.rightCurlyBrace:++a.pos,ee(n.braceR);return;case g.colon:N.charCodeAt(a.pos+1)===g.colon?ke(n.doubleColon,2):(++a.pos,ee(n.colon));return;case g.questionMark:Rl();return;case g.atSign:++a.pos,ee(n.at);return;case g.graveAccent:++a.pos,ee(n.backQuote);return;case g.digit0:{const t=N.charCodeAt(a.pos+1);if(t===g.lowercaseX||t===g.uppercaseX||t===g.lowercaseO||t===g.uppercaseO||t===g.lowercaseB||t===g.uppercaseB){Dl();return}}case g.digit1:case g.digit2:case g.digit3:case g.digit4:case g.digit5:case g.digit6:case g.digit7:case g.digit8:case g.digit9:Ma(!1);return;case g.quotationMark:case g.apostrophe:Ol(e);return;case g.slash:Il();return;case g.percentSign:case g.asterisk:El(e);return;case g.verticalBar:case g.ampersand:Cl(e);return;case g.caret:Tl();return;case g.plusSign:case g.dash:Al(e);return;case g.lessThan:Pl();return;case g.greaterThan:La();return;case g.equalsTo:case g.exclamationMark:Nl(e);return;case g.tilde:ke(n.tilde,1);return}te(`Unexpected character '${String.fromCharCode(e)}'`,a.pos)}function ke(e,t){a.pos+=t,ee(e)}function Ll(){const e=a.pos;let t=!1,r=!1;for(;;){if(a.pos>=N.length){te("Unterminated regular expression",e);return}const s=N.charCodeAt(a.pos);if(t)t=!1;else{if(s===g.leftSquareBracket)r=!0;else if(s===g.rightSquareBracket&&r)r=!1;else if(s===g.slash&&!r)break;t=s===g.backslash}++a.pos}++a.pos,jl(),ee(n.regexp)}function gs(){for(;;){const e=N.charCodeAt(a.pos);if(e>=g.digit0&&e<=g.digit9||e===g.underscore)a.pos++;else break}}function Dl(){for(a.pos+=2;;){const t=N.charCodeAt(a.pos);if(t>=g.digit0&&t<=g.digit9||t>=g.lowercaseA&&t<=g.lowercaseF||t>=g.uppercaseA&&t<=g.uppercaseF||t===g.underscore)a.pos++;else break}N.charCodeAt(a.pos)===g.lowercaseN?(++a.pos,ee(n.bigint)):ee(n.num)}function Ma(e){let t=!1,r=!1;e||gs();let s=N.charCodeAt(a.pos);if(s===g.dot&&(++a.pos,gs(),s=N.charCodeAt(a.pos)),(s===g.uppercaseE||s===g.lowercaseE)&&(s=N.charCodeAt(++a.pos),(s===g.plusSign||s===g.dash)&&++a.pos,gs(),s=N.charCodeAt(a.pos)),s===g.lowercaseN?(++a.pos,t=!0):s===g.lowercaseM&&(++a.pos,r=!0),t){ee(n.bigint);return}if(r){ee(n.decimal);return}ee(n.num)}function Ol(e){for(a.pos++;;){if(a.pos>=N.length){te("Unterminated string constant");return}const t=N.charCodeAt(a.pos);if(t===g.backslash)a.pos++;else if(t===e)break;a.pos++}a.pos++,ee(n.string)}function Ml(){for(;;){if(a.pos>=N.length){te("Unterminated template");return}const e=N.charCodeAt(a.pos);if(e===g.graveAccent||e===g.dollarSign&&N.charCodeAt(a.pos+1)===g.leftCurlyBrace){if(a.pos===a.start&&p(n.template))if(e===g.dollarSign){a.pos+=2,ee(n.dollarBraceL);return}else{++a.pos,ee(n.backQuote);return}ee(n.template);return}e===g.backslash&&a.pos++,a.pos++}}function jl(){for(;a.pos<N.length;){const e=N.charCodeAt(a.pos);if(ft[e])a.pos++;else if(e===g.backslash){if(a.pos+=2,N.charCodeAt(a.pos)===g.leftCurlyBrace){for(;a.pos<N.length&&N.charCodeAt(a.pos)!==g.rightCurlyBrace;)a.pos++;a.pos++}}else break}}function Qr(e,t=e.currentIndex()){let r=t+1;if(gn(e,r)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:r}}if(r++,gn(e,r))return{isType:!0,leftName:null,rightName:null,endIndex:r};if(r++,gn(e,r))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:r};if(r++,gn(e,r))return{isType:!0,leftName:null,rightName:null,endIndex:r};throw new Error(`Unexpected import/export specifier at ${t}`)}function gn(e,t){const r=e.tokens[t];return r.type===n.braceR||r.type===n.comma}const Fl=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy","­"],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj","‌"],["zwj","‍"],["lrm","‎"],["rlm","‏"],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function ja(e){const[t,r]=Bi(e.jsxPragma||"React.createElement"),[s,i]=Bi(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:r,fragmentBase:s,fragmentSuffix:i}}function Bi(e){let t=e.indexOf(".");return t===-1&&(t=e.length),[e.slice(0,t),e.slice(t)]}class dt{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Kt extends dt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,r,s,i,o){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.nameManager=i,this.options=o,Kt.prototype.__init.call(this),Kt.prototype.__init2.call(this),Kt.prototype.__init3.call(this),Kt.prototype.__init4.call(this),Kt.prototype.__init5.call(this),this.jsxPragmaInfo=ja(o),this.isAutomaticRuntime=o.jsxRuntime==="automatic",this.jsxImportSource=o.jsxImportSource||"react"}process(){return this.tokens.matches1(n.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let t="";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[r,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${s} = require("${r}");`;else{const{createElement:r,...s}=this.esmAutomaticImportNameResolutions;r&&(t+=`import {createElement as ${r}} from "${this.jsxImportSource}";`);const i=Object.entries(s).map(([o,c])=>`${o} as ${c}`).join(", ");if(i){const o=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");t+=`import {${i}} from "${o}";`}}return t}processJSXTag(){const{jsxRole:t,start:r}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(r);this.isAutomaticRuntime&&t!==ht.KeyAfterPropSpread?this.transformTagToJSXFunc(s,t):this.transformTagToCreateElement(s)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){const r=this.tokens.code;for(;this.lastIndex<t&&this.lastIndex<r.length;)r[this.lastIndex]===`
57
- `&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(t,r){const s=r===ht.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let i=null;if(this.tokens.matches1(n.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(r);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),i=this.processProps(!0),this.tokens.matches2(n.slash,n.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(n.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(r);else throw new Error("Expected either /> or > at the end of the tag.");i&&this.tokens.appendCode(`, ${i}`)}for(this.options.production||(i===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(n.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(n.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),!this.tokens.matches2(n.slash,n.jsxTagEnd))if(this.tokens.matches1(n.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(n.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,r){const s=this.claimAutoImportedName(t,r);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(t,r){if(this.importProcessor){const s=this.jsxImportSource+r;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${t}`}else return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,n.jsxName,n.jsxName)&&!this.tokens.matches2AtIndex(t-1,n.greaterThan,n.jsxName)&&!this.tokens.matches1AtIndex(t,n.braceL)&&!this.tokens.matches1AtIndex(t,n.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,n.slash,n.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){const r=this.tokens.identifierName();Fa(r)&&this.tokens.replaceToken(`'${r}'`)}for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(t){const r=this.options.production?"":`__self: this, __source: ${this.getDevSource(t)}`;if(!this.tokens.matches1(n.jsxName)&&!this.tokens.matches1(n.braceL)){r?this.tokens.appendCode(`, {${r}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),r?this.tokens.appendCode(` ${r}}`):this.tokens.appendCode("}")}processProps(t){let r=null;for(;;){if(this.tokens.matches2(n.jsxName,n.eq)){const s=this.tokens.identifierName();if(t&&s==="key"){r!==null&&this.tokens.appendCode(r.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const i=this.tokens.snapshot();this.processPropValue(),r=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(i);continue}else this.processPropName(s),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(n.jsxName)){const s=this.tokens.identifierName();this.processPropName(s),this.tokens.appendCode(": true")}else if(this.tokens.matches1(n.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return r}processPropName(t){t.includes("-")?this.tokens.replaceToken(`'${t}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(n.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(n.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const t=this.tokens.currentToken(),r=this.tokens.code.slice(t.start+1,t.end-1),s=Vi(r),i=Vl(r);this.tokens.replaceToken(i+s)}processAutomaticChildrenAndEndProps(t){t===ht.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(t===ht.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(t){let r=t;for(;;){if(this.tokens.matches2(n.jsxTagStart,n.slash))return;let s=!1;if(this.tokens.matches1(n.braceL))this.tokens.matches2(n.braceL,n.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(r?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),s=!0);else if(this.tokens.matches1(n.jsxTagStart))this.tokens.appendCode(r?", ":""),this.processJSXTag(),s=!0;else if(this.tokens.matches1(n.jsxText)||this.tokens.matches1(n.jsxEmptyText))s=this.processChildTextElement(r);else throw new Error("Unexpected token when processing JSX children.");s&&(r=!0)}}processChildTextElement(t){const r=this.tokens.currentToken(),s=this.tokens.code.slice(r.start,r.end),i=Vi(s),o=Bl(s);return o==='""'?(this.tokens.replaceToken(i),!1):(this.tokens.replaceToken(`${t?", ":""}${o}${i}`),!0)}getDevSource(t){return`{fileName: ${this.getFilenameVarName()}, ${t}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function Fa(e){const t=e.charCodeAt(0);return t>=g.lowercaseA&&t<=g.lowercaseZ}function Bl(e){let t="",r="",s=!1,i=!1;for(let o=0;o<e.length;o++){const c=e[o];if(c===" "||c===" "||c==="\r")s||(r+=c);else if(c===`
58
- `)r="",s=!0;else{if(i&&s&&(t+=" "),t+=r,r="",c==="&"){const{entity:u,newI:h}=Ba(e,o+1);o=h-1,t+=u}else t+=c;i=!0,s=!1}}return s||(t+=r),JSON.stringify(t)}function Vi(e){let t=0,r=0;for(const s of e)s===`
56
+ `,document.head.appendChild(e)}function ol(e){return{tsx:"typescript",ts:"typescript",jsx:"javascript",js:"javascript",html:"html",css:"css",json:"json",md:"markdown",markdown:"markdown",mermaid:"markdown",mmd:"markdown",svg:"xml",csv:"plaintext",tsv:"plaintext",dot:"plaintext",gv:"plaintext",latex:"plaintext",tex:"plaintext",architecture:"xml",arch:"xml",drawio:"xml"}[e]||e}const cl={container:{width:"100%",height:"100%",overflow:"hidden"}};var m;(function(e){e[e.NONE=0]="NONE";const r=1;e[e._abstract=r]="_abstract";const s=r+1;e[e._accessor=s]="_accessor";const i=s+1;e[e._as=i]="_as";const o=i+1;e[e._assert=o]="_assert";const c=o+1;e[e._asserts=c]="_asserts";const u=c+1;e[e._async=u]="_async";const f=u+1;e[e._await=f]="_await";const h=f+1;e[e._checks=h]="_checks";const d=h+1;e[e._constructor=d]="_constructor";const x=d+1;e[e._declare=x]="_declare";const y=x+1;e[e._enum=y]="_enum";const b=y+1;e[e._exports=b]="_exports";const N=b+1;e[e._from=N]="_from";const O=N+1;e[e._get=O]="_get";const F=O+1;e[e._global=F]="_global";const ee=F+1;e[e._implements=ee]="_implements";const P=ee+1;e[e._infer=P]="_infer";const D=P+1;e[e._interface=D]="_interface";const j=D+1;e[e._is=j]="_is";const U=j+1;e[e._keyof=U]="_keyof";const H=U+1;e[e._mixins=H]="_mixins";const G=H+1;e[e._module=G]="_module";const A=G+1;e[e._namespace=A]="_namespace";const z=A+1;e[e._of=z]="_of";const B=z+1;e[e._opaque=B]="_opaque";const ce=B+1;e[e._out=ce]="_out";const Ae=ce+1;e[e._override=Ae]="_override";const Ve=Ae+1;e[e._private=Ve]="_private";const je=Ve+1;e[e._protected=je]="_protected";const W=je+1;e[e._proto=W]="_proto";const oe=W+1;e[e._public=oe]="_public";const Pe=oe+1;e[e._readonly=Pe]="_readonly";const he=Pe+1;e[e._require=he]="_require";const _e=he+1;e[e._satisfies=_e]="_satisfies";const be=_e+1;e[e._set=be]="_set";const Q=be+1;e[e._static=Q]="_static";const se=Q+1;e[e._symbol=se]="_symbol";const de=se+1;e[e._type=de]="_type";const ze=de+1;e[e._unique=ze]="_unique";const v=ze+1;e[e._using=v]="_using"})(m||(m={}));var n;(function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const r=16;e[e.IS_KEYWORD=r]="IS_KEYWORD";const s=32;e[e.IS_ASSIGN=s]="IS_ASSIGN";const i=64;e[e.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const o=128;e[e.IS_PREFIX=o]="IS_PREFIX";const c=256;e[e.IS_POSTFIX=c]="IS_POSTFIX";const u=512;e[e.IS_EXPRESSION_START=u]="IS_EXPRESSION_START";const f=512;e[e.num=f]="num";const h=1536;e[e.bigint=h]="bigint";const d=2560;e[e.decimal=d]="decimal";const x=3584;e[e.regexp=x]="regexp";const y=4608;e[e.string=y]="string";const b=5632;e[e.name=b]="name";const N=6144;e[e.eof=N]="eof";const O=7680;e[e.bracketL=O]="bracketL";const F=8192;e[e.bracketR=F]="bracketR";const ee=9728;e[e.braceL=ee]="braceL";const P=10752;e[e.braceBarL=P]="braceBarL";const D=11264;e[e.braceR=D]="braceR";const j=12288;e[e.braceBarR=j]="braceBarR";const U=13824;e[e.parenL=U]="parenL";const H=14336;e[e.parenR=H]="parenR";const G=15360;e[e.comma=G]="comma";const A=16384;e[e.semi=A]="semi";const z=17408;e[e.colon=z]="colon";const B=18432;e[e.doubleColon=B]="doubleColon";const ce=19456;e[e.dot=ce]="dot";const Ae=20480;e[e.question=Ae]="question";const Ve=21504;e[e.questionDot=Ve]="questionDot";const je=22528;e[e.arrow=je]="arrow";const W=23552;e[e.template=W]="template";const oe=24576;e[e.ellipsis=oe]="ellipsis";const Pe=25600;e[e.backQuote=Pe]="backQuote";const he=27136;e[e.dollarBraceL=he]="dollarBraceL";const _e=27648;e[e.at=_e]="at";const be=29184;e[e.hash=be]="hash";const Q=29728;e[e.eq=Q]="eq";const se=30752;e[e.assign=se]="assign";const de=32640;e[e.preIncDec=de]="preIncDec";const ze=33664;e[e.postIncDec=ze]="postIncDec";const v=34432;e[e.bang=v]="bang";const I=35456;e[e.tilde=I]="tilde";const T=35841;e[e.pipeline=T]="pipeline";const C=36866;e[e.nullishCoalescing=C]="nullishCoalescing";const M=37890;e[e.logicalOR=M]="logicalOR";const K=38915;e[e.logicalAND=K]="logicalAND";const J=39940;e[e.bitwiseOR=J]="bitwiseOR";const le=40965;e[e.bitwiseXOR=le]="bitwiseXOR";const ve=41990;e[e.bitwiseAND=ve]="bitwiseAND";const me=43015;e[e.equality=me]="equality";const Fe=44040;e[e.lessThan=Fe]="lessThan";const we=45064;e[e.greaterThan=we]="greaterThan";const Ie=46088;e[e.relationalOrEqual=Ie]="relationalOrEqual";const Ee=47113;e[e.bitShiftL=Ee]="bitShiftL";const De=48137;e[e.bitShiftR=De]="bitShiftR";const Pt=49802;e[e.plus=Pt]="plus";const gt=50826;e[e.minus=gt]="minus";const xt=51723;e[e.modulo=xt]="modulo";const Nr=52235;e[e.star=Nr]="star";const ur=53259;e[e.slash=ur]="slash";const pr=54348;e[e.exponent=pr]="exponent";const hr=55296;e[e.jsxName=hr]="jsxName";const lt=56320;e[e.jsxText=lt]="jsxText";const Me=57344;e[e.jsxEmptyText=Me]="jsxEmptyText";const Nt=58880;e[e.jsxTagStart=Nt]="jsxTagStart";const Ze=59392;e[e.jsxTagEnd=Ze]="jsxTagEnd";const fr=60928;e[e.typeParameterStart=fr]="typeParameterStart";const jt=61440;e[e.nonNullAssertion=jt]="nonNullAssertion";const Ft=62480;e[e._break=Ft]="_break";const Rr=63504;e[e._case=Rr]="_case";const kt=64528;e[e._catch=kt]="_catch";const Xt=65552;e[e._continue=Xt]="_continue";const dr=66576;e[e._debugger=dr]="_debugger";const mr=67600;e[e._default=mr]="_default";const gr=68624;e[e._do=gr]="_do";const xr=69648;e[e._else=xr]="_else";const kr=70672;e[e._finally=kr]="_finally";const Lr=71696;e[e._for=Lr]="_for";const Dr=73232;e[e._function=Dr]="_function";const Or=73744;e[e._if=Or]="_if";const Yt=74768;e[e._return=Yt]="_return";const br=75792;e[e._switch=br]="_switch";const bt=77456;e[e._throw=bt]="_throw";const Mr=77840;e[e._try=Mr]="_try";const jr=78864;e[e._var=jr]="_var";const Fr=79888;e[e._let=Fr]="_let";const Kt=80912;e[e._const=Kt]="_const";const Br=81936;e[e._while=Br]="_while";const $r=82960;e[e._with=$r]="_with";const Y=84496;e[e._new=Y]="_new";const Ce=85520;e[e._this=Ce]="_this";const Se=86544;e[e._super=Se]="_super";const ut=87568;e[e._class=ut]="_class";const yt=88080;e[e._extends=yt]="_extends";const yr=89104;e[e._export=yr]="_export";const Rt=90640;e[e._import=Rt]="_import";const is=91664;e[e._yield=is]="_yield";const as=92688;e[e._null=as]="_null";const os=93712;e[e._true=os]="_true";const cs=94736;e[e._false=cs]="_false";const ls=95256;e[e._in=ls]="_in";const us=96280;e[e._instanceof=us]="_instanceof";const ps=97936;e[e._typeof=ps]="_typeof";const hs=98960;e[e._void=hs]="_void";const Lc=99984;e[e._delete=Lc]="_delete";const Dc=100880;e[e._async=Dc]="_async";const Oc=101904;e[e._get=Oc]="_get";const Mc=102928;e[e._set=Mc]="_set";const jc=103952;e[e._declare=jc]="_declare";const Fc=104976;e[e._readonly=Fc]="_readonly";const Bc=106e3;e[e._abstract=Bc]="_abstract";const $c=107024;e[e._static=$c]="_static";const Vc=107536;e[e._public=Vc]="_public";const qc=108560;e[e._private=qc]="_private";const Uc=109584;e[e._protected=Uc]="_protected";const zc=110608;e[e._override=zc]="_override";const Hc=112144;e[e._as=Hc]="_as";const Wc=113168;e[e._enum=Wc]="_enum";const Gc=114192;e[e._type=Gc]="_type";const Xc=115216;e[e._implements=Xc]="_implements"})(n||(n={}));function ll(e){switch(e){case n.num:return"num";case n.bigint:return"bigint";case n.decimal:return"decimal";case n.regexp:return"regexp";case n.string:return"string";case n.name:return"name";case n.eof:return"eof";case n.bracketL:return"[";case n.bracketR:return"]";case n.braceL:return"{";case n.braceBarL:return"{|";case n.braceR:return"}";case n.braceBarR:return"|}";case n.parenL:return"(";case n.parenR:return")";case n.comma:return",";case n.semi:return";";case n.colon:return":";case n.doubleColon:return"::";case n.dot:return".";case n.question:return"?";case n.questionDot:return"?.";case n.arrow:return"=>";case n.template:return"template";case n.ellipsis:return"...";case n.backQuote:return"`";case n.dollarBraceL:return"${";case n.at:return"@";case n.hash:return"#";case n.eq:return"=";case n.assign:return"_=";case n.preIncDec:return"++/--";case n.postIncDec:return"++/--";case n.bang:return"!";case n.tilde:return"~";case n.pipeline:return"|>";case n.nullishCoalescing:return"??";case n.logicalOR:return"||";case n.logicalAND:return"&&";case n.bitwiseOR:return"|";case n.bitwiseXOR:return"^";case n.bitwiseAND:return"&";case n.equality:return"==/!=";case n.lessThan:return"<";case n.greaterThan:return">";case n.relationalOrEqual:return"<=/>=";case n.bitShiftL:return"<<";case n.bitShiftR:return">>/>>>";case n.plus:return"+";case n.minus:return"-";case n.modulo:return"%";case n.star:return"*";case n.slash:return"/";case n.exponent:return"**";case n.jsxName:return"jsxName";case n.jsxText:return"jsxText";case n.jsxEmptyText:return"jsxEmptyText";case n.jsxTagStart:return"jsxTagStart";case n.jsxTagEnd:return"jsxTagEnd";case n.typeParameterStart:return"typeParameterStart";case n.nonNullAssertion:return"nonNullAssertion";case n._break:return"break";case n._case:return"case";case n._catch:return"catch";case n._continue:return"continue";case n._debugger:return"debugger";case n._default:return"default";case n._do:return"do";case n._else:return"else";case n._finally:return"finally";case n._for:return"for";case n._function:return"function";case n._if:return"if";case n._return:return"return";case n._switch:return"switch";case n._throw:return"throw";case n._try:return"try";case n._var:return"var";case n._let:return"let";case n._const:return"const";case n._while:return"while";case n._with:return"with";case n._new:return"new";case n._this:return"this";case n._super:return"super";case n._class:return"class";case n._extends:return"extends";case n._export:return"export";case n._import:return"import";case n._yield:return"yield";case n._null:return"null";case n._true:return"true";case n._false:return"false";case n._in:return"in";case n._instanceof:return"instanceof";case n._typeof:return"typeof";case n._void:return"void";case n._delete:return"delete";case n._async:return"async";case n._get:return"get";case n._set:return"set";case n._declare:return"declare";case n._readonly:return"readonly";case n._abstract:return"abstract";case n._static:return"static";case n._public:return"public";case n._private:return"private";case n._protected:return"protected";case n._override:return"override";case n._as:return"as";case n._enum:return"enum";case n._type:return"type";case n._implements:return"implements";default:return""}}let It=class{constructor(t,r,s){this.startTokenIndex=t,this.endTokenIndex=r,this.isFunctionScope=s}};class ul{constructor(t,r,s,i,o,c,u,f,h,d,x,y,b){this.potentialArrowAt=t,this.noAnonFunctionType=r,this.inDisallowConditionalTypesContext=s,this.tokensLength=i,this.scopesLength=o,this.pos=c,this.type=u,this.contextualKeyword=f,this.start=h,this.end=d,this.isType=x,this.scopeDepth=y,this.error=b}}class We{constructor(){We.prototype.__init.call(this),We.prototype.__init2.call(this),We.prototype.__init3.call(this),We.prototype.__init4.call(this),We.prototype.__init5.call(this),We.prototype.__init6.call(this),We.prototype.__init7.call(this),We.prototype.__init8.call(this),We.prototype.__init9.call(this),We.prototype.__init10.call(this),We.prototype.__init11.call(this),We.prototype.__init12.call(this),We.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=n.eof}__init8(){this.contextualKeyword=m.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new ul(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}}var g;(function(e){e[e.backSpace=8]="backSpace";const r=10;e[e.lineFeed=r]="lineFeed";const s=9;e[e.tab=s]="tab";const i=13;e[e.carriageReturn=i]="carriageReturn";const o=14;e[e.shiftOut=o]="shiftOut";const c=32;e[e.space=c]="space";const u=33;e[e.exclamationMark=u]="exclamationMark";const f=34;e[e.quotationMark=f]="quotationMark";const h=35;e[e.numberSign=h]="numberSign";const d=36;e[e.dollarSign=d]="dollarSign";const x=37;e[e.percentSign=x]="percentSign";const y=38;e[e.ampersand=y]="ampersand";const b=39;e[e.apostrophe=b]="apostrophe";const N=40;e[e.leftParenthesis=N]="leftParenthesis";const O=41;e[e.rightParenthesis=O]="rightParenthesis";const F=42;e[e.asterisk=F]="asterisk";const ee=43;e[e.plusSign=ee]="plusSign";const P=44;e[e.comma=P]="comma";const D=45;e[e.dash=D]="dash";const j=46;e[e.dot=j]="dot";const U=47;e[e.slash=U]="slash";const H=48;e[e.digit0=H]="digit0";const G=49;e[e.digit1=G]="digit1";const A=50;e[e.digit2=A]="digit2";const z=51;e[e.digit3=z]="digit3";const B=52;e[e.digit4=B]="digit4";const ce=53;e[e.digit5=ce]="digit5";const Ae=54;e[e.digit6=Ae]="digit6";const Ve=55;e[e.digit7=Ve]="digit7";const je=56;e[e.digit8=je]="digit8";const W=57;e[e.digit9=W]="digit9";const oe=58;e[e.colon=oe]="colon";const Pe=59;e[e.semicolon=Pe]="semicolon";const he=60;e[e.lessThan=he]="lessThan";const _e=61;e[e.equalsTo=_e]="equalsTo";const be=62;e[e.greaterThan=be]="greaterThan";const Q=63;e[e.questionMark=Q]="questionMark";const se=64;e[e.atSign=se]="atSign";const de=65;e[e.uppercaseA=de]="uppercaseA";const ze=66;e[e.uppercaseB=ze]="uppercaseB";const v=67;e[e.uppercaseC=v]="uppercaseC";const I=68;e[e.uppercaseD=I]="uppercaseD";const T=69;e[e.uppercaseE=T]="uppercaseE";const C=70;e[e.uppercaseF=C]="uppercaseF";const M=71;e[e.uppercaseG=M]="uppercaseG";const K=72;e[e.uppercaseH=K]="uppercaseH";const J=73;e[e.uppercaseI=J]="uppercaseI";const le=74;e[e.uppercaseJ=le]="uppercaseJ";const ve=75;e[e.uppercaseK=ve]="uppercaseK";const me=76;e[e.uppercaseL=me]="uppercaseL";const Fe=77;e[e.uppercaseM=Fe]="uppercaseM";const we=78;e[e.uppercaseN=we]="uppercaseN";const Ie=79;e[e.uppercaseO=Ie]="uppercaseO";const Ee=80;e[e.uppercaseP=Ee]="uppercaseP";const De=81;e[e.uppercaseQ=De]="uppercaseQ";const Pt=82;e[e.uppercaseR=Pt]="uppercaseR";const gt=83;e[e.uppercaseS=gt]="uppercaseS";const xt=84;e[e.uppercaseT=xt]="uppercaseT";const Nr=85;e[e.uppercaseU=Nr]="uppercaseU";const ur=86;e[e.uppercaseV=ur]="uppercaseV";const pr=87;e[e.uppercaseW=pr]="uppercaseW";const hr=88;e[e.uppercaseX=hr]="uppercaseX";const lt=89;e[e.uppercaseY=lt]="uppercaseY";const Me=90;e[e.uppercaseZ=Me]="uppercaseZ";const Nt=91;e[e.leftSquareBracket=Nt]="leftSquareBracket";const Ze=92;e[e.backslash=Ze]="backslash";const fr=93;e[e.rightSquareBracket=fr]="rightSquareBracket";const jt=94;e[e.caret=jt]="caret";const Ft=95;e[e.underscore=Ft]="underscore";const Rr=96;e[e.graveAccent=Rr]="graveAccent";const kt=97;e[e.lowercaseA=kt]="lowercaseA";const Xt=98;e[e.lowercaseB=Xt]="lowercaseB";const dr=99;e[e.lowercaseC=dr]="lowercaseC";const mr=100;e[e.lowercaseD=mr]="lowercaseD";const gr=101;e[e.lowercaseE=gr]="lowercaseE";const xr=102;e[e.lowercaseF=xr]="lowercaseF";const kr=103;e[e.lowercaseG=kr]="lowercaseG";const Lr=104;e[e.lowercaseH=Lr]="lowercaseH";const Dr=105;e[e.lowercaseI=Dr]="lowercaseI";const Or=106;e[e.lowercaseJ=Or]="lowercaseJ";const Yt=107;e[e.lowercaseK=Yt]="lowercaseK";const br=108;e[e.lowercaseL=br]="lowercaseL";const bt=109;e[e.lowercaseM=bt]="lowercaseM";const Mr=110;e[e.lowercaseN=Mr]="lowercaseN";const jr=111;e[e.lowercaseO=jr]="lowercaseO";const Fr=112;e[e.lowercaseP=Fr]="lowercaseP";const Kt=113;e[e.lowercaseQ=Kt]="lowercaseQ";const Br=114;e[e.lowercaseR=Br]="lowercaseR";const $r=115;e[e.lowercaseS=$r]="lowercaseS";const Y=116;e[e.lowercaseT=Y]="lowercaseT";const Ce=117;e[e.lowercaseU=Ce]="lowercaseU";const Se=118;e[e.lowercaseV=Se]="lowercaseV";const ut=119;e[e.lowercaseW=ut]="lowercaseW";const yt=120;e[e.lowercaseX=yt]="lowercaseX";const yr=121;e[e.lowercaseY=yr]="lowercaseY";const Rt=122;e[e.lowercaseZ=Rt]="lowercaseZ";const is=123;e[e.leftCurlyBrace=is]="leftCurlyBrace";const as=124;e[e.verticalBar=as]="verticalBar";const os=125;e[e.rightCurlyBrace=os]="rightCurlyBrace";const cs=126;e[e.tilde=cs]="tilde";const ls=160;e[e.nonBreakingSpace=ls]="nonBreakingSpace";const us=5760;e[e.oghamSpaceMark=us]="oghamSpaceMark";const ps=8232;e[e.lineSeparator=ps]="lineSeparator";const hs=8233;e[e.paragraphSeparator=hs]="paragraphSeparator"})(g||(g={}));let qn,ue,xe,a,R,va;function Jr(){return va++}function pl(e){if("pos"in e){const t=fl(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}class hl{constructor(t,r){this.line=t,this.column=r}}function fl(e){let t=1,r=1;for(let s=0;s<e;s++)R.charCodeAt(s)===g.lineFeed?(t++,r=1):r++;return new hl(t,r)}function dl(e,t,r,s){R=e,a=new We,va=1,qn=t,ue=r,xe=s}function q(e){return a.contextualKeyword===e}function Ws(e){const t=cn();return t.type===n.name&&t.contextualKeyword===e}function Be(e){return a.contextualKeyword===e&&k(n.name)}function Oe(e){Be(e)||re()}function tt(){return p(n.eof)||p(n.braceR)||Xe()}function Xe(){const e=a.tokens[a.tokens.length-1],t=e?e.end:0;for(let r=t;r<a.start;r++){const s=R.charCodeAt(r);if(s===g.lineFeed||s===g.carriageReturn||s===8232||s===8233)return!0}return!1}function wa(){const e=Gs();for(let t=a.end;t<e;t++){const r=R.charCodeAt(t);if(r===g.lineFeed||r===g.carriageReturn||r===8232||r===8233)return!0}return!1}function wt(){return k(n.semi)||tt()}function Te(){wt()||re('Unexpected token, expected ";"')}function w(e){k(e)||re(`Unexpected token, expected "${ll(e)}"`)}function re(e="Unexpected token",t=a.start){if(a.error)return;const r=new SyntaxError(e);r.pos=t,a.error=r,a.pos=R.length,te(n.eof)}const _a=[9,11,12,g.space,g.nonBreakingSpace,g.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],ji=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Sa=new Uint8Array(65536);for(const e of _a)Sa[e]=1;function ml(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const ft=new Uint8Array(65536);for(let e=0;e<128;e++)ft[e]=ml(e)?1:0;for(let e=128;e<65536;e++)ft[e]=1;for(const e of _a)ft[e]=0;ft[8232]=0;ft[8233]=0;const on=ft.slice();for(let e=g.digit0;e<=g.digit9;e++)on[e]=0;const Fi=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1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1,-1,-1,-1,(n._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(n._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function gl(){let e=0,t=0,r=a.pos;for(;r<R.length&&(t=R.charCodeAt(r),!(t<g.lowercaseA||t>g.lowercaseZ));){const i=Fi[e+(t-g.lowercaseA)+1];if(i===-1)break;e=i,r++}const s=Fi[e];if(s>-1&&!ft[t]){a.pos=r,s&1?te(s>>>1):te(n.name,s>>>1);return}for(;r<R.length;){const i=R.charCodeAt(r);if(ft[i])r++;else if(i===g.backslash){if(r+=2,R.charCodeAt(r)===g.leftCurlyBrace){for(;r<R.length&&R.charCodeAt(r)!==g.rightCurlyBrace;)r++;r++}}else if(i===g.atSign&&R.charCodeAt(r+1)===g.atSign)r+=2;else break}a.pos=r,te(n.name)}var X;(function(e){e[e.Access=0]="Access";const r=1;e[e.ExportAccess=r]="ExportAccess";const s=r+1;e[e.TopLevelDeclaration=s]="TopLevelDeclaration";const i=s+1;e[e.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const o=i+1;e[e.BlockScopedDeclaration=o]="BlockScopedDeclaration";const c=o+1;e[e.ObjectShorthandTopLevelDeclaration=c]="ObjectShorthandTopLevelDeclaration";const u=c+1;e[e.ObjectShorthandFunctionScopedDeclaration=u]="ObjectShorthandFunctionScopedDeclaration";const f=u+1;e[e.ObjectShorthandBlockScopedDeclaration=f]="ObjectShorthandBlockScopedDeclaration";const h=f+1;e[e.ObjectShorthand=h]="ObjectShorthand";const d=h+1;e[e.ImportDeclaration=d]="ImportDeclaration";const x=d+1;e[e.ObjectKey=x]="ObjectKey";const y=x+1;e[e.ImportAccess=y]="ImportAccess"})(X||(X={}));var ht;(function(e){e[e.NoChildren=0]="NoChildren";const r=1;e[e.OneChild=r]="OneChild";const s=r+1;e[e.StaticChildren=s]="StaticChildren";const i=s+1;e[e.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(ht||(ht={}));function Ia(e){const t=e.identifierRole;return t===X.TopLevelDeclaration||t===X.FunctionScopedDeclaration||t===X.BlockScopedDeclaration||t===X.ObjectShorthandTopLevelDeclaration||t===X.ObjectShorthandFunctionScopedDeclaration||t===X.ObjectShorthandBlockScopedDeclaration}function xl(e){const t=e.identifierRole;return t===X.FunctionScopedDeclaration||t===X.BlockScopedDeclaration||t===X.ObjectShorthandFunctionScopedDeclaration||t===X.ObjectShorthandBlockScopedDeclaration}function Ea(e){const t=e.identifierRole;return t===X.TopLevelDeclaration||t===X.ObjectShorthandTopLevelDeclaration||t===X.ImportDeclaration}function kl(e){const t=e.identifierRole;return t===X.TopLevelDeclaration||t===X.BlockScopedDeclaration||t===X.ObjectShorthandTopLevelDeclaration||t===X.ObjectShorthandBlockScopedDeclaration}function bl(e){const t=e.identifierRole;return t===X.FunctionScopedDeclaration||t===X.ObjectShorthandFunctionScopedDeclaration}function yl(e){return e.identifierRole===X.ObjectShorthandTopLevelDeclaration||e.identifierRole===X.ObjectShorthandBlockScopedDeclaration||e.identifierRole===X.ObjectShorthandFunctionScopedDeclaration}let Un=class{constructor(){this.type=a.type,this.contextualKeyword=a.contextualKeyword,this.start=a.start,this.end=a.end,this.scopeDepth=a.scopeDepth,this.isType=a.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}};function _(){a.tokens.push(new Un),Pa()}function Bt(){a.tokens.push(new Un),a.start=a.pos,jl()}function vl(){a.type===n.assign&&--a.pos,Dl()}function ae(e){for(let r=a.tokens.length-e;r<a.tokens.length;r++)a.tokens[r].isType=!0;const t=a.isType;return a.isType=!0,t}function ie(e){a.isType=e}function k(e){return p(e)?(_(),!0):!1}function Ca(e){const t=a.isType;a.isType=!0,k(e),a.isType=t}function p(e){return a.type===e}function Re(){const e=a.snapshot();_();const t=a.type;return a.restoreFromSnapshot(e),t}class wl{constructor(t,r){this.type=t,this.contextualKeyword=r}}function cn(){const e=a.snapshot();_();const t=a.type,r=a.contextualKeyword;return a.restoreFromSnapshot(e),new wl(t,r)}function Gs(){return Ta(a.pos)}function Ta(e){ji.lastIndex=e;const t=ji.exec(R);return e+t[0].length}function Aa(){return R.charCodeAt(Gs())}function Pa(){if(Ra(),a.start=a.pos,a.pos>=R.length){const e=a.tokens;e.length>=2&&e[e.length-1].start>=R.length&&e[e.length-2].start>=R.length&&re("Unexpectedly reached the end of input."),te(n.eof);return}_l(R.charCodeAt(a.pos))}function _l(e){on[e]||e===g.backslash||e===g.atSign&&R.charCodeAt(a.pos+1)===g.atSign?gl():Oa(e)}function Sl(){for(;R.charCodeAt(a.pos)!==g.asterisk||R.charCodeAt(a.pos+1)!==g.slash;)if(a.pos++,a.pos>R.length){re("Unterminated comment",a.pos-2);return}a.pos+=2}function Na(e){let t=R.charCodeAt(a.pos+=e);if(a.pos<R.length)for(;t!==g.lineFeed&&t!==g.carriageReturn&&t!==g.lineSeparator&&t!==g.paragraphSeparator&&++a.pos<R.length;)t=R.charCodeAt(a.pos)}function Ra(){for(;a.pos<R.length;){const e=R.charCodeAt(a.pos);switch(e){case g.carriageReturn:R.charCodeAt(a.pos+1)===g.lineFeed&&++a.pos;case g.lineFeed:case g.lineSeparator:case g.paragraphSeparator:++a.pos;break;case g.slash:switch(R.charCodeAt(a.pos+1)){case g.asterisk:a.pos+=2,Sl();break;case g.slash:Na(2);break;default:return}break;default:if(Sa[e])++a.pos;else return}}}function te(e,t=m.NONE){a.end=a.pos,a.type=e,a.contextualKeyword=t}function Il(){const e=R.charCodeAt(a.pos+1);if(e>=g.digit0&&e<=g.digit9){Ma(!0);return}e===g.dot&&R.charCodeAt(a.pos+2)===g.dot?(a.pos+=3,te(n.ellipsis)):(++a.pos,te(n.dot))}function El(){R.charCodeAt(a.pos+1)===g.equalsTo?ke(n.assign,2):ke(n.slash,1)}function Cl(e){let t=e===g.asterisk?n.star:n.modulo,r=1,s=R.charCodeAt(a.pos+1);e===g.asterisk&&s===g.asterisk&&(r++,s=R.charCodeAt(a.pos+2),t=n.exponent),s===g.equalsTo&&R.charCodeAt(a.pos+2)!==g.greaterThan&&(r++,t=n.assign),ke(t,r)}function Tl(e){const t=R.charCodeAt(a.pos+1);if(t===e){R.charCodeAt(a.pos+2)===g.equalsTo?ke(n.assign,3):ke(e===g.verticalBar?n.logicalOR:n.logicalAND,2);return}if(e===g.verticalBar){if(t===g.greaterThan){ke(n.pipeline,2);return}else if(t===g.rightCurlyBrace&&xe){ke(n.braceBarR,2);return}}if(t===g.equalsTo){ke(n.assign,2);return}ke(e===g.verticalBar?n.bitwiseOR:n.bitwiseAND,1)}function Al(){R.charCodeAt(a.pos+1)===g.equalsTo?ke(n.assign,2):ke(n.bitwiseXOR,1)}function Pl(e){const t=R.charCodeAt(a.pos+1);if(t===e){ke(n.preIncDec,2);return}t===g.equalsTo?ke(n.assign,2):e===g.plusSign?ke(n.plus,1):ke(n.minus,1)}function Nl(){const e=R.charCodeAt(a.pos+1);if(e===g.lessThan){if(R.charCodeAt(a.pos+2)===g.equalsTo){ke(n.assign,3);return}a.isType?ke(n.lessThan,1):ke(n.bitShiftL,2);return}e===g.equalsTo?ke(n.relationalOrEqual,2):ke(n.lessThan,1)}function La(){if(a.isType){ke(n.greaterThan,1);return}const e=R.charCodeAt(a.pos+1);if(e===g.greaterThan){const t=R.charCodeAt(a.pos+2)===g.greaterThan?3:2;if(R.charCodeAt(a.pos+t)===g.equalsTo){ke(n.assign,t+1);return}ke(n.bitShiftR,t);return}e===g.equalsTo?ke(n.relationalOrEqual,2):ke(n.greaterThan,1)}function Da(){a.type===n.greaterThan&&(a.pos-=1,La())}function Rl(e){const t=R.charCodeAt(a.pos+1);if(t===g.equalsTo){ke(n.equality,R.charCodeAt(a.pos+2)===g.equalsTo?3:2);return}if(e===g.equalsTo&&t===g.greaterThan){a.pos+=2,te(n.arrow);return}ke(e===g.equalsTo?n.eq:n.bang,1)}function Ll(){const e=R.charCodeAt(a.pos+1),t=R.charCodeAt(a.pos+2);e===g.questionMark&&!(xe&&a.isType)?t===g.equalsTo?ke(n.assign,3):ke(n.nullishCoalescing,2):e===g.dot&&!(t>=g.digit0&&t<=g.digit9)?(a.pos+=2,te(n.questionDot)):(++a.pos,te(n.question))}function Oa(e){switch(e){case g.numberSign:++a.pos,te(n.hash);return;case g.dot:Il();return;case g.leftParenthesis:++a.pos,te(n.parenL);return;case g.rightParenthesis:++a.pos,te(n.parenR);return;case g.semicolon:++a.pos,te(n.semi);return;case g.comma:++a.pos,te(n.comma);return;case g.leftSquareBracket:++a.pos,te(n.bracketL);return;case g.rightSquareBracket:++a.pos,te(n.bracketR);return;case g.leftCurlyBrace:xe&&R.charCodeAt(a.pos+1)===g.verticalBar?ke(n.braceBarL,2):(++a.pos,te(n.braceL));return;case g.rightCurlyBrace:++a.pos,te(n.braceR);return;case g.colon:R.charCodeAt(a.pos+1)===g.colon?ke(n.doubleColon,2):(++a.pos,te(n.colon));return;case g.questionMark:Ll();return;case g.atSign:++a.pos,te(n.at);return;case g.graveAccent:++a.pos,te(n.backQuote);return;case g.digit0:{const t=R.charCodeAt(a.pos+1);if(t===g.lowercaseX||t===g.uppercaseX||t===g.lowercaseO||t===g.uppercaseO||t===g.lowercaseB||t===g.uppercaseB){Ol();return}}case g.digit1:case g.digit2:case g.digit3:case g.digit4:case g.digit5:case g.digit6:case g.digit7:case g.digit8:case g.digit9:Ma(!1);return;case g.quotationMark:case g.apostrophe:Ml(e);return;case g.slash:El();return;case g.percentSign:case g.asterisk:Cl(e);return;case g.verticalBar:case g.ampersand:Tl(e);return;case g.caret:Al();return;case g.plusSign:case g.dash:Pl(e);return;case g.lessThan:Nl();return;case g.greaterThan:La();return;case g.equalsTo:case g.exclamationMark:Rl(e);return;case g.tilde:ke(n.tilde,1);return}re(`Unexpected character '${String.fromCharCode(e)}'`,a.pos)}function ke(e,t){a.pos+=t,te(e)}function Dl(){const e=a.pos;let t=!1,r=!1;for(;;){if(a.pos>=R.length){re("Unterminated regular expression",e);return}const s=R.charCodeAt(a.pos);if(t)t=!1;else{if(s===g.leftSquareBracket)r=!0;else if(s===g.rightSquareBracket&&r)r=!1;else if(s===g.slash&&!r)break;t=s===g.backslash}++a.pos}++a.pos,Fl(),te(n.regexp)}function gs(){for(;;){const e=R.charCodeAt(a.pos);if(e>=g.digit0&&e<=g.digit9||e===g.underscore)a.pos++;else break}}function Ol(){for(a.pos+=2;;){const t=R.charCodeAt(a.pos);if(t>=g.digit0&&t<=g.digit9||t>=g.lowercaseA&&t<=g.lowercaseF||t>=g.uppercaseA&&t<=g.uppercaseF||t===g.underscore)a.pos++;else break}R.charCodeAt(a.pos)===g.lowercaseN?(++a.pos,te(n.bigint)):te(n.num)}function Ma(e){let t=!1,r=!1;e||gs();let s=R.charCodeAt(a.pos);if(s===g.dot&&(++a.pos,gs(),s=R.charCodeAt(a.pos)),(s===g.uppercaseE||s===g.lowercaseE)&&(s=R.charCodeAt(++a.pos),(s===g.plusSign||s===g.dash)&&++a.pos,gs(),s=R.charCodeAt(a.pos)),s===g.lowercaseN?(++a.pos,t=!0):s===g.lowercaseM&&(++a.pos,r=!0),t){te(n.bigint);return}if(r){te(n.decimal);return}te(n.num)}function Ml(e){for(a.pos++;;){if(a.pos>=R.length){re("Unterminated string constant");return}const t=R.charCodeAt(a.pos);if(t===g.backslash)a.pos++;else if(t===e)break;a.pos++}a.pos++,te(n.string)}function jl(){for(;;){if(a.pos>=R.length){re("Unterminated template");return}const e=R.charCodeAt(a.pos);if(e===g.graveAccent||e===g.dollarSign&&R.charCodeAt(a.pos+1)===g.leftCurlyBrace){if(a.pos===a.start&&p(n.template))if(e===g.dollarSign){a.pos+=2,te(n.dollarBraceL);return}else{++a.pos,te(n.backQuote);return}te(n.template);return}e===g.backslash&&a.pos++,a.pos++}}function Fl(){for(;a.pos<R.length;){const e=R.charCodeAt(a.pos);if(ft[e])a.pos++;else if(e===g.backslash){if(a.pos+=2,R.charCodeAt(a.pos)===g.leftCurlyBrace){for(;a.pos<R.length&&R.charCodeAt(a.pos)!==g.rightCurlyBrace;)a.pos++;a.pos++}}else break}}function Zr(e,t=e.currentIndex()){let r=t+1;if(kn(e,r)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:r}}if(r++,kn(e,r))return{isType:!0,leftName:null,rightName:null,endIndex:r};if(r++,kn(e,r))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:r};if(r++,kn(e,r))return{isType:!0,leftName:null,rightName:null,endIndex:r};throw new Error(`Unexpected import/export specifier at ${t}`)}function kn(e,t){const r=e.tokens[t];return r.type===n.braceR||r.type===n.comma}const Bl=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy","­"],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj","‌"],["zwj","‍"],["lrm","‎"],["rlm","‏"],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function ja(e){const[t,r]=Bi(e.jsxPragma||"React.createElement"),[s,i]=Bi(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:r,fragmentBase:s,fragmentSuffix:i}}function Bi(e){let t=e.indexOf(".");return t===-1&&(t=e.length),[e.slice(0,t),e.slice(t)]}class dt{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Qt extends dt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,r,s,i,o){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.nameManager=i,this.options=o,Qt.prototype.__init.call(this),Qt.prototype.__init2.call(this),Qt.prototype.__init3.call(this),Qt.prototype.__init4.call(this),Qt.prototype.__init5.call(this),this.jsxPragmaInfo=ja(o),this.isAutomaticRuntime=o.jsxRuntime==="automatic",this.jsxImportSource=o.jsxImportSource||"react"}process(){return this.tokens.matches1(n.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let t="";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[r,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${s} = require("${r}");`;else{const{createElement:r,...s}=this.esmAutomaticImportNameResolutions;r&&(t+=`import {createElement as ${r}} from "${this.jsxImportSource}";`);const i=Object.entries(s).map(([o,c])=>`${o} as ${c}`).join(", ");if(i){const o=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");t+=`import {${i}} from "${o}";`}}return t}processJSXTag(){const{jsxRole:t,start:r}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(r);this.isAutomaticRuntime&&t!==ht.KeyAfterPropSpread?this.transformTagToJSXFunc(s,t):this.transformTagToCreateElement(s)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){const r=this.tokens.code;for(;this.lastIndex<t&&this.lastIndex<r.length;)r[this.lastIndex]===`
57
+ `&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(t,r){const s=r===ht.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let i=null;if(this.tokens.matches1(n.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(r);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),i=this.processProps(!0),this.tokens.matches2(n.slash,n.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(n.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(r);else throw new Error("Expected either /> or > at the end of the tag.");i&&this.tokens.appendCode(`, ${i}`)}for(this.options.production||(i===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(n.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(n.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),!this.tokens.matches2(n.slash,n.jsxTagEnd))if(this.tokens.matches1(n.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(n.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,r){const s=this.claimAutoImportedName(t,r);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(t,r){if(this.importProcessor){const s=this.jsxImportSource+r;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${t}`}else return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,n.jsxName,n.jsxName)&&!this.tokens.matches2AtIndex(t-1,n.greaterThan,n.jsxName)&&!this.tokens.matches1AtIndex(t,n.braceL)&&!this.tokens.matches1AtIndex(t,n.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,n.slash,n.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){const r=this.tokens.identifierName();Fa(r)&&this.tokens.replaceToken(`'${r}'`)}for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(t){const r=this.options.production?"":`__self: this, __source: ${this.getDevSource(t)}`;if(!this.tokens.matches1(n.jsxName)&&!this.tokens.matches1(n.braceL)){r?this.tokens.appendCode(`, {${r}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),r?this.tokens.appendCode(` ${r}}`):this.tokens.appendCode("}")}processProps(t){let r=null;for(;;){if(this.tokens.matches2(n.jsxName,n.eq)){const s=this.tokens.identifierName();if(t&&s==="key"){r!==null&&this.tokens.appendCode(r.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const i=this.tokens.snapshot();this.processPropValue(),r=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(i);continue}else this.processPropName(s),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(n.jsxName)){const s=this.tokens.identifierName();this.processPropName(s),this.tokens.appendCode(": true")}else if(this.tokens.matches1(n.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return r}processPropName(t){t.includes("-")?this.tokens.replaceToken(`'${t}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(n.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(n.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const t=this.tokens.currentToken(),r=this.tokens.code.slice(t.start+1,t.end-1),s=$i(r),i=Vl(r);this.tokens.replaceToken(i+s)}processAutomaticChildrenAndEndProps(t){t===ht.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(t===ht.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(t){let r=t;for(;;){if(this.tokens.matches2(n.jsxTagStart,n.slash))return;let s=!1;if(this.tokens.matches1(n.braceL))this.tokens.matches2(n.braceL,n.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(r?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),s=!0);else if(this.tokens.matches1(n.jsxTagStart))this.tokens.appendCode(r?", ":""),this.processJSXTag(),s=!0;else if(this.tokens.matches1(n.jsxText)||this.tokens.matches1(n.jsxEmptyText))s=this.processChildTextElement(r);else throw new Error("Unexpected token when processing JSX children.");s&&(r=!0)}}processChildTextElement(t){const r=this.tokens.currentToken(),s=this.tokens.code.slice(r.start,r.end),i=$i(s),o=$l(s);return o==='""'?(this.tokens.replaceToken(i),!1):(this.tokens.replaceToken(`${t?", ":""}${o}${i}`),!0)}getDevSource(t){return`{fileName: ${this.getFilenameVarName()}, ${t}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function Fa(e){const t=e.charCodeAt(0);return t>=g.lowercaseA&&t<=g.lowercaseZ}function $l(e){let t="",r="",s=!1,i=!1;for(let o=0;o<e.length;o++){const c=e[o];if(c===" "||c===" "||c==="\r")s||(r+=c);else if(c===`
58
+ `)r="",s=!0;else{if(i&&s&&(t+=" "),t+=r,r="",c==="&"){const{entity:u,newI:f}=Ba(e,o+1);o=f-1,t+=u}else t+=c;i=!0,s=!1}}return s||(t+=r),JSON.stringify(t)}function $i(e){let t=0,r=0;for(const s of e)s===`
59
59
  `?(t++,r=0):s===" "&&r++;return`
60
60
  `.repeat(t)+" ".repeat(r)}function Vl(e){let t="";for(let r=0;r<e.length;r++){const s=e[r];if(s===`
61
61
  `)if(/\s/.test(e[r+1]))for(t+=" ";r<e.length&&/\s/.test(e[r+1]);)r++;else t+=`
62
- `;else if(s==="&"){const{entity:i,newI:o}=Ba(e,r+1);t+=i,r=o-1}else t+=s}return JSON.stringify(t)}function Ba(e,t){let r="",s=0,i,o=t;if(e[o]==="#"){let c=10;o++;let u;if(e[o]==="x")for(c=16,o++,u=o;o<e.length&&ql(e.charCodeAt(o));)o++;else for(u=o;o<e.length&&$l(e.charCodeAt(o));)o++;if(e[o]===";"){const h=e.slice(u,o);h&&(o++,i=String.fromCodePoint(parseInt(h,c)))}}else for(;o<e.length&&s++<10;){const c=e[o];if(o++,c===";"){i=Fl.get(r);break}r+=c}return i?{entity:i,newI:o}:{entity:"&",newI:t}}function $l(e){return e>=g.digit0&&e<=g.digit9}function ql(e){return e>=g.digit0&&e<=g.digit9||e>=g.lowercaseA&&e<=g.lowercaseF||e>=g.uppercaseA&&e<=g.uppercaseF}function Va(e,t){const r=ja(t),s=new Set;for(let i=0;i<e.tokens.length;i++){const o=e.tokens[i];if(o.type===n.name&&!o.isType&&(o.identifierRole===X.Access||o.identifierRole===X.ObjectShorthand||o.identifierRole===X.ExportAccess)&&!o.shadowsGlobal&&s.add(e.identifierNameForToken(o)),o.type===n.jsxTagStart&&s.add(r.base),o.type===n.jsxTagStart&&i+1<e.tokens.length&&e.tokens[i+1].type===n.jsxTagEnd&&(s.add(r.base),s.add(r.fragmentBase)),o.type===n.jsxName&&o.identifierRole===X.Access){const c=e.identifierNameForToken(o);(!Fa(c)||e.tokens[i+1].type===n.dot)&&s.add(e.identifierNameForToken(o))}}return s}class Qt{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,r,s,i,o,c,u){this.nameManager=t,this.tokens=r,this.enableLegacyTypeScriptModuleInterop=s,this.options=i,this.isTypeScriptTransformEnabled=o,this.keepUnusedImports=c,this.helperManager=u,Qt.prototype.__init.call(this),Qt.prototype.__init2.call(this),Qt.prototype.__init3.call(this),Qt.prototype.__init4.call(this),Qt.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,n._import)&&!this.tokens.matches3AtIndex(t,n._import,n.name,n.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,n._export)&&!this.tokens.matches2AtIndex(t,n._export,n.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=Va(this.tokens,this.options);for(const[t,r]of this.importInfoByPath.entries()){if(r.hasBareImport||r.hasStarExport||r.exportStarNames.length>0||r.namedExports.length>0)continue;[...r.defaultNames,...r.wildcardNames,...r.namedImports.map(({localName:i})=>i)].every(i=>this.shouldAutomaticallyElideImportedName(i))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(const[t,r]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:i,namedImports:o,namedExports:c,exportStarNames:u,hasStarExport:h}=r;if(s.length===0&&i.length===0&&o.length===0&&c.length===0&&u.length===0&&!h){this.importsToReplace.set(t,`require('${t}');`);continue}const f=this.getFreeIdentifierForPath(t);let m;this.enableLegacyTypeScriptModuleInterop?m=f:m=i.length>0?i[0]:this.getFreeIdentifierForPath(t);let x=`var ${f} = require('${t}');`;if(i.length>0)for(const _ of i){const y=this.enableLegacyTypeScriptModuleInterop?f:`${this.helperManager.getHelperName("interopRequireWildcard")}(${f})`;x+=` var ${_} = ${y};`}else u.length>0&&m!==f?x+=` var ${m} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${f});`:s.length>0&&m!==f&&(x+=` var ${m} = ${this.helperManager.getHelperName("interopRequireDefault")}(${f});`);for(const{importedName:_,localName:y}of c)x+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${f}, '${y}', '${_}');`;for(const _ of u)x+=` exports.${_} = ${m};`;h&&(x+=` ${this.helperManager.getHelperName("createStarExport")}(${f});`),this.importsToReplace.set(t,x);for(const _ of s)this.identifierReplacements.set(_,`${m}.default`);for(const{importedName:_,localName:y}of o)this.identifierReplacements.set(y,`${f}.${_}`)}}getFreeIdentifierForPath(t){const r=t.split("/"),i=r[r.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${i}`)}preprocessImportAtIndex(t){const r=[],s=[],i=[];if(t++,(this.tokens.matchesContextualAtIndex(t,d._type)||this.tokens.matches1AtIndex(t,n._typeof))&&!this.tokens.matches1AtIndex(t+1,n.comma)&&!this.tokens.matchesContextualAtIndex(t+1,d._from)||this.tokens.matches1AtIndex(t,n.parenL))return;if(this.tokens.matches1AtIndex(t,n.name)&&(r.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,n.comma)&&t++),this.tokens.matches1AtIndex(t,n.star)&&(t+=2,s.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,n.braceL)){const u=this.getNamedImports(t+1);t=u.newIndex;for(const h of u.namedImports)h.importedName==="default"?r.push(h.localName):i.push(h)}if(this.tokens.matchesContextualAtIndex(t,d._from)&&t++,!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of import statement.");const o=this.tokens.stringValueAtIndex(t),c=this.getImportInfo(o);c.defaultNames.push(...r),c.wildcardNames.push(...s),c.namedImports.push(...i),r.length===0&&s.length===0&&i.length===0&&(c.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,n._export,n._var)||this.tokens.matches2AtIndex(t,n._export,n._let)||this.tokens.matches2AtIndex(t,n._export,n._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,n._export,n._function)||this.tokens.matches2AtIndex(t,n._export,n._class)){const r=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(r,r)}else if(this.tokens.matches3AtIndex(t,n._export,n.name,n._function)){const r=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(r,r)}else this.tokens.matches2AtIndex(t,n._export,n.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,n._export,n.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let r=0;for(let s=t+2;;s++)if(this.tokens.matches1AtIndex(s,n.braceL)||this.tokens.matches1AtIndex(s,n.dollarBraceL)||this.tokens.matches1AtIndex(s,n.bracketL))r++;else if(this.tokens.matches1AtIndex(s,n.braceR)||this.tokens.matches1AtIndex(s,n.bracketR))r--;else{if(r===0&&!this.tokens.matches1AtIndex(s,n.name))break;if(this.tokens.matches1AtIndex(1,n.eq)){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected = token with an end index.");s=i-1}else{const i=this.tokens.tokens[s];if(Ia(i)){const o=this.tokens.identifierNameAtIndex(s);this.identifierReplacements.set(o,`exports.${o}`)}}}}preprocessNamedExportAtIndex(t){t+=2;const{newIndex:r,namedImports:s}=this.getNamedImports(t);if(t=r,this.tokens.matchesContextualAtIndex(t,d._from))t++;else{for(const{importedName:c,localName:u}of s)this.addExportBinding(c,u);return}if(!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(t);this.getImportInfo(i).namedExports.push(...s)}preprocessExportStarAtIndex(t){let r=null;if(this.tokens.matches3AtIndex(t,n._export,n.star,n._as)?(t+=3,r=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of star export statement.");const s=this.tokens.stringValueAtIndex(t),i=this.getImportInfo(s);r!==null?i.exportStarNames.push(r):i.hasStarExport=!0}getNamedImports(t){const r=[];for(;;){if(this.tokens.matches1AtIndex(t,n.braceR)){t++;break}const s=Qr(this.tokens,t);if(t=s.endIndex,s.isType||r.push({importedName:s.leftName,localName:s.rightName}),this.tokens.matches2AtIndex(t,n.comma,n.braceR)){t+=2;break}else if(this.tokens.matches1AtIndex(t,n.braceR)){t++;break}else if(this.tokens.matches1AtIndex(t,n.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`)}return{newIndex:t,namedImports:r}}getImportInfo(t){const r=this.importInfoByPath.get(t);if(r)return r;const s={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,s),s}addExportBinding(t,r){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(r)}claimImportCode(t){const r=this.importsToReplace.get(t);return this.importsToReplace.set(t,""),r||""}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){const r=this.exportBindingsByLocalName.get(t);return!r||r.length===0?null:r.map(s=>`exports.${s}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Ul=44,zl=59,$i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$a=new Uint8Array(64),Hl=new Uint8Array(128);for(let e=0;e<$i.length;e++){const t=$i.charCodeAt(e);$a[e]=t,Hl[t]=e}function Br(e,t,r){let s=t-r;s=s<0?-s<<1|1:s<<1;do{let i=s&31;s>>>=5,s>0&&(i|=32),e.write($a[i])}while(s>0);return t}var qi=1024*16,Ui=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Wl=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(qi)}write(e){const{buffer:t}=this;t[this.pos++]=e,this.pos===qi&&(this.out+=Ui.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+Ui.decode(e.subarray(0,r)):t}};function Gl(e){const t=new Wl;let r=0,s=0,i=0,o=0;for(let c=0;c<e.length;c++){const u=e[c];if(c>0&&t.write(zl),u.length===0)continue;let h=0;for(let f=0;f<u.length;f++){const m=u[f];f>0&&t.write(Ul),h=Br(t,m[0],h),m.length!==1&&(r=Br(t,m[1],r),s=Br(t,m[2],s),i=Br(t,m[3],i),m.length!==4&&(o=Br(t,m[4],o)))}}return t.flush()}var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xl={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(Zt,function(){const r=/^[\w+.-]+:\/\//,s=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o(P){return r.test(P)}function c(P){return P.startsWith("//")}function u(P){return P.startsWith("/")}function h(P){return P.startsWith("file:")}function f(P){return/^[.?#]/.test(P)}function m(P){const M=s.exec(P);return _(M[1],M[2]||"",M[3],M[4]||"",M[5]||"/",M[6]||"",M[7]||"")}function x(P){const M=i.exec(P),O=M[2];return _("file:","",M[1]||"","",u(O)?O:"/"+O,M[3]||"",M[4]||"")}function _(P,M,O,U,H,G,A){return{scheme:P,user:M,host:O,port:U,path:H,query:G,hash:A,type:7}}function y(P){if(c(P)){const O=m("http:"+P);return O.scheme="",O.type=6,O}if(u(P)){const O=m("http://foo.com"+P);return O.scheme="",O.host="",O.type=5,O}if(h(P))return x(P);if(o(P))return m(P);const M=m("http://foo.com/"+P);return M.scheme="",M.host="",M.type=P?P.startsWith("?")?3:P.startsWith("#")?2:4:1,M}function L(P){if(P.endsWith("/.."))return P;const M=P.lastIndexOf("/");return P.slice(0,M+1)}function j(P,M){F(M,M.type),P.path==="/"?P.path=M.path:P.path=L(M.path)+P.path}function F(P,M){const O=M<=4,U=P.path.split("/");let H=1,G=0,A=!1;for(let B=1;B<U.length;B++){const ce=U[B];if(!ce){A=!0;continue}if(A=!1,ce!=="."){if(ce===".."){G?(A=!0,G--,H--):O&&(U[H++]=ce);continue}U[H++]=ce,G++}}let z="";for(let B=1;B<H;B++)z+="/"+U[B];(!z||A&&!z.endsWith("/.."))&&(z+="/"),P.path=z}function ne(P,M){if(!P&&!M)return"";const O=y(P);let U=O.type;if(M&&U!==7){const G=y(M),A=G.type;switch(U){case 1:O.hash=G.hash;case 2:O.query=G.query;case 3:case 4:j(O,G);case 5:O.user=G.user,O.host=G.host,O.port=G.port;case 6:O.scheme=G.scheme}A>U&&(U=A)}F(O,U);const H=O.query+O.hash;switch(U){case 2:case 3:return H;case 4:{const G=O.path.slice(1);return G?f(M||P)&&!f(G)?"./"+G+H:G+H:H||"."}case 5:return O.path+H;default:return O.scheme+"//"+O.user+O.host+O.port+O.path+H}}return ne})})(Xl);var xs=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Yl(e,t){return e._indexes[t]}function Kl(e,t){const r=Yl(e,t);if(r!==void 0)return r;const{array:s,_indexes:i}=e,o=s.push(t);return i[t]=o-1}var Ql=0,Jl=1,Zl=2,eu=3,tu=4,qa=-1,ru=class{constructor({file:e,sourceRoot:t}={}){this._names=new xs,this._sources=new xs,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new xs}};var ks=(e,t,r,s,i,o,c,u)=>iu(!0,e,t,r,s,i,o);function nu(e){const{_mappings:t,_sources:r,_sourcesContent:s,_names:i,_ignoreList:o}=e;return cu(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:s,mappings:t,ignoreList:o.array}}function su(e){const t=nu(e);return Object.assign({},t,{mappings:Gl(t.mappings)})}function iu(e,t,r,s,i,o,c,u,h){const{_mappings:f,_sources:m,_sourcesContent:x,_names:_}=t,y=au(f,r),L=ou(y,s);if(!i)return lu(y,L)?void 0:zi(y,L,[s]);const j=Kl(m,i),F=qa;if(j===x.length&&(x[j]=null),!uu(y,L,j,o,c,F))return zi(y,L,[s,j,o,c])}function au(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function ou(e,t){let r=e.length;for(let s=r-1;s>=0;r=s--){const i=e[s];if(t>=i[Ql])break}return r}function zi(e,t,r){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=r}function cu(e){const{length:t}=e;let r=t;for(let s=r-1;s>=0&&!(e[s].length>0);r=s,s--);r<t&&(e.length=r)}function lu(e,t){return t===0?!0:e[t-1].length===1}function uu(e,t,r,s,i,o){if(t===0)return!1;const c=e[t-1];return c.length===1?!1:r===c[Jl]&&s===c[Zl]&&i===c[eu]&&o===(c.length===5?c[tu]:qa)}function pu({code:e,mappings:t},r,s,i,o){const c=hu(i,o),u=new ru({file:s.compiledFilename});let h=0,f=t[0];for(;f===void 0&&h<t.length-1;)h++,f=t[h];let m=0,x=0;f!==x&&ks(u,m,0,r,m,0);for(let j=0;j<e.length;j++){if(j===f){const F=f-x,ne=c[h];for(ks(u,m,F,r,m,ne);(f===j||f===void 0)&&h<t.length-1;)h++,f=t[h]}e.charCodeAt(j)===g.lineFeed&&(m++,x=j+1,f!==x&&ks(u,m,0,r,m,0))}const{sourceRoot:_,sourcesContent:y,...L}=su(u);return L}function hu(e,t){const r=new Array(t.length);let s=0,i=t[s].start,o=0;for(let c=0;c<e.length;c++)c===i&&(r[s]=i-o,s++,i=t[s].start),e.charCodeAt(c)===g.lineFeed&&(o=c+1);return r}const fu={require:`
62
+ `;else if(s==="&"){const{entity:i,newI:o}=Ba(e,r+1);t+=i,r=o-1}else t+=s}return JSON.stringify(t)}function Ba(e,t){let r="",s=0,i,o=t;if(e[o]==="#"){let c=10;o++;let u;if(e[o]==="x")for(c=16,o++,u=o;o<e.length&&Ul(e.charCodeAt(o));)o++;else for(u=o;o<e.length&&ql(e.charCodeAt(o));)o++;if(e[o]===";"){const f=e.slice(u,o);f&&(o++,i=String.fromCodePoint(parseInt(f,c)))}}else for(;o<e.length&&s++<10;){const c=e[o];if(o++,c===";"){i=Bl.get(r);break}r+=c}return i?{entity:i,newI:o}:{entity:"&",newI:t}}function ql(e){return e>=g.digit0&&e<=g.digit9}function Ul(e){return e>=g.digit0&&e<=g.digit9||e>=g.lowercaseA&&e<=g.lowercaseF||e>=g.uppercaseA&&e<=g.uppercaseF}function $a(e,t){const r=ja(t),s=new Set;for(let i=0;i<e.tokens.length;i++){const o=e.tokens[i];if(o.type===n.name&&!o.isType&&(o.identifierRole===X.Access||o.identifierRole===X.ObjectShorthand||o.identifierRole===X.ExportAccess)&&!o.shadowsGlobal&&s.add(e.identifierNameForToken(o)),o.type===n.jsxTagStart&&s.add(r.base),o.type===n.jsxTagStart&&i+1<e.tokens.length&&e.tokens[i+1].type===n.jsxTagEnd&&(s.add(r.base),s.add(r.fragmentBase)),o.type===n.jsxName&&o.identifierRole===X.Access){const c=e.identifierNameForToken(o);(!Fa(c)||e.tokens[i+1].type===n.dot)&&s.add(e.identifierNameForToken(o))}}return s}class Jt{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,r,s,i,o,c,u){this.nameManager=t,this.tokens=r,this.enableLegacyTypeScriptModuleInterop=s,this.options=i,this.isTypeScriptTransformEnabled=o,this.keepUnusedImports=c,this.helperManager=u,Jt.prototype.__init.call(this),Jt.prototype.__init2.call(this),Jt.prototype.__init3.call(this),Jt.prototype.__init4.call(this),Jt.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,n._import)&&!this.tokens.matches3AtIndex(t,n._import,n.name,n.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,n._export)&&!this.tokens.matches2AtIndex(t,n._export,n.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=$a(this.tokens,this.options);for(const[t,r]of this.importInfoByPath.entries()){if(r.hasBareImport||r.hasStarExport||r.exportStarNames.length>0||r.namedExports.length>0)continue;[...r.defaultNames,...r.wildcardNames,...r.namedImports.map(({localName:i})=>i)].every(i=>this.shouldAutomaticallyElideImportedName(i))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(const[t,r]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:i,namedImports:o,namedExports:c,exportStarNames:u,hasStarExport:f}=r;if(s.length===0&&i.length===0&&o.length===0&&c.length===0&&u.length===0&&!f){this.importsToReplace.set(t,`require('${t}');`);continue}const h=this.getFreeIdentifierForPath(t);let d;this.enableLegacyTypeScriptModuleInterop?d=h:d=i.length>0?i[0]:this.getFreeIdentifierForPath(t);let x=`var ${h} = require('${t}');`;if(i.length>0)for(const y of i){const b=this.enableLegacyTypeScriptModuleInterop?h:`${this.helperManager.getHelperName("interopRequireWildcard")}(${h})`;x+=` var ${y} = ${b};`}else u.length>0&&d!==h?x+=` var ${d} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${h});`:s.length>0&&d!==h&&(x+=` var ${d} = ${this.helperManager.getHelperName("interopRequireDefault")}(${h});`);for(const{importedName:y,localName:b}of c)x+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${h}, '${b}', '${y}');`;for(const y of u)x+=` exports.${y} = ${d};`;f&&(x+=` ${this.helperManager.getHelperName("createStarExport")}(${h});`),this.importsToReplace.set(t,x);for(const y of s)this.identifierReplacements.set(y,`${d}.default`);for(const{importedName:y,localName:b}of o)this.identifierReplacements.set(b,`${h}.${y}`)}}getFreeIdentifierForPath(t){const r=t.split("/"),i=r[r.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${i}`)}preprocessImportAtIndex(t){const r=[],s=[],i=[];if(t++,(this.tokens.matchesContextualAtIndex(t,m._type)||this.tokens.matches1AtIndex(t,n._typeof))&&!this.tokens.matches1AtIndex(t+1,n.comma)&&!this.tokens.matchesContextualAtIndex(t+1,m._from)||this.tokens.matches1AtIndex(t,n.parenL))return;if(this.tokens.matches1AtIndex(t,n.name)&&(r.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,n.comma)&&t++),this.tokens.matches1AtIndex(t,n.star)&&(t+=2,s.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,n.braceL)){const u=this.getNamedImports(t+1);t=u.newIndex;for(const f of u.namedImports)f.importedName==="default"?r.push(f.localName):i.push(f)}if(this.tokens.matchesContextualAtIndex(t,m._from)&&t++,!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of import statement.");const o=this.tokens.stringValueAtIndex(t),c=this.getImportInfo(o);c.defaultNames.push(...r),c.wildcardNames.push(...s),c.namedImports.push(...i),r.length===0&&s.length===0&&i.length===0&&(c.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,n._export,n._var)||this.tokens.matches2AtIndex(t,n._export,n._let)||this.tokens.matches2AtIndex(t,n._export,n._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,n._export,n._function)||this.tokens.matches2AtIndex(t,n._export,n._class)){const r=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(r,r)}else if(this.tokens.matches3AtIndex(t,n._export,n.name,n._function)){const r=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(r,r)}else this.tokens.matches2AtIndex(t,n._export,n.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,n._export,n.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let r=0;for(let s=t+2;;s++)if(this.tokens.matches1AtIndex(s,n.braceL)||this.tokens.matches1AtIndex(s,n.dollarBraceL)||this.tokens.matches1AtIndex(s,n.bracketL))r++;else if(this.tokens.matches1AtIndex(s,n.braceR)||this.tokens.matches1AtIndex(s,n.bracketR))r--;else{if(r===0&&!this.tokens.matches1AtIndex(s,n.name))break;if(this.tokens.matches1AtIndex(1,n.eq)){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected = token with an end index.");s=i-1}else{const i=this.tokens.tokens[s];if(Ia(i)){const o=this.tokens.identifierNameAtIndex(s);this.identifierReplacements.set(o,`exports.${o}`)}}}}preprocessNamedExportAtIndex(t){t+=2;const{newIndex:r,namedImports:s}=this.getNamedImports(t);if(t=r,this.tokens.matchesContextualAtIndex(t,m._from))t++;else{for(const{importedName:c,localName:u}of s)this.addExportBinding(c,u);return}if(!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(t);this.getImportInfo(i).namedExports.push(...s)}preprocessExportStarAtIndex(t){let r=null;if(this.tokens.matches3AtIndex(t,n._export,n.star,n._as)?(t+=3,r=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of star export statement.");const s=this.tokens.stringValueAtIndex(t),i=this.getImportInfo(s);r!==null?i.exportStarNames.push(r):i.hasStarExport=!0}getNamedImports(t){const r=[];for(;;){if(this.tokens.matches1AtIndex(t,n.braceR)){t++;break}const s=Zr(this.tokens,t);if(t=s.endIndex,s.isType||r.push({importedName:s.leftName,localName:s.rightName}),this.tokens.matches2AtIndex(t,n.comma,n.braceR)){t+=2;break}else if(this.tokens.matches1AtIndex(t,n.braceR)){t++;break}else if(this.tokens.matches1AtIndex(t,n.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`)}return{newIndex:t,namedImports:r}}getImportInfo(t){const r=this.importInfoByPath.get(t);if(r)return r;const s={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,s),s}addExportBinding(t,r){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(r)}claimImportCode(t){const r=this.importsToReplace.get(t);return this.importsToReplace.set(t,""),r||""}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){const r=this.exportBindingsByLocalName.get(t);return!r||r.length===0?null:r.map(s=>`exports.${s}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var zl=44,Hl=59,Vi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Va=new Uint8Array(64),Wl=new Uint8Array(128);for(let e=0;e<Vi.length;e++){const t=Vi.charCodeAt(e);Va[e]=t,Wl[t]=e}function Vr(e,t,r){let s=t-r;s=s<0?-s<<1|1:s<<1;do{let i=s&31;s>>>=5,s>0&&(i|=32),e.write(Va[i])}while(s>0);return t}var qi=1024*16,Ui=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Gl=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(qi)}write(e){const{buffer:t}=this;t[this.pos++]=e,this.pos===qi&&(this.out+=Ui.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+Ui.decode(e.subarray(0,r)):t}};function Xl(e){const t=new Gl;let r=0,s=0,i=0,o=0;for(let c=0;c<e.length;c++){const u=e[c];if(c>0&&t.write(Hl),u.length===0)continue;let f=0;for(let h=0;h<u.length;h++){const d=u[h];h>0&&t.write(zl),f=Vr(t,d[0],f),d.length!==1&&(r=Vr(t,d[1],r),s=Vr(t,d[2],s),i=Vr(t,d[3],i),d.length!==4&&(o=Vr(t,d[4],o)))}}return t.flush()}var er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yl={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(er,function(){const r=/^[\w+.-]+:\/\//,s=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o(P){return r.test(P)}function c(P){return P.startsWith("//")}function u(P){return P.startsWith("/")}function f(P){return P.startsWith("file:")}function h(P){return/^[.?#]/.test(P)}function d(P){const D=s.exec(P);return y(D[1],D[2]||"",D[3],D[4]||"",D[5]||"/",D[6]||"",D[7]||"")}function x(P){const D=i.exec(P),j=D[2];return y("file:","",D[1]||"","",u(j)?j:"/"+j,D[3]||"",D[4]||"")}function y(P,D,j,U,H,G,A){return{scheme:P,user:D,host:j,port:U,path:H,query:G,hash:A,type:7}}function b(P){if(c(P)){const j=d("http:"+P);return j.scheme="",j.type=6,j}if(u(P)){const j=d("http://foo.com"+P);return j.scheme="",j.host="",j.type=5,j}if(f(P))return x(P);if(o(P))return d(P);const D=d("http://foo.com/"+P);return D.scheme="",D.host="",D.type=P?P.startsWith("?")?3:P.startsWith("#")?2:4:1,D}function N(P){if(P.endsWith("/.."))return P;const D=P.lastIndexOf("/");return P.slice(0,D+1)}function O(P,D){F(D,D.type),P.path==="/"?P.path=D.path:P.path=N(D.path)+P.path}function F(P,D){const j=D<=4,U=P.path.split("/");let H=1,G=0,A=!1;for(let B=1;B<U.length;B++){const ce=U[B];if(!ce){A=!0;continue}if(A=!1,ce!=="."){if(ce===".."){G?(A=!0,G--,H--):j&&(U[H++]=ce);continue}U[H++]=ce,G++}}let z="";for(let B=1;B<H;B++)z+="/"+U[B];(!z||A&&!z.endsWith("/.."))&&(z+="/"),P.path=z}function ee(P,D){if(!P&&!D)return"";const j=b(P);let U=j.type;if(D&&U!==7){const G=b(D),A=G.type;switch(U){case 1:j.hash=G.hash;case 2:j.query=G.query;case 3:case 4:O(j,G);case 5:j.user=G.user,j.host=G.host,j.port=G.port;case 6:j.scheme=G.scheme}A>U&&(U=A)}F(j,U);const H=j.query+j.hash;switch(U){case 2:case 3:return H;case 4:{const G=j.path.slice(1);return G?h(D||P)&&!h(G)?"./"+G+H:G+H:H||"."}case 5:return j.path+H;default:return j.scheme+"//"+j.user+j.host+j.port+j.path+H}}return ee})})(Yl);var xs=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Kl(e,t){return e._indexes[t]}function Ql(e,t){const r=Kl(e,t);if(r!==void 0)return r;const{array:s,_indexes:i}=e,o=s.push(t);return i[t]=o-1}var Jl=0,Zl=1,eu=2,tu=3,ru=4,qa=-1,nu=class{constructor({file:e,sourceRoot:t}={}){this._names=new xs,this._sources=new xs,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new xs}};var ks=(e,t,r,s,i,o,c,u)=>au(!0,e,t,r,s,i,o);function su(e){const{_mappings:t,_sources:r,_sourcesContent:s,_names:i,_ignoreList:o}=e;return lu(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:s,mappings:t,ignoreList:o.array}}function iu(e){const t=su(e);return Object.assign({},t,{mappings:Xl(t.mappings)})}function au(e,t,r,s,i,o,c,u,f){const{_mappings:h,_sources:d,_sourcesContent:x,_names:y}=t,b=ou(h,r),N=cu(b,s);if(!i)return uu(b,N)?void 0:zi(b,N,[s]);const O=Ql(d,i),F=qa;if(O===x.length&&(x[O]=null),!pu(b,N,O,o,c,F))return zi(b,N,[s,O,o,c])}function ou(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function cu(e,t){let r=e.length;for(let s=r-1;s>=0;r=s--){const i=e[s];if(t>=i[Jl])break}return r}function zi(e,t,r){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=r}function lu(e){const{length:t}=e;let r=t;for(let s=r-1;s>=0&&!(e[s].length>0);r=s,s--);r<t&&(e.length=r)}function uu(e,t){return t===0?!0:e[t-1].length===1}function pu(e,t,r,s,i,o){if(t===0)return!1;const c=e[t-1];return c.length===1?!1:r===c[Zl]&&s===c[eu]&&i===c[tu]&&o===(c.length===5?c[ru]:qa)}function hu({code:e,mappings:t},r,s,i,o){const c=fu(i,o),u=new nu({file:s.compiledFilename});let f=0,h=t[0];for(;h===void 0&&f<t.length-1;)f++,h=t[f];let d=0,x=0;h!==x&&ks(u,d,0,r,d,0);for(let O=0;O<e.length;O++){if(O===h){const F=h-x,ee=c[f];for(ks(u,d,F,r,d,ee);(h===O||h===void 0)&&f<t.length-1;)f++,h=t[f]}e.charCodeAt(O)===g.lineFeed&&(d++,x=O+1,h!==x&&ks(u,d,0,r,d,0))}const{sourceRoot:y,sourcesContent:b,...N}=iu(u);return N}function fu(e,t){const r=new Array(t.length);let s=0,i=t[s].start,o=0;for(let c=0;c<e.length;c++)c===i&&(r[s]=i-o,s++,i=t[s].start),e.charCodeAt(c)===g.lineFeed&&(o=c+1);return r}const du={require:`
63
63
  import {createRequire as CREATE_REQUIRE_NAME} from "module";
64
64
  const require = CREATE_REQUIRE_NAME(import.meta.url);
65
65
  `,interopRequireWildcard:`
@@ -168,9 +168,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
168
168
  const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
169
169
  return result == null ? true : result;
170
170
  }
171
- `};class Sn{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,Sn.prototype.__init.call(this),Sn.prototype.__init2.call(this)}getHelperName(t){let r=this.helperNames[t];return r||(r=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=r,r)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[r,s]of Object.entries(fu)){const i=this.helperNames[r];let o=s;r==="optionalChainDelete"?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):r==="asyncOptionalChainDelete"?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):r==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(t+=" ",t+=o.replace(r,i).replace(/\s+/g," ").trim())}return t}}function Hi(e,t,r){du(e,r)&&mu(e,t,r)}function du(e,t){for(const r of e.tokens)if(r.type===n.name&&!r.isType&&gl(r)&&t.has(e.identifierNameForToken(r)))return!0;return!1}function mu(e,t,r){const s=[];let i=t.length-1;for(let o=e.tokens.length-1;;o--){for(;s.length>0&&s[s.length-1].startTokenIndex===o+1;)s.pop();for(;i>=0&&t[i].endTokenIndex===o+1;)s.push(t[i]),i--;if(o<0)break;const c=e.tokens[o],u=e.identifierNameForToken(c);if(s.length>1&&!c.isType&&c.type===n.name&&r.has(u)){if(xl(c))Wi(s[s.length-1],e,u);else if(kl(c)){let h=s.length-1;for(;h>0&&!s[h].isFunctionScope;)h--;if(h<0)throw new Error("Did not find parent function scope.");Wi(s[h],e,u)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function Wi(e,t,r){for(let s=e.startTokenIndex;s<e.endTokenIndex;s++){const i=t.tokens[s];(i.type===n.name||i.type===n.jsxName)&&t.identifierNameForToken(i)===r&&(i.shadowsGlobal=!0)}}function gu(e,t){const r=[];for(const s of t)s.type===n.name&&r.push(e.slice(s.start,s.end));return r}class Xs{__init(){this.usedNames=new Set}constructor(t,r){Xs.prototype.__init.call(this),this.usedNames=new Set(gu(t,r))}claimFreeName(t){const r=this.findFreeName(t);return this.usedNames.add(r),r}findFreeName(t){if(!this.usedNames.has(t))return t;let r=2;for(;this.usedNames.has(t+String(r));)r++;return t+String(r)}}var ye={},As={},wt={},xu=Zt&&Zt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var o in i)i.hasOwnProperty(o)&&(s[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function s(){this.constructor=t}t.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}();Object.defineProperty(wt,"__esModule",{value:!0});wt.DetailContext=wt.NoopContext=wt.VError=void 0;var Ua=function(e){xu(t,e);function t(r,s){var i=e.call(this,s)||this;return i.path=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error);wt.VError=Ua;var ku=function(){function e(){}return e.prototype.fail=function(t,r,s){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(t){},e}();wt.NoopContext=ku;var za=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(t,r,s){return this._propNames.push(t),this._messages.push(r),this._score+=s,!1},e.prototype.unionResolver=function(){return new bu},e.prototype.resolveUnion=function(t){for(var r,s,i=t,o=null,c=0,u=i.contexts;c<u.length;c++){var h=u[c];(!o||h._score>=o._score)&&(o=h)}o&&o._score>0&&((r=this._propNames).push.apply(r,o._propNames),(s=this._messages).push.apply(s,o._messages))},e.prototype.getError=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."+i:"";var o=this._messages[s];o&&r.push(t+" "+o)}return new Ua(t,r.join("; "))},e.prototype.getErrorDetail=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."+i:"";var o=this._messages[s];o&&r.push({path:t,message:o})}for(var c=null,s=r.length-1;s>=0;s--)c&&(r[s].nested=[c]),c=r[s];return c},e}();wt.DetailContext=za;var bu=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var t=new za;return this.contexts.push(t),t},e}();(function(e){var t=Zt&&Zt.__extends||function(){var b=function(I,T){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,D){C.__proto__=D}||function(C,D){for(var Y in D)D.hasOwnProperty(Y)&&(C[Y]=D[Y])},b(I,T)};return function(I,T){b(I,T);function C(){this.constructor=I}I.prototype=T===null?Object.create(T):(C.prototype=T.prototype,new C)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var r=wt,s=function(){function b(){}return b}();e.TType=s;function i(b){return typeof b=="string"?c(b):b}function o(b,I){var T=b[I];if(!T)throw new Error("Unknown type "+I);return T}function c(b){return new u(b)}e.name=c;var u=function(b){t(I,b);function I(T){var C=b.call(this)||this;return C.name=T,C._failMsg="is not a "+T,C}return I.prototype.getChecker=function(T,C,D){var Y=this,Q=o(T,this.name),le=Q.getChecker(T,C,D);return Q instanceof he||Q instanceof I?le:function(ve,me){return le(ve,me)?!0:me.fail(null,Y._failMsg,0)}},I}(s);e.TName=u;function h(b){return new f(b)}e.lit=h;var f=function(b){t(I,b);function I(T){var C=b.call(this)||this;return C.value=T,C.name=JSON.stringify(T),C._failMsg="is not "+C.name,C}return I.prototype.getChecker=function(T,C){var D=this;return function(Y,Q){return Y===D.value?!0:Q.fail(null,D._failMsg,-1)}},I}(s);e.TLiteral=f;function m(b){return new x(i(b))}e.array=m;var x=function(b){t(I,b);function I(T){var C=b.call(this)||this;return C.ttype=T,C}return I.prototype.getChecker=function(T,C){var D=this.ttype.getChecker(T,C);return function(Y,Q){if(!Array.isArray(Y))return Q.fail(null,"is not an array",0);for(var le=0;le<Y.length;le++){var ve=D(Y[le],Q);if(!ve)return Q.fail(le,null,1)}return!0}},I}(s);e.TArray=x;function _(){for(var b=[],I=0;I<arguments.length;I++)b[I]=arguments[I];return new y(b.map(function(T){return i(T)}))}e.tuple=_;var y=function(b){t(I,b);function I(T){var C=b.call(this)||this;return C.ttypes=T,C}return I.prototype.getChecker=function(T,C){var D=this.ttypes.map(function(Q){return Q.getChecker(T,C)}),Y=function(Q,le){if(!Array.isArray(Q))return le.fail(null,"is not an array",0);for(var ve=0;ve<D.length;ve++){var me=D[ve](Q[ve],le);if(!me)return le.fail(ve,null,1)}return!0};return C?function(Q,le){return Y(Q,le)?Q.length<=D.length?!0:le.fail(D.length,"is extraneous",2):!1}:Y},I}(s);e.TTuple=y;function L(){for(var b=[],I=0;I<arguments.length;I++)b[I]=arguments[I];return new j(b.map(function(T){return i(T)}))}e.union=L;var j=function(b){t(I,b);function I(T){var C=b.call(this)||this;C.ttypes=T;var D=T.map(function(Q){return Q instanceof u||Q instanceof f?Q.name:null}).filter(function(Q){return Q}),Y=T.length-D.length;return D.length?(Y>0&&D.push(Y+" more"),C._failMsg="is none of "+D.join(", ")):C._failMsg="is none of "+Y+" types",C}return I.prototype.getChecker=function(T,C){var D=this,Y=this.ttypes.map(function(Q){return Q.getChecker(T,C)});return function(Q,le){for(var ve=le.unionResolver(),me=0;me<Y.length;me++){var je=Y[me](Q,ve.createContext());if(je)return!0}return le.resolveUnion(ve),le.fail(null,D._failMsg,0)}},I}(s);e.TUnion=j;function F(){for(var b=[],I=0;I<arguments.length;I++)b[I]=arguments[I];return new ne(b.map(function(T){return i(T)}))}e.intersection=F;var ne=function(b){t(I,b);function I(T){var C=b.call(this)||this;return C.ttypes=T,C}return I.prototype.getChecker=function(T,C){var D=new Set,Y=this.ttypes.map(function(Q){return Q.getChecker(T,C,D)});return function(Q,le){var ve=Y.every(function(me){return me(Q,le)});return ve?!0:le.fail(null,null,0)}},I}(s);e.TIntersection=ne;function P(b){return new M(b)}e.enumtype=P;var M=function(b){t(I,b);function I(T){var C=b.call(this)||this;return C.members=T,C.validValues=new Set,C._failMsg="is not a valid enum value",C.validValues=new Set(Object.keys(T).map(function(D){return T[D]})),C}return I.prototype.getChecker=function(T,C){var D=this;return function(Y,Q){return D.validValues.has(Y)?!0:Q.fail(null,D._failMsg,0)}},I}(s);e.TEnumType=M;function O(b,I){return new U(b,I)}e.enumlit=O;var U=function(b){t(I,b);function I(T,C){var D=b.call(this)||this;return D.enumName=T,D.prop=C,D._failMsg="is not "+T+"."+C,D}return I.prototype.getChecker=function(T,C){var D=this,Y=o(T,this.enumName);if(!(Y instanceof M))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var Q=Y.members[this.prop];if(!Y.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(le,ve){return le===Q?!0:ve.fail(null,D._failMsg,-1)}},I}(s);e.TEnumLiteral=U;function H(b){return Object.keys(b).map(function(I){return G(I,b[I])})}function G(b,I){return I instanceof ce?new Le(b,I.ttype,!0):new Le(b,i(I),!1)}function A(b,I){return new z(b,H(I))}e.iface=A;var z=function(b){t(I,b);function I(T,C){var D=b.call(this)||this;return D.bases=T,D.props=C,D.propSet=new Set(C.map(function(Y){return Y.name})),D}return I.prototype.getChecker=function(T,C,D){var Y=this,Q=this.bases.map(function(Ie){return o(T,Ie).getChecker(T,C)}),le=this.props.map(function(Ie){return Ie.ttype.getChecker(T,C)}),ve=new r.NoopContext,me=this.props.map(function(Ie,Ee){return!Ie.isOpt&&!le[Ee](void 0,ve)}),je=function(Ie,Ee){if(typeof Ie!="object"||Ie===null)return Ee.fail(null,"is not an object",0);for(var De=0;De<Q.length;De++)if(!Q[De](Ie,Ee))return!1;for(var De=0;De<le.length;De++){var At=Y.props[De].name,gt=Ie[At];if(gt===void 0){if(me[De])return Ee.fail(At,"is missing",1)}else{var xt=le[De](gt,Ee);if(!xt)return Ee.fail(At,null,1)}}return!0};if(!C)return je;var we=this.propSet;return D&&(this.propSet.forEach(function(Ie){return D.add(Ie)}),we=D),function(Ie,Ee){if(!je(Ie,Ee))return!1;for(var De in Ie)if(!we.has(De))return Ee.fail(De,"is extraneous",2);return!0}},I}(s);e.TIface=z;function B(b){return new ce(i(b))}e.opt=B;var ce=function(b){t(I,b);function I(T){var C=b.call(this)||this;return C.ttype=T,C}return I.prototype.getChecker=function(T,C){var D=this.ttype.getChecker(T,C);return function(Y,Q){return Y===void 0||D(Y,Q)}},I}(s);e.TOptional=ce;var Le=function(){function b(I,T,C){this.name=I,this.ttype=T,this.isOpt=C}return b}();e.TProp=Le;function $e(b){for(var I=[],T=1;T<arguments.length;T++)I[T-1]=arguments[T];return new Me(new Te(I),i(b))}e.func=$e;var Me=function(b){t(I,b);function I(T,C){var D=b.call(this)||this;return D.paramList=T,D.result=C,D}return I.prototype.getChecker=function(T,C){return function(D,Y){return typeof D=="function"?!0:Y.fail(null,"is not a function",0)}},I}(s);e.TFunc=Me;function W(b,I,T){return new oe(b,i(I),!!T)}e.param=W;var oe=function(){function b(I,T,C){this.name=I,this.ttype=T,this.isOpt=C}return b}();e.TParam=oe;var Te=function(b){t(I,b);function I(T){var C=b.call(this)||this;return C.params=T,C}return I.prototype.getChecker=function(T,C){var D=this,Y=this.params.map(function(me){return me.ttype.getChecker(T,C)}),Q=new r.NoopContext,le=this.params.map(function(me,je){return!me.isOpt&&!Y[je](void 0,Q)}),ve=function(me,je){if(!Array.isArray(me))return je.fail(null,"is not an array",0);for(var we=0;we<Y.length;we++){var Ie=D.params[we];if(me[we]===void 0){if(le[we])return je.fail(Ie.name,"is missing",1)}else{var Ee=Y[we](me[we],je);if(!Ee)return je.fail(Ie.name,null,1)}}return!0};return C?function(me,je){return ve(me,je)?me.length<=Y.length?!0:je.fail(Y.length,"is extraneous",2):!1}:ve},I}(s);e.TParamList=Te;var he=function(b){t(I,b);function I(T,C){var D=b.call(this)||this;return D.validator=T,D.message=C,D}return I.prototype.getChecker=function(T,C){var D=this;return function(Y,Q){return D.validator(Y)?!0:Q.fail(null,D.message,0)}},I}(s);e.BasicType=he,e.basicTypes={any:new he(function(b){return!0},"is invalid"),number:new he(function(b){return typeof b=="number"},"is not a number"),object:new he(function(b){return typeof b=="object"&&b},"is not an object"),boolean:new he(function(b){return typeof b=="boolean"},"is not a boolean"),string:new he(function(b){return typeof b=="string"},"is not a string"),symbol:new he(function(b){return typeof b=="symbol"},"is not a symbol"),void:new he(function(b){return b==null},"is not void"),undefined:new he(function(b){return b===void 0},"is not undefined"),null:new he(function(b){return b===null},"is not null"),never:new he(function(b){return!1},"is unexpected"),Date:new he(be("[object Date]"),"is not a Date"),RegExp:new he(be("[object RegExp]"),"is not a RegExp")};var _e=Object.prototype.toString;function be(b){return function(I){return typeof I=="object"&&I&&_e.call(I)===b}}typeof Buffer<"u"&&(e.basicTypes.Buffer=new he(function(b){return Buffer.isBuffer(b)},"is not a Buffer"));for(var Z=function(b){e.basicTypes[b.name]=new he(function(I){return I instanceof b},"is not a "+b.name)},ae=0,de=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];ae<de.length;ae++){var ze=de[ae];Z(ze)}})(As);(function(e){var t=Zt&&Zt.__spreadArrays||function(){for(var h=0,f=0,m=arguments.length;f<m;f++)h+=arguments[f].length;for(var x=Array(h),_=0,f=0;f<m;f++)for(var y=arguments[f],L=0,j=y.length;L<j;L++,_++)x[_]=y[L];return x};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var r=As,s=wt,i=As;Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var o=wt;Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return o.VError}});function c(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];for(var m=Object.assign.apply(Object,t([{},r.basicTypes],h)),x={},_=0,y=h;_<y.length;_++)for(var L=y[_],j=0,F=Object.keys(L);j<F.length;j++){var ne=F[j];x[ne]=new u(m,L[ne])}return x}e.createCheckers=c;var u=function(){function h(f,m,x){if(x===void 0&&(x="value"),this.suite=f,this.ttype=m,this._path=x,this.props=new Map,m instanceof r.TIface)for(var _=0,y=m.props;_<y.length;_++){var L=y[_];this.props.set(L.name,L.ttype)}this.checkerPlain=this.ttype.getChecker(f,!1),this.checkerStrict=this.ttype.getChecker(f,!0)}return h.prototype.setReportedPath=function(f){this._path=f},h.prototype.check=function(f){return this._doCheck(this.checkerPlain,f)},h.prototype.test=function(f){return this.checkerPlain(f,new s.NoopContext)},h.prototype.validate=function(f){return this._doValidate(this.checkerPlain,f)},h.prototype.strictCheck=function(f){return this._doCheck(this.checkerStrict,f)},h.prototype.strictTest=function(f){return this.checkerStrict(f,new s.NoopContext)},h.prototype.strictValidate=function(f){return this._doValidate(this.checkerStrict,f)},h.prototype.getProp=function(f){var m=this.props.get(f);if(!m)throw new Error("Type has no property "+f);return new h(this.suite,m,this._path+"."+f)},h.prototype.methodArgs=function(f){var m=this._getMethod(f);return new h(this.suite,m.paramList)},h.prototype.methodResult=function(f){var m=this._getMethod(f);return new h(this.suite,m.result)},h.prototype.getArgs=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getArgs() applied to non-function");return new h(this.suite,this.ttype.paramList)},h.prototype.getResult=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getResult() applied to non-function");return new h(this.suite,this.ttype.result)},h.prototype.getType=function(){return this.ttype},h.prototype._doCheck=function(f,m){var x=new s.NoopContext;if(!f(m,x)){var _=new s.DetailContext;throw f(m,_),_.getError(this._path)}},h.prototype._doValidate=function(f,m){var x=new s.NoopContext;if(f(m,x))return null;var _=new s.DetailContext;return f(m,_),_.getErrorDetail(this._path)},h.prototype._getMethod=function(f){var m=this.props.get(f);if(!m)throw new Error("Type has no property "+f);if(!(m instanceof r.TFunc))throw new Error("Property "+f+" is not a method");return m},h}();e.Checker=u})(ye);const yu=ye.union(ye.lit("jsx"),ye.lit("typescript"),ye.lit("flow"),ye.lit("imports"),ye.lit("react-hot-loader"),ye.lit("jest")),vu=ye.iface([],{compiledFilename:"string"}),wu=ye.iface([],{transforms:ye.array("Transform"),disableESTransforms:ye.opt("boolean"),jsxRuntime:ye.opt(ye.union(ye.lit("classic"),ye.lit("automatic"),ye.lit("preserve"))),production:ye.opt("boolean"),jsxImportSource:ye.opt("string"),jsxPragma:ye.opt("string"),jsxFragmentPragma:ye.opt("string"),keepUnusedImports:ye.opt("boolean"),preserveDynamicImport:ye.opt("boolean"),injectCreateRequireForImportRequire:ye.opt("boolean"),enableLegacyTypeScriptModuleInterop:ye.opt("boolean"),enableLegacyBabel5ModuleInterop:ye.opt("boolean"),sourceMapOptions:ye.opt("SourceMapOptions"),filePath:ye.opt("string")}),_u={Transform:yu,SourceMapOptions:vu,Options:wu},{Options:Su}=ye.createCheckers(_u);function Iu(e){Su.strictCheck(e)}function Ha(){w(),Ue(!1)}function Wa(e){w(),qn(e)}function Wt(e){J(),Ys(e)}function In(){J(),a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration}function Ys(e){let t;a.scopeDepth===0?t=X.TopLevelDeclaration:e?t=X.BlockScopedDeclaration:t=X.FunctionScopedDeclaration,a.tokens[a.tokens.length-1].identifierRole=t}function qn(e){switch(a.type){case n._this:{const t=ie(0);w(),se(t);return}case n._yield:case n.name:{a.type=n.name,Wt(e);return}case n.bracketL:{w(),Ks(n.bracketR,e,!0);return}case n.braceL:oi(!0,e);return;default:te()}}function Ks(e,t,r=!1,s=!1,i=0){let o=!0,c=!1;const u=a.tokens.length;for(;!k(e)&&!a.error;)if(o?o=!1:(v(n.comma),a.tokens[a.tokens.length-1].contextId=i,!c&&a.tokens[u].isType&&(a.tokens[a.tokens.length-1].isType=!0,c=!0)),!(r&&p(n.comma))){if(k(e))break;if(p(n.ellipsis)){Wa(t),Ga(),k(n.comma),v(e);break}else Eu(s,t)}}function Eu(e,t){e&&Qs([d._public,d._protected,d._private,d._readonly,d._override]),En(t),Ga(),En(t,!0)}function Ga(){xe?zh():ue&&Dp()}function En(e,t=!1){if(t||qn(e),!k(n.eq))return;const r=a.tokens.length-1;Ue(),a.tokens[r].rhsEndIndex=a.tokens.length}function Ps(){return p(n.name)}function Cu(){return p(n.name)||!!(a.type&n.IS_KEYWORD)||p(n.string)||p(n.num)||p(n.bigint)||p(n.decimal)}function Xa(){const e=a.snapshot();return w(),(p(n.bracketL)||p(n.braceL)||p(n.star)||p(n.ellipsis)||p(n.hash)||Cu())&&!Xe()?!0:(a.restoreFromSnapshot(e),!1)}function Qs(e){for(;Ya(e)!==null;);}function Ya(e){if(!p(n.name))return null;const t=a.contextualKeyword;if(e.indexOf(t)!==-1&&Xa()){switch(t){case d._readonly:a.tokens[a.tokens.length-1].type=n._readonly;break;case d._abstract:a.tokens[a.tokens.length-1].type=n._abstract;break;case d._static:a.tokens[a.tokens.length-1].type=n._static;break;case d._public:a.tokens[a.tokens.length-1].type=n._public;break;case d._private:a.tokens[a.tokens.length-1].type=n._private;break;case d._protected:a.tokens[a.tokens.length-1].type=n._protected;break;case d._override:a.tokens[a.tokens.length-1].type=n._override;break;case d._declare:a.tokens[a.tokens.length-1].type=n._declare;break}return t}return null}function on(){for(J();k(n.dot);)J()}function Tu(){on(),!Xe()&&p(n.lessThan)&&_r()}function Au(){w(),cn()}function Pu(){w()}function Nu(){v(n._typeof),p(n._import)?Ka():on(),!Xe()&&p(n.lessThan)&&_r()}function Ka(){v(n._import),v(n.parenL),v(n.string),v(n.parenR),k(n.dot)&&on(),p(n.lessThan)&&_r()}function Ru(){k(n._const);const e=k(n._in),t=Be(d._out);k(n._const),(e||t)&&!p(n.name)?a.tokens[a.tokens.length-1].type=n.name:J(),k(n._extends)&&Re(),k(n.eq)&&Re()}function sr(){p(n.lessThan)&&Un()}function Un(){const e=ie(0);for(p(n.lessThan)||p(n.typeParameterStart)?w():te();!k(n.greaterThan)&&!a.error;)Ru(),k(n.comma);se(e)}function Js(e){const t=e===n.arrow;sr(),v(n.parenL),a.scopeDepth++,Lu(!1),a.scopeDepth--,(t||p(e))&&Jr(e)}function Lu(e){Ks(n.parenR,e)}function Cn(){k(n.comma)||Ce()}function Gi(){Js(n.colon),Cn()}function Du(){const e=a.snapshot();w();const t=k(n.name)&&p(n.colon);return a.restoreFromSnapshot(e),t}function Qa(){if(!(p(n.bracketL)&&Du()))return!1;const e=ie(0);return v(n.bracketL),J(),cn(),v(n.bracketR),wr(),Cn(),se(e),!0}function Xi(e){k(n.question),!e&&(p(n.parenL)||p(n.lessThan))?(Js(n.colon),Cn()):(wr(),Cn())}function Ou(){if(p(n.parenL)||p(n.lessThan)){Gi();return}if(p(n._new)){w(),p(n.parenL)||p(n.lessThan)?Gi():Xi(!1);return}const e=!!Ya([d._readonly]);Qa()||((q(d._get)||q(d._set))&&Xa(),Zr(-1),Xi(e))}function Mu(){Ja()}function Ja(){for(v(n.braceL);!k(n.braceR)&&!a.error;)Ou()}function ju(){const e=a.snapshot(),t=Fu();return a.restoreFromSnapshot(e),t}function Fu(){return w(),k(n.plus)||k(n.minus)?q(d._readonly):(q(d._readonly)&&w(),!p(n.bracketL)||(w(),!Ps())?!1:(w(),p(n._in)))}function Bu(){J(),v(n._in),Re()}function Vu(){v(n.braceL),p(n.plus)||p(n.minus)?(w(),Oe(d._readonly)):Be(d._readonly),v(n.bracketL),Bu(),Be(d._as)&&Re(),v(n.bracketR),p(n.plus)||p(n.minus)?(w(),v(n.question)):k(n.question),ep(),Ce(),v(n.braceR)}function $u(){for(v(n.bracketL);!k(n.bracketR)&&!a.error;)qu(),k(n.comma)}function qu(){k(n.ellipsis)?Re():(Re(),k(n.question)),k(n.colon)&&Re()}function Uu(){v(n.parenL),Re(),v(n.parenR)}function zu(){for(Bt(),Bt();!p(n.backQuote)&&!a.error;)v(n.dollarBraceL),Re(),Bt(),Bt();w()}var qt;(function(e){e[e.TSFunctionType=0]="TSFunctionType";const r=1;e[e.TSConstructorType=r]="TSConstructorType";const s=r+1;e[e.TSAbstractConstructorType=s]="TSAbstractConstructorType"})(qt||(qt={}));function bs(e){e===qt.TSAbstractConstructorType&&Oe(d._abstract),(e===qt.TSConstructorType||e===qt.TSAbstractConstructorType)&&v(n._new);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,Js(n.arrow),a.inDisallowConditionalTypesContext=t}function Hu(){switch(a.type){case n.name:Tu();return;case n._void:case n._null:w();return;case n.string:case n.num:case n.bigint:case n.decimal:case n._true:case n._false:vr();return;case n.minus:w(),vr();return;case n._this:{Pu(),q(d._is)&&!Xe()&&Au();return}case n._typeof:Nu();return;case n._import:Ka();return;case n.braceL:ju()?Vu():Mu();return;case n.bracketL:$u();return;case n.parenL:Uu();return;case n.backQuote:zu();return;default:if(a.type&n.IS_KEYWORD){w(),a.tokens[a.tokens.length-1].type=n.name;return}break}te()}function Wu(){for(Hu();!Xe()&&k(n.bracketL);)k(n.bracketR)||(Re(),v(n.bracketR))}function Gu(){if(Oe(d._infer),J(),p(n._extends)){const e=a.snapshot();v(n._extends);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,Re(),a.inDisallowConditionalTypesContext=t,(a.error||!a.inDisallowConditionalTypesContext&&p(n.question))&&a.restoreFromSnapshot(e)}}function Ns(){if(q(d._keyof)||q(d._unique)||q(d._readonly))w(),Ns();else if(q(d._infer))Gu();else{const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,Wu(),a.inDisallowConditionalTypesContext=e}}function Yi(){if(k(n.bitwiseAND),Ns(),p(n.bitwiseAND))for(;k(n.bitwiseAND);)Ns()}function Xu(){if(k(n.bitwiseOR),Yi(),p(n.bitwiseOR))for(;k(n.bitwiseOR);)Yi()}function Yu(){return p(n.lessThan)?!0:p(n.parenL)&&Qu()}function Ku(){if(p(n.name)||p(n._this))return w(),!0;if(p(n.braceL)||p(n.bracketL)){let e=1;for(w();e>0&&!a.error;)p(n.braceL)||p(n.bracketL)?e++:(p(n.braceR)||p(n.bracketR))&&e--,w();return!0}return!1}function Qu(){const e=a.snapshot(),t=Ju();return a.restoreFromSnapshot(e),t}function Ju(){return w(),!!(p(n.parenR)||p(n.ellipsis)||Ku()&&(p(n.colon)||p(n.comma)||p(n.question)||p(n.eq)||p(n.parenR)&&(w(),p(n.arrow))))}function Jr(e){const t=ie(0);v(e),tp()||Re(),se(t)}function Zu(){p(n.colon)&&Jr(n.colon)}function wr(){p(n.colon)&&cn()}function ep(){k(n.colon)&&Re()}function tp(){const e=a.snapshot();return q(d._asserts)?(w(),Be(d._is)?(Re(),!0):Ps()||p(n._this)?(w(),Be(d._is)&&Re(),!0):(a.restoreFromSnapshot(e),!1)):Ps()||p(n._this)?(w(),q(d._is)&&!Xe()?(w(),Re(),!0):(a.restoreFromSnapshot(e),!1)):!1}function cn(){const e=ie(0);v(n.colon),Re(),se(e)}function Re(){if(Ki(),a.inDisallowConditionalTypesContext||Xe()||!k(n._extends))return;const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,Ki(),a.inDisallowConditionalTypesContext=e,v(n.question),Re(),v(n.colon),Re()}function rp(){return q(d._abstract)&&Ne()===n._new}function Ki(){if(Yu()){bs(qt.TSFunctionType);return}if(p(n._new)){bs(qt.TSConstructorType);return}else if(rp()){bs(qt.TSAbstractConstructorType);return}Xu()}function np(){const e=ie(1);Re(),v(n.greaterThan),se(e),ln()}function sp(){if(k(n.jsxTagStart)){a.tokens[a.tokens.length-1].type=n.typeParameterStart;const e=ie(1);for(;!p(n.greaterThan)&&!a.error;)Re(),k(n.comma);at(),se(e)}}function Za(){for(;!p(n.braceL)&&!a.error;)ip(),k(n.comma)}function ip(){on(),p(n.lessThan)&&_r()}function ap(){Wt(!1),sr(),k(n._extends)&&Za(),Ja()}function op(){Wt(!1),sr(),v(n.eq),Re(),Ce()}function cp(){if(p(n.string)?vr():J(),k(n.eq)){const e=a.tokens.length-1;Ue(),a.tokens[e].rhsEndIndex=a.tokens.length}}function Zs(){for(Wt(!1),v(n.braceL);!k(n.braceR)&&!a.error;)cp(),k(n.comma)}function ei(){v(n.braceL),Gn(n.braceR)}function Rs(){Wt(!1),k(n.dot)?Rs():ei()}function eo(){q(d._global)?J():p(n.string)?Rt():te(),p(n.braceL)?ei():Ce()}function Ls(){In(),v(n.eq),up(),Ce()}function lp(){return q(d._require)&&Ne()===n.parenL}function up(){lp()?pp():on()}function pp(){Oe(d._require),v(n.parenL),p(n.string)||te(),vr(),v(n.parenR)}function hp(){if(vt())return!1;switch(a.type){case n._function:{const e=ie(1);w();const t=a.start;return tr(t,!0),se(e),!0}case n._class:{const e=ie(1);return rr(!0,!1),se(e),!0}case n._const:if(p(n._const)&&Ws(d._enum)){const e=ie(1);return v(n._const),Oe(d._enum),a.tokens[a.tokens.length-1].type=n._enum,Zs(),se(e),!0}case n._var:case n._let:{const e=ie(1);return yn(a.type!==n._var),se(e),!0}case n.name:{const e=ie(1),t=a.contextualKeyword;let r=!1;return t===d._global?(eo(),r=!0):r=zn(t,!0),se(e),r}default:return!1}}function Qi(){return zn(a.contextualKeyword,!0)}function fp(e){switch(e){case d._declare:{const t=a.tokens.length-1;if(hp())return a.tokens[t].type=n._declare,!0;break}case d._global:if(p(n.braceL))return ei(),!0;break;default:return zn(e,!1)}return!1}function zn(e,t){switch(e){case d._abstract:if(kr(t)&&p(n._class))return a.tokens[a.tokens.length-1].type=n._abstract,rr(!0,!1),!0;break;case d._enum:if(kr(t)&&p(n.name))return a.tokens[a.tokens.length-1].type=n._enum,Zs(),!0;break;case d._interface:if(kr(t)&&p(n.name)){const r=ie(t?2:1);return ap(),se(r),!0}break;case d._module:if(kr(t)){if(p(n.string)){const r=ie(t?2:1);return eo(),se(r),!0}else if(p(n.name)){const r=ie(t?2:1);return Rs(),se(r),!0}}break;case d._namespace:if(kr(t)&&p(n.name)){const r=ie(t?2:1);return Rs(),se(r),!0}break;case d._type:if(kr(t)&&p(n.name)){const r=ie(t?2:1);return op(),se(r),!0}break}return!1}function kr(e){return e?(w(),!0):!vt()}function dp(){const e=a.snapshot();return Un(),Sr(),Zu(),v(n.arrow),a.error?(a.restoreFromSnapshot(e),!1):(un(!0),!0)}function ti(){a.type===n.bitShiftL&&(a.pos-=1,ee(n.lessThan)),_r()}function _r(){const e=ie(0);for(v(n.lessThan);!p(n.greaterThan)&&!a.error;)Re(),k(n.comma);e?(v(n.greaterThan),se(e)):(se(e),Da(),v(n.greaterThan),a.tokens[a.tokens.length-1].isType=!0)}function to(){if(p(n.name))switch(a.contextualKeyword){case d._abstract:case d._declare:case d._enum:case d._interface:case d._module:case d._namespace:case d._type:return!0}return!1}function mp(e,t){if(p(n.colon)&&Jr(n.colon),!p(n.braceL)&&vt()){let r=a.tokens.length-1;for(;r>=0&&(a.tokens[r].start>=e||a.tokens[r].type===n._default||a.tokens[r].type===n._export);)a.tokens[r].isType=!0,r--;return}un(!1,t)}function gp(e,t,r){if(!Xe()&&k(n.bang)){a.tokens[a.tokens.length-1].type=n.nonNullAssertion;return}if(p(n.lessThan)||p(n.bitShiftL)){const s=a.snapshot();if(!t&&lo()&&dp())return;if(ti(),!t&&k(n.parenL)?(a.tokens[a.tokens.length-1].subscriptStartIndex=e,Ut()):p(n.backQuote)?ai():(a.type===n.greaterThan||a.type!==n.parenL&&a.type&n.IS_EXPRESSION_START&&!Xe())&&te(),a.error)a.restoreFromSnapshot(s);else return}else!t&&p(n.questionDot)&&Ne()===n.lessThan&&(w(),a.tokens[e].isOptionalChainStart=!0,a.tokens[a.tokens.length-1].subscriptStartIndex=e,_r(),v(n.parenL),Ut());ni(e,t,r)}function xp(){if(k(n._import))return q(d._type)&&Ne()!==n.eq&&Oe(d._type),Ls(),!0;if(k(n.eq))return qe(),Ce(),!0;if(Be(d._as))return Oe(d._namespace),J(),Ce(),!0;if(q(d._type)){const e=Ne();(e===n.braceL||e===n.star)&&w()}return!1}function kp(){if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration;return}if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-3].identifierRole=X.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration;return}J(),a.tokens[a.tokens.length-3].identifierRole=X.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function bp(){if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=X.ExportAccess;return}if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=X.ExportAccess,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-3].identifierRole=X.ExportAccess;return}J(),a.tokens[a.tokens.length-3].identifierRole=X.ExportAccess,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function yp(){if(q(d._abstract)&&Ne()===n._class)return a.type=n._abstract,w(),rr(!0,!0),!0;if(q(d._interface)){const e=ie(2);return zn(d._interface,!0),se(e),!0}return!1}function vp(){if(a.type===n._const){const e=an();if(e.type===n.name&&e.contextualKeyword===d._enum)return v(n._const),Oe(d._enum),a.tokens[a.tokens.length-1].type=n._enum,Zs(),!0}return!1}function wp(e){const t=a.tokens.length;Qs([d._abstract,d._readonly,d._declare,d._static,d._override]);const r=a.tokens.length;if(Qa()){const i=e?t-1:t;for(let o=i;o<r;o++)a.tokens[o].isType=!0;return!0}return!1}function _p(e){fp(e)||Ce()}function Sp(){const e=Be(d._declare);e&&(a.tokens[a.tokens.length-1].type=n._declare);let t=!1;if(p(n.name))if(e){const r=ie(2);t=Qi(),se(r)}else t=Qi();if(!t)if(e){const r=ie(2);rt(!0),se(r)}else rt(!0)}function Ip(e){if(e&&(p(n.lessThan)||p(n.bitShiftL))&&ti(),Be(d._implements)){a.tokens[a.tokens.length-1].type=n._implements;const t=ie(1);Za(),se(t)}}function Ep(){sr()}function Cp(){sr()}function Tp(){const e=ie(0);Xe()||k(n.bang),wr(),se(e)}function Ap(){p(n.colon)&&cn()}function Pp(e,t){return Vn?Np(e,t):Rp(e,t)}function Np(e,t){if(!p(n.lessThan))return _t(e,t);const r=a.snapshot();let s=_t(e,t);if(a.error)a.restoreFromSnapshot(r);else return s;return a.type=n.typeParameterStart,Un(),s=_t(e,t),s||te(),s}function Rp(e,t){if(!p(n.lessThan))return _t(e,t);const r=a.snapshot();Un();const s=_t(e,t);if(s||te(),a.error)a.restoreFromSnapshot(r);else return s;return _t(e,t)}function Lp(){if(p(n.colon)){const e=a.snapshot();Jr(n.colon),tt()&&te(),p(n.arrow)||te(),a.error&&a.restoreFromSnapshot(e)}return k(n.arrow)}function Dp(){const e=ie(0);k(n.question),wr(),se(e)}function Op(){(p(n.lessThan)||p(n.bitShiftL))&&ti(),wo()}function Mp(){let e=!1,t=!1;for(;;){if(a.pos>=N.length){te("Unterminated JSX contents");return}const r=N.charCodeAt(a.pos);if(r===g.lessThan||r===g.leftCurlyBrace){if(a.pos===a.start){if(r===g.lessThan){a.pos++,ee(n.jsxTagStart);return}Oa(r);return}ee(e&&!t?n.jsxEmptyText:n.jsxText);return}r===g.lineFeed?e=!0:r!==g.space&&r!==g.carriageReturn&&r!==g.tab&&(t=!0),a.pos++}}function jp(e){for(a.pos++;;){if(a.pos>=N.length){te("Unterminated string constant");return}if(N.charCodeAt(a.pos)===e){a.pos++;break}a.pos++}ee(n.string)}function Fp(){let e;do{if(a.pos>N.length){te("Unexpectedly reached the end of input.");return}e=N.charCodeAt(++a.pos)}while(ft[e]||e===g.dash);ee(n.jsxName)}function Ds(){at()}function ro(e){if(Ds(),!k(n.colon)){a.tokens[a.tokens.length-1].identifierRole=e;return}Ds()}function no(){const e=a.tokens.length;ro(X.Access);let t=!1;for(;p(n.dot);)t=!0,at(),Ds();if(!t){const r=a.tokens[e],s=N.charCodeAt(r.start);s>=g.lowercaseA&&s<=g.lowercaseZ&&(r.identifierRole=null)}}function Bp(){switch(a.type){case n.braceL:w(),qe(),at();return;case n.jsxTagStart:io(),at();return;case n.string:at();return;default:te("JSX value should be either an expression or a quoted JSX text")}}function Vp(){v(n.ellipsis),qe()}function $p(e){if(p(n.jsxTagEnd))return!1;no(),ue&&sp();let t=!1;for(;!p(n.slash)&&!p(n.jsxTagEnd)&&!a.error;){if(k(n.braceL)){t=!0,v(n.ellipsis),Ue(),at();continue}t&&a.end-a.start===3&&N.charCodeAt(a.start)===g.lowercaseK&&N.charCodeAt(a.start+1)===g.lowercaseE&&N.charCodeAt(a.start+2)===g.lowercaseY&&(a.tokens[e].jsxRole=ht.KeyAfterPropSpread),ro(X.ObjectKey),p(n.eq)&&(at(),Bp())}const r=p(n.slash);return r&&at(),r}function qp(){p(n.jsxTagEnd)||no()}function so(){const e=a.tokens.length-1;a.tokens[e].jsxRole=ht.NoChildren;let t=0;if(!$p(e))for(br();;)switch(a.type){case n.jsxTagStart:if(at(),p(n.slash)){at(),qp(),a.tokens[e].jsxRole!==ht.KeyAfterPropSpread&&(t===1?a.tokens[e].jsxRole=ht.OneChild:t>1&&(a.tokens[e].jsxRole=ht.StaticChildren));return}t++,so(),br();break;case n.jsxText:t++,br();break;case n.jsxEmptyText:br();break;case n.braceL:w(),p(n.ellipsis)?(Vp(),br(),t+=2):(p(n.braceR)||(t++,qe()),br());break;default:te();return}}function io(){at(),so()}function at(){a.tokens.push(new $n),Ra(),a.start=a.pos;const e=N.charCodeAt(a.pos);if(sn[e])Fp();else if(e===g.quotationMark||e===g.apostrophe)jp(e);else switch(++a.pos,e){case g.greaterThan:ee(n.jsxTagEnd);break;case g.lessThan:ee(n.jsxTagStart);break;case g.slash:ee(n.slash);break;case g.equalsTo:ee(n.eq);break;case g.leftCurlyBrace:ee(n.braceL);break;case g.dot:ee(n.dot);break;case g.colon:ee(n.colon);break;default:te()}}function br(){a.tokens.push(new $n),a.start=a.pos,Mp()}function Up(e){if(p(n.question)){const t=Ne();if(t===n.colon||t===n.comma||t===n.parenR)return}ao(e)}function zp(){Ca(n.question),p(n.colon)&&(ue?cn():xe&&ir())}class Hp{constructor(t){this.stop=t}}function qe(e=!1){if(Ue(e),p(n.comma))for(;k(n.comma);)Ue(e)}function Ue(e=!1,t=!1){return ue?Pp(e,t):xe?Kh(e,t):_t(e,t)}function _t(e,t){if(p(n._yield))return oh(),!1;(p(n.parenL)||p(n.name)||p(n._yield))&&(a.potentialArrowAt=a.start);const r=Wp(e);return t&&ii(),a.type&n.IS_ASSIGN?(w(),Ue(e),!1):r}function Wp(e){return Xp(e)?!0:(Gp(e),!1)}function Gp(e){ue||xe?Up(e):ao(e)}function ao(e){k(n.question)&&(Ue(),v(n.colon),Ue(e))}function Xp(e){const t=a.tokens.length;return ln()?!0:(kn(t,-1,e),!1)}function kn(e,t,r){if(ue&&(n._in&n.PRECEDENCE_MASK)>t&&!Xe()&&(Be(d._as)||Be(d._satisfies))){const i=ie(1);Re(),se(i),Da(),kn(e,t,r);return}const s=a.type&n.PRECEDENCE_MASK;if(s>0&&(!r||!p(n._in))&&s>t){const i=a.type;w(),i===n.nullishCoalescing&&(a.tokens[a.tokens.length-1].nullishStartIndex=e);const o=a.tokens.length;ln(),kn(o,i&n.IS_RIGHT_ASSOCIATIVE?s-1:s,r),i===n.nullishCoalescing&&(a.tokens[e].numNullishCoalesceStarts++,a.tokens[a.tokens.length-1].numNullishCoalesceEnds++),kn(e,t,r)}}function ln(){if(ue&&!Vn&&k(n.lessThan))return np(),!1;if(q(d._module)&&Aa()===g.leftCurlyBrace&&!wa())return ch(),!1;if(a.type&n.IS_PREFIX)return w(),ln(),!1;if(oo())return!0;for(;a.type&n.IS_POSTFIX&&!tt();)a.type===n.preIncDec&&(a.type=n.postIncDec),w();return!1}function oo(){const e=a.tokens.length;return Rt()?!0:(ri(e),a.tokens.length>e&&a.tokens[e].isOptionalChainStart&&(a.tokens[a.tokens.length-1].isOptionalChainEnd=!0),!1)}function ri(e,t=!1){xe?Jh(e,t):co(e,t)}function co(e,t=!1){const r=new Hp(!1);do Yp(e,t,r);while(!r.stop&&!a.error)}function Yp(e,t,r){ue?gp(e,t,r):xe?Rh(e,t,r):ni(e,t,r)}function ni(e,t,r){if(!t&&k(n.doubleColon))si(),r.stop=!0,ri(e,t);else if(p(n.questionDot)){if(a.tokens[e].isOptionalChainStart=!0,t&&Ne()===n.parenL){r.stop=!0;return}w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e,k(n.bracketL)?(qe(),v(n.bracketR)):k(n.parenL)?Ut():Tn()}else if(k(n.dot))a.tokens[a.tokens.length-1].subscriptStartIndex=e,Tn();else if(k(n.bracketL))a.tokens[a.tokens.length-1].subscriptStartIndex=e,qe(),v(n.bracketR);else if(!t&&p(n.parenL))if(lo()){const s=a.snapshot(),i=a.tokens.length;w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const o=Kr();a.tokens[a.tokens.length-1].contextId=o,Ut(),a.tokens[a.tokens.length-1].contextId=o,Kp()&&(a.restoreFromSnapshot(s),r.stop=!0,a.scopeDepth++,Sr(),Qp(i))}else{w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const s=Kr();a.tokens[a.tokens.length-1].contextId=s,Ut(),a.tokens[a.tokens.length-1].contextId=s}else p(n.backQuote)?ai():r.stop=!0}function lo(){return a.tokens[a.tokens.length-1].contextualKeyword===d._async&&!tt()}function Ut(){let e=!0;for(;!k(n.parenR)&&!a.error;){if(e)e=!1;else if(v(n.comma),k(n.parenR))break;fo(!1)}}function Kp(){return p(n.colon)||p(n.arrow)}function Qp(e){ue?Ap():xe&&Yh(),v(n.arrow),en(e)}function si(){const e=a.tokens.length;Rt(),ri(e,!0)}function Rt(){if(k(n.modulo))return J(),!1;if(p(n.jsxText)||p(n.jsxEmptyText))return vr(),!1;if(p(n.lessThan)&&Vn)return a.type=n.jsxTagStart,io(),w(),!1;const e=a.potentialArrowAt===a.start;switch(a.type){case n.slash:case n.assign:yl();case n._super:case n._this:case n.regexp:case n.num:case n.bigint:case n.decimal:case n.string:case n._null:case n._true:case n._false:return w(),!1;case n._import:return w(),p(n.dot)&&(a.tokens[a.tokens.length-1].type=n.name,w(),J()),!1;case n.name:{const t=a.tokens.length,r=a.start,s=a.contextualKeyword;return J(),s===d._await?(ah(),!1):s===d._async&&p(n._function)&&!tt()?(w(),tr(r,!1),!1):e&&s===d._async&&!tt()&&p(n.name)?(a.scopeDepth++,Wt(!1),v(n.arrow),en(t),!0):p(n._do)&&!tt()?(w(),zt(),!1):e&&!tt()&&p(n.arrow)?(a.scopeDepth++,Ys(!1),v(n.arrow),en(t),!0):(a.tokens[a.tokens.length-1].identifierRole=X.Access,!1)}case n._do:return w(),zt(),!1;case n.parenL:return uo(e);case n.bracketL:return w(),ho(n.bracketR,!0),!1;case n.braceL:return oi(!1,!1),!1;case n._function:return Jp(),!1;case n.at:gi();case n._class:return rr(!1),!1;case n._new:return eh(),!1;case n.backQuote:return ai(),!1;case n.doubleColon:return w(),si(),!1;case n.hash:{const t=Aa();return sn[t]||t===g.backslash?Tn():w(),!1}default:return te(),!1}}function Tn(){k(n.hash),J()}function Jp(){const e=a.start;J(),k(n.dot)&&J(),tr(e,!1)}function vr(){w()}function Hn(){v(n.parenL),qe(),v(n.parenR)}function uo(e){const t=a.snapshot(),r=a.tokens.length;v(n.parenL);let s=!0;for(;!p(n.parenR)&&!a.error;){if(s)s=!1;else if(v(n.comma),p(n.parenR))break;if(p(n.ellipsis)){Wa(!1),ii();break}else Ue(!1,!0)}return v(n.parenR),e&&Zp()&&Os()?(a.restoreFromSnapshot(t),a.scopeDepth++,Sr(),Os(),en(r),a.error?(a.restoreFromSnapshot(t),uo(!1),!1):!0):!1}function Zp(){return p(n.colon)||!tt()}function Os(){return ue?Lp():xe?Qh():k(n.arrow)}function ii(){(ue||xe)&&zp()}function eh(){if(v(n._new),k(n.dot)){J();return}th(),xe&&Lh(),k(n.parenL)&&ho(n.parenR)}function th(){si(),k(n.questionDot)}function ai(){for(Bt(),Bt();!p(n.backQuote)&&!a.error;)v(n.dollarBraceL),qe(),Bt(),Bt();w()}function oi(e,t){const r=Kr();let s=!0;for(w(),a.tokens[a.tokens.length-1].contextId=r;!k(n.braceR)&&!a.error;){if(s)s=!1;else if(v(n.comma),k(n.braceR))break;let i=!1;if(p(n.ellipsis)){const o=a.tokens.length;if(Ha(),e&&(a.tokens.length===o+2&&Ys(t),k(n.braceR)))break;continue}e||(i=k(n.star)),!e&&q(d._async)?(i&&te(),J(),p(n.colon)||p(n.parenL)||p(n.braceR)||p(n.eq)||p(n.comma)||(p(n.star)&&(w(),i=!0),Zr(r))):Zr(r),ih(e,t,r)}a.tokens[a.tokens.length-1].contextId=r}function rh(e){return!e&&(p(n.string)||p(n.num)||p(n.bracketL)||p(n.name)||!!(a.type&n.IS_KEYWORD))}function nh(e,t){const r=a.start;return p(n.parenL)?(e&&te(),Ms(r,!1),!0):rh(e)?(Zr(t),Ms(r,!1),!0):!1}function sh(e,t){if(k(n.colon)){e?En(t):Ue(!1);return}let r;e?a.scopeDepth===0?r=X.ObjectShorthandTopLevelDeclaration:t?r=X.ObjectShorthandBlockScopedDeclaration:r=X.ObjectShorthandFunctionScopedDeclaration:r=X.ObjectShorthand,a.tokens[a.tokens.length-1].identifierRole=r,En(t,!0)}function ih(e,t,r){ue?Ep():xe&&Uh(),nh(e,r)||sh(e,t)}function Zr(e){xe&&mi(),k(n.bracketL)?(a.tokens[a.tokens.length-1].contextId=e,Ue(),v(n.bracketR),a.tokens[a.tokens.length-1].contextId=e):(p(n.num)||p(n.string)||p(n.bigint)||p(n.decimal)?Rt():Tn(),a.tokens[a.tokens.length-1].identifierRole=X.ObjectKey,a.tokens[a.tokens.length-1].contextId=e)}function Ms(e,t){const r=Kr();a.scopeDepth++;const s=a.tokens.length;Sr(t,r),po(e,r);const o=a.tokens.length;a.scopes.push(new St(s,o,!0)),a.scopeDepth--}function en(e){un(!0);const t=a.tokens.length;a.scopes.push(new St(e,t,!0)),a.scopeDepth--}function po(e,t=0){ue?mp(e,t):xe?Nh(t):un(!1,t)}function un(e,t=0){e&&!p(n.braceL)?Ue():zt(!0,t)}function ho(e,t=!1){let r=!0;for(;!k(e)&&!a.error;){if(r)r=!1;else if(v(n.comma),k(e))break;fo(t)}}function fo(e){e&&p(n.comma)||(p(n.ellipsis)?(Ha(),ii()):p(n.question)?w():Ue(!1,!0))}function J(){w(),a.tokens[a.tokens.length-1].type=n.name}function ah(){ln()}function oh(){w(),!p(n.semi)&&!tt()&&(k(n.star),Ue())}function ch(){Oe(d._module),v(n.braceL),Gn(n.braceR)}function lh(e){return(e.type===n.name||!!(e.type&n.IS_KEYWORD))&&e.contextualKeyword!==d._from}function It(e){const t=ie(0);v(e||n.colon),Qe(),se(t)}function Ji(){v(n.modulo),Oe(d._checks),k(n.parenL)&&(qe(),v(n.parenR))}function ci(){const e=ie(0);v(n.colon),p(n.modulo)?Ji():(Qe(),p(n.modulo)&&Ji()),se(e)}function uh(){w(),li(!0)}function ph(){w(),J(),p(n.lessThan)&&mt(),v(n.parenL),Fs(),v(n.parenR),ci(),Ce()}function js(){p(n._class)?uh():p(n._function)?ph():p(n._var)?hh():Be(d._module)?k(n.dot)?mh():fh():q(d._type)?gh():q(d._opaque)?xh():q(d._interface)?kh():p(n._export)?dh():te()}function hh(){w(),ko(),Ce()}function fh(){for(p(n.string)?Rt():J(),v(n.braceL);!p(n.braceR)&&!a.error;)p(n._import)?(w(),To()):te();v(n.braceR)}function dh(){v(n._export),k(n._default)?p(n._function)||p(n._class)?js():(Qe(),Ce()):p(n._var)||p(n._function)||p(n._class)||q(d._opaque)?js():p(n.star)||p(n.braceL)||q(d._interface)||q(d._type)||q(d._opaque)?Eo():te()}function mh(){Oe(d._exports),ir(),Ce()}function gh(){w(),pi()}function xh(){w(),hi(!0)}function kh(){w(),li()}function li(e=!1){if(Wn(),p(n.lessThan)&&mt(),k(n._extends))do bn();while(!e&&k(n.comma));if(q(d._mixins)){w();do bn();while(k(n.comma))}if(q(d._implements)){w();do bn();while(k(n.comma))}An(e,!1,e)}function bn(){mo(!1),p(n.lessThan)&&er()}function ui(){li()}function Wn(){J()}function pi(){Wn(),p(n.lessThan)&&mt(),It(n.eq),Ce()}function hi(e){Oe(d._type),Wn(),p(n.lessThan)&&mt(),p(n.colon)&&It(n.colon),e||It(n.eq),Ce()}function bh(){mi(),ko(),k(n.eq)&&Qe()}function mt(){const e=ie(0);p(n.lessThan)||p(n.typeParameterStart)?w():te();do bh(),p(n.greaterThan)||v(n.comma);while(!p(n.greaterThan)&&!a.error);v(n.greaterThan),se(e)}function er(){const e=ie(0);for(v(n.lessThan);!p(n.greaterThan)&&!a.error;)Qe(),p(n.greaterThan)||v(n.comma);v(n.greaterThan),se(e)}function yh(){if(Oe(d._interface),k(n._extends))do bn();while(k(n.comma));An(!1,!1,!1)}function fi(){p(n.num)||p(n.string)?Rt():J()}function vh(){Ne()===n.colon?(fi(),It()):Qe(),v(n.bracketR),It()}function wh(){fi(),v(n.bracketR),v(n.bracketR),p(n.lessThan)||p(n.parenL)?di():(k(n.question),It())}function di(){for(p(n.lessThan)&&mt(),v(n.parenL);!p(n.parenR)&&!p(n.ellipsis)&&!a.error;)Pn(),p(n.parenR)||v(n.comma);k(n.ellipsis)&&Pn(),v(n.parenR),It()}function _h(){di()}function An(e,t,r){let s;for(t&&p(n.braceBarL)?(v(n.braceBarL),s=n.braceBarR):(v(n.braceL),s=n.braceR);!p(s)&&!a.error;){if(r&&q(d._proto)){const i=Ne();i!==n.colon&&i!==n.question&&(w(),e=!1)}if(e&&q(d._static)){const i=Ne();i!==n.colon&&i!==n.question&&w()}if(mi(),k(n.bracketL))k(n.bracketL)?wh():vh();else if(p(n.parenL)||p(n.lessThan))_h();else{if(q(d._get)||q(d._set)){const i=Ne();(i===n.name||i===n.string||i===n.num)&&w()}Sh()}Ih()}v(s)}function Sh(){if(p(n.ellipsis)){if(v(n.ellipsis),k(n.comma)||k(n.semi),p(n.braceR))return;Qe()}else fi(),p(n.lessThan)||p(n.parenL)?di():(k(n.question),It())}function Ih(){!k(n.semi)&&!k(n.comma)&&!p(n.braceR)&&!p(n.braceBarR)&&te()}function mo(e){for(e||J();k(n.dot);)J()}function Eh(){mo(!0),p(n.lessThan)&&er()}function Ch(){v(n._typeof),go()}function Th(){for(v(n.bracketL);a.pos<N.length&&!p(n.bracketR)&&(Qe(),!p(n.bracketR));)v(n.comma);v(n.bracketR)}function Pn(){const e=Ne();e===n.colon||e===n.question?(J(),k(n.question),It()):Qe()}function Fs(){for(;!p(n.parenR)&&!p(n.ellipsis)&&!a.error;)Pn(),p(n.parenR)||v(n.comma);k(n.ellipsis)&&Pn()}function go(){let e=!1;const t=a.noAnonFunctionType;switch(a.type){case n.name:{if(q(d._interface)){yh();return}J(),Eh();return}case n.braceL:An(!1,!1,!1);return;case n.braceBarL:An(!1,!0,!1);return;case n.bracketL:Th();return;case n.lessThan:mt(),v(n.parenL),Fs(),v(n.parenR),v(n.arrow),Qe();return;case n.parenL:if(w(),!p(n.parenR)&&!p(n.ellipsis))if(p(n.name)){const r=Ne();e=r!==n.question&&r!==n.colon}else e=!0;if(e)if(a.noAnonFunctionType=!1,Qe(),a.noAnonFunctionType=t,a.noAnonFunctionType||!(p(n.comma)||p(n.parenR)&&Ne()===n.arrow)){v(n.parenR);return}else k(n.comma);Fs(),v(n.parenR),v(n.arrow),Qe();return;case n.minus:w(),vr();return;case n.string:case n.num:case n._true:case n._false:case n._null:case n._this:case n._void:case n.star:w();return;default:if(a.type===n._typeof){Ch();return}else if(a.type&n.IS_KEYWORD){w(),a.tokens[a.tokens.length-1].type=n.name;return}}te()}function Ah(){for(go();!tt()&&(p(n.bracketL)||p(n.questionDot));)k(n.questionDot),v(n.bracketL),k(n.bracketR)||(Qe(),v(n.bracketR))}function xo(){k(n.question)?xo():Ah()}function Zi(){xo(),!a.noAnonFunctionType&&k(n.arrow)&&Qe()}function ea(){for(k(n.bitwiseAND),Zi();k(n.bitwiseAND);)Zi()}function Ph(){for(k(n.bitwiseOR),ea();k(n.bitwiseOR);)ea()}function Qe(){Ph()}function ir(){It()}function ko(){J(),p(n.colon)&&ir()}function mi(){(p(n.plus)||p(n.minus))&&(w(),a.tokens[a.tokens.length-1].isType=!0)}function Nh(e){p(n.colon)&&ci(),un(!1,e)}function Rh(e,t,r){if(p(n.questionDot)&&Ne()===n.lessThan){if(t){r.stop=!0;return}w(),er(),v(n.parenL),Ut();return}else if(!t&&p(n.lessThan)){const s=a.snapshot();if(er(),v(n.parenL),Ut(),a.error)a.restoreFromSnapshot(s);else return}ni(e,t,r)}function Lh(){if(p(n.lessThan)){const e=a.snapshot();er(),a.error&&a.restoreFromSnapshot(e)}}function Dh(){if(p(n.name)&&a.contextualKeyword===d._interface){const e=ie(0);return w(),ui(),se(e),!0}else if(q(d._enum))return bo(),!0;return!1}function Oh(){return q(d._enum)?(bo(),!0):!1}function Mh(e){if(e===d._declare){if(p(n._class)||p(n.name)||p(n._function)||p(n._var)||p(n._export)){const t=ie(1);js(),se(t)}}else if(p(n.name)){if(e===d._interface){const t=ie(1);ui(),se(t)}else if(e===d._type){const t=ie(1);pi(),se(t)}else if(e===d._opaque){const t=ie(1);hi(!1),se(t)}}Ce()}function jh(){return q(d._type)||q(d._interface)||q(d._opaque)||q(d._enum)}function Fh(){return p(n.name)&&(a.contextualKeyword===d._type||a.contextualKeyword===d._interface||a.contextualKeyword===d._opaque||a.contextualKeyword===d._enum)}function Bh(){if(q(d._type)){const e=ie(1);w(),p(n.braceL)?(xi(),tn()):pi(),se(e)}else if(q(d._opaque)){const e=ie(1);w(),hi(!1),se(e)}else if(q(d._interface)){const e=ie(1);w(),ui(),se(e)}else rt(!0)}function Vh(){return p(n.star)||q(d._type)&&Ne()===n.star}function $h(){if(Be(d._type)){const e=ie(2);Bs(),se(e)}else Bs()}function qh(e){if(e&&p(n.lessThan)&&er(),q(d._implements)){const t=ie(0);w(),a.tokens[a.tokens.length-1].type=n._implements;do Wn(),p(n.lessThan)&&er();while(k(n.comma));se(t)}}function Uh(){p(n.lessThan)&&(mt(),p(n.parenL)||te())}function zh(){const e=ie(0);k(n.question),p(n.colon)&&ir(),se(e)}function Hh(){if(p(n._typeof)||q(d._type)){const e=an();(lh(e)||e.type===n.braceL||e.type===n.star)&&w()}}function Wh(){const e=a.contextualKeyword===d._type||a.type===n._typeof;e?w():J(),q(d._as)&&!Ws(d._as)?(J(),e&&!p(n.name)&&!(a.type&n.IS_KEYWORD)||J()):(e&&(p(n.name)||a.type&n.IS_KEYWORD)&&J(),Be(d._as)&&J())}function Gh(){if(p(n.lessThan)){const e=ie(0);mt(),se(e)}}function Xh(){p(n.colon)&&ir()}function Yh(){if(p(n.colon)){const e=a.noAnonFunctionType;a.noAnonFunctionType=!0,ir(),a.noAnonFunctionType=e}}function Kh(e,t){if(p(n.lessThan)){const r=a.snapshot();let s=_t(e,t);if(a.error)a.restoreFromSnapshot(r),a.type=n.typeParameterStart;else return s;const i=ie(0);if(mt(),se(i),s=_t(e,t),s)return!0;te()}return _t(e,t)}function Qh(){if(p(n.colon)){const e=ie(0),t=a.snapshot(),r=a.noAnonFunctionType;a.noAnonFunctionType=!0,ci(),a.noAnonFunctionType=r,tt()&&te(),p(n.arrow)||te(),a.error&&a.restoreFromSnapshot(t),se(e)}return k(n.arrow)}function Jh(e,t=!1){if(a.tokens[a.tokens.length-1].contextualKeyword===d._async&&p(n.lessThan)){const r=a.snapshot();if(Zh()&&!a.error)return;a.restoreFromSnapshot(r)}co(e,t)}function Zh(){a.scopeDepth++;const e=a.tokens.length;return Sr(),Os()?(en(e),!0):!1}function bo(){Oe(d._enum),a.tokens[a.tokens.length-1].type=n._enum,J(),ef()}function ef(){Be(d._of)&&w(),v(n.braceL),tf(),v(n.braceR)}function tf(){for(;!p(n.braceR)&&!a.error&&!k(n.ellipsis);)rf(),p(n.braceR)||v(n.comma)}function rf(){J(),k(n.eq)&&w()}function nf(){if(Gn(n.eof),a.scopes.push(new St(0,a.tokens.length,!0)),a.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${a.scopeDepth}`);return new zf(a.tokens,a.scopes)}function rt(e){xe&&Dh()||(p(n.at)&&gi(),sf(e))}function sf(e){if(ue&&vp())return;const t=a.type;switch(t){case n._break:case n._continue:of();return;case n._debugger:cf();return;case n._do:lf();return;case n._for:uf();return;case n._function:if(Ne()===n.dot)break;e||te(),ff();return;case n._class:e||te(),rr(!0);return;case n._if:df();return;case n._return:mf();return;case n._switch:gf();return;case n._throw:xf();return;case n._try:bf();return;case n._let:case n._const:e||te();case n._var:yn(t!==n._var);return;case n._while:yf();return;case n.braceL:zt();return;case n.semi:vf();return;case n._export:case n._import:{const i=Ne();if(i===n.parenL||i===n.dot)break;w(),t===n._import?To():Eo();return}case n.name:if(a.contextualKeyword===d._async){const i=a.start,o=a.snapshot();if(w(),p(n._function)&&!tt()){v(n._function),tr(i,!0);return}else a.restoreFromSnapshot(o)}else if(a.contextualKeyword===d._using&&!wa()&&Ne()===n.name){yn(!0);return}else if(yo()){Oe(d._await),yn(!0);return}}const r=a.tokens.length;qe();let s=null;if(a.tokens.length===r+1){const i=a.tokens[a.tokens.length-1];i.type===n.name&&(s=i.contextualKeyword)}if(s==null){Ce();return}k(n.colon)?wf():_f(s)}function yo(){if(!q(d._await))return!1;const e=a.snapshot();return w(),!q(d._using)||Xe()||(w(),!p(n.name)||Xe())?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function gi(){for(;p(n.at);)vo()}function vo(){if(w(),k(n.parenL))qe(),v(n.parenR);else{for(J();k(n.dot);)J();af()}}function af(){ue?Op():wo()}function wo(){k(n.parenL)&&Ut()}function of(){w(),vt()||(J(),Ce())}function cf(){w(),Ce()}function lf(){w(),rt(!1),v(n._while),Hn(),k(n.semi)}function uf(){a.scopeDepth++;const e=a.tokens.length;hf();const t=a.tokens.length;a.scopes.push(new St(e,t,!1)),a.scopeDepth--}function pf(){return!(!q(d._using)||Ws(d._of))}function hf(){w();let e=!1;if(q(d._await)&&(e=!0,w()),v(n.parenL),p(n.semi)){e&&te(),ys();return}const t=yo();if(t||p(n._var)||p(n._let)||p(n._const)||pf()){if(t&&Oe(d._await),w(),_o(!0,a.type!==n._var),p(n._in)||q(d._of)){ta(e);return}ys();return}if(qe(!0),p(n._in)||q(d._of)){ta(e);return}e&&te(),ys()}function ff(){const e=a.start;w(),tr(e,!0)}function df(){w(),Hn(),rt(!1),k(n._else)&&rt(!1)}function mf(){w(),vt()||(qe(),Ce())}function gf(){w(),Hn(),a.scopeDepth++;const e=a.tokens.length;for(v(n.braceL);!p(n.braceR)&&!a.error;)if(p(n._case)||p(n._default)){const r=p(n._case);w(),r&&qe(),v(n.colon)}else rt(!0);w();const t=a.tokens.length;a.scopes.push(new St(e,t,!1)),a.scopeDepth--}function xf(){w(),qe(),Ce()}function kf(){qn(!0),ue&&wr()}function bf(){if(w(),zt(),p(n._catch)){w();let e=null;if(p(n.parenL)&&(a.scopeDepth++,e=a.tokens.length,v(n.parenL),kf(),v(n.parenR)),zt(),e!=null){const t=a.tokens.length;a.scopes.push(new St(e,t,!1)),a.scopeDepth--}}k(n._finally)&&zt()}function yn(e){w(),_o(!1,e),Ce()}function yf(){w(),Hn(),rt(!1)}function vf(){w()}function wf(){rt(!0)}function _f(e){ue?_p(e):xe?Mh(e):Ce()}function zt(e=!1,t=0){const r=a.tokens.length;a.scopeDepth++,v(n.braceL),t&&(a.tokens[a.tokens.length-1].contextId=t),Gn(n.braceR),t&&(a.tokens[a.tokens.length-1].contextId=t);const s=a.tokens.length;a.scopes.push(new St(r,s,e)),a.scopeDepth--}function Gn(e){for(;!k(e)&&!a.error;)rt(!0)}function ys(){v(n.semi),p(n.semi)||qe(),v(n.semi),p(n.parenR)||qe(),v(n.parenR),rt(!1)}function ta(e){e?Be(d._of):w(),qe(),v(n.parenR),rt(!1)}function _o(e,t){for(;;){if(Sf(t),k(n.eq)){const r=a.tokens.length-1;Ue(e),a.tokens[r].rhsEndIndex=a.tokens.length}if(!k(n.comma))break}}function Sf(e){qn(e),ue?Tp():xe&&Xh()}function tr(e,t,r=!1){p(n.star)&&w(),t&&!r&&!p(n.name)&&!p(n._yield)&&te();let s=null;p(n.name)&&(t||(s=a.tokens.length,a.scopeDepth++),Wt(!1));const i=a.tokens.length;a.scopeDepth++,Sr(),po(e);const o=a.tokens.length;a.scopes.push(new St(i,o,!0)),a.scopeDepth--,s!==null&&(a.scopes.push(new St(s,o,!0)),a.scopeDepth--)}function Sr(e=!1,t=0){ue?Cp():xe&&Gh(),v(n.parenL),t&&(a.tokens[a.tokens.length-1].contextId=t),Ks(n.parenR,!1,!1,e,t),t&&(a.tokens[a.tokens.length-1].contextId=t)}function rr(e,t=!1){const r=Kr();w(),a.tokens[a.tokens.length-1].contextId=r,a.tokens[a.tokens.length-1].isExpression=!e;let s=null;e||(s=a.tokens.length,a.scopeDepth++),Tf(e,t),Af();const i=a.tokens.length;if(If(r),!a.error&&(a.tokens[i].contextId=r,a.tokens[a.tokens.length-1].contextId=r,s!==null)){const o=a.tokens.length;a.scopes.push(new St(s,o,!1)),a.scopeDepth--}}function So(){return p(n.eq)||p(n.semi)||p(n.braceR)||p(n.bang)||p(n.colon)}function Io(){return p(n.parenL)||p(n.lessThan)}function If(e){for(v(n.braceL);!k(n.braceR)&&!a.error;){if(k(n.semi))continue;if(p(n.at)){vo();continue}const t=a.start;Ef(t,e)}}function Ef(e,t){ue&&Qs([d._declare,d._public,d._protected,d._private,d._override]);let r=!1;if(p(n.name)&&a.contextualKeyword===d._static){if(J(),Io()){qr(e,!1);return}else if(So()){vn();return}if(a.tokens[a.tokens.length-1].type=n._static,r=!0,p(n.braceL)){a.tokens[a.tokens.length-1].contextId=t,zt();return}}Cf(e,r,t)}function Cf(e,t,r){if(ue&&wp(t))return;if(k(n.star)){Vr(r),qr(e,!1);return}Vr(r);let s=!1;const i=a.tokens[a.tokens.length-1];i.contextualKeyword===d._constructor&&(s=!0),ra(),Io()?qr(e,s):So()?vn():i.contextualKeyword===d._async&&!vt()?(a.tokens[a.tokens.length-1].type=n._async,p(n.star)&&w(),Vr(r),ra(),qr(e,!1)):(i.contextualKeyword===d._get||i.contextualKeyword===d._set)&&!(vt()&&p(n.star))?(i.contextualKeyword===d._get?a.tokens[a.tokens.length-1].type=n._get:a.tokens[a.tokens.length-1].type=n._set,Vr(r),qr(e,!1)):i.contextualKeyword===d._accessor&&!vt()?(Vr(r),vn()):vt()?vn():te()}function qr(e,t){ue?sr():xe&&p(n.lessThan)&&mt(),Ms(e,t)}function Vr(e){Zr(e)}function ra(){if(ue){const e=ie(0);k(n.question),se(e)}}function vn(){if(ue?(Ca(n.bang),wr()):xe&&p(n.colon)&&ir(),p(n.eq)){const e=a.tokens.length;w(),Ue(),a.tokens[e].rhsEndIndex=a.tokens.length}Ce()}function Tf(e,t=!1){ue&&(!e||t)&&q(d._implements)||(p(n.name)&&Wt(!0),ue?sr():xe&&p(n.lessThan)&&mt())}function Af(){let e=!1;k(n._extends)?(oo(),e=!0):e=!1,ue?Ip(e):xe&&qh(e)}function Eo(){const e=a.tokens.length-1;ue&&xp()||(Lf()?Df():Rf()?(J(),p(n.comma)&&Ne()===n.star?(v(n.comma),v(n.star),Oe(d._as),J()):Co(),tn()):k(n._default)?Pf():Mf()?Nf():(xi(),tn()),a.tokens[e].rhsEndIndex=a.tokens.length)}function Pf(){if(ue&&yp()||xe&&Oh())return;const e=a.start;k(n._function)?tr(e,!0,!0):q(d._async)&&Ne()===n._function?(Be(d._async),k(n._function),tr(e,!0,!0)):p(n._class)?rr(!0,!0):p(n.at)?(gi(),rr(!0,!0)):(Ue(),Ce())}function Nf(){ue?Sp():xe?Bh():rt(!0)}function Rf(){if(ue&&to())return!1;if(xe&&Fh())return!1;if(p(n.name))return a.contextualKeyword!==d._async;if(!p(n._default))return!1;const e=Gs(),t=an(),r=t.type===n.name&&t.contextualKeyword===d._from;if(t.type===n.comma)return!0;if(r){const s=N.charCodeAt(Ta(e+4));return s===g.quotationMark||s===g.apostrophe}return!1}function Co(){k(n.comma)&&xi()}function tn(){Be(d._from)&&(Rt(),Ao()),Ce()}function Lf(){return xe?Vh():p(n.star)}function Df(){xe?$h():Bs()}function Bs(){v(n.star),q(d._as)?Of():tn()}function Of(){w(),a.tokens[a.tokens.length-1].type=n._as,J(),Co(),tn()}function Mf(){return ue&&to()||xe&&jh()||a.type===n._var||a.type===n._const||a.type===n._let||a.type===n._function||a.type===n._class||q(d._async)||p(n.at)}function xi(){let e=!0;for(v(n.braceL);!k(n.braceR)&&!a.error;){if(e)e=!1;else if(v(n.comma),k(n.braceR))break;jf()}}function jf(){if(ue){bp();return}J(),a.tokens[a.tokens.length-1].identifierRole=X.ExportAccess,Be(d._as)&&J()}function Ff(){const e=a.snapshot();return Oe(d._module),Be(d._from)?q(d._from)?(a.restoreFromSnapshot(e),!0):(a.restoreFromSnapshot(e),!1):p(n.comma)?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function Bf(){q(d._module)&&Ff()&&w()}function To(){if(ue&&p(n.name)&&Ne()===n.eq){Ls();return}if(ue&&q(d._type)){const e=an();if(e.type===n.name&&e.contextualKeyword!==d._from){if(Oe(d._type),Ne()===n.eq){Ls();return}}else(e.type===n.star||e.type===n.braceL)&&Oe(d._type)}p(n.string)||(Bf(),$f(),Oe(d._from)),Rt(),Ao(),Ce()}function Vf(){return p(n.name)}function na(){In()}function $f(){xe&&Hh();let e=!0;if(!(Vf()&&(na(),!k(n.comma)))){if(p(n.star)){w(),Oe(d._as),na();return}for(v(n.braceL);!k(n.braceR)&&!a.error;){if(e)e=!1;else if(k(n.colon)&&te("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),v(n.comma),k(n.braceR))break;qf()}}}function qf(){if(ue){kp();return}if(xe){Wh();return}In(),q(d._as)&&(a.tokens[a.tokens.length-1].identifierRole=X.ImportAccess,w(),In())}function Ao(){(p(n._with)||q(d._assert)&&!Xe())&&(w(),oi(!1,!1))}function Uf(){return a.pos===0&&N.charCodeAt(0)===g.numberSign&&N.charCodeAt(1)===g.exclamationMark&&Na(2),Pa(),nf()}class zf{constructor(t,r){this.tokens=t,this.scopes=r}}function Hf(e,t,r,s){if(s&&r)throw new Error("Cannot combine flow and typescript plugins.");fl(e,t,r,s);const i=Uf();if(a.error)throw ul(a.error);return i}function Wf(e){let t=e.currentIndex(),r=0;const s=e.currentToken();do{const i=e.tokens[t];if(i.isOptionalChainStart&&r++,i.isOptionalChainEnd&&r--,r+=i.numNullishCoalesceStarts,r-=i.numNullishCoalesceEnds,i.contextualKeyword===d._await&&i.identifierRole==null&&i.scopeDepth===s.scopeDepth)return!0;t+=1}while(r>0&&t<e.tokens.length);return!1}class zr{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,r,s,i,o){this.code=t,this.tokens=r,this.isFlowEnabled=s,this.disableESTransforms=i,this.helperManager=o,zr.prototype.__init.call(this),zr.prototype.__init2.call(this),zr.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(t){this.resultCode=t.resultCode,this.tokenIndex=t.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(t){const r=this.resultCode.slice(t.resultCode.length);return this.resultCode=t.resultCode,r}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(t,r){return this.matches1AtIndex(t,n.name)&&this.tokens[t].contextualKeyword===r}identifierNameAtIndex(t){return this.identifierNameForToken(this.tokens[t])}identifierNameAtRelativeIndex(t){return this.identifierNameForToken(this.tokenAtRelativeIndex(t))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(t){return this.code.slice(t.start,t.end)}rawCodeForToken(t){return this.code.slice(t.start,t.end)}stringValueAtIndex(t){return this.stringValueForToken(this.tokens[t])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(t){return this.code.slice(t.start+1,t.end-1)}matches1AtIndex(t,r){return this.tokens[t].type===r}matches2AtIndex(t,r,s){return this.tokens[t].type===r&&this.tokens[t+1].type===s}matches3AtIndex(t,r,s,i){return this.tokens[t].type===r&&this.tokens[t+1].type===s&&this.tokens[t+2].type===i}matches1(t){return this.tokens[this.tokenIndex].type===t}matches2(t,r){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r}matches3(t,r,s){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s}matches4(t,r,s,i){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i}matches5(t,r,s,i,o){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i&&this.tokens[this.tokenIndex+4].type===o}matchesContextual(t){return this.matchesContextualAtIndex(this.tokenIndex,t)}matchesContextIdAndLabel(t,r){return this.matches1(t)&&this.currentToken().contextId===r}previousWhitespaceAndComments(){let t=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(t=t.replace(/@flow/g,"")),t}replaceToken(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(t){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let t=0;for(;!this.isAtEnd();){if(this.matches1(n.braceL))t++;else if(this.matches1(n.braceR)){if(t===0)return;t--}this.removeToken()}}copyExpectedToken(t){if(this.tokens[this.tokenIndex].type!==t)throw new Error(`Expected token ${t}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=t,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const t=this.currentToken();if((t.numNullishCoalesceStarts||t.isOptionalChainStart)&&(t.isAsyncOperation=Wf(this)),!this.disableESTransforms){if(t.numNullishCoalesceStarts)for(let r=0;r<t.numNullishCoalesceStarts;r++)t.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";t.isOptionalChainStart&&(t.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===n._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let r=0;r<t.numNullishCoalesceEnds;r++)this.resultCode+="))"}appendCode(t){this.resultCode+=t}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const t=this.currentToken();return this.code.slice(t.start,t.end)}tokenAtRelativeIndex(t){return this.tokens[this.tokenIndex+t]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Gf(e,t,r,s){const i=t.snapshot(),o=Xf(t);let c=[];const u=[],h=[];let f=null;const m=[],x=[],_=t.currentToken().contextId;if(_==null)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(n.braceR,_);)if(t.matchesContextual(d._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:c,constructorInsertPos:f}=sa(t));else if(t.matches1(n.semi))s||x.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{const y=t.currentIndex();let L=!1,j=!1,F=!1;for(;Nn(t.currentToken());)t.matches1(n._static)&&(L=!0),t.matches1(n.hash)&&(j=!0),(t.matches1(n._declare)||t.matches1(n._abstract))&&(F=!0),t.nextToken();if(L&&t.matches1(n.braceL)){vs(t,_);continue}if(j){vs(t,_);continue}if(t.matchesContextual(d._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:c,constructorInsertPos:f}=sa(t));continue}const ne=t.currentIndex();if(Yf(t),t.matches1(n.lessThan)||t.matches1(n.parenL)){vs(t,_);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(n.eq)){const P=t.currentIndex(),M=t.currentToken().rhsEndIndex;if(M==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<M;)e.processToken();let O;L?(O=r.claimFreeName("__initStatic"),h.push(O)):(O=r.claimFreeName("__init"),u.push(O)),m.push({initializerName:O,equalsIndex:P,start:ne,end:t.currentIndex()})}else(!s||F)&&x.push({start:y,end:t.currentIndex()})}return t.restoreToSnapshot(i),s?{headerInfo:o,constructorInitializerStatements:c,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:f,fields:[],rangesToRemove:x}:{headerInfo:o,constructorInitializerStatements:c,instanceInitializerNames:u,staticInitializerNames:h,constructorInsertPos:f,fields:m,rangesToRemove:x}}function vs(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;Nn(e.tokenAtRelativeIndex(-1));)e.previousToken()}function Xf(e){const t=e.currentToken(),r=t.contextId;if(r==null)throw new Error("Expected context ID on class token.");const s=t.isExpression;if(s==null)throw new Error("Expected isExpression on class token.");let i=null,o=!1;for(e.nextToken(),e.matches1(n.name)&&(i=e.identifierName());!e.matchesContextIdAndLabel(n.braceL,r);)e.matches1(n._extends)&&!e.currentToken().isType&&(o=!0),e.nextToken();return{isExpression:s,className:i,hasSuperclass:o}}function sa(e){const t=[];e.nextToken();const r=e.currentToken().contextId;if(r==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(n.parenR,r);)if(e.currentToken().contextId===r){if(e.nextToken(),Nn(e.currentToken())){for(e.nextToken();Nn(e.currentToken());)e.nextToken();const o=e.currentToken();if(o.type!==n.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const c=e.identifierNameForToken(o);t.push(`this.${c} = ${c}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let s=e.currentIndex(),i=!1;for(;!e.matchesContextIdAndLabel(n.braceR,r);){if(!i&&e.matches2(n._super,n.parenL)){e.nextToken();const o=e.currentToken().contextId;if(o==null)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(n.parenR,o);)e.nextToken();s=e.currentIndex(),i=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:s}}function Nn(e){return[n._async,n._get,n._set,n.plus,n.minus,n._readonly,n._static,n._public,n._private,n._protected,n._override,n._abstract,n.star,n._declare,n.hash].includes(e.type)}function Yf(e){if(e.matches1(n.bracketL)){const r=e.currentToken().contextId;if(r==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(n.bracketR,r);)e.nextToken();e.nextToken()}else e.nextToken()}function Po(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(n.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(n.dot);)e.removeToken(),e.removeToken()}const No={typeDeclarations:new Set,valueDeclarations:new Set};function Ro(e){const t=new Set,r=new Set;for(let s=0;s<e.tokens.length;s++){const i=e.tokens[s];i.type===n.name&&Ea(i)&&(i.isType?t.add(e.identifierNameForToken(i)):r.add(e.identifierNameForToken(i)))}return{typeDeclarations:t,valueDeclarations:r}}function Lo(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,n.braceR);)t++;return e.matchesContextualAtIndex(t+1,d._from)&&e.matches1AtIndex(t+2,n.string)}function Jt(e){(e.matches2(n._with,n.braceL)||e.matches2(n.name,n.braceL)&&e.matchesContextual(d._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function Do(e,t,r,s){if(!e||t)return!1;const i=r.currentToken();if(i.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const o=i.rhsEndIndex-r.currentIndex();if(o!==3&&!(o===4&&r.matches1AtIndex(i.rhsEndIndex-1,n.semi)))return!1;const c=r.tokenAtRelativeIndex(2);if(c.type!==n.name)return!1;const u=r.identifierNameForToken(c);return s.typeDeclarations.has(u)&&!s.valueDeclarations.has(u)}class Hr extends dt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,r,s,i,o,c,u,h,f,m,x,_){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.nameManager=i,this.helperManager=o,this.reactHotLoaderTransformer=c,this.enableLegacyBabel5ModuleInterop=u,this.enableLegacyTypeScriptModuleInterop=h,this.isTypeScriptTransformEnabled=f,this.isFlowTransformEnabled=m,this.preserveDynamicImport=x,this.keepUnusedImports=_,Hr.prototype.__init.call(this),Hr.prototype.__init2.call(this),Hr.prototype.__init3.call(this),this.declarationInfo=f?Ro(r):No}getPrefixCode(){let t="";return this.hadExport&&(t+='Object.defineProperty(exports, "__esModule", {value: true});'),t}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
171
+ `};class En{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,En.prototype.__init.call(this),En.prototype.__init2.call(this)}getHelperName(t){let r=this.helperNames[t];return r||(r=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=r,r)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[r,s]of Object.entries(du)){const i=this.helperNames[r];let o=s;r==="optionalChainDelete"?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):r==="asyncOptionalChainDelete"?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):r==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(t+=" ",t+=o.replace(r,i).replace(/\s+/g," ").trim())}return t}}function Hi(e,t,r){mu(e,r)&&gu(e,t,r)}function mu(e,t){for(const r of e.tokens)if(r.type===n.name&&!r.isType&&xl(r)&&t.has(e.identifierNameForToken(r)))return!0;return!1}function gu(e,t,r){const s=[];let i=t.length-1;for(let o=e.tokens.length-1;;o--){for(;s.length>0&&s[s.length-1].startTokenIndex===o+1;)s.pop();for(;i>=0&&t[i].endTokenIndex===o+1;)s.push(t[i]),i--;if(o<0)break;const c=e.tokens[o],u=e.identifierNameForToken(c);if(s.length>1&&!c.isType&&c.type===n.name&&r.has(u)){if(kl(c))Wi(s[s.length-1],e,u);else if(bl(c)){let f=s.length-1;for(;f>0&&!s[f].isFunctionScope;)f--;if(f<0)throw new Error("Did not find parent function scope.");Wi(s[f],e,u)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function Wi(e,t,r){for(let s=e.startTokenIndex;s<e.endTokenIndex;s++){const i=t.tokens[s];(i.type===n.name||i.type===n.jsxName)&&t.identifierNameForToken(i)===r&&(i.shadowsGlobal=!0)}}function xu(e,t){const r=[];for(const s of t)s.type===n.name&&r.push(e.slice(s.start,s.end));return r}class Xs{__init(){this.usedNames=new Set}constructor(t,r){Xs.prototype.__init.call(this),this.usedNames=new Set(xu(t,r))}claimFreeName(t){const r=this.findFreeName(t);return this.usedNames.add(r),r}findFreeName(t){if(!this.usedNames.has(t))return t;let r=2;for(;this.usedNames.has(t+String(r));)r++;return t+String(r)}}var ye={},As={},_t={},ku=er&&er.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var o in i)i.hasOwnProperty(o)&&(s[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function s(){this.constructor=t}t.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}();Object.defineProperty(_t,"__esModule",{value:!0});_t.DetailContext=_t.NoopContext=_t.VError=void 0;var Ua=function(e){ku(t,e);function t(r,s){var i=e.call(this,s)||this;return i.path=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error);_t.VError=Ua;var bu=function(){function e(){}return e.prototype.fail=function(t,r,s){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(t){},e}();_t.NoopContext=bu;var za=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(t,r,s){return this._propNames.push(t),this._messages.push(r),this._score+=s,!1},e.prototype.unionResolver=function(){return new yu},e.prototype.resolveUnion=function(t){for(var r,s,i=t,o=null,c=0,u=i.contexts;c<u.length;c++){var f=u[c];(!o||f._score>=o._score)&&(o=f)}o&&o._score>0&&((r=this._propNames).push.apply(r,o._propNames),(s=this._messages).push.apply(s,o._messages))},e.prototype.getError=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."+i:"";var o=this._messages[s];o&&r.push(t+" "+o)}return new Ua(t,r.join("; "))},e.prototype.getErrorDetail=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."+i:"";var o=this._messages[s];o&&r.push({path:t,message:o})}for(var c=null,s=r.length-1;s>=0;s--)c&&(r[s].nested=[c]),c=r[s];return c},e}();_t.DetailContext=za;var yu=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var t=new za;return this.contexts.push(t),t},e}();(function(e){var t=er&&er.__extends||function(){var v=function(I,T){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,M){C.__proto__=M}||function(C,M){for(var K in M)M.hasOwnProperty(K)&&(C[K]=M[K])},v(I,T)};return function(I,T){v(I,T);function C(){this.constructor=I}I.prototype=T===null?Object.create(T):(C.prototype=T.prototype,new C)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var r=_t,s=function(){function v(){}return v}();e.TType=s;function i(v){return typeof v=="string"?c(v):v}function o(v,I){var T=v[I];if(!T)throw new Error("Unknown type "+I);return T}function c(v){return new u(v)}e.name=c;var u=function(v){t(I,v);function I(T){var C=v.call(this)||this;return C.name=T,C._failMsg="is not a "+T,C}return I.prototype.getChecker=function(T,C,M){var K=this,J=o(T,this.name),le=J.getChecker(T,C,M);return J instanceof he||J instanceof I?le:function(ve,me){return le(ve,me)?!0:me.fail(null,K._failMsg,0)}},I}(s);e.TName=u;function f(v){return new h(v)}e.lit=f;var h=function(v){t(I,v);function I(T){var C=v.call(this)||this;return C.value=T,C.name=JSON.stringify(T),C._failMsg="is not "+C.name,C}return I.prototype.getChecker=function(T,C){var M=this;return function(K,J){return K===M.value?!0:J.fail(null,M._failMsg,-1)}},I}(s);e.TLiteral=h;function d(v){return new x(i(v))}e.array=d;var x=function(v){t(I,v);function I(T){var C=v.call(this)||this;return C.ttype=T,C}return I.prototype.getChecker=function(T,C){var M=this.ttype.getChecker(T,C);return function(K,J){if(!Array.isArray(K))return J.fail(null,"is not an array",0);for(var le=0;le<K.length;le++){var ve=M(K[le],J);if(!ve)return J.fail(le,null,1)}return!0}},I}(s);e.TArray=x;function y(){for(var v=[],I=0;I<arguments.length;I++)v[I]=arguments[I];return new b(v.map(function(T){return i(T)}))}e.tuple=y;var b=function(v){t(I,v);function I(T){var C=v.call(this)||this;return C.ttypes=T,C}return I.prototype.getChecker=function(T,C){var M=this.ttypes.map(function(J){return J.getChecker(T,C)}),K=function(J,le){if(!Array.isArray(J))return le.fail(null,"is not an array",0);for(var ve=0;ve<M.length;ve++){var me=M[ve](J[ve],le);if(!me)return le.fail(ve,null,1)}return!0};return C?function(J,le){return K(J,le)?J.length<=M.length?!0:le.fail(M.length,"is extraneous",2):!1}:K},I}(s);e.TTuple=b;function N(){for(var v=[],I=0;I<arguments.length;I++)v[I]=arguments[I];return new O(v.map(function(T){return i(T)}))}e.union=N;var O=function(v){t(I,v);function I(T){var C=v.call(this)||this;C.ttypes=T;var M=T.map(function(J){return J instanceof u||J instanceof h?J.name:null}).filter(function(J){return J}),K=T.length-M.length;return M.length?(K>0&&M.push(K+" more"),C._failMsg="is none of "+M.join(", ")):C._failMsg="is none of "+K+" types",C}return I.prototype.getChecker=function(T,C){var M=this,K=this.ttypes.map(function(J){return J.getChecker(T,C)});return function(J,le){for(var ve=le.unionResolver(),me=0;me<K.length;me++){var Fe=K[me](J,ve.createContext());if(Fe)return!0}return le.resolveUnion(ve),le.fail(null,M._failMsg,0)}},I}(s);e.TUnion=O;function F(){for(var v=[],I=0;I<arguments.length;I++)v[I]=arguments[I];return new ee(v.map(function(T){return i(T)}))}e.intersection=F;var ee=function(v){t(I,v);function I(T){var C=v.call(this)||this;return C.ttypes=T,C}return I.prototype.getChecker=function(T,C){var M=new Set,K=this.ttypes.map(function(J){return J.getChecker(T,C,M)});return function(J,le){var ve=K.every(function(me){return me(J,le)});return ve?!0:le.fail(null,null,0)}},I}(s);e.TIntersection=ee;function P(v){return new D(v)}e.enumtype=P;var D=function(v){t(I,v);function I(T){var C=v.call(this)||this;return C.members=T,C.validValues=new Set,C._failMsg="is not a valid enum value",C.validValues=new Set(Object.keys(T).map(function(M){return T[M]})),C}return I.prototype.getChecker=function(T,C){var M=this;return function(K,J){return M.validValues.has(K)?!0:J.fail(null,M._failMsg,0)}},I}(s);e.TEnumType=D;function j(v,I){return new U(v,I)}e.enumlit=j;var U=function(v){t(I,v);function I(T,C){var M=v.call(this)||this;return M.enumName=T,M.prop=C,M._failMsg="is not "+T+"."+C,M}return I.prototype.getChecker=function(T,C){var M=this,K=o(T,this.enumName);if(!(K instanceof D))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var J=K.members[this.prop];if(!K.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(le,ve){return le===J?!0:ve.fail(null,M._failMsg,-1)}},I}(s);e.TEnumLiteral=U;function H(v){return Object.keys(v).map(function(I){return G(I,v[I])})}function G(v,I){return I instanceof ce?new Ae(v,I.ttype,!0):new Ae(v,i(I),!1)}function A(v,I){return new z(v,H(I))}e.iface=A;var z=function(v){t(I,v);function I(T,C){var M=v.call(this)||this;return M.bases=T,M.props=C,M.propSet=new Set(C.map(function(K){return K.name})),M}return I.prototype.getChecker=function(T,C,M){var K=this,J=this.bases.map(function(Ie){return o(T,Ie).getChecker(T,C)}),le=this.props.map(function(Ie){return Ie.ttype.getChecker(T,C)}),ve=new r.NoopContext,me=this.props.map(function(Ie,Ee){return!Ie.isOpt&&!le[Ee](void 0,ve)}),Fe=function(Ie,Ee){if(typeof Ie!="object"||Ie===null)return Ee.fail(null,"is not an object",0);for(var De=0;De<J.length;De++)if(!J[De](Ie,Ee))return!1;for(var De=0;De<le.length;De++){var Pt=K.props[De].name,gt=Ie[Pt];if(gt===void 0){if(me[De])return Ee.fail(Pt,"is missing",1)}else{var xt=le[De](gt,Ee);if(!xt)return Ee.fail(Pt,null,1)}}return!0};if(!C)return Fe;var we=this.propSet;return M&&(this.propSet.forEach(function(Ie){return M.add(Ie)}),we=M),function(Ie,Ee){if(!Fe(Ie,Ee))return!1;for(var De in Ie)if(!we.has(De))return Ee.fail(De,"is extraneous",2);return!0}},I}(s);e.TIface=z;function B(v){return new ce(i(v))}e.opt=B;var ce=function(v){t(I,v);function I(T){var C=v.call(this)||this;return C.ttype=T,C}return I.prototype.getChecker=function(T,C){var M=this.ttype.getChecker(T,C);return function(K,J){return K===void 0||M(K,J)}},I}(s);e.TOptional=ce;var Ae=function(){function v(I,T,C){this.name=I,this.ttype=T,this.isOpt=C}return v}();e.TProp=Ae;function Ve(v){for(var I=[],T=1;T<arguments.length;T++)I[T-1]=arguments[T];return new je(new Pe(I),i(v))}e.func=Ve;var je=function(v){t(I,v);function I(T,C){var M=v.call(this)||this;return M.paramList=T,M.result=C,M}return I.prototype.getChecker=function(T,C){return function(M,K){return typeof M=="function"?!0:K.fail(null,"is not a function",0)}},I}(s);e.TFunc=je;function W(v,I,T){return new oe(v,i(I),!!T)}e.param=W;var oe=function(){function v(I,T,C){this.name=I,this.ttype=T,this.isOpt=C}return v}();e.TParam=oe;var Pe=function(v){t(I,v);function I(T){var C=v.call(this)||this;return C.params=T,C}return I.prototype.getChecker=function(T,C){var M=this,K=this.params.map(function(me){return me.ttype.getChecker(T,C)}),J=new r.NoopContext,le=this.params.map(function(me,Fe){return!me.isOpt&&!K[Fe](void 0,J)}),ve=function(me,Fe){if(!Array.isArray(me))return Fe.fail(null,"is not an array",0);for(var we=0;we<K.length;we++){var Ie=M.params[we];if(me[we]===void 0){if(le[we])return Fe.fail(Ie.name,"is missing",1)}else{var Ee=K[we](me[we],Fe);if(!Ee)return Fe.fail(Ie.name,null,1)}}return!0};return C?function(me,Fe){return ve(me,Fe)?me.length<=K.length?!0:Fe.fail(K.length,"is extraneous",2):!1}:ve},I}(s);e.TParamList=Pe;var he=function(v){t(I,v);function I(T,C){var M=v.call(this)||this;return M.validator=T,M.message=C,M}return I.prototype.getChecker=function(T,C){var M=this;return function(K,J){return M.validator(K)?!0:J.fail(null,M.message,0)}},I}(s);e.BasicType=he,e.basicTypes={any:new he(function(v){return!0},"is invalid"),number:new he(function(v){return typeof v=="number"},"is not a number"),object:new he(function(v){return typeof v=="object"&&v},"is not an object"),boolean:new he(function(v){return typeof v=="boolean"},"is not a boolean"),string:new he(function(v){return typeof v=="string"},"is not a string"),symbol:new he(function(v){return typeof v=="symbol"},"is not a symbol"),void:new he(function(v){return v==null},"is not void"),undefined:new he(function(v){return v===void 0},"is not undefined"),null:new he(function(v){return v===null},"is not null"),never:new he(function(v){return!1},"is unexpected"),Date:new he(be("[object Date]"),"is not a Date"),RegExp:new he(be("[object RegExp]"),"is not a RegExp")};var _e=Object.prototype.toString;function be(v){return function(I){return typeof I=="object"&&I&&_e.call(I)===v}}typeof Buffer<"u"&&(e.basicTypes.Buffer=new he(function(v){return Buffer.isBuffer(v)},"is not a Buffer"));for(var Q=function(v){e.basicTypes[v.name]=new he(function(I){return I instanceof v},"is not a "+v.name)},se=0,de=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];se<de.length;se++){var ze=de[se];Q(ze)}})(As);(function(e){var t=er&&er.__spreadArrays||function(){for(var f=0,h=0,d=arguments.length;h<d;h++)f+=arguments[h].length;for(var x=Array(f),y=0,h=0;h<d;h++)for(var b=arguments[h],N=0,O=b.length;N<O;N++,y++)x[y]=b[N];return x};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var r=As,s=_t,i=As;Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var o=_t;Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return o.VError}});function c(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];for(var d=Object.assign.apply(Object,t([{},r.basicTypes],f)),x={},y=0,b=f;y<b.length;y++)for(var N=b[y],O=0,F=Object.keys(N);O<F.length;O++){var ee=F[O];x[ee]=new u(d,N[ee])}return x}e.createCheckers=c;var u=function(){function f(h,d,x){if(x===void 0&&(x="value"),this.suite=h,this.ttype=d,this._path=x,this.props=new Map,d instanceof r.TIface)for(var y=0,b=d.props;y<b.length;y++){var N=b[y];this.props.set(N.name,N.ttype)}this.checkerPlain=this.ttype.getChecker(h,!1),this.checkerStrict=this.ttype.getChecker(h,!0)}return f.prototype.setReportedPath=function(h){this._path=h},f.prototype.check=function(h){return this._doCheck(this.checkerPlain,h)},f.prototype.test=function(h){return this.checkerPlain(h,new s.NoopContext)},f.prototype.validate=function(h){return this._doValidate(this.checkerPlain,h)},f.prototype.strictCheck=function(h){return this._doCheck(this.checkerStrict,h)},f.prototype.strictTest=function(h){return this.checkerStrict(h,new s.NoopContext)},f.prototype.strictValidate=function(h){return this._doValidate(this.checkerStrict,h)},f.prototype.getProp=function(h){var d=this.props.get(h);if(!d)throw new Error("Type has no property "+h);return new f(this.suite,d,this._path+"."+h)},f.prototype.methodArgs=function(h){var d=this._getMethod(h);return new f(this.suite,d.paramList)},f.prototype.methodResult=function(h){var d=this._getMethod(h);return new f(this.suite,d.result)},f.prototype.getArgs=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getArgs() applied to non-function");return new f(this.suite,this.ttype.paramList)},f.prototype.getResult=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getResult() applied to non-function");return new f(this.suite,this.ttype.result)},f.prototype.getType=function(){return this.ttype},f.prototype._doCheck=function(h,d){var x=new s.NoopContext;if(!h(d,x)){var y=new s.DetailContext;throw h(d,y),y.getError(this._path)}},f.prototype._doValidate=function(h,d){var x=new s.NoopContext;if(h(d,x))return null;var y=new s.DetailContext;return h(d,y),y.getErrorDetail(this._path)},f.prototype._getMethod=function(h){var d=this.props.get(h);if(!d)throw new Error("Type has no property "+h);if(!(d instanceof r.TFunc))throw new Error("Property "+h+" is not a method");return d},f}();e.Checker=u})(ye);const vu=ye.union(ye.lit("jsx"),ye.lit("typescript"),ye.lit("flow"),ye.lit("imports"),ye.lit("react-hot-loader"),ye.lit("jest")),wu=ye.iface([],{compiledFilename:"string"}),_u=ye.iface([],{transforms:ye.array("Transform"),disableESTransforms:ye.opt("boolean"),jsxRuntime:ye.opt(ye.union(ye.lit("classic"),ye.lit("automatic"),ye.lit("preserve"))),production:ye.opt("boolean"),jsxImportSource:ye.opt("string"),jsxPragma:ye.opt("string"),jsxFragmentPragma:ye.opt("string"),keepUnusedImports:ye.opt("boolean"),preserveDynamicImport:ye.opt("boolean"),injectCreateRequireForImportRequire:ye.opt("boolean"),enableLegacyTypeScriptModuleInterop:ye.opt("boolean"),enableLegacyBabel5ModuleInterop:ye.opt("boolean"),sourceMapOptions:ye.opt("SourceMapOptions"),filePath:ye.opt("string")}),Su={Transform:vu,SourceMapOptions:wu,Options:_u},{Options:Iu}=ye.createCheckers(Su);function Eu(e){Iu.strictCheck(e)}function Ha(){_(),Ue(!1)}function Wa(e){_(),zn(e)}function Wt(e){Z(),Ys(e)}function Cn(){Z(),a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration}function Ys(e){let t;a.scopeDepth===0?t=X.TopLevelDeclaration:e?t=X.BlockScopedDeclaration:t=X.FunctionScopedDeclaration,a.tokens[a.tokens.length-1].identifierRole=t}function zn(e){switch(a.type){case n._this:{const t=ae(0);_(),ie(t);return}case n._yield:case n.name:{a.type=n.name,Wt(e);return}case n.bracketL:{_(),Ks(n.bracketR,e,!0);return}case n.braceL:oi(!0,e);return;default:re()}}function Ks(e,t,r=!1,s=!1,i=0){let o=!0,c=!1;const u=a.tokens.length;for(;!k(e)&&!a.error;)if(o?o=!1:(w(n.comma),a.tokens[a.tokens.length-1].contextId=i,!c&&a.tokens[u].isType&&(a.tokens[a.tokens.length-1].isType=!0,c=!0)),!(r&&p(n.comma))){if(k(e))break;if(p(n.ellipsis)){Wa(t),Ga(),k(n.comma),w(e);break}else Cu(s,t)}}function Cu(e,t){e&&Qs([m._public,m._protected,m._private,m._readonly,m._override]),Tn(t),Ga(),Tn(t,!0)}function Ga(){xe?Hh():ue&&Op()}function Tn(e,t=!1){if(t||zn(e),!k(n.eq))return;const r=a.tokens.length-1;Ue(),a.tokens[r].rhsEndIndex=a.tokens.length}function Ps(){return p(n.name)}function Tu(){return p(n.name)||!!(a.type&n.IS_KEYWORD)||p(n.string)||p(n.num)||p(n.bigint)||p(n.decimal)}function Xa(){const e=a.snapshot();return _(),(p(n.bracketL)||p(n.braceL)||p(n.star)||p(n.ellipsis)||p(n.hash)||Tu())&&!Xe()?!0:(a.restoreFromSnapshot(e),!1)}function Qs(e){for(;Ya(e)!==null;);}function Ya(e){if(!p(n.name))return null;const t=a.contextualKeyword;if(e.indexOf(t)!==-1&&Xa()){switch(t){case m._readonly:a.tokens[a.tokens.length-1].type=n._readonly;break;case m._abstract:a.tokens[a.tokens.length-1].type=n._abstract;break;case m._static:a.tokens[a.tokens.length-1].type=n._static;break;case m._public:a.tokens[a.tokens.length-1].type=n._public;break;case m._private:a.tokens[a.tokens.length-1].type=n._private;break;case m._protected:a.tokens[a.tokens.length-1].type=n._protected;break;case m._override:a.tokens[a.tokens.length-1].type=n._override;break;case m._declare:a.tokens[a.tokens.length-1].type=n._declare;break}return t}return null}function ln(){for(Z();k(n.dot);)Z()}function Au(){ln(),!Xe()&&p(n.lessThan)&&Er()}function Pu(){_(),un()}function Nu(){_()}function Ru(){w(n._typeof),p(n._import)?Ka():ln(),!Xe()&&p(n.lessThan)&&Er()}function Ka(){w(n._import),w(n.parenL),w(n.string),w(n.parenR),k(n.dot)&&ln(),p(n.lessThan)&&Er()}function Lu(){k(n._const);const e=k(n._in),t=Be(m._out);k(n._const),(e||t)&&!p(n.name)?a.tokens[a.tokens.length-1].type=n.name:Z(),k(n._extends)&&Le(),k(n.eq)&&Le()}function ir(){p(n.lessThan)&&Hn()}function Hn(){const e=ae(0);for(p(n.lessThan)||p(n.typeParameterStart)?_():re();!k(n.greaterThan)&&!a.error;)Lu(),k(n.comma);ie(e)}function Js(e){const t=e===n.arrow;ir(),w(n.parenL),a.scopeDepth++,Du(!1),a.scopeDepth--,(t||p(e))&&en(e)}function Du(e){Ks(n.parenR,e)}function An(){k(n.comma)||Te()}function Gi(){Js(n.colon),An()}function Ou(){const e=a.snapshot();_();const t=k(n.name)&&p(n.colon);return a.restoreFromSnapshot(e),t}function Qa(){if(!(p(n.bracketL)&&Ou()))return!1;const e=ae(0);return w(n.bracketL),Z(),un(),w(n.bracketR),Ir(),An(),ie(e),!0}function Xi(e){k(n.question),!e&&(p(n.parenL)||p(n.lessThan))?(Js(n.colon),An()):(Ir(),An())}function Mu(){if(p(n.parenL)||p(n.lessThan)){Gi();return}if(p(n._new)){_(),p(n.parenL)||p(n.lessThan)?Gi():Xi(!1);return}const e=!!Ya([m._readonly]);Qa()||((q(m._get)||q(m._set))&&Xa(),tn(-1),Xi(e))}function ju(){Ja()}function Ja(){for(w(n.braceL);!k(n.braceR)&&!a.error;)Mu()}function Fu(){const e=a.snapshot(),t=Bu();return a.restoreFromSnapshot(e),t}function Bu(){return _(),k(n.plus)||k(n.minus)?q(m._readonly):(q(m._readonly)&&_(),!p(n.bracketL)||(_(),!Ps())?!1:(_(),p(n._in)))}function $u(){Z(),w(n._in),Le()}function Vu(){w(n.braceL),p(n.plus)||p(n.minus)?(_(),Oe(m._readonly)):Be(m._readonly),w(n.bracketL),$u(),Be(m._as)&&Le(),w(n.bracketR),p(n.plus)||p(n.minus)?(_(),w(n.question)):k(n.question),tp(),Te(),w(n.braceR)}function qu(){for(w(n.bracketL);!k(n.bracketR)&&!a.error;)Uu(),k(n.comma)}function Uu(){k(n.ellipsis)?Le():(Le(),k(n.question)),k(n.colon)&&Le()}function zu(){w(n.parenL),Le(),w(n.parenR)}function Hu(){for(Bt(),Bt();!p(n.backQuote)&&!a.error;)w(n.dollarBraceL),Le(),Bt(),Bt();_()}var qt;(function(e){e[e.TSFunctionType=0]="TSFunctionType";const r=1;e[e.TSConstructorType=r]="TSConstructorType";const s=r+1;e[e.TSAbstractConstructorType=s]="TSAbstractConstructorType"})(qt||(qt={}));function bs(e){e===qt.TSAbstractConstructorType&&Oe(m._abstract),(e===qt.TSConstructorType||e===qt.TSAbstractConstructorType)&&w(n._new);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,Js(n.arrow),a.inDisallowConditionalTypesContext=t}function Wu(){switch(a.type){case n.name:Au();return;case n._void:case n._null:_();return;case n.string:case n.num:case n.bigint:case n.decimal:case n._true:case n._false:Sr();return;case n.minus:_(),Sr();return;case n._this:{Nu(),q(m._is)&&!Xe()&&Pu();return}case n._typeof:Ru();return;case n._import:Ka();return;case n.braceL:Fu()?Vu():ju();return;case n.bracketL:qu();return;case n.parenL:zu();return;case n.backQuote:Hu();return;default:if(a.type&n.IS_KEYWORD){_(),a.tokens[a.tokens.length-1].type=n.name;return}break}re()}function Gu(){for(Wu();!Xe()&&k(n.bracketL);)k(n.bracketR)||(Le(),w(n.bracketR))}function Xu(){if(Oe(m._infer),Z(),p(n._extends)){const e=a.snapshot();w(n._extends);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,Le(),a.inDisallowConditionalTypesContext=t,(a.error||!a.inDisallowConditionalTypesContext&&p(n.question))&&a.restoreFromSnapshot(e)}}function Ns(){if(q(m._keyof)||q(m._unique)||q(m._readonly))_(),Ns();else if(q(m._infer))Xu();else{const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,Gu(),a.inDisallowConditionalTypesContext=e}}function Yi(){if(k(n.bitwiseAND),Ns(),p(n.bitwiseAND))for(;k(n.bitwiseAND);)Ns()}function Yu(){if(k(n.bitwiseOR),Yi(),p(n.bitwiseOR))for(;k(n.bitwiseOR);)Yi()}function Ku(){return p(n.lessThan)?!0:p(n.parenL)&&Ju()}function Qu(){if(p(n.name)||p(n._this))return _(),!0;if(p(n.braceL)||p(n.bracketL)){let e=1;for(_();e>0&&!a.error;)p(n.braceL)||p(n.bracketL)?e++:(p(n.braceR)||p(n.bracketR))&&e--,_();return!0}return!1}function Ju(){const e=a.snapshot(),t=Zu();return a.restoreFromSnapshot(e),t}function Zu(){return _(),!!(p(n.parenR)||p(n.ellipsis)||Qu()&&(p(n.colon)||p(n.comma)||p(n.question)||p(n.eq)||p(n.parenR)&&(_(),p(n.arrow))))}function en(e){const t=ae(0);w(e),rp()||Le(),ie(t)}function ep(){p(n.colon)&&en(n.colon)}function Ir(){p(n.colon)&&un()}function tp(){k(n.colon)&&Le()}function rp(){const e=a.snapshot();return q(m._asserts)?(_(),Be(m._is)?(Le(),!0):Ps()||p(n._this)?(_(),Be(m._is)&&Le(),!0):(a.restoreFromSnapshot(e),!1)):Ps()||p(n._this)?(_(),q(m._is)&&!Xe()?(_(),Le(),!0):(a.restoreFromSnapshot(e),!1)):!1}function un(){const e=ae(0);w(n.colon),Le(),ie(e)}function Le(){if(Ki(),a.inDisallowConditionalTypesContext||Xe()||!k(n._extends))return;const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,Ki(),a.inDisallowConditionalTypesContext=e,w(n.question),Le(),w(n.colon),Le()}function np(){return q(m._abstract)&&Re()===n._new}function Ki(){if(Ku()){bs(qt.TSFunctionType);return}if(p(n._new)){bs(qt.TSConstructorType);return}else if(np()){bs(qt.TSAbstractConstructorType);return}Yu()}function sp(){const e=ae(1);Le(),w(n.greaterThan),ie(e),pn()}function ip(){if(k(n.jsxTagStart)){a.tokens[a.tokens.length-1].type=n.typeParameterStart;const e=ae(1);for(;!p(n.greaterThan)&&!a.error;)Le(),k(n.comma);at(),ie(e)}}function Za(){for(;!p(n.braceL)&&!a.error;)ap(),k(n.comma)}function ap(){ln(),p(n.lessThan)&&Er()}function op(){Wt(!1),ir(),k(n._extends)&&Za(),Ja()}function cp(){Wt(!1),ir(),w(n.eq),Le(),Te()}function lp(){if(p(n.string)?Sr():Z(),k(n.eq)){const e=a.tokens.length-1;Ue(),a.tokens[e].rhsEndIndex=a.tokens.length}}function Zs(){for(Wt(!1),w(n.braceL);!k(n.braceR)&&!a.error;)lp(),k(n.comma)}function ei(){w(n.braceL),Yn(n.braceR)}function Rs(){Wt(!1),k(n.dot)?Rs():ei()}function eo(){q(m._global)?Z():p(n.string)?Lt():re(),p(n.braceL)?ei():Te()}function Ls(){Cn(),w(n.eq),pp(),Te()}function up(){return q(m._require)&&Re()===n.parenL}function pp(){up()?hp():ln()}function hp(){Oe(m._require),w(n.parenL),p(n.string)||re(),Sr(),w(n.parenR)}function fp(){if(wt())return!1;switch(a.type){case n._function:{const e=ae(1);_();const t=a.start;return rr(t,!0),ie(e),!0}case n._class:{const e=ae(1);return nr(!0,!1),ie(e),!0}case n._const:if(p(n._const)&&Ws(m._enum)){const e=ae(1);return w(n._const),Oe(m._enum),a.tokens[a.tokens.length-1].type=n._enum,Zs(),ie(e),!0}case n._var:case n._let:{const e=ae(1);return wn(a.type!==n._var),ie(e),!0}case n.name:{const e=ae(1),t=a.contextualKeyword;let r=!1;return t===m._global?(eo(),r=!0):r=Wn(t,!0),ie(e),r}default:return!1}}function Qi(){return Wn(a.contextualKeyword,!0)}function dp(e){switch(e){case m._declare:{const t=a.tokens.length-1;if(fp())return a.tokens[t].type=n._declare,!0;break}case m._global:if(p(n.braceL))return ei(),!0;break;default:return Wn(e,!1)}return!1}function Wn(e,t){switch(e){case m._abstract:if(vr(t)&&p(n._class))return a.tokens[a.tokens.length-1].type=n._abstract,nr(!0,!1),!0;break;case m._enum:if(vr(t)&&p(n.name))return a.tokens[a.tokens.length-1].type=n._enum,Zs(),!0;break;case m._interface:if(vr(t)&&p(n.name)){const r=ae(t?2:1);return op(),ie(r),!0}break;case m._module:if(vr(t)){if(p(n.string)){const r=ae(t?2:1);return eo(),ie(r),!0}else if(p(n.name)){const r=ae(t?2:1);return Rs(),ie(r),!0}}break;case m._namespace:if(vr(t)&&p(n.name)){const r=ae(t?2:1);return Rs(),ie(r),!0}break;case m._type:if(vr(t)&&p(n.name)){const r=ae(t?2:1);return cp(),ie(r),!0}break}return!1}function vr(e){return e?(_(),!0):!wt()}function mp(){const e=a.snapshot();return Hn(),Cr(),ep(),w(n.arrow),a.error?(a.restoreFromSnapshot(e),!1):(hn(!0),!0)}function ti(){a.type===n.bitShiftL&&(a.pos-=1,te(n.lessThan)),Er()}function Er(){const e=ae(0);for(w(n.lessThan);!p(n.greaterThan)&&!a.error;)Le(),k(n.comma);e?(w(n.greaterThan),ie(e)):(ie(e),Da(),w(n.greaterThan),a.tokens[a.tokens.length-1].isType=!0)}function to(){if(p(n.name))switch(a.contextualKeyword){case m._abstract:case m._declare:case m._enum:case m._interface:case m._module:case m._namespace:case m._type:return!0}return!1}function gp(e,t){if(p(n.colon)&&en(n.colon),!p(n.braceL)&&wt()){let r=a.tokens.length-1;for(;r>=0&&(a.tokens[r].start>=e||a.tokens[r].type===n._default||a.tokens[r].type===n._export);)a.tokens[r].isType=!0,r--;return}hn(!1,t)}function xp(e,t,r){if(!Xe()&&k(n.bang)){a.tokens[a.tokens.length-1].type=n.nonNullAssertion;return}if(p(n.lessThan)||p(n.bitShiftL)){const s=a.snapshot();if(!t&&lo()&&mp())return;if(ti(),!t&&k(n.parenL)?(a.tokens[a.tokens.length-1].subscriptStartIndex=e,Ut()):p(n.backQuote)?ai():(a.type===n.greaterThan||a.type!==n.parenL&&a.type&n.IS_EXPRESSION_START&&!Xe())&&re(),a.error)a.restoreFromSnapshot(s);else return}else!t&&p(n.questionDot)&&Re()===n.lessThan&&(_(),a.tokens[e].isOptionalChainStart=!0,a.tokens[a.tokens.length-1].subscriptStartIndex=e,Er(),w(n.parenL),Ut());ni(e,t,r)}function kp(){if(k(n._import))return q(m._type)&&Re()!==n.eq&&Oe(m._type),Ls(),!0;if(k(n.eq))return qe(),Te(),!0;if(Be(m._as))return Oe(m._namespace),Z(),Te(),!0;if(q(m._type)){const e=Re();(e===n.braceL||e===n.star)&&_()}return!1}function bp(){if(Z(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration;return}if(Z(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(Z(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-3].identifierRole=X.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration;return}Z(),a.tokens[a.tokens.length-3].identifierRole=X.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=X.ImportDeclaration,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function yp(){if(Z(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=X.ExportAccess;return}if(Z(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=X.ExportAccess,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(Z(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-3].identifierRole=X.ExportAccess;return}Z(),a.tokens[a.tokens.length-3].identifierRole=X.ExportAccess,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function vp(){if(q(m._abstract)&&Re()===n._class)return a.type=n._abstract,_(),nr(!0,!0),!0;if(q(m._interface)){const e=ae(2);return Wn(m._interface,!0),ie(e),!0}return!1}function wp(){if(a.type===n._const){const e=cn();if(e.type===n.name&&e.contextualKeyword===m._enum)return w(n._const),Oe(m._enum),a.tokens[a.tokens.length-1].type=n._enum,Zs(),!0}return!1}function _p(e){const t=a.tokens.length;Qs([m._abstract,m._readonly,m._declare,m._static,m._override]);const r=a.tokens.length;if(Qa()){const i=e?t-1:t;for(let o=i;o<r;o++)a.tokens[o].isType=!0;return!0}return!1}function Sp(e){dp(e)||Te()}function Ip(){const e=Be(m._declare);e&&(a.tokens[a.tokens.length-1].type=n._declare);let t=!1;if(p(n.name))if(e){const r=ae(2);t=Qi(),ie(r)}else t=Qi();if(!t)if(e){const r=ae(2);rt(!0),ie(r)}else rt(!0)}function Ep(e){if(e&&(p(n.lessThan)||p(n.bitShiftL))&&ti(),Be(m._implements)){a.tokens[a.tokens.length-1].type=n._implements;const t=ae(1);Za(),ie(t)}}function Cp(){ir()}function Tp(){ir()}function Ap(){const e=ae(0);Xe()||k(n.bang),Ir(),ie(e)}function Pp(){p(n.colon)&&un()}function Np(e,t){return qn?Rp(e,t):Lp(e,t)}function Rp(e,t){if(!p(n.lessThan))return St(e,t);const r=a.snapshot();let s=St(e,t);if(a.error)a.restoreFromSnapshot(r);else return s;return a.type=n.typeParameterStart,Hn(),s=St(e,t),s||re(),s}function Lp(e,t){if(!p(n.lessThan))return St(e,t);const r=a.snapshot();Hn();const s=St(e,t);if(s||re(),a.error)a.restoreFromSnapshot(r);else return s;return St(e,t)}function Dp(){if(p(n.colon)){const e=a.snapshot();en(n.colon),tt()&&re(),p(n.arrow)||re(),a.error&&a.restoreFromSnapshot(e)}return k(n.arrow)}function Op(){const e=ae(0);k(n.question),Ir(),ie(e)}function Mp(){(p(n.lessThan)||p(n.bitShiftL))&&ti(),wo()}function jp(){let e=!1,t=!1;for(;;){if(a.pos>=R.length){re("Unterminated JSX contents");return}const r=R.charCodeAt(a.pos);if(r===g.lessThan||r===g.leftCurlyBrace){if(a.pos===a.start){if(r===g.lessThan){a.pos++,te(n.jsxTagStart);return}Oa(r);return}te(e&&!t?n.jsxEmptyText:n.jsxText);return}r===g.lineFeed?e=!0:r!==g.space&&r!==g.carriageReturn&&r!==g.tab&&(t=!0),a.pos++}}function Fp(e){for(a.pos++;;){if(a.pos>=R.length){re("Unterminated string constant");return}if(R.charCodeAt(a.pos)===e){a.pos++;break}a.pos++}te(n.string)}function Bp(){let e;do{if(a.pos>R.length){re("Unexpectedly reached the end of input.");return}e=R.charCodeAt(++a.pos)}while(ft[e]||e===g.dash);te(n.jsxName)}function Ds(){at()}function ro(e){if(Ds(),!k(n.colon)){a.tokens[a.tokens.length-1].identifierRole=e;return}Ds()}function no(){const e=a.tokens.length;ro(X.Access);let t=!1;for(;p(n.dot);)t=!0,at(),Ds();if(!t){const r=a.tokens[e],s=R.charCodeAt(r.start);s>=g.lowercaseA&&s<=g.lowercaseZ&&(r.identifierRole=null)}}function $p(){switch(a.type){case n.braceL:_(),qe(),at();return;case n.jsxTagStart:io(),at();return;case n.string:at();return;default:re("JSX value should be either an expression or a quoted JSX text")}}function Vp(){w(n.ellipsis),qe()}function qp(e){if(p(n.jsxTagEnd))return!1;no(),ue&&ip();let t=!1;for(;!p(n.slash)&&!p(n.jsxTagEnd)&&!a.error;){if(k(n.braceL)){t=!0,w(n.ellipsis),Ue(),at();continue}t&&a.end-a.start===3&&R.charCodeAt(a.start)===g.lowercaseK&&R.charCodeAt(a.start+1)===g.lowercaseE&&R.charCodeAt(a.start+2)===g.lowercaseY&&(a.tokens[e].jsxRole=ht.KeyAfterPropSpread),ro(X.ObjectKey),p(n.eq)&&(at(),$p())}const r=p(n.slash);return r&&at(),r}function Up(){p(n.jsxTagEnd)||no()}function so(){const e=a.tokens.length-1;a.tokens[e].jsxRole=ht.NoChildren;let t=0;if(!qp(e))for(wr();;)switch(a.type){case n.jsxTagStart:if(at(),p(n.slash)){at(),Up(),a.tokens[e].jsxRole!==ht.KeyAfterPropSpread&&(t===1?a.tokens[e].jsxRole=ht.OneChild:t>1&&(a.tokens[e].jsxRole=ht.StaticChildren));return}t++,so(),wr();break;case n.jsxText:t++,wr();break;case n.jsxEmptyText:wr();break;case n.braceL:_(),p(n.ellipsis)?(Vp(),wr(),t+=2):(p(n.braceR)||(t++,qe()),wr());break;default:re();return}}function io(){at(),so()}function at(){a.tokens.push(new Un),Ra(),a.start=a.pos;const e=R.charCodeAt(a.pos);if(on[e])Bp();else if(e===g.quotationMark||e===g.apostrophe)Fp(e);else switch(++a.pos,e){case g.greaterThan:te(n.jsxTagEnd);break;case g.lessThan:te(n.jsxTagStart);break;case g.slash:te(n.slash);break;case g.equalsTo:te(n.eq);break;case g.leftCurlyBrace:te(n.braceL);break;case g.dot:te(n.dot);break;case g.colon:te(n.colon);break;default:re()}}function wr(){a.tokens.push(new Un),a.start=a.pos,jp()}function zp(e){if(p(n.question)){const t=Re();if(t===n.colon||t===n.comma||t===n.parenR)return}ao(e)}function Hp(){Ca(n.question),p(n.colon)&&(ue?un():xe&&ar())}class Wp{constructor(t){this.stop=t}}function qe(e=!1){if(Ue(e),p(n.comma))for(;k(n.comma);)Ue(e)}function Ue(e=!1,t=!1){return ue?Np(e,t):xe?Qh(e,t):St(e,t)}function St(e,t){if(p(n._yield))return ch(),!1;(p(n.parenL)||p(n.name)||p(n._yield))&&(a.potentialArrowAt=a.start);const r=Gp(e);return t&&ii(),a.type&n.IS_ASSIGN?(_(),Ue(e),!1):r}function Gp(e){return Yp(e)?!0:(Xp(e),!1)}function Xp(e){ue||xe?zp(e):ao(e)}function ao(e){k(n.question)&&(Ue(),w(n.colon),Ue(e))}function Yp(e){const t=a.tokens.length;return pn()?!0:(yn(t,-1,e),!1)}function yn(e,t,r){if(ue&&(n._in&n.PRECEDENCE_MASK)>t&&!Xe()&&(Be(m._as)||Be(m._satisfies))){const i=ae(1);Le(),ie(i),Da(),yn(e,t,r);return}const s=a.type&n.PRECEDENCE_MASK;if(s>0&&(!r||!p(n._in))&&s>t){const i=a.type;_(),i===n.nullishCoalescing&&(a.tokens[a.tokens.length-1].nullishStartIndex=e);const o=a.tokens.length;pn(),yn(o,i&n.IS_RIGHT_ASSOCIATIVE?s-1:s,r),i===n.nullishCoalescing&&(a.tokens[e].numNullishCoalesceStarts++,a.tokens[a.tokens.length-1].numNullishCoalesceEnds++),yn(e,t,r)}}function pn(){if(ue&&!qn&&k(n.lessThan))return sp(),!1;if(q(m._module)&&Aa()===g.leftCurlyBrace&&!wa())return lh(),!1;if(a.type&n.IS_PREFIX)return _(),pn(),!1;if(oo())return!0;for(;a.type&n.IS_POSTFIX&&!tt();)a.type===n.preIncDec&&(a.type=n.postIncDec),_();return!1}function oo(){const e=a.tokens.length;return Lt()?!0:(ri(e),a.tokens.length>e&&a.tokens[e].isOptionalChainStart&&(a.tokens[a.tokens.length-1].isOptionalChainEnd=!0),!1)}function ri(e,t=!1){xe?Zh(e,t):co(e,t)}function co(e,t=!1){const r=new Wp(!1);do Kp(e,t,r);while(!r.stop&&!a.error)}function Kp(e,t,r){ue?xp(e,t,r):xe?Lh(e,t,r):ni(e,t,r)}function ni(e,t,r){if(!t&&k(n.doubleColon))si(),r.stop=!0,ri(e,t);else if(p(n.questionDot)){if(a.tokens[e].isOptionalChainStart=!0,t&&Re()===n.parenL){r.stop=!0;return}_(),a.tokens[a.tokens.length-1].subscriptStartIndex=e,k(n.bracketL)?(qe(),w(n.bracketR)):k(n.parenL)?Ut():Pn()}else if(k(n.dot))a.tokens[a.tokens.length-1].subscriptStartIndex=e,Pn();else if(k(n.bracketL))a.tokens[a.tokens.length-1].subscriptStartIndex=e,qe(),w(n.bracketR);else if(!t&&p(n.parenL))if(lo()){const s=a.snapshot(),i=a.tokens.length;_(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const o=Jr();a.tokens[a.tokens.length-1].contextId=o,Ut(),a.tokens[a.tokens.length-1].contextId=o,Qp()&&(a.restoreFromSnapshot(s),r.stop=!0,a.scopeDepth++,Cr(),Jp(i))}else{_(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const s=Jr();a.tokens[a.tokens.length-1].contextId=s,Ut(),a.tokens[a.tokens.length-1].contextId=s}else p(n.backQuote)?ai():r.stop=!0}function lo(){return a.tokens[a.tokens.length-1].contextualKeyword===m._async&&!tt()}function Ut(){let e=!0;for(;!k(n.parenR)&&!a.error;){if(e)e=!1;else if(w(n.comma),k(n.parenR))break;fo(!1)}}function Qp(){return p(n.colon)||p(n.arrow)}function Jp(e){ue?Pp():xe&&Kh(),w(n.arrow),rn(e)}function si(){const e=a.tokens.length;Lt(),ri(e,!0)}function Lt(){if(k(n.modulo))return Z(),!1;if(p(n.jsxText)||p(n.jsxEmptyText))return Sr(),!1;if(p(n.lessThan)&&qn)return a.type=n.jsxTagStart,io(),_(),!1;const e=a.potentialArrowAt===a.start;switch(a.type){case n.slash:case n.assign:vl();case n._super:case n._this:case n.regexp:case n.num:case n.bigint:case n.decimal:case n.string:case n._null:case n._true:case n._false:return _(),!1;case n._import:return _(),p(n.dot)&&(a.tokens[a.tokens.length-1].type=n.name,_(),Z()),!1;case n.name:{const t=a.tokens.length,r=a.start,s=a.contextualKeyword;return Z(),s===m._await?(oh(),!1):s===m._async&&p(n._function)&&!tt()?(_(),rr(r,!1),!1):e&&s===m._async&&!tt()&&p(n.name)?(a.scopeDepth++,Wt(!1),w(n.arrow),rn(t),!0):p(n._do)&&!tt()?(_(),zt(),!1):e&&!tt()&&p(n.arrow)?(a.scopeDepth++,Ys(!1),w(n.arrow),rn(t),!0):(a.tokens[a.tokens.length-1].identifierRole=X.Access,!1)}case n._do:return _(),zt(),!1;case n.parenL:return uo(e);case n.bracketL:return _(),ho(n.bracketR,!0),!1;case n.braceL:return oi(!1,!1),!1;case n._function:return Zp(),!1;case n.at:gi();case n._class:return nr(!1),!1;case n._new:return th(),!1;case n.backQuote:return ai(),!1;case n.doubleColon:return _(),si(),!1;case n.hash:{const t=Aa();return on[t]||t===g.backslash?Pn():_(),!1}default:return re(),!1}}function Pn(){k(n.hash),Z()}function Zp(){const e=a.start;Z(),k(n.dot)&&Z(),rr(e,!1)}function Sr(){_()}function Gn(){w(n.parenL),qe(),w(n.parenR)}function uo(e){const t=a.snapshot(),r=a.tokens.length;w(n.parenL);let s=!0;for(;!p(n.parenR)&&!a.error;){if(s)s=!1;else if(w(n.comma),p(n.parenR))break;if(p(n.ellipsis)){Wa(!1),ii();break}else Ue(!1,!0)}return w(n.parenR),e&&eh()&&Os()?(a.restoreFromSnapshot(t),a.scopeDepth++,Cr(),Os(),rn(r),a.error?(a.restoreFromSnapshot(t),uo(!1),!1):!0):!1}function eh(){return p(n.colon)||!tt()}function Os(){return ue?Dp():xe?Jh():k(n.arrow)}function ii(){(ue||xe)&&Hp()}function th(){if(w(n._new),k(n.dot)){Z();return}rh(),xe&&Dh(),k(n.parenL)&&ho(n.parenR)}function rh(){si(),k(n.questionDot)}function ai(){for(Bt(),Bt();!p(n.backQuote)&&!a.error;)w(n.dollarBraceL),qe(),Bt(),Bt();_()}function oi(e,t){const r=Jr();let s=!0;for(_(),a.tokens[a.tokens.length-1].contextId=r;!k(n.braceR)&&!a.error;){if(s)s=!1;else if(w(n.comma),k(n.braceR))break;let i=!1;if(p(n.ellipsis)){const o=a.tokens.length;if(Ha(),e&&(a.tokens.length===o+2&&Ys(t),k(n.braceR)))break;continue}e||(i=k(n.star)),!e&&q(m._async)?(i&&re(),Z(),p(n.colon)||p(n.parenL)||p(n.braceR)||p(n.eq)||p(n.comma)||(p(n.star)&&(_(),i=!0),tn(r))):tn(r),ah(e,t,r)}a.tokens[a.tokens.length-1].contextId=r}function nh(e){return!e&&(p(n.string)||p(n.num)||p(n.bracketL)||p(n.name)||!!(a.type&n.IS_KEYWORD))}function sh(e,t){const r=a.start;return p(n.parenL)?(e&&re(),Ms(r,!1),!0):nh(e)?(tn(t),Ms(r,!1),!0):!1}function ih(e,t){if(k(n.colon)){e?Tn(t):Ue(!1);return}let r;e?a.scopeDepth===0?r=X.ObjectShorthandTopLevelDeclaration:t?r=X.ObjectShorthandBlockScopedDeclaration:r=X.ObjectShorthandFunctionScopedDeclaration:r=X.ObjectShorthand,a.tokens[a.tokens.length-1].identifierRole=r,Tn(t,!0)}function ah(e,t,r){ue?Cp():xe&&zh(),sh(e,r)||ih(e,t)}function tn(e){xe&&mi(),k(n.bracketL)?(a.tokens[a.tokens.length-1].contextId=e,Ue(),w(n.bracketR),a.tokens[a.tokens.length-1].contextId=e):(p(n.num)||p(n.string)||p(n.bigint)||p(n.decimal)?Lt():Pn(),a.tokens[a.tokens.length-1].identifierRole=X.ObjectKey,a.tokens[a.tokens.length-1].contextId=e)}function Ms(e,t){const r=Jr();a.scopeDepth++;const s=a.tokens.length;Cr(t,r),po(e,r);const o=a.tokens.length;a.scopes.push(new It(s,o,!0)),a.scopeDepth--}function rn(e){hn(!0);const t=a.tokens.length;a.scopes.push(new It(e,t,!0)),a.scopeDepth--}function po(e,t=0){ue?gp(e,t):xe?Rh(t):hn(!1,t)}function hn(e,t=0){e&&!p(n.braceL)?Ue():zt(!0,t)}function ho(e,t=!1){let r=!0;for(;!k(e)&&!a.error;){if(r)r=!1;else if(w(n.comma),k(e))break;fo(t)}}function fo(e){e&&p(n.comma)||(p(n.ellipsis)?(Ha(),ii()):p(n.question)?_():Ue(!1,!0))}function Z(){_(),a.tokens[a.tokens.length-1].type=n.name}function oh(){pn()}function ch(){_(),!p(n.semi)&&!tt()&&(k(n.star),Ue())}function lh(){Oe(m._module),w(n.braceL),Yn(n.braceR)}function uh(e){return(e.type===n.name||!!(e.type&n.IS_KEYWORD))&&e.contextualKeyword!==m._from}function Et(e){const t=ae(0);w(e||n.colon),Qe(),ie(t)}function Ji(){w(n.modulo),Oe(m._checks),k(n.parenL)&&(qe(),w(n.parenR))}function ci(){const e=ae(0);w(n.colon),p(n.modulo)?Ji():(Qe(),p(n.modulo)&&Ji()),ie(e)}function ph(){_(),li(!0)}function hh(){_(),Z(),p(n.lessThan)&&mt(),w(n.parenL),Fs(),w(n.parenR),ci(),Te()}function js(){p(n._class)?ph():p(n._function)?hh():p(n._var)?fh():Be(m._module)?k(n.dot)?gh():dh():q(m._type)?xh():q(m._opaque)?kh():q(m._interface)?bh():p(n._export)?mh():re()}function fh(){_(),ko(),Te()}function dh(){for(p(n.string)?Lt():Z(),w(n.braceL);!p(n.braceR)&&!a.error;)p(n._import)?(_(),To()):re();w(n.braceR)}function mh(){w(n._export),k(n._default)?p(n._function)||p(n._class)?js():(Qe(),Te()):p(n._var)||p(n._function)||p(n._class)||q(m._opaque)?js():p(n.star)||p(n.braceL)||q(m._interface)||q(m._type)||q(m._opaque)?Eo():re()}function gh(){Oe(m._exports),ar(),Te()}function xh(){_(),pi()}function kh(){_(),hi(!0)}function bh(){_(),li()}function li(e=!1){if(Xn(),p(n.lessThan)&&mt(),k(n._extends))do vn();while(!e&&k(n.comma));if(q(m._mixins)){_();do vn();while(k(n.comma))}if(q(m._implements)){_();do vn();while(k(n.comma))}Nn(e,!1,e)}function vn(){mo(!1),p(n.lessThan)&&tr()}function ui(){li()}function Xn(){Z()}function pi(){Xn(),p(n.lessThan)&&mt(),Et(n.eq),Te()}function hi(e){Oe(m._type),Xn(),p(n.lessThan)&&mt(),p(n.colon)&&Et(n.colon),e||Et(n.eq),Te()}function yh(){mi(),ko(),k(n.eq)&&Qe()}function mt(){const e=ae(0);p(n.lessThan)||p(n.typeParameterStart)?_():re();do yh(),p(n.greaterThan)||w(n.comma);while(!p(n.greaterThan)&&!a.error);w(n.greaterThan),ie(e)}function tr(){const e=ae(0);for(w(n.lessThan);!p(n.greaterThan)&&!a.error;)Qe(),p(n.greaterThan)||w(n.comma);w(n.greaterThan),ie(e)}function vh(){if(Oe(m._interface),k(n._extends))do vn();while(k(n.comma));Nn(!1,!1,!1)}function fi(){p(n.num)||p(n.string)?Lt():Z()}function wh(){Re()===n.colon?(fi(),Et()):Qe(),w(n.bracketR),Et()}function _h(){fi(),w(n.bracketR),w(n.bracketR),p(n.lessThan)||p(n.parenL)?di():(k(n.question),Et())}function di(){for(p(n.lessThan)&&mt(),w(n.parenL);!p(n.parenR)&&!p(n.ellipsis)&&!a.error;)Rn(),p(n.parenR)||w(n.comma);k(n.ellipsis)&&Rn(),w(n.parenR),Et()}function Sh(){di()}function Nn(e,t,r){let s;for(t&&p(n.braceBarL)?(w(n.braceBarL),s=n.braceBarR):(w(n.braceL),s=n.braceR);!p(s)&&!a.error;){if(r&&q(m._proto)){const i=Re();i!==n.colon&&i!==n.question&&(_(),e=!1)}if(e&&q(m._static)){const i=Re();i!==n.colon&&i!==n.question&&_()}if(mi(),k(n.bracketL))k(n.bracketL)?_h():wh();else if(p(n.parenL)||p(n.lessThan))Sh();else{if(q(m._get)||q(m._set)){const i=Re();(i===n.name||i===n.string||i===n.num)&&_()}Ih()}Eh()}w(s)}function Ih(){if(p(n.ellipsis)){if(w(n.ellipsis),k(n.comma)||k(n.semi),p(n.braceR))return;Qe()}else fi(),p(n.lessThan)||p(n.parenL)?di():(k(n.question),Et())}function Eh(){!k(n.semi)&&!k(n.comma)&&!p(n.braceR)&&!p(n.braceBarR)&&re()}function mo(e){for(e||Z();k(n.dot);)Z()}function Ch(){mo(!0),p(n.lessThan)&&tr()}function Th(){w(n._typeof),go()}function Ah(){for(w(n.bracketL);a.pos<R.length&&!p(n.bracketR)&&(Qe(),!p(n.bracketR));)w(n.comma);w(n.bracketR)}function Rn(){const e=Re();e===n.colon||e===n.question?(Z(),k(n.question),Et()):Qe()}function Fs(){for(;!p(n.parenR)&&!p(n.ellipsis)&&!a.error;)Rn(),p(n.parenR)||w(n.comma);k(n.ellipsis)&&Rn()}function go(){let e=!1;const t=a.noAnonFunctionType;switch(a.type){case n.name:{if(q(m._interface)){vh();return}Z(),Ch();return}case n.braceL:Nn(!1,!1,!1);return;case n.braceBarL:Nn(!1,!0,!1);return;case n.bracketL:Ah();return;case n.lessThan:mt(),w(n.parenL),Fs(),w(n.parenR),w(n.arrow),Qe();return;case n.parenL:if(_(),!p(n.parenR)&&!p(n.ellipsis))if(p(n.name)){const r=Re();e=r!==n.question&&r!==n.colon}else e=!0;if(e)if(a.noAnonFunctionType=!1,Qe(),a.noAnonFunctionType=t,a.noAnonFunctionType||!(p(n.comma)||p(n.parenR)&&Re()===n.arrow)){w(n.parenR);return}else k(n.comma);Fs(),w(n.parenR),w(n.arrow),Qe();return;case n.minus:_(),Sr();return;case n.string:case n.num:case n._true:case n._false:case n._null:case n._this:case n._void:case n.star:_();return;default:if(a.type===n._typeof){Th();return}else if(a.type&n.IS_KEYWORD){_(),a.tokens[a.tokens.length-1].type=n.name;return}}re()}function Ph(){for(go();!tt()&&(p(n.bracketL)||p(n.questionDot));)k(n.questionDot),w(n.bracketL),k(n.bracketR)||(Qe(),w(n.bracketR))}function xo(){k(n.question)?xo():Ph()}function Zi(){xo(),!a.noAnonFunctionType&&k(n.arrow)&&Qe()}function ea(){for(k(n.bitwiseAND),Zi();k(n.bitwiseAND);)Zi()}function Nh(){for(k(n.bitwiseOR),ea();k(n.bitwiseOR);)ea()}function Qe(){Nh()}function ar(){Et()}function ko(){Z(),p(n.colon)&&ar()}function mi(){(p(n.plus)||p(n.minus))&&(_(),a.tokens[a.tokens.length-1].isType=!0)}function Rh(e){p(n.colon)&&ci(),hn(!1,e)}function Lh(e,t,r){if(p(n.questionDot)&&Re()===n.lessThan){if(t){r.stop=!0;return}_(),tr(),w(n.parenL),Ut();return}else if(!t&&p(n.lessThan)){const s=a.snapshot();if(tr(),w(n.parenL),Ut(),a.error)a.restoreFromSnapshot(s);else return}ni(e,t,r)}function Dh(){if(p(n.lessThan)){const e=a.snapshot();tr(),a.error&&a.restoreFromSnapshot(e)}}function Oh(){if(p(n.name)&&a.contextualKeyword===m._interface){const e=ae(0);return _(),ui(),ie(e),!0}else if(q(m._enum))return bo(),!0;return!1}function Mh(){return q(m._enum)?(bo(),!0):!1}function jh(e){if(e===m._declare){if(p(n._class)||p(n.name)||p(n._function)||p(n._var)||p(n._export)){const t=ae(1);js(),ie(t)}}else if(p(n.name)){if(e===m._interface){const t=ae(1);ui(),ie(t)}else if(e===m._type){const t=ae(1);pi(),ie(t)}else if(e===m._opaque){const t=ae(1);hi(!1),ie(t)}}Te()}function Fh(){return q(m._type)||q(m._interface)||q(m._opaque)||q(m._enum)}function Bh(){return p(n.name)&&(a.contextualKeyword===m._type||a.contextualKeyword===m._interface||a.contextualKeyword===m._opaque||a.contextualKeyword===m._enum)}function $h(){if(q(m._type)){const e=ae(1);_(),p(n.braceL)?(xi(),nn()):pi(),ie(e)}else if(q(m._opaque)){const e=ae(1);_(),hi(!1),ie(e)}else if(q(m._interface)){const e=ae(1);_(),ui(),ie(e)}else rt(!0)}function Vh(){return p(n.star)||q(m._type)&&Re()===n.star}function qh(){if(Be(m._type)){const e=ae(2);Bs(),ie(e)}else Bs()}function Uh(e){if(e&&p(n.lessThan)&&tr(),q(m._implements)){const t=ae(0);_(),a.tokens[a.tokens.length-1].type=n._implements;do Xn(),p(n.lessThan)&&tr();while(k(n.comma));ie(t)}}function zh(){p(n.lessThan)&&(mt(),p(n.parenL)||re())}function Hh(){const e=ae(0);k(n.question),p(n.colon)&&ar(),ie(e)}function Wh(){if(p(n._typeof)||q(m._type)){const e=cn();(uh(e)||e.type===n.braceL||e.type===n.star)&&_()}}function Gh(){const e=a.contextualKeyword===m._type||a.type===n._typeof;e?_():Z(),q(m._as)&&!Ws(m._as)?(Z(),e&&!p(n.name)&&!(a.type&n.IS_KEYWORD)||Z()):(e&&(p(n.name)||a.type&n.IS_KEYWORD)&&Z(),Be(m._as)&&Z())}function Xh(){if(p(n.lessThan)){const e=ae(0);mt(),ie(e)}}function Yh(){p(n.colon)&&ar()}function Kh(){if(p(n.colon)){const e=a.noAnonFunctionType;a.noAnonFunctionType=!0,ar(),a.noAnonFunctionType=e}}function Qh(e,t){if(p(n.lessThan)){const r=a.snapshot();let s=St(e,t);if(a.error)a.restoreFromSnapshot(r),a.type=n.typeParameterStart;else return s;const i=ae(0);if(mt(),ie(i),s=St(e,t),s)return!0;re()}return St(e,t)}function Jh(){if(p(n.colon)){const e=ae(0),t=a.snapshot(),r=a.noAnonFunctionType;a.noAnonFunctionType=!0,ci(),a.noAnonFunctionType=r,tt()&&re(),p(n.arrow)||re(),a.error&&a.restoreFromSnapshot(t),ie(e)}return k(n.arrow)}function Zh(e,t=!1){if(a.tokens[a.tokens.length-1].contextualKeyword===m._async&&p(n.lessThan)){const r=a.snapshot();if(ef()&&!a.error)return;a.restoreFromSnapshot(r)}co(e,t)}function ef(){a.scopeDepth++;const e=a.tokens.length;return Cr(),Os()?(rn(e),!0):!1}function bo(){Oe(m._enum),a.tokens[a.tokens.length-1].type=n._enum,Z(),tf()}function tf(){Be(m._of)&&_(),w(n.braceL),rf(),w(n.braceR)}function rf(){for(;!p(n.braceR)&&!a.error&&!k(n.ellipsis);)nf(),p(n.braceR)||w(n.comma)}function nf(){Z(),k(n.eq)&&_()}function sf(){if(Yn(n.eof),a.scopes.push(new It(0,a.tokens.length,!0)),a.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${a.scopeDepth}`);return new Hf(a.tokens,a.scopes)}function rt(e){xe&&Oh()||(p(n.at)&&gi(),af(e))}function af(e){if(ue&&wp())return;const t=a.type;switch(t){case n._break:case n._continue:cf();return;case n._debugger:lf();return;case n._do:uf();return;case n._for:pf();return;case n._function:if(Re()===n.dot)break;e||re(),df();return;case n._class:e||re(),nr(!0);return;case n._if:mf();return;case n._return:gf();return;case n._switch:xf();return;case n._throw:kf();return;case n._try:yf();return;case n._let:case n._const:e||re();case n._var:wn(t!==n._var);return;case n._while:vf();return;case n.braceL:zt();return;case n.semi:wf();return;case n._export:case n._import:{const i=Re();if(i===n.parenL||i===n.dot)break;_(),t===n._import?To():Eo();return}case n.name:if(a.contextualKeyword===m._async){const i=a.start,o=a.snapshot();if(_(),p(n._function)&&!tt()){w(n._function),rr(i,!0);return}else a.restoreFromSnapshot(o)}else if(a.contextualKeyword===m._using&&!wa()&&Re()===n.name){wn(!0);return}else if(yo()){Oe(m._await),wn(!0);return}}const r=a.tokens.length;qe();let s=null;if(a.tokens.length===r+1){const i=a.tokens[a.tokens.length-1];i.type===n.name&&(s=i.contextualKeyword)}if(s==null){Te();return}k(n.colon)?_f():Sf(s)}function yo(){if(!q(m._await))return!1;const e=a.snapshot();return _(),!q(m._using)||Xe()||(_(),!p(n.name)||Xe())?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function gi(){for(;p(n.at);)vo()}function vo(){if(_(),k(n.parenL))qe(),w(n.parenR);else{for(Z();k(n.dot);)Z();of()}}function of(){ue?Mp():wo()}function wo(){k(n.parenL)&&Ut()}function cf(){_(),wt()||(Z(),Te())}function lf(){_(),Te()}function uf(){_(),rt(!1),w(n._while),Gn(),k(n.semi)}function pf(){a.scopeDepth++;const e=a.tokens.length;ff();const t=a.tokens.length;a.scopes.push(new It(e,t,!1)),a.scopeDepth--}function hf(){return!(!q(m._using)||Ws(m._of))}function ff(){_();let e=!1;if(q(m._await)&&(e=!0,_()),w(n.parenL),p(n.semi)){e&&re(),ys();return}const t=yo();if(t||p(n._var)||p(n._let)||p(n._const)||hf()){if(t&&Oe(m._await),_(),_o(!0,a.type!==n._var),p(n._in)||q(m._of)){ta(e);return}ys();return}if(qe(!0),p(n._in)||q(m._of)){ta(e);return}e&&re(),ys()}function df(){const e=a.start;_(),rr(e,!0)}function mf(){_(),Gn(),rt(!1),k(n._else)&&rt(!1)}function gf(){_(),wt()||(qe(),Te())}function xf(){_(),Gn(),a.scopeDepth++;const e=a.tokens.length;for(w(n.braceL);!p(n.braceR)&&!a.error;)if(p(n._case)||p(n._default)){const r=p(n._case);_(),r&&qe(),w(n.colon)}else rt(!0);_();const t=a.tokens.length;a.scopes.push(new It(e,t,!1)),a.scopeDepth--}function kf(){_(),qe(),Te()}function bf(){zn(!0),ue&&Ir()}function yf(){if(_(),zt(),p(n._catch)){_();let e=null;if(p(n.parenL)&&(a.scopeDepth++,e=a.tokens.length,w(n.parenL),bf(),w(n.parenR)),zt(),e!=null){const t=a.tokens.length;a.scopes.push(new It(e,t,!1)),a.scopeDepth--}}k(n._finally)&&zt()}function wn(e){_(),_o(!1,e),Te()}function vf(){_(),Gn(),rt(!1)}function wf(){_()}function _f(){rt(!0)}function Sf(e){ue?Sp(e):xe?jh(e):Te()}function zt(e=!1,t=0){const r=a.tokens.length;a.scopeDepth++,w(n.braceL),t&&(a.tokens[a.tokens.length-1].contextId=t),Yn(n.braceR),t&&(a.tokens[a.tokens.length-1].contextId=t);const s=a.tokens.length;a.scopes.push(new It(r,s,e)),a.scopeDepth--}function Yn(e){for(;!k(e)&&!a.error;)rt(!0)}function ys(){w(n.semi),p(n.semi)||qe(),w(n.semi),p(n.parenR)||qe(),w(n.parenR),rt(!1)}function ta(e){e?Be(m._of):_(),qe(),w(n.parenR),rt(!1)}function _o(e,t){for(;;){if(If(t),k(n.eq)){const r=a.tokens.length-1;Ue(e),a.tokens[r].rhsEndIndex=a.tokens.length}if(!k(n.comma))break}}function If(e){zn(e),ue?Ap():xe&&Yh()}function rr(e,t,r=!1){p(n.star)&&_(),t&&!r&&!p(n.name)&&!p(n._yield)&&re();let s=null;p(n.name)&&(t||(s=a.tokens.length,a.scopeDepth++),Wt(!1));const i=a.tokens.length;a.scopeDepth++,Cr(),po(e);const o=a.tokens.length;a.scopes.push(new It(i,o,!0)),a.scopeDepth--,s!==null&&(a.scopes.push(new It(s,o,!0)),a.scopeDepth--)}function Cr(e=!1,t=0){ue?Tp():xe&&Xh(),w(n.parenL),t&&(a.tokens[a.tokens.length-1].contextId=t),Ks(n.parenR,!1,!1,e,t),t&&(a.tokens[a.tokens.length-1].contextId=t)}function nr(e,t=!1){const r=Jr();_(),a.tokens[a.tokens.length-1].contextId=r,a.tokens[a.tokens.length-1].isExpression=!e;let s=null;e||(s=a.tokens.length,a.scopeDepth++),Af(e,t),Pf();const i=a.tokens.length;if(Ef(r),!a.error&&(a.tokens[i].contextId=r,a.tokens[a.tokens.length-1].contextId=r,s!==null)){const o=a.tokens.length;a.scopes.push(new It(s,o,!1)),a.scopeDepth--}}function So(){return p(n.eq)||p(n.semi)||p(n.braceR)||p(n.bang)||p(n.colon)}function Io(){return p(n.parenL)||p(n.lessThan)}function Ef(e){for(w(n.braceL);!k(n.braceR)&&!a.error;){if(k(n.semi))continue;if(p(n.at)){vo();continue}const t=a.start;Cf(t,e)}}function Cf(e,t){ue&&Qs([m._declare,m._public,m._protected,m._private,m._override]);let r=!1;if(p(n.name)&&a.contextualKeyword===m._static){if(Z(),Io()){zr(e,!1);return}else if(So()){_n();return}if(a.tokens[a.tokens.length-1].type=n._static,r=!0,p(n.braceL)){a.tokens[a.tokens.length-1].contextId=t,zt();return}}Tf(e,r,t)}function Tf(e,t,r){if(ue&&_p(t))return;if(k(n.star)){qr(r),zr(e,!1);return}qr(r);let s=!1;const i=a.tokens[a.tokens.length-1];i.contextualKeyword===m._constructor&&(s=!0),ra(),Io()?zr(e,s):So()?_n():i.contextualKeyword===m._async&&!wt()?(a.tokens[a.tokens.length-1].type=n._async,p(n.star)&&_(),qr(r),ra(),zr(e,!1)):(i.contextualKeyword===m._get||i.contextualKeyword===m._set)&&!(wt()&&p(n.star))?(i.contextualKeyword===m._get?a.tokens[a.tokens.length-1].type=n._get:a.tokens[a.tokens.length-1].type=n._set,qr(r),zr(e,!1)):i.contextualKeyword===m._accessor&&!wt()?(qr(r),_n()):wt()?_n():re()}function zr(e,t){ue?ir():xe&&p(n.lessThan)&&mt(),Ms(e,t)}function qr(e){tn(e)}function ra(){if(ue){const e=ae(0);k(n.question),ie(e)}}function _n(){if(ue?(Ca(n.bang),Ir()):xe&&p(n.colon)&&ar(),p(n.eq)){const e=a.tokens.length;_(),Ue(),a.tokens[e].rhsEndIndex=a.tokens.length}Te()}function Af(e,t=!1){ue&&(!e||t)&&q(m._implements)||(p(n.name)&&Wt(!0),ue?ir():xe&&p(n.lessThan)&&mt())}function Pf(){let e=!1;k(n._extends)?(oo(),e=!0):e=!1,ue?Ep(e):xe&&Uh(e)}function Eo(){const e=a.tokens.length-1;ue&&kp()||(Df()?Of():Lf()?(Z(),p(n.comma)&&Re()===n.star?(w(n.comma),w(n.star),Oe(m._as),Z()):Co(),nn()):k(n._default)?Nf():jf()?Rf():(xi(),nn()),a.tokens[e].rhsEndIndex=a.tokens.length)}function Nf(){if(ue&&vp()||xe&&Mh())return;const e=a.start;k(n._function)?rr(e,!0,!0):q(m._async)&&Re()===n._function?(Be(m._async),k(n._function),rr(e,!0,!0)):p(n._class)?nr(!0,!0):p(n.at)?(gi(),nr(!0,!0)):(Ue(),Te())}function Rf(){ue?Ip():xe?$h():rt(!0)}function Lf(){if(ue&&to())return!1;if(xe&&Bh())return!1;if(p(n.name))return a.contextualKeyword!==m._async;if(!p(n._default))return!1;const e=Gs(),t=cn(),r=t.type===n.name&&t.contextualKeyword===m._from;if(t.type===n.comma)return!0;if(r){const s=R.charCodeAt(Ta(e+4));return s===g.quotationMark||s===g.apostrophe}return!1}function Co(){k(n.comma)&&xi()}function nn(){Be(m._from)&&(Lt(),Ao()),Te()}function Df(){return xe?Vh():p(n.star)}function Of(){xe?qh():Bs()}function Bs(){w(n.star),q(m._as)?Mf():nn()}function Mf(){_(),a.tokens[a.tokens.length-1].type=n._as,Z(),Co(),nn()}function jf(){return ue&&to()||xe&&Fh()||a.type===n._var||a.type===n._const||a.type===n._let||a.type===n._function||a.type===n._class||q(m._async)||p(n.at)}function xi(){let e=!0;for(w(n.braceL);!k(n.braceR)&&!a.error;){if(e)e=!1;else if(w(n.comma),k(n.braceR))break;Ff()}}function Ff(){if(ue){yp();return}Z(),a.tokens[a.tokens.length-1].identifierRole=X.ExportAccess,Be(m._as)&&Z()}function Bf(){const e=a.snapshot();return Oe(m._module),Be(m._from)?q(m._from)?(a.restoreFromSnapshot(e),!0):(a.restoreFromSnapshot(e),!1):p(n.comma)?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function $f(){q(m._module)&&Bf()&&_()}function To(){if(ue&&p(n.name)&&Re()===n.eq){Ls();return}if(ue&&q(m._type)){const e=cn();if(e.type===n.name&&e.contextualKeyword!==m._from){if(Oe(m._type),Re()===n.eq){Ls();return}}else(e.type===n.star||e.type===n.braceL)&&Oe(m._type)}p(n.string)||($f(),qf(),Oe(m._from)),Lt(),Ao(),Te()}function Vf(){return p(n.name)}function na(){Cn()}function qf(){xe&&Wh();let e=!0;if(!(Vf()&&(na(),!k(n.comma)))){if(p(n.star)){_(),Oe(m._as),na();return}for(w(n.braceL);!k(n.braceR)&&!a.error;){if(e)e=!1;else if(k(n.colon)&&re("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),w(n.comma),k(n.braceR))break;Uf()}}}function Uf(){if(ue){bp();return}if(xe){Gh();return}Cn(),q(m._as)&&(a.tokens[a.tokens.length-1].identifierRole=X.ImportAccess,_(),Cn())}function Ao(){(p(n._with)||q(m._assert)&&!Xe())&&(_(),oi(!1,!1))}function zf(){return a.pos===0&&R.charCodeAt(0)===g.numberSign&&R.charCodeAt(1)===g.exclamationMark&&Na(2),Pa(),sf()}class Hf{constructor(t,r){this.tokens=t,this.scopes=r}}function Wf(e,t,r,s){if(s&&r)throw new Error("Cannot combine flow and typescript plugins.");dl(e,t,r,s);const i=zf();if(a.error)throw pl(a.error);return i}function Gf(e){let t=e.currentIndex(),r=0;const s=e.currentToken();do{const i=e.tokens[t];if(i.isOptionalChainStart&&r++,i.isOptionalChainEnd&&r--,r+=i.numNullishCoalesceStarts,r-=i.numNullishCoalesceEnds,i.contextualKeyword===m._await&&i.identifierRole==null&&i.scopeDepth===s.scopeDepth)return!0;t+=1}while(r>0&&t<e.tokens.length);return!1}class Wr{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,r,s,i,o){this.code=t,this.tokens=r,this.isFlowEnabled=s,this.disableESTransforms=i,this.helperManager=o,Wr.prototype.__init.call(this),Wr.prototype.__init2.call(this),Wr.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(t){this.resultCode=t.resultCode,this.tokenIndex=t.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(t){const r=this.resultCode.slice(t.resultCode.length);return this.resultCode=t.resultCode,r}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(t,r){return this.matches1AtIndex(t,n.name)&&this.tokens[t].contextualKeyword===r}identifierNameAtIndex(t){return this.identifierNameForToken(this.tokens[t])}identifierNameAtRelativeIndex(t){return this.identifierNameForToken(this.tokenAtRelativeIndex(t))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(t){return this.code.slice(t.start,t.end)}rawCodeForToken(t){return this.code.slice(t.start,t.end)}stringValueAtIndex(t){return this.stringValueForToken(this.tokens[t])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(t){return this.code.slice(t.start+1,t.end-1)}matches1AtIndex(t,r){return this.tokens[t].type===r}matches2AtIndex(t,r,s){return this.tokens[t].type===r&&this.tokens[t+1].type===s}matches3AtIndex(t,r,s,i){return this.tokens[t].type===r&&this.tokens[t+1].type===s&&this.tokens[t+2].type===i}matches1(t){return this.tokens[this.tokenIndex].type===t}matches2(t,r){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r}matches3(t,r,s){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s}matches4(t,r,s,i){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i}matches5(t,r,s,i,o){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i&&this.tokens[this.tokenIndex+4].type===o}matchesContextual(t){return this.matchesContextualAtIndex(this.tokenIndex,t)}matchesContextIdAndLabel(t,r){return this.matches1(t)&&this.currentToken().contextId===r}previousWhitespaceAndComments(){let t=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(t=t.replace(/@flow/g,"")),t}replaceToken(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(t){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let t=0;for(;!this.isAtEnd();){if(this.matches1(n.braceL))t++;else if(this.matches1(n.braceR)){if(t===0)return;t--}this.removeToken()}}copyExpectedToken(t){if(this.tokens[this.tokenIndex].type!==t)throw new Error(`Expected token ${t}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=t,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const t=this.currentToken();if((t.numNullishCoalesceStarts||t.isOptionalChainStart)&&(t.isAsyncOperation=Gf(this)),!this.disableESTransforms){if(t.numNullishCoalesceStarts)for(let r=0;r<t.numNullishCoalesceStarts;r++)t.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";t.isOptionalChainStart&&(t.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===n._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let r=0;r<t.numNullishCoalesceEnds;r++)this.resultCode+="))"}appendCode(t){this.resultCode+=t}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const t=this.currentToken();return this.code.slice(t.start,t.end)}tokenAtRelativeIndex(t){return this.tokens[this.tokenIndex+t]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Xf(e,t,r,s){const i=t.snapshot(),o=Yf(t);let c=[];const u=[],f=[];let h=null;const d=[],x=[],y=t.currentToken().contextId;if(y==null)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(n.braceR,y);)if(t.matchesContextual(m._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:c,constructorInsertPos:h}=sa(t));else if(t.matches1(n.semi))s||x.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{const b=t.currentIndex();let N=!1,O=!1,F=!1;for(;Ln(t.currentToken());)t.matches1(n._static)&&(N=!0),t.matches1(n.hash)&&(O=!0),(t.matches1(n._declare)||t.matches1(n._abstract))&&(F=!0),t.nextToken();if(N&&t.matches1(n.braceL)){vs(t,y);continue}if(O){vs(t,y);continue}if(t.matchesContextual(m._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:c,constructorInsertPos:h}=sa(t));continue}const ee=t.currentIndex();if(Kf(t),t.matches1(n.lessThan)||t.matches1(n.parenL)){vs(t,y);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(n.eq)){const P=t.currentIndex(),D=t.currentToken().rhsEndIndex;if(D==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<D;)e.processToken();let j;N?(j=r.claimFreeName("__initStatic"),f.push(j)):(j=r.claimFreeName("__init"),u.push(j)),d.push({initializerName:j,equalsIndex:P,start:ee,end:t.currentIndex()})}else(!s||F)&&x.push({start:b,end:t.currentIndex()})}return t.restoreToSnapshot(i),s?{headerInfo:o,constructorInitializerStatements:c,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:h,fields:[],rangesToRemove:x}:{headerInfo:o,constructorInitializerStatements:c,instanceInitializerNames:u,staticInitializerNames:f,constructorInsertPos:h,fields:d,rangesToRemove:x}}function vs(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;Ln(e.tokenAtRelativeIndex(-1));)e.previousToken()}function Yf(e){const t=e.currentToken(),r=t.contextId;if(r==null)throw new Error("Expected context ID on class token.");const s=t.isExpression;if(s==null)throw new Error("Expected isExpression on class token.");let i=null,o=!1;for(e.nextToken(),e.matches1(n.name)&&(i=e.identifierName());!e.matchesContextIdAndLabel(n.braceL,r);)e.matches1(n._extends)&&!e.currentToken().isType&&(o=!0),e.nextToken();return{isExpression:s,className:i,hasSuperclass:o}}function sa(e){const t=[];e.nextToken();const r=e.currentToken().contextId;if(r==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(n.parenR,r);)if(e.currentToken().contextId===r){if(e.nextToken(),Ln(e.currentToken())){for(e.nextToken();Ln(e.currentToken());)e.nextToken();const o=e.currentToken();if(o.type!==n.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const c=e.identifierNameForToken(o);t.push(`this.${c} = ${c}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let s=e.currentIndex(),i=!1;for(;!e.matchesContextIdAndLabel(n.braceR,r);){if(!i&&e.matches2(n._super,n.parenL)){e.nextToken();const o=e.currentToken().contextId;if(o==null)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(n.parenR,o);)e.nextToken();s=e.currentIndex(),i=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:s}}function Ln(e){return[n._async,n._get,n._set,n.plus,n.minus,n._readonly,n._static,n._public,n._private,n._protected,n._override,n._abstract,n.star,n._declare,n.hash].includes(e.type)}function Kf(e){if(e.matches1(n.bracketL)){const r=e.currentToken().contextId;if(r==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(n.bracketR,r);)e.nextToken();e.nextToken()}else e.nextToken()}function Po(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(n.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(n.dot);)e.removeToken(),e.removeToken()}const No={typeDeclarations:new Set,valueDeclarations:new Set};function Ro(e){const t=new Set,r=new Set;for(let s=0;s<e.tokens.length;s++){const i=e.tokens[s];i.type===n.name&&Ea(i)&&(i.isType?t.add(e.identifierNameForToken(i)):r.add(e.identifierNameForToken(i)))}return{typeDeclarations:t,valueDeclarations:r}}function Lo(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,n.braceR);)t++;return e.matchesContextualAtIndex(t+1,m._from)&&e.matches1AtIndex(t+2,n.string)}function Zt(e){(e.matches2(n._with,n.braceL)||e.matches2(n.name,n.braceL)&&e.matchesContextual(m._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function Do(e,t,r,s){if(!e||t)return!1;const i=r.currentToken();if(i.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const o=i.rhsEndIndex-r.currentIndex();if(o!==3&&!(o===4&&r.matches1AtIndex(i.rhsEndIndex-1,n.semi)))return!1;const c=r.tokenAtRelativeIndex(2);if(c.type!==n.name)return!1;const u=r.identifierNameForToken(c);return s.typeDeclarations.has(u)&&!s.valueDeclarations.has(u)}class Gr extends dt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,r,s,i,o,c,u,f,h,d,x,y){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.nameManager=i,this.helperManager=o,this.reactHotLoaderTransformer=c,this.enableLegacyBabel5ModuleInterop=u,this.enableLegacyTypeScriptModuleInterop=f,this.isTypeScriptTransformEnabled=h,this.isFlowTransformEnabled=d,this.preserveDynamicImport=x,this.keepUnusedImports=y,Gr.prototype.__init.call(this),Gr.prototype.__init2.call(this),Gr.prototype.__init3.call(this),this.declarationInfo=h?Ro(r):No}getPrefixCode(){let t="";return this.hadExport&&(t+='Object.defineProperty(exports, "__esModule", {value: true});'),t}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
172
172
  module.exports = exports.default;
173
- `:""}process(){return this.tokens.matches3(n._import,n.name,n.eq)?this.processImportEquals():this.tokens.matches1(n._import)?(this.processImport(),!0):this.tokens.matches2(n._export,n.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(n._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(n.name,n.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(n.name)||this.tokens.matches1(n.jsxName)?this.processIdentifier():this.tokens.matches1(n.eq)?this.processAssignment():this.tokens.matches1(n.assign)?this.processComplexAssignment():this.tokens.matches1(n.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(t)?Po(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(n._import,n.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const r=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${r}require`);const s=this.tokens.currentToken().contextId;if(s==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(n.parenR,s);)this.rootTransformer.processToken();this.tokens.replaceToken(r?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const r=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(r)),this.tokens.appendCode(this.importProcessor.claimImportCode(r))}Jt(this.tokens),this.tokens.matches1(n.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(d._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(n.name)||this.tokens.matches1(n.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(n.string))return!1;let t=!1,r=!1;for(;!this.tokens.matches1(n.string);)(!t&&this.tokens.matches1(n.braceL)||this.tokens.matches1(n.comma))&&(this.tokens.removeToken(),this.tokens.matches1(n.braceR)||(r=!0),(this.tokens.matches2(n.name,n.comma)||this.tokens.matches2(n.name,n.braceR)||this.tokens.matches4(n.name,n.name,n.name,n.comma)||this.tokens.matches4(n.name,n.name,n.name,n.braceR))&&(t=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?r&&!t:!1}removeRemainingImport(){for(;!this.tokens.matches1(n.string);)this.tokens.removeToken()}processIdentifier(){const t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===X.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==X.Access)return!1;const r=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!r)return!1;let s=this.tokens.currentIndex()+1;for(;s<this.tokens.tokens.length&&this.tokens.tokens[s].type===n.parenR;)s++;return this.tokens.tokens[s].type===n.parenL?this.tokens.tokenAtRelativeIndex(1).type===n.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==n._new?(this.tokens.replaceToken(`${r}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR)):this.tokens.replaceToken(`(0, ${r})`):this.tokens.replaceToken(r),!0}processObjectShorthand(){const t=this.tokens.identifierName(),r=this.importProcessor.getIdentifierReplacement(t);return r?(this.tokens.replaceToken(`${t}: ${r}`),!0):!1}processExport(){if(this.tokens.matches2(n._export,n._enum)||this.tokens.matches3(n._export,n._const,n._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(n._export,n._default))return this.tokens.matches3(n._export,n._default,n._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(n._export,n.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(n._export,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(n.braceL)){for(;!this.tokens.matches1(n.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(n._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(d._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Jt(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(n._export,n._var)||this.tokens.matches2(n._export,n._let)||this.tokens.matches2(n._export,n._const))return this.processExportVar(),!0;if(this.tokens.matches2(n._export,n._function)||this.tokens.matches3(n._export,n.name,n._function))return this.processExportFunction(),!0;if(this.tokens.matches2(n._export,n._class)||this.tokens.matches3(n._export,n._abstract,n._class)||this.tokens.matches2(n._export,n.at))return this.processExportClass(),!0;if(this.tokens.matches2(n._export,n.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t-1];if(r.isType||r.type!==n.name||r.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,n.dot)||t>=2&&[n._var,n._let,n._const].includes(this.tokens.tokens[t-2].type))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(r));return s?(this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),!0):!1}processComplexAssignment(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t-1];if(r.type!==n.name||r.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,n.dot))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(r));return s?(this.tokens.appendCode(` = ${s}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t+1];if(r.type!==n.name||r.shadowsGlobal||t+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(t+2,n.dot)||this.tokens.matches1AtIndex(t+2,n.bracketL)||this.tokens.matches1AtIndex(t+2,n.parenL)))return!1;const s=this.tokens.identifierNameForToken(r),i=this.importProcessor.resolveExportBinding(s);return i?(this.tokens.appendCode(`${i} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t],s=this.tokens.tokens[t+1];if(r.type!==n.name||r.shadowsGlobal||t>=1&&this.tokens.matches1AtIndex(t-1,n.dot))return!1;const i=this.tokens.identifierNameForToken(r),o=this.importProcessor.resolveExportBinding(i);if(!o)return!1;const c=this.tokens.rawCodeForToken(s),u=this.importProcessor.getIdentifierReplacement(i)||i;if(c==="++")this.tokens.replaceToken(`(${u} = ${o} = ${u} + 1, ${u} - 1)`);else if(c==="--")this.tokens.replaceToken(`(${u} = ${o} = ${u} - 1, ${u} + 1)`);else throw new Error(`Unexpected operator: ${c}`);return this.tokens.removeToken(),!0}processExportDefault(){let t=!0;if(this.tokens.matches4(n._export,n._default,n._function,n.name)||this.tokens.matches5(n._export,n._default,n.name,n._function,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const r=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${r};`)}else if(this.tokens.matches4(n._export,n._default,n._class,n.name)||this.tokens.matches5(n._export,n._default,n._abstract,n._class,n.name)||this.tokens.matches3(n._export,n._default,n.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(n._abstract)&&this.tokens.removeToken();const r=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${r};`)}else if(Do(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))t=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const r=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${r}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${r} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(r)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");t&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(n.at);)if(this.tokens.copyToken(),this.tokens.matches1(n.parenL))this.tokens.copyExpectedToken(n.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR);else{for(this.tokens.copyExpectedToken(n.name);this.tokens.matches1(n.dot);)this.tokens.copyExpectedToken(n.dot),this.tokens.copyExpectedToken(n.name);this.tokens.matches1(n.parenL)&&(this.tokens.copyExpectedToken(n.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let t=this.tokens.currentIndex();if(t++,t++,!this.tokens.matches1AtIndex(t,n.name))return!1;for(t++;t<this.tokens.tokens.length&&this.tokens.tokens[t].isType;)t++;return!!this.tokens.matches1AtIndex(t,n.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const t=this.tokens.identifierName();for(;!this.tokens.matches1(n.eq);)this.rootTransformer.processToken();const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${t} = ${t}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.matches1(n.braceL);t&&this.tokens.appendCode("(");let r=0;for(;;)if(this.tokens.matches1(n.braceL)||this.tokens.matches1(n.dollarBraceL)||this.tokens.matches1(n.bracketL))r++,this.tokens.copyToken();else if(this.tokens.matches1(n.braceR)||this.tokens.matches1(n.bracketR))r--,this.tokens.copyToken();else{if(r===0&&!this.tokens.matches1(n.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(n.eq)){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken()}else{const s=this.tokens.currentToken();if(Ia(s)){const i=this.tokens.identifierName();let o=this.importProcessor.getIdentifierReplacement(i);if(o===null)throw new Error(`Expected a replacement for ${i} in \`export var\` syntax.`);bl(s)&&(o=`${i}: ${o}`),this.tokens.replaceToken(o)}else this.rootTransformer.processToken()}}if(t){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const t=this.processNamedFunction();this.tokens.appendCode(` exports.${t} = ${t};`)}processNamedFunction(){if(this.tokens.matches1(n._function))this.tokens.copyToken();else if(this.tokens.matches2(n.name,n._function)){if(!this.tokens.matchesContextual(d._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(n.star)&&this.tokens.copyToken(),!this.tokens.matches1(n.name))throw new Error("Expected identifier for exported function name.");const t=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(n.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(n.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.braceR),t}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(n._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${t} = ${t};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=Lo(this.tokens),r=[];for(;;){if(this.tokens.matches1(n.braceR)){this.tokens.removeToken();break}const s=Qr(this.tokens);for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();if(!(s.isType||!t&&this.shouldElideExportedIdentifier(s.leftName))){const o=s.rightName;o==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const c=s.leftName,u=this.importProcessor.getIdentifierReplacement(c);r.push(`exports.${o} = ${u||c};`)}if(this.tokens.matches1(n.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(n.comma,n.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(n.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(d._from)){this.tokens.removeToken();const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),Jt(this.tokens)}else this.tokens.appendCode(r.join(" "));this.tokens.matches1(n.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(n.string);)this.tokens.removeToken();const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),Jt(this.tokens),this.tokens.matches1(n.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(t)}}class Kf extends dt{constructor(t,r,s,i,o,c,u,h){super(),this.tokens=t,this.nameManager=r,this.helperManager=s,this.reactHotLoaderTransformer=i,this.isTypeScriptTransformEnabled=o,this.isFlowTransformEnabled=c,this.keepUnusedImports=u,this.nonTypeIdentifiers=o&&!u?Va(t,h):new Set,this.declarationInfo=o&&!u?Ro(t):No,this.injectCreateRequireForImportRequire=!!h.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(n._import,n.name,n.eq))return this.processImportEquals();if(this.tokens.matches4(n._import,n.name,n.name,n.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._type)){this.tokens.removeInitialToken();for(let t=0;t<7;t++)this.tokens.removeToken();return!0}if(this.tokens.matches2(n._export,n.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(n._export,n._import,n.name,n.name,n.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._type)){this.tokens.removeInitialToken();for(let t=0;t<8;t++)this.tokens.removeToken();return!0}if(this.tokens.matches1(n._import))return this.processImport();if(this.tokens.matches2(n._export,n._default))return this.processExportDefault();if(this.tokens.matches2(n._export,n.braceL))return this.processNamedExports();if(this.tokens.matches2(n._export,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(n.braceL)){for(;!this.tokens.matches1(n.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(n._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(d._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Jt(this.tokens)),!0}return!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(t)?Po(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(n._import,n.parenL))return!1;const t=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(t);!this.tokens.matches1(n.string);)this.tokens.removeToken();this.tokens.removeToken(),Jt(this.tokens),this.tokens.matches1(n.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(n._import),this.tokens.matchesContextual(d._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._from))return!0;if(this.tokens.matches1(n.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(d._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._from)&&this.tokens.copyToken();let t=!1,r=!1,s=!1;if(this.tokens.matches1(n.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(n.comma)&&this.tokens.removeToken()):(t=!0,this.tokens.copyToken(),this.tokens.matches1(n.comma)&&(s=!0,this.tokens.removeToken()))),this.tokens.matches1(n.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(s&&this.tokens.appendCode(","),t=!0,this.tokens.copyExpectedToken(n.star),this.tokens.copyExpectedToken(n.name),this.tokens.copyExpectedToken(n.name));else if(this.tokens.matches1(n.braceL)){for(s&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(n.braceR);){r=!0;const i=Qr(this.tokens);if(i.isType||this.shouldAutomaticallyElideImportedName(i.rightName)){for(;this.tokens.currentIndex()<i.endIndex;)this.tokens.removeToken();this.tokens.matches1(n.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<i.endIndex;)this.tokens.copyToken();this.tokens.matches1(n.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(n.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?r&&!t:!1}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}processExportDefault(){if(Do(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(n._export,n._default,n._function,n.name)||this.tokens.matches5(n._export,n._default,n.name,n._function,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._async)||this.tokens.matches4(n._export,n._default,n._class,n.name)||this.tokens.matches5(n._export,n._default,n._abstract,n._class,n.name))&&this.reactHotLoaderTransformer){const r=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${r}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${r} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(r),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(n._export),this.tokens.copyExpectedToken(n.braceL);const t=Lo(this.tokens);let r=!1;for(;!this.tokens.matches1(n.braceR);){const s=Qr(this.tokens);if(s.isType||!t&&this.shouldElideExportedName(s.leftName)){for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();this.tokens.matches1(n.comma)&&this.tokens.removeToken()}else{for(r=!0;this.tokens.currentIndex()<s.endIndex;)this.tokens.copyToken();this.tokens.matches1(n.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(n.braceR),!this.keepUnusedImports&&t&&!r&&(this.tokens.removeToken(),this.tokens.removeToken(),Jt(this.tokens)),!0}shouldElideExportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(t)&&!this.declarationInfo.valueDeclarations.has(t)}}class Qf extends dt{constructor(t,r,s){super(),this.rootTransformer=t,this.tokens=r,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(n._enum)?(this.processEnum(),!0):this.tokens.matches2(n._export,n._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(n._export,n._default,n._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${t} = ${t};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${t};`):this.tokens.appendCode(` export default ${t};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(n.name);let t=!1;this.tokens.matchesContextual(d._of)&&(this.tokens.removeToken(),t=this.tokens.matchesContextual(d._symbol),this.tokens.removeToken());const r=this.tokens.matches3(n.braceL,n.name,n.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const s=!t&&!r;for(this.tokens.replaceTokenTrimmingLeftWhitespace(s?".Mirrored([":"({");!this.tokens.matches1(n.braceR);){if(this.tokens.matches1(n.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(t,r),this.tokens.matches1(n.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(s?"]);":"});")}processEnumElement(t,r){if(t){const s=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${s}")`)}else r?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function Jf(e){let t,r=e[0],s=1;for(;s<e.length;){const i=e[s],o=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=o(r)):(i==="call"||i==="optionalCall")&&(r=o((...c)=>r.call(t,...c)),t=void 0)}return r}const xn="jest",Zf=["mock","unmock","enableAutomock","disableAutomock"];class ki extends dt{__init(){this.hoistedFunctionNames=[]}constructor(t,r,s,i){super(),this.rootTransformer=t,this.tokens=r,this.nameManager=s,this.importProcessor=i,ki.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(n.name,n.dot,n.name,n.parenL)&&this.tokens.identifierName()===xn?Jf([this,"access",t=>t.importProcessor,"optionalAccess",t=>t.getGlobalNames,"call",t=>t(),"optionalAccess",t=>t.has,"call",t=>t(xn)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(t=>`${t}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let t=!1;for(;this.tokens.matches3(n.dot,n.name,n.parenL);){const r=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Zf.includes(r)){const i=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(i),this.tokens.replaceToken(`function ${i}(){${xn}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR),this.tokens.appendCode(";}"),t=!1}else t?this.tokens.copyToken():this.tokens.replaceToken(`${xn}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR),t=!0}return!0}}class ed extends dt{constructor(t){super(),this.tokens=t}process(){if(this.tokens.matches1(n.num)){const t=this.tokens.currentTokenCode();if(t.includes("_"))return this.tokens.replaceToken(t.replace(/_/g,"")),!0}return!1}}class td extends dt{constructor(t,r){super(),this.tokens=t,this.nameManager=r}process(){return this.tokens.matches2(n._catch,n.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class rd extends dt{constructor(t,r){super(),this.tokens=t,this.nameManager=r}process(){if(this.tokens.matches1(n.nullishCoalescing)){const s=this.tokens.currentToken();return this.tokens.tokens[s.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(n._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const r=this.tokens.currentToken().subscriptStartIndex;if(r!=null&&this.tokens.tokens[r].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==n._super){const s=this.nameManager.claimFreeName("_");let i;if(r>0&&this.tokens.matches1AtIndex(r-1,n._delete)&&this.isLastSubscriptInChain()?i=`${s} => delete ${s}`:i=`${s} => ${s}`,this.tokens.tokens[r].isAsyncOperation&&(i=`async ${i}`),this.tokens.matches2(n.questionDot,n.parenL)||this.tokens.matches2(n.questionDot,n.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${i}`);else if(this.tokens.matches2(n.questionDot,n.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}`);else if(this.tokens.matches1(n.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}.`);else if(this.tokens.matches1(n.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}.`);else if(this.tokens.matches1(n.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}[`);else if(this.tokens.matches1(n.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${i}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let t=0;for(let r=this.tokens.currentIndex()+1;;r++){if(r>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[r].isOptionalChainStart?t++:this.tokens.tokens[r].isOptionalChainEnd&&t--,t<0)return!0;if(t===0&&this.tokens.tokens[r].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let t=0,r=this.tokens.currentIndex()-1;for(;;){if(r<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[r].isOptionalChainStart?t--:this.tokens.tokens[r].isOptionalChainEnd&&t++,t<0)return!1;if(t===0&&this.tokens.tokens[r].subscriptStartIndex!=null)return this.tokens.tokens[r-1].type===n._super;r--}}}class nd extends dt{constructor(t,r,s,i){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.options=i}process(){const t=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const r=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return r?this.tokens.replaceToken(`(0, ${r})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}if(this.tokens.matches3(n.name,n.dot,n.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const r=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(r),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}return!1}tryProcessCreateClassCall(t){const r=this.findDisplayName(t);r&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(n.parenL),this.tokens.copyExpectedToken(n.braceL),this.tokens.appendCode(`displayName: '${r}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.braceR),this.tokens.copyExpectedToken(n.parenR))}findDisplayName(t){return t<2?null:this.tokens.matches2AtIndex(t-2,n.name,n.eq)?this.tokens.identifierNameAtIndex(t-2):t>=2&&this.tokens.tokens[t-2].identifierRole===X.ObjectKey?this.tokens.identifierNameAtIndex(t-2):this.tokens.matches2AtIndex(t-2,n._export,n._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const r=(this.options.filePath||"unknown").split("/"),s=r[r.length-1],i=s.lastIndexOf("."),o=i===-1?s:s.slice(0,i);return o==="index"&&r[r.length-2]?r[r.length-2]:o}classNeedsDisplayName(){let t=this.tokens.currentIndex();if(!this.tokens.matches2(n.parenL,n.braceL))return!1;const r=t+1,s=this.tokens.tokens[r].contextId;if(s==null)throw new Error("Expected non-null context ID on object open-brace.");for(;t<this.tokens.tokens.length;t++){const i=this.tokens.tokens[t];if(i.type===n.braceR&&i.contextId===s){t++;break}if(this.tokens.identifierNameAtIndex(t)==="displayName"&&this.tokens.tokens[t].identifierRole===X.ObjectKey&&i.contextId===s)return!1}if(t===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(t,n.parenR)||this.tokens.matches2AtIndex(t,n.comma,n.parenR)}}class bi extends dt{__init(){this.extractedDefaultExportName=null}constructor(t,r){super(),this.tokens=t,this.filePath=r,bi.prototype.__init.call(this)}setExtractedDefaultExportName(t){this.extractedDefaultExportName=t}getPrefixCode(){return`
173
+ `:""}process(){return this.tokens.matches3(n._import,n.name,n.eq)?this.processImportEquals():this.tokens.matches1(n._import)?(this.processImport(),!0):this.tokens.matches2(n._export,n.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(n._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(n.name,n.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(n.name)||this.tokens.matches1(n.jsxName)?this.processIdentifier():this.tokens.matches1(n.eq)?this.processAssignment():this.tokens.matches1(n.assign)?this.processComplexAssignment():this.tokens.matches1(n.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(t)?Po(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(n._import,n.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const r=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${r}require`);const s=this.tokens.currentToken().contextId;if(s==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(n.parenR,s);)this.rootTransformer.processToken();this.tokens.replaceToken(r?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const r=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(r)),this.tokens.appendCode(this.importProcessor.claimImportCode(r))}Zt(this.tokens),this.tokens.matches1(n.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(m._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(n.name)||this.tokens.matches1(n.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(n.string))return!1;let t=!1,r=!1;for(;!this.tokens.matches1(n.string);)(!t&&this.tokens.matches1(n.braceL)||this.tokens.matches1(n.comma))&&(this.tokens.removeToken(),this.tokens.matches1(n.braceR)||(r=!0),(this.tokens.matches2(n.name,n.comma)||this.tokens.matches2(n.name,n.braceR)||this.tokens.matches4(n.name,n.name,n.name,n.comma)||this.tokens.matches4(n.name,n.name,n.name,n.braceR))&&(t=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?r&&!t:!1}removeRemainingImport(){for(;!this.tokens.matches1(n.string);)this.tokens.removeToken()}processIdentifier(){const t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===X.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==X.Access)return!1;const r=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!r)return!1;let s=this.tokens.currentIndex()+1;for(;s<this.tokens.tokens.length&&this.tokens.tokens[s].type===n.parenR;)s++;return this.tokens.tokens[s].type===n.parenL?this.tokens.tokenAtRelativeIndex(1).type===n.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==n._new?(this.tokens.replaceToken(`${r}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR)):this.tokens.replaceToken(`(0, ${r})`):this.tokens.replaceToken(r),!0}processObjectShorthand(){const t=this.tokens.identifierName(),r=this.importProcessor.getIdentifierReplacement(t);return r?(this.tokens.replaceToken(`${t}: ${r}`),!0):!1}processExport(){if(this.tokens.matches2(n._export,n._enum)||this.tokens.matches3(n._export,n._const,n._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(n._export,n._default))return this.tokens.matches3(n._export,n._default,n._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(n._export,n.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(n._export,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(n.braceL)){for(;!this.tokens.matches1(n.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(n._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(m._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Zt(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(n._export,n._var)||this.tokens.matches2(n._export,n._let)||this.tokens.matches2(n._export,n._const))return this.processExportVar(),!0;if(this.tokens.matches2(n._export,n._function)||this.tokens.matches3(n._export,n.name,n._function))return this.processExportFunction(),!0;if(this.tokens.matches2(n._export,n._class)||this.tokens.matches3(n._export,n._abstract,n._class)||this.tokens.matches2(n._export,n.at))return this.processExportClass(),!0;if(this.tokens.matches2(n._export,n.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t-1];if(r.isType||r.type!==n.name||r.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,n.dot)||t>=2&&[n._var,n._let,n._const].includes(this.tokens.tokens[t-2].type))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(r));return s?(this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),!0):!1}processComplexAssignment(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t-1];if(r.type!==n.name||r.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,n.dot))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(r));return s?(this.tokens.appendCode(` = ${s}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t+1];if(r.type!==n.name||r.shadowsGlobal||t+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(t+2,n.dot)||this.tokens.matches1AtIndex(t+2,n.bracketL)||this.tokens.matches1AtIndex(t+2,n.parenL)))return!1;const s=this.tokens.identifierNameForToken(r),i=this.importProcessor.resolveExportBinding(s);return i?(this.tokens.appendCode(`${i} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t],s=this.tokens.tokens[t+1];if(r.type!==n.name||r.shadowsGlobal||t>=1&&this.tokens.matches1AtIndex(t-1,n.dot))return!1;const i=this.tokens.identifierNameForToken(r),o=this.importProcessor.resolveExportBinding(i);if(!o)return!1;const c=this.tokens.rawCodeForToken(s),u=this.importProcessor.getIdentifierReplacement(i)||i;if(c==="++")this.tokens.replaceToken(`(${u} = ${o} = ${u} + 1, ${u} - 1)`);else if(c==="--")this.tokens.replaceToken(`(${u} = ${o} = ${u} - 1, ${u} + 1)`);else throw new Error(`Unexpected operator: ${c}`);return this.tokens.removeToken(),!0}processExportDefault(){let t=!0;if(this.tokens.matches4(n._export,n._default,n._function,n.name)||this.tokens.matches5(n._export,n._default,n.name,n._function,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const r=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${r};`)}else if(this.tokens.matches4(n._export,n._default,n._class,n.name)||this.tokens.matches5(n._export,n._default,n._abstract,n._class,n.name)||this.tokens.matches3(n._export,n._default,n.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(n._abstract)&&this.tokens.removeToken();const r=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${r};`)}else if(Do(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))t=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const r=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${r}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${r} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(r)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");t&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(n.at);)if(this.tokens.copyToken(),this.tokens.matches1(n.parenL))this.tokens.copyExpectedToken(n.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR);else{for(this.tokens.copyExpectedToken(n.name);this.tokens.matches1(n.dot);)this.tokens.copyExpectedToken(n.dot),this.tokens.copyExpectedToken(n.name);this.tokens.matches1(n.parenL)&&(this.tokens.copyExpectedToken(n.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let t=this.tokens.currentIndex();if(t++,t++,!this.tokens.matches1AtIndex(t,n.name))return!1;for(t++;t<this.tokens.tokens.length&&this.tokens.tokens[t].isType;)t++;return!!this.tokens.matches1AtIndex(t,n.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const t=this.tokens.identifierName();for(;!this.tokens.matches1(n.eq);)this.rootTransformer.processToken();const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${t} = ${t}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.matches1(n.braceL);t&&this.tokens.appendCode("(");let r=0;for(;;)if(this.tokens.matches1(n.braceL)||this.tokens.matches1(n.dollarBraceL)||this.tokens.matches1(n.bracketL))r++,this.tokens.copyToken();else if(this.tokens.matches1(n.braceR)||this.tokens.matches1(n.bracketR))r--,this.tokens.copyToken();else{if(r===0&&!this.tokens.matches1(n.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(n.eq)){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken()}else{const s=this.tokens.currentToken();if(Ia(s)){const i=this.tokens.identifierName();let o=this.importProcessor.getIdentifierReplacement(i);if(o===null)throw new Error(`Expected a replacement for ${i} in \`export var\` syntax.`);yl(s)&&(o=`${i}: ${o}`),this.tokens.replaceToken(o)}else this.rootTransformer.processToken()}}if(t){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const t=this.processNamedFunction();this.tokens.appendCode(` exports.${t} = ${t};`)}processNamedFunction(){if(this.tokens.matches1(n._function))this.tokens.copyToken();else if(this.tokens.matches2(n.name,n._function)){if(!this.tokens.matchesContextual(m._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(n.star)&&this.tokens.copyToken(),!this.tokens.matches1(n.name))throw new Error("Expected identifier for exported function name.");const t=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(n.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(n.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.braceR),t}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(n._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${t} = ${t};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=Lo(this.tokens),r=[];for(;;){if(this.tokens.matches1(n.braceR)){this.tokens.removeToken();break}const s=Zr(this.tokens);for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();if(!(s.isType||!t&&this.shouldElideExportedIdentifier(s.leftName))){const o=s.rightName;o==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const c=s.leftName,u=this.importProcessor.getIdentifierReplacement(c);r.push(`exports.${o} = ${u||c};`)}if(this.tokens.matches1(n.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(n.comma,n.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(n.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(m._from)){this.tokens.removeToken();const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),Zt(this.tokens)}else this.tokens.appendCode(r.join(" "));this.tokens.matches1(n.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(n.string);)this.tokens.removeToken();const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),Zt(this.tokens),this.tokens.matches1(n.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(t)}}class Qf extends dt{constructor(t,r,s,i,o,c,u,f){super(),this.tokens=t,this.nameManager=r,this.helperManager=s,this.reactHotLoaderTransformer=i,this.isTypeScriptTransformEnabled=o,this.isFlowTransformEnabled=c,this.keepUnusedImports=u,this.nonTypeIdentifiers=o&&!u?$a(t,f):new Set,this.declarationInfo=o&&!u?Ro(t):No,this.injectCreateRequireForImportRequire=!!f.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(n._import,n.name,n.eq))return this.processImportEquals();if(this.tokens.matches4(n._import,n.name,n.name,n.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._type)){this.tokens.removeInitialToken();for(let t=0;t<7;t++)this.tokens.removeToken();return!0}if(this.tokens.matches2(n._export,n.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(n._export,n._import,n.name,n.name,n.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._type)){this.tokens.removeInitialToken();for(let t=0;t<8;t++)this.tokens.removeToken();return!0}if(this.tokens.matches1(n._import))return this.processImport();if(this.tokens.matches2(n._export,n._default))return this.processExportDefault();if(this.tokens.matches2(n._export,n.braceL))return this.processNamedExports();if(this.tokens.matches2(n._export,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(n.braceL)){for(;!this.tokens.matches1(n.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(n._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(m._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Zt(this.tokens)),!0}return!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(t)?Po(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(n._import,n.parenL))return!1;const t=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(t);!this.tokens.matches1(n.string);)this.tokens.removeToken();this.tokens.removeToken(),Zt(this.tokens),this.tokens.matches1(n.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(n._import),this.tokens.matchesContextual(m._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._from))return!0;if(this.tokens.matches1(n.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(m._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._from)&&this.tokens.copyToken();let t=!1,r=!1,s=!1;if(this.tokens.matches1(n.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(n.comma)&&this.tokens.removeToken()):(t=!0,this.tokens.copyToken(),this.tokens.matches1(n.comma)&&(s=!0,this.tokens.removeToken()))),this.tokens.matches1(n.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(s&&this.tokens.appendCode(","),t=!0,this.tokens.copyExpectedToken(n.star),this.tokens.copyExpectedToken(n.name),this.tokens.copyExpectedToken(n.name));else if(this.tokens.matches1(n.braceL)){for(s&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(n.braceR);){r=!0;const i=Zr(this.tokens);if(i.isType||this.shouldAutomaticallyElideImportedName(i.rightName)){for(;this.tokens.currentIndex()<i.endIndex;)this.tokens.removeToken();this.tokens.matches1(n.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<i.endIndex;)this.tokens.copyToken();this.tokens.matches1(n.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(n.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?r&&!t:!1}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}processExportDefault(){if(Do(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(n._export,n._default,n._function,n.name)||this.tokens.matches5(n._export,n._default,n.name,n._function,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._async)||this.tokens.matches4(n._export,n._default,n._class,n.name)||this.tokens.matches5(n._export,n._default,n._abstract,n._class,n.name))&&this.reactHotLoaderTransformer){const r=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${r}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${r} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(r),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(n._export),this.tokens.copyExpectedToken(n.braceL);const t=Lo(this.tokens);let r=!1;for(;!this.tokens.matches1(n.braceR);){const s=Zr(this.tokens);if(s.isType||!t&&this.shouldElideExportedName(s.leftName)){for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();this.tokens.matches1(n.comma)&&this.tokens.removeToken()}else{for(r=!0;this.tokens.currentIndex()<s.endIndex;)this.tokens.copyToken();this.tokens.matches1(n.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(n.braceR),!this.keepUnusedImports&&t&&!r&&(this.tokens.removeToken(),this.tokens.removeToken(),Zt(this.tokens)),!0}shouldElideExportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(t)&&!this.declarationInfo.valueDeclarations.has(t)}}class Jf extends dt{constructor(t,r,s){super(),this.rootTransformer=t,this.tokens=r,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(n._enum)?(this.processEnum(),!0):this.tokens.matches2(n._export,n._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(n._export,n._default,n._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${t} = ${t};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${t};`):this.tokens.appendCode(` export default ${t};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(n.name);let t=!1;this.tokens.matchesContextual(m._of)&&(this.tokens.removeToken(),t=this.tokens.matchesContextual(m._symbol),this.tokens.removeToken());const r=this.tokens.matches3(n.braceL,n.name,n.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const s=!t&&!r;for(this.tokens.replaceTokenTrimmingLeftWhitespace(s?".Mirrored([":"({");!this.tokens.matches1(n.braceR);){if(this.tokens.matches1(n.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(t,r),this.tokens.matches1(n.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(s?"]);":"});")}processEnumElement(t,r){if(t){const s=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${s}")`)}else r?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function Zf(e){let t,r=e[0],s=1;for(;s<e.length;){const i=e[s],o=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=o(r)):(i==="call"||i==="optionalCall")&&(r=o((...c)=>r.call(t,...c)),t=void 0)}return r}const bn="jest",ed=["mock","unmock","enableAutomock","disableAutomock"];class ki extends dt{__init(){this.hoistedFunctionNames=[]}constructor(t,r,s,i){super(),this.rootTransformer=t,this.tokens=r,this.nameManager=s,this.importProcessor=i,ki.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(n.name,n.dot,n.name,n.parenL)&&this.tokens.identifierName()===bn?Zf([this,"access",t=>t.importProcessor,"optionalAccess",t=>t.getGlobalNames,"call",t=>t(),"optionalAccess",t=>t.has,"call",t=>t(bn)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(t=>`${t}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let t=!1;for(;this.tokens.matches3(n.dot,n.name,n.parenL);){const r=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(ed.includes(r)){const i=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(i),this.tokens.replaceToken(`function ${i}(){${bn}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR),this.tokens.appendCode(";}"),t=!1}else t?this.tokens.copyToken():this.tokens.replaceToken(`${bn}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR),t=!0}return!0}}class td extends dt{constructor(t){super(),this.tokens=t}process(){if(this.tokens.matches1(n.num)){const t=this.tokens.currentTokenCode();if(t.includes("_"))return this.tokens.replaceToken(t.replace(/_/g,"")),!0}return!1}}class rd extends dt{constructor(t,r){super(),this.tokens=t,this.nameManager=r}process(){return this.tokens.matches2(n._catch,n.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class nd extends dt{constructor(t,r){super(),this.tokens=t,this.nameManager=r}process(){if(this.tokens.matches1(n.nullishCoalescing)){const s=this.tokens.currentToken();return this.tokens.tokens[s.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(n._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const r=this.tokens.currentToken().subscriptStartIndex;if(r!=null&&this.tokens.tokens[r].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==n._super){const s=this.nameManager.claimFreeName("_");let i;if(r>0&&this.tokens.matches1AtIndex(r-1,n._delete)&&this.isLastSubscriptInChain()?i=`${s} => delete ${s}`:i=`${s} => ${s}`,this.tokens.tokens[r].isAsyncOperation&&(i=`async ${i}`),this.tokens.matches2(n.questionDot,n.parenL)||this.tokens.matches2(n.questionDot,n.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${i}`);else if(this.tokens.matches2(n.questionDot,n.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}`);else if(this.tokens.matches1(n.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}.`);else if(this.tokens.matches1(n.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}.`);else if(this.tokens.matches1(n.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}[`);else if(this.tokens.matches1(n.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${i}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let t=0;for(let r=this.tokens.currentIndex()+1;;r++){if(r>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[r].isOptionalChainStart?t++:this.tokens.tokens[r].isOptionalChainEnd&&t--,t<0)return!0;if(t===0&&this.tokens.tokens[r].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let t=0,r=this.tokens.currentIndex()-1;for(;;){if(r<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[r].isOptionalChainStart?t--:this.tokens.tokens[r].isOptionalChainEnd&&t++,t<0)return!1;if(t===0&&this.tokens.tokens[r].subscriptStartIndex!=null)return this.tokens.tokens[r-1].type===n._super;r--}}}class sd extends dt{constructor(t,r,s,i){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.options=i}process(){const t=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const r=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return r?this.tokens.replaceToken(`(0, ${r})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}if(this.tokens.matches3(n.name,n.dot,n.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const r=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(r),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}return!1}tryProcessCreateClassCall(t){const r=this.findDisplayName(t);r&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(n.parenL),this.tokens.copyExpectedToken(n.braceL),this.tokens.appendCode(`displayName: '${r}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.braceR),this.tokens.copyExpectedToken(n.parenR))}findDisplayName(t){return t<2?null:this.tokens.matches2AtIndex(t-2,n.name,n.eq)?this.tokens.identifierNameAtIndex(t-2):t>=2&&this.tokens.tokens[t-2].identifierRole===X.ObjectKey?this.tokens.identifierNameAtIndex(t-2):this.tokens.matches2AtIndex(t-2,n._export,n._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const r=(this.options.filePath||"unknown").split("/"),s=r[r.length-1],i=s.lastIndexOf("."),o=i===-1?s:s.slice(0,i);return o==="index"&&r[r.length-2]?r[r.length-2]:o}classNeedsDisplayName(){let t=this.tokens.currentIndex();if(!this.tokens.matches2(n.parenL,n.braceL))return!1;const r=t+1,s=this.tokens.tokens[r].contextId;if(s==null)throw new Error("Expected non-null context ID on object open-brace.");for(;t<this.tokens.tokens.length;t++){const i=this.tokens.tokens[t];if(i.type===n.braceR&&i.contextId===s){t++;break}if(this.tokens.identifierNameAtIndex(t)==="displayName"&&this.tokens.tokens[t].identifierRole===X.ObjectKey&&i.contextId===s)return!1}if(t===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(t,n.parenR)||this.tokens.matches2AtIndex(t,n.comma,n.parenR)}}class bi extends dt{__init(){this.extractedDefaultExportName=null}constructor(t,r){super(),this.tokens=t,this.filePath=r,bi.prototype.__init.call(this)}setExtractedDefaultExportName(t){this.extractedDefaultExportName=t}getPrefixCode(){return`
174
174
  (function () {
175
175
  var enterModule = require('react-hot-loader').enterModule;
176
176
  enterModule && enterModule(module);
@@ -184,29 +184,29 @@ module.exports = exports.default;
184
184
  ${r.map(({variableName:s,uniqueLocalName:i})=>` reactHotLoader.register(${s}, "${i}", ${JSON.stringify(this.filePath||"")});`).join(`
185
185
  `)}
186
186
  leaveModule(module);
187
- })();`}process(){return!1}}const sd=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function ia(e){if(e.length===0||!sn[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!ft[e.charCodeAt(t)])return!1;return!sd.has(e)}class id extends dt{constructor(t,r,s){super(),this.rootTransformer=t,this.tokens=r,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(n._public)||this.tokens.matches1(n._protected)||this.tokens.matches1(n._private)||this.tokens.matches1(n._abstract)||this.tokens.matches1(n._readonly)||this.tokens.matches1(n._override)||this.tokens.matches1(n.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(n._enum)||this.tokens.matches2(n._const,n._enum)?(this.processEnum(),!0):this.tokens.matches2(n._export,n._enum)||this.tokens.matches3(n._export,n._const,n._enum)?(this.processEnum(!0),!0):!1}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(n._const)||this.tokens.matches1(n._enum);)this.tokens.removeToken();const r=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${r}; (function (${r})`),this.tokens.copyExpectedToken(n.braceL),this.processEnumBody(r),this.tokens.copyExpectedToken(n.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${r} || (exports.${r} = ${r} = {}));`):this.tokens.appendCode(`)(${r} || (${r} = {}));`)}processEnumBody(t){let r=null;for(;!this.tokens.matches1(n.braceR);){const{nameStringCode:s,variableName:i}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(n.eq,n.string,n.comma)||this.tokens.matches3(n.eq,n.string,n.braceR)?this.processStringLiteralEnumMember(t,s,i):this.tokens.matches1(n.eq)?this.processExplicitValueEnumMember(t,s,i):this.processImplicitValueEnumMember(t,s,i,r),this.tokens.matches1(n.comma)&&this.tokens.removeToken(),i!=null?r=i:r=`${t}[${s}]`}}extractEnumKeyInfo(t){if(t.type===n.name){const r=this.tokens.identifierNameForToken(t);return{nameStringCode:`"${r}"`,variableName:ia(r)?r:null}}else if(t.type===n.string){const r=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:ia(r)?r:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(t,r,s){s!=null?(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${r}] = ${s};`)):(this.tokens.appendCode(`${t}[${r}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(t,r,s){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected rhsEndIndex on enum assign.");if(s!=null){for(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${t}[${t}[${r}] = ${s}] = ${r};`)}else{for(this.tokens.appendCode(`${t}[${t}[${r}]`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${r};`)}}processImplicitValueEnumMember(t,r,s,i){let o=i!=null?`${i} + 1`:"0";s!=null&&(this.tokens.appendCode(`const ${s} = ${o}; `),o=s),this.tokens.appendCode(`${t}[${t}[${r}] = ${o}] = ${r};`)}}class Rn{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,r,s,i){Rn.prototype.__init.call(this),Rn.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;const{tokenProcessor:o,importProcessor:c}=t;this.tokens=o,this.isImportsTransformEnabled=r.includes("imports"),this.isReactHotLoaderTransformEnabled=r.includes("react-hot-loader"),this.disableESTransforms=!!i.disableESTransforms,i.disableESTransforms||(this.transformers.push(new rd(o,this.nameManager)),this.transformers.push(new ed(o)),this.transformers.push(new td(o,this.nameManager))),r.includes("jsx")&&(i.jsxRuntime!=="preserve"&&this.transformers.push(new Kt(this,o,c,this.nameManager,i)),this.transformers.push(new nd(this,o,c,i)));let u=null;if(r.includes("react-hot-loader")){if(!i.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");u=new bi(o,i.filePath),this.transformers.push(u)}if(r.includes("imports")){if(c===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new Hr(this,o,c,this.nameManager,this.helperManager,u,s,!!i.enableLegacyTypeScriptModuleInterop,r.includes("typescript"),r.includes("flow"),!!i.preserveDynamicImport,!!i.keepUnusedImports))}else this.transformers.push(new Kf(o,this.nameManager,this.helperManager,u,r.includes("typescript"),r.includes("flow"),!!i.keepUnusedImports,i));r.includes("flow")&&this.transformers.push(new Qf(this,o,r.includes("imports"))),r.includes("typescript")&&this.transformers.push(new id(this,o,r.includes("imports"))),r.includes("jest")&&this.transformers.push(new ki(this,o,this.nameManager,c))}transform(){this.tokens.reset(),this.processBalancedCode();let r=this.isImportsTransformEnabled?'"use strict";':"";for(const c of this.transformers)r+=c.getPrefixCode();r+=this.helperManager.emitHelpers(),r+=this.generatedVariables.map(c=>` var ${c};`).join("");for(const c of this.transformers)r+=c.getHoistedCode();let s="";for(const c of this.transformers)s+=c.getSuffixCode();const i=this.tokens.finish();let{code:o}=i;if(o.startsWith("#!")){let c=o.indexOf(`
187
+ })();`}process(){return!1}}const id=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function ia(e){if(e.length===0||!on[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!ft[e.charCodeAt(t)])return!1;return!id.has(e)}class ad extends dt{constructor(t,r,s){super(),this.rootTransformer=t,this.tokens=r,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(n._public)||this.tokens.matches1(n._protected)||this.tokens.matches1(n._private)||this.tokens.matches1(n._abstract)||this.tokens.matches1(n._readonly)||this.tokens.matches1(n._override)||this.tokens.matches1(n.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(n._enum)||this.tokens.matches2(n._const,n._enum)?(this.processEnum(),!0):this.tokens.matches2(n._export,n._enum)||this.tokens.matches3(n._export,n._const,n._enum)?(this.processEnum(!0),!0):!1}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(n._const)||this.tokens.matches1(n._enum);)this.tokens.removeToken();const r=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${r}; (function (${r})`),this.tokens.copyExpectedToken(n.braceL),this.processEnumBody(r),this.tokens.copyExpectedToken(n.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${r} || (exports.${r} = ${r} = {}));`):this.tokens.appendCode(`)(${r} || (${r} = {}));`)}processEnumBody(t){let r=null;for(;!this.tokens.matches1(n.braceR);){const{nameStringCode:s,variableName:i}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(n.eq,n.string,n.comma)||this.tokens.matches3(n.eq,n.string,n.braceR)?this.processStringLiteralEnumMember(t,s,i):this.tokens.matches1(n.eq)?this.processExplicitValueEnumMember(t,s,i):this.processImplicitValueEnumMember(t,s,i,r),this.tokens.matches1(n.comma)&&this.tokens.removeToken(),i!=null?r=i:r=`${t}[${s}]`}}extractEnumKeyInfo(t){if(t.type===n.name){const r=this.tokens.identifierNameForToken(t);return{nameStringCode:`"${r}"`,variableName:ia(r)?r:null}}else if(t.type===n.string){const r=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:ia(r)?r:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(t,r,s){s!=null?(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${r}] = ${s};`)):(this.tokens.appendCode(`${t}[${r}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(t,r,s){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected rhsEndIndex on enum assign.");if(s!=null){for(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${t}[${t}[${r}] = ${s}] = ${r};`)}else{for(this.tokens.appendCode(`${t}[${t}[${r}]`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${r};`)}}processImplicitValueEnumMember(t,r,s,i){let o=i!=null?`${i} + 1`:"0";s!=null&&(this.tokens.appendCode(`const ${s} = ${o}; `),o=s),this.tokens.appendCode(`${t}[${t}[${r}] = ${o}] = ${r};`)}}class Dn{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,r,s,i){Dn.prototype.__init.call(this),Dn.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;const{tokenProcessor:o,importProcessor:c}=t;this.tokens=o,this.isImportsTransformEnabled=r.includes("imports"),this.isReactHotLoaderTransformEnabled=r.includes("react-hot-loader"),this.disableESTransforms=!!i.disableESTransforms,i.disableESTransforms||(this.transformers.push(new nd(o,this.nameManager)),this.transformers.push(new td(o)),this.transformers.push(new rd(o,this.nameManager))),r.includes("jsx")&&(i.jsxRuntime!=="preserve"&&this.transformers.push(new Qt(this,o,c,this.nameManager,i)),this.transformers.push(new sd(this,o,c,i)));let u=null;if(r.includes("react-hot-loader")){if(!i.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");u=new bi(o,i.filePath),this.transformers.push(u)}if(r.includes("imports")){if(c===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new Gr(this,o,c,this.nameManager,this.helperManager,u,s,!!i.enableLegacyTypeScriptModuleInterop,r.includes("typescript"),r.includes("flow"),!!i.preserveDynamicImport,!!i.keepUnusedImports))}else this.transformers.push(new Qf(o,this.nameManager,this.helperManager,u,r.includes("typescript"),r.includes("flow"),!!i.keepUnusedImports,i));r.includes("flow")&&this.transformers.push(new Jf(this,o,r.includes("imports"))),r.includes("typescript")&&this.transformers.push(new ad(this,o,r.includes("imports"))),r.includes("jest")&&this.transformers.push(new ki(this,o,this.nameManager,c))}transform(){this.tokens.reset(),this.processBalancedCode();let r=this.isImportsTransformEnabled?'"use strict";':"";for(const c of this.transformers)r+=c.getPrefixCode();r+=this.helperManager.emitHelpers(),r+=this.generatedVariables.map(c=>` var ${c};`).join("");for(const c of this.transformers)r+=c.getHoistedCode();let s="";for(const c of this.transformers)s+=c.getSuffixCode();const i=this.tokens.finish();let{code:o}=i;if(o.startsWith("#!")){let c=o.indexOf(`
188
188
  `);return c===-1&&(c=o.length,o+=`
189
- `),{code:o.slice(0,c+1)+r+o.slice(c+1)+s,mappings:this.shiftMappings(i.mappings,r.length)}}else return{code:r+o+s,mappings:this.shiftMappings(i.mappings,r.length)}}processBalancedCode(){let t=0,r=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(n.braceL)||this.tokens.matches1(n.dollarBraceL))t++;else if(this.tokens.matches1(n.braceR)){if(t===0)return;t--}if(this.tokens.matches1(n.parenL))r++;else if(this.tokens.matches1(n.parenR)){if(r===0)return;r--}this.processToken()}}processToken(){if(this.tokens.matches1(n._class)){this.processClass();return}for(const t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(n._class,n.name))throw new Error("Expected identifier for exported class name.");const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){const t=Gf(this,this.tokens,this.nameManager,this.disableESTransforms),r=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0;let s=t.headerInfo.className;r&&(s=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const o=this.tokens.currentToken().contextId;if(o==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(n._class);!this.tokens.matchesContextIdAndLabel(n.braceL,o);)this.processToken();this.processClassBody(t,s);const c=t.staticInitializerNames.map(u=>`${s}.${u}()`);r?this.tokens.appendCode(`, ${c.map(u=>`${u}, `).join("")}${s})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${c.map(u=>`${u};`).join(" ")}`)}processClassBody(t,r){const{headerInfo:s,constructorInsertPos:i,constructorInitializerStatements:o,fields:c,instanceInitializerNames:u,rangesToRemove:h}=t;let f=0,m=0;const x=this.tokens.currentToken().contextId;if(x==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(n.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const _=o.length+u.length>0;if(i===null&&_){const y=this.makeConstructorInitCode(o,u,r);if(s.hasSuperclass){const L=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${L}) { super(...${L}); ${y}; }`)}else this.tokens.appendCode(`constructor() { ${y}; }`)}for(;!this.tokens.matchesContextIdAndLabel(n.braceR,x);)if(f<c.length&&this.tokens.currentIndex()===c[f].start){let y=!1;for(this.tokens.matches1(n.bracketL)?this.tokens.copyTokenWithPrefix(`${c[f].initializerName}() {this`):this.tokens.matches1(n.string)||this.tokens.matches1(n.num)?(this.tokens.copyTokenWithPrefix(`${c[f].initializerName}() {this[`),y=!0):this.tokens.copyTokenWithPrefix(`${c[f].initializerName}() {this.`);this.tokens.currentIndex()<c[f].end;)y&&this.tokens.currentIndex()===c[f].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),f++}else if(m<h.length&&this.tokens.currentIndex()>=h[m].start){for(this.tokens.currentIndex()<h[m].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<h[m].end;)this.tokens.removeToken();m++}else this.tokens.currentIndex()===i?(this.tokens.copyToken(),_&&this.tokens.appendCode(`;${this.makeConstructorInitCode(o,u,r)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(n.braceR)}makeConstructorInitCode(t,r,s){return[...t,...r.map(i=>`${s}.prototype.${i}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(n.parenR,n.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,n.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(d._async)&&!this.tokens.matches1(n._async))return!1;const t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==n.lessThan||!t.isType)return!1;let r=this.tokens.currentIndex()+1;for(;this.tokens.tokens[r].isType;)r++;if(this.tokens.matches1AtIndex(r,n.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<r;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(t,r){for(let s=0;s<t.length;s++){const i=t[s];i!==void 0&&(t[s]=i+r)}return t}}var ad={};(function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var t=`
190
- `,r="\r",s=function(){function i(o){this.string=o;for(var c=[0],u=0;u<o.length;)switch(o[u]){case t:u+=t.length,c.push(u);break;case r:u+=r.length,o[u]===t&&(u+=t.length),c.push(u);break;default:u++;break}this.offsets=c}return i.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var c=0,u=this.offsets;u[c+1]<=o;)c++;var h=o-u[c];return{line:c,column:h}},i.prototype.indexForLocation=function(o){var c=o.line,u=o.column;return c<0||c>=this.offsets.length||u<0||u>this.lengthOfLine(c)?null:this.offsets[c]+u},i.prototype.lengthOfLine=function(o){var c=this.offsets[o],u=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return u-c},i}();e.LinesAndColumns=s,e.default=s})(ad);function od(e){const t=new Set;for(let r=0;r<e.tokens.length;r++)e.matches1AtIndex(r,n._import)&&!e.matches3AtIndex(r,n._import,n.name,n.eq)&&cd(e,r,t);return t}function cd(e,t,r){t++,!e.matches1AtIndex(t,n.parenL)&&(e.matches1AtIndex(t,n.name)&&(r.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,n.comma)&&t++),e.matches1AtIndex(t,n.star)&&(t+=2,r.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,n.braceL)&&(t++,ld(e,t,r)))}function ld(e,t,r){for(;;){if(e.matches1AtIndex(t,n.braceR))return;const s=Qr(e,t);if(t=s.endIndex,s.isType||r.add(s.rightName),e.matches2AtIndex(t,n.comma,n.braceR))return;if(e.matches1AtIndex(t,n.braceR))return;if(e.matches1AtIndex(t,n.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function ud(e,t){Iu(t);try{const r=pd(e,t),i=new Rn(r,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform();let o={code:i.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");o={...o,sourceMap:pu(i,t.filePath,t.sourceMapOptions,e,r.tokenProcessor.tokens)}}return o}catch(r){throw t.filePath&&(r.message=`Error transforming ${t.filePath}: ${r.message}`),r}}function pd(e,t){const r=t.transforms.includes("jsx"),s=t.transforms.includes("typescript"),i=t.transforms.includes("flow"),o=t.disableESTransforms===!0,c=Hf(e,r,s,i),u=c.tokens,h=c.scopes,f=new Xs(e,u),m=new Sn(f),x=new zr(e,u,i,o,m),_=!!t.enableLegacyTypeScriptModuleInterop;let y=null;return t.transforms.includes("imports")?(y=new Qt(f,x,_,t,t.transforms.includes("typescript"),!!t.keepUnusedImports,m),y.preprocessTokens(),Hi(x,h,y.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&y.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&Hi(x,h,od(x)),{tokenProcessor:x,scopes:h,nameManager:f,importProcessor:y,helperManager:m}}var hd=[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],Oo=[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],fd="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Mo="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ws={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},_s="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",dd={5:_s,"5module":_s+" export import",6:_s+" const class extends export import super"},jo=/^in(stanceof)?$/,md=new RegExp("["+Mo+"]"),gd=new RegExp("["+Mo+fd+"]");function Vs(e,t){for(var r=65536,s=0;s<t.length;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function Et(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&md.test(String.fromCharCode(e)):t===!1?!1:Vs(e,Oo)}function Ht(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&gd.test(String.fromCharCode(e)):t===!1?!1:Vs(e,Oo)||Vs(e,hd)}var ge=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function nt(e,t){return new ge(e,{beforeExpr:!0,binop:t})}var st={beforeExpr:!0},Ke={startsExpr:!0},yi={};function fe(e,t){return t===void 0&&(t={}),t.keyword=e,yi[e]=new ge(e,t)}var l={num:new ge("num",Ke),regexp:new ge("regexp",Ke),string:new ge("string",Ke),name:new ge("name",Ke),privateId:new ge("privateId",Ke),eof:new ge("eof"),bracketL:new ge("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ge("]"),braceL:new ge("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ge("}"),parenL:new ge("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ge(")"),comma:new ge(",",st),semi:new ge(";",st),colon:new ge(":",st),dot:new ge("."),question:new ge("?",st),questionDot:new ge("?."),arrow:new ge("=>",st),template:new ge("template"),invalidTemplate:new ge("invalidTemplate"),ellipsis:new ge("...",st),backQuote:new ge("`",Ke),dollarBraceL:new ge("${",{beforeExpr:!0,startsExpr:!0}),eq:new ge("=",{beforeExpr:!0,isAssign:!0}),assign:new ge("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ge("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ge("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:nt("||",1),logicalAND:nt("&&",2),bitwiseOR:nt("|",3),bitwiseXOR:nt("^",4),bitwiseAND:nt("&",5),equality:nt("==/!=/===/!==",6),relational:nt("</>/<=/>=",7),bitShift:nt("<</>>/>>>",8),plusMin:new ge("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:nt("%",10),star:nt("*",10),slash:nt("/",10),starstar:new ge("**",{beforeExpr:!0}),coalesce:nt("??",1),_break:fe("break"),_case:fe("case",st),_catch:fe("catch"),_continue:fe("continue"),_debugger:fe("debugger"),_default:fe("default",st),_do:fe("do",{isLoop:!0,beforeExpr:!0}),_else:fe("else",st),_finally:fe("finally"),_for:fe("for",{isLoop:!0}),_function:fe("function",Ke),_if:fe("if"),_return:fe("return",st),_switch:fe("switch"),_throw:fe("throw",st),_try:fe("try"),_var:fe("var"),_const:fe("const"),_while:fe("while",{isLoop:!0}),_with:fe("with"),_new:fe("new",{beforeExpr:!0,startsExpr:!0}),_this:fe("this",Ke),_super:fe("super",Ke),_class:fe("class",Ke),_extends:fe("extends",st),_export:fe("export"),_import:fe("import",Ke),_null:fe("null",Ke),_true:fe("true",Ke),_false:fe("false",Ke),_in:fe("in",{beforeExpr:!0,binop:7}),_instanceof:fe("instanceof",{beforeExpr:!0,binop:7}),_typeof:fe("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:fe("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:fe("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Je=/\r\n?|\n|\u2028|\u2029/,xd=new RegExp(Je.source,"g");function Ir(e){return e===10||e===13||e===8232||e===8233}function Fo(e,t,r){r===void 0&&(r=e.length);for(var s=t;s<r;s++){var i=e.charCodeAt(s);if(Ir(i))return s<r-1&&i===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var Bo=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,He=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Vo=Object.prototype,kd=Vo.hasOwnProperty,bd=Vo.toString,Er=Object.hasOwn||function(e,t){return kd.call(e,t)},aa=Array.isArray||function(e){return bd.call(e)==="[object Array]"},oa=Object.create(null);function Vt(e){return oa[e]||(oa[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Lt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var yd=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,rn=function(t,r){this.line=t,this.column=r};rn.prototype.offset=function(t){return new rn(this.line,this.column+t)};var Xn=function(t,r,s){this.start=r,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function $o(e,t){for(var r=1,s=0;;){var i=Fo(e,s,t);if(i<0)return new rn(r,t-s);++r,s=i}}var $s={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ca=!1;function vd(e){var t={};for(var r in $s)t[r]=e&&Er(e,r)?e[r]:$s[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ca&&typeof console=="object"&&console.warn&&(ca=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
191
- Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),aa(t.onToken)){var s=t.onToken;t.onToken=function(i){return s.push(i)}}if(aa(t.onComment)&&(t.onComment=wd(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function wd(e,t){return function(r,s,i,o,c,u){var h={type:r?"Block":"Line",value:s,start:i,end:o};e.locations&&(h.loc=new Xn(this,c,u)),e.ranges&&(h.range=[i,o]),t.push(h)}}var nr=1,ar=2,vi=4,qo=8,wi=16,Uo=32,Yn=64,zo=128,or=256,pn=512,Ho=1024,Kn=nr|ar|or;function _i(e,t){return ar|(e?vi:0)|(t?qo:0)}var Ln=0,Si=1,Ot=2,Wo=3,Go=4,Xo=5,Ve=function(t,r,s){this.options=t=vd(t),this.sourceFile=t.sourceFile,this.keywords=Vt(dd[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var i="";t.allowReserved!==!0&&(i=ws[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(i+=" await")),this.reservedWords=Vt(i);var o=(i?i+" ":"")+ws.strict;this.reservedWordsStrict=Vt(o),this.reservedWordsStrictBind=Vt(o+" "+ws.strictBind),this.input=String(r),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
192
- `,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Je).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=l.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?ar:nr),this.regexpState=null,this.privateNameStack=[]},ot={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ve.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ot.inFunction.get=function(){return(this.currentVarScope().flags&ar)>0};ot.inGenerator.get=function(){return(this.currentVarScope().flags&qo)>0};ot.inAsync.get=function(){return(this.currentVarScope().flags&vi)>0};ot.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(or|pn))return!1;if(r&ar)return(r&vi)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ot.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&nr)};ot.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Yn)>0||this.options.allowSuperOutsideMethod};ot.allowDirectSuper.get=function(){return(this.currentThisScope().flags&zo)>0};ot.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ot.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(or|pn)||r&ar&&!(r&wi))return!0}return!1};ot.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&Ho||!this.inModule&&t&nr)};ot.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&or)>0};Ve.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var s=this,i=0;i<t.length;i++)s=t[i](s);return s};Ve.parse=function(t,r){return new this(r,t).parse()};Ve.parseExpressionAt=function(t,r,s){var i=new this(s,t,r);return i.nextToken(),i.parseExpression()};Ve.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(Ve.prototype,ot);var Ye=Ve.prototype,_d=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ye.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){He.lastIndex=e,e+=He.exec(this.input)[0].length;var t=_d.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){He.lastIndex=e+t[0].length;var r=He.exec(this.input),s=r.index+r[0].length,i=this.input.charAt(s);return i===";"||i==="}"||Je.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,He.lastIndex=e,e+=He.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ye.eat=function(e){return this.type===e?(this.next(),!0):!1};Ye.isContextual=function(e){return this.type===l.name&&this.value===e&&!this.containsEsc};Ye.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ye.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ye.canInsertSemicolon=function(){return this.type===l.eof||this.type===l.braceR||Je.test(this.input.slice(this.lastTokEnd,this.start))};Ye.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ye.semicolon=function(){!this.eat(l.semi)&&!this.insertSemicolon()&&this.unexpected()};Ye.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ye.expect=function(e){this.eat(e)||this.unexpected()};Ye.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Qn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ye.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};Ye.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,s=e.doubleProto;if(!t)return r>=0||s>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};Ye.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Ye.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var $=Ve.prototype;$.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==l.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var s=0,i=Object.keys(this.undefinedExports);s<i.length;s+=1){var o=i[s];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Ii={kind:"loop"},Sd={kind:"switch"};$.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;He.lastIndex=this.pos;var t=He.exec(this.input),r=this.pos+t[0].length,s=this.fullCharCodeAt(r);if(s===91||s===92)return!0;if(e)return!1;if(s===123)return!0;if(Et(s)){var i=r;do r+=s<=65535?1:2;while(Ht(s=this.fullCharCodeAt(r)));if(s===92)return!0;var o=this.input.slice(i,r);if(!jo.test(o))return!0}return!1};$.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;He.lastIndex=this.pos;var e=He.exec(this.input),t=this.pos+e[0].length,r;return!Je.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Ht(r=this.fullCharCodeAt(t+8))||r===92))};$.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;He.lastIndex=this.pos;var r=He.exec(this.input),s=this.pos+r[0].length;if(Je.test(this.input.slice(this.pos,s)))return!1;if(e){var i=s+5,o;if(this.input.slice(s,i)!=="using"||i===this.input.length||Ht(o=this.fullCharCodeAt(i))||o===92)return!1;He.lastIndex=i;var c=He.exec(this.input);if(s=i+c[0].length,c&&Je.test(this.input.slice(i,s)))return!1}var u=this.fullCharCodeAt(s);if(!Et(u)&&u!==92)return!1;var h=s;do s+=u<=65535?1:2;while(Ht(u=this.fullCharCodeAt(s)));if(u===92)return!0;var f=this.input.slice(h,s);return!(jo.test(f)||t&&f==="of")};$.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};$.isUsing=function(e){return this.isUsingKeyword(!1,e)};$.parseStatement=function(e,t,r){var s=this.type,i=this.startNode(),o;switch(this.isLet(e)&&(s=l._var,o="let"),s){case l._break:case l._continue:return this.parseBreakContinueStatement(i,s.keyword);case l._debugger:return this.parseDebuggerStatement(i);case l._do:return this.parseDoStatement(i);case l._for:return this.parseForStatement(i);case l._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case l._class:return e&&this.unexpected(),this.parseClass(i,!0);case l._if:return this.parseIfStatement(i);case l._return:return this.parseReturnStatement(i);case l._switch:return this.parseSwitchStatement(i);case l._throw:return this.parseThrowStatement(i);case l._try:return this.parseTryStatement(i);case l._const:case l._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(i,o);case l._while:return this.parseWhileStatement(i);case l._with:return this.parseWithStatement(i);case l.braceL:return this.parseBlock(!0,i);case l.semi:return this.parseEmptyStatement(i);case l._export:case l._import:if(this.options.ecmaVersion>10&&s===l._import){He.lastIndex=this.pos;var c=He.exec(this.input),u=this.pos+c[0].length,h=this.input.charCodeAt(u);if(h===40||h===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===l._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var f=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(f)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),f==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,f),this.semicolon(),this.finishNode(i,"VariableDeclaration");var m=this.value,x=this.parseExpression();return s===l.name&&x.type==="Identifier"&&this.eat(l.colon)?this.parseLabeledStatement(i,m,x,e):this.parseExpressionStatement(i,x)}};$.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(l.semi)||this.insertSemicolon()?e.label=null:this.type!==l.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var i=this.labels[s];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||e.label&&r))break}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};$.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};$.parseDoStatement=function(e){return this.next(),this.labels.push(Ii),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(l._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(l.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};$.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ii),this.enterScope(0),this.expect(l.parenL),this.type===l.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===l._var||this.type===l._const||r){var s=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(s,!0,i),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var o=this.isContextual("let"),c=!1,u=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(u){var h=this.startNode();return this.next(),u==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(h,!0,u),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(e,h,t)}var f=this.containsEsc,m=new Qn,x=this.start,_=t>-1?this.parseExprSubscripts(m,"await"):this.parseExpression(!0,m);return this.type===l._in||(c=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===l._in&&this.unexpected(t),e.await=!0):c&&this.options.ecmaVersion>=8&&(_.start===x&&!f&&_.type==="Identifier"&&_.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),o&&c&&this.raise(_.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(_,!1,m),this.checkLValPattern(_),this.parseForIn(e,_)):(this.checkExpressionErrors(m,!0),t>-1&&this.unexpected(t),this.parseFor(e,_))};$.parseForAfterInit=function(e,t,r){return(this.type===l._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===l._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))};$.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Wr|(r?0:qs),!1,t)};$.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(l._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};$.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(l.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};$.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(l.braceL),this.labels.push(Sd),this.enterScope(Ho);for(var t,r=!1;this.type!==l.braceR;)if(this.type===l._case||this.type===l._default){var s=this.type===l._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(l.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};$.parseThrowStatement=function(e){return this.next(),Je.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Id=[];$.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Uo:0),this.checkLValPattern(e,t?Go:Ot),this.expect(l.parenR),e};$.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===l._catch){var t=this.startNode();this.next(),this.eat(l.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(l._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};$.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};$.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ii),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};$.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};$.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};$.parseLabeledStatement=function(e,t,r,s){for(var i=0,o=this.labels;i<o.length;i+=1){var c=o[i];c.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===l._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var f=this.labels[h];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};$.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};$.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(l.braceL),e&&this.enterScope(0);this.type!==l.braceR;){var s=this.parseStatement(null);t.body.push(s)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};$.parseFor=function(e,t){return e.init=t,this.expect(l.semi),e.test=this.type===l.semi?null:this.parseExpression(),this.expect(l.semi),e.update=this.type===l.parenR?null:this.parseExpression(),this.expect(l.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};$.parseForIn=function(e,t){var r=this.type===l._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(l.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};$.parseVar=function(e,t,r,s){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(l.eq)?i.init=this.parseMaybeAssign(t):!s&&r==="const"&&!(this.type===l._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&(r==="using"||r==="await using")&&this.options.ecmaVersion>=17&&this.type!==l._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):!s&&i.id.type!=="Identifier"&&!(t&&(this.type===l._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(l.comma))break}return e};$.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Si:Ot,!1)};var Wr=1,qs=2,Yo=4;$.parseFunction=function(e,t,r,s,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===l.star&&t&qs&&this.unexpected(),e.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&Wr&&(e.id=t&Yo&&this.type!==l.name?null:this.parseIdent(),e.id&&!(t&qs)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Si:Ot:Wo));var o=this.yieldPos,c=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_i(e.async,e.generator)),t&Wr||(e.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=u,this.finishNode(e,t&Wr?"FunctionDeclaration":"FunctionExpression")};$.parseFunctionParams=function(e){this.expect(l.parenL),e.params=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};$.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(l.braceL);this.type!==l.braceR;){var c=this.parseClassElement(e.superClass!==null);c&&(i.body.push(c),c.type==="MethodDefinition"&&c.kind==="constructor"?(o&&this.raiseRecoverable(c.start,"Duplicate constructor in the same class"),o=!0):c.key&&c.key.type==="PrivateIdentifier"&&Ed(s,c)&&this.raiseRecoverable(c.key.start,"Identifier '#"+c.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};$.parseClassElement=function(e){if(this.eat(l.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),s="",i=!1,o=!1,c="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(l.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===l.star?u=!0:s="static"}if(r.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===l.star)&&!this.canInsertSemicolon()?o=!0:s="async"),!s&&(t>=9||!o)&&this.eat(l.star)&&(i=!0),!s&&!o&&!i){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?c=h:s=h)}if(s?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=s,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===l.parenL||c!=="method"||i||o){var f=!r.static&&Dn(r,"constructor"),m=f&&e;f&&c!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=f?"constructor":c,this.parseClassMethod(r,i,o,m)}else this.parseClassField(r);return r};$.isClassElementNameStart=function(){return this.type===l.name||this.type===l.privateId||this.type===l.num||this.type===l.string||this.type===l.bracketL||this.type.keyword};$.parseClassElementName=function(e){this.type===l.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};$.parseClassMethod=function(e,t,r,s){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&Dn(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,r,s);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};$.parseClassField=function(e){return Dn(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Dn(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(l.eq)?(this.enterScope(pn|Yn),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};$.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(or|Yn);this.type!==l.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};$.parseClassId=function(e,t){this.type===l.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Ot,!1)):(t===!0&&this.unexpected(),e.id=null)};$.parseClassSuper=function(e){e.superClass=this.eat(l._extends)?this.parseExprSubscripts(null,!1):null};$.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};$.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,i=s===0?null:this.privateNameStack[s-1],o=0;o<r.length;++o){var c=r[o];Er(t,c.name)||(i?i.used.push(c):this.raiseRecoverable(c.start,"Private field '#"+c.name+"' must be declared in an enclosing class"))}};function Ed(e,t){var r=t.key.name,s=e[r],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),s==="iget"&&i==="iset"||s==="iset"&&i==="iget"||s==="sget"&&i==="sset"||s==="sset"&&i==="sget"?(e[r]="true",!1):s?!0:(e[r]=i,!1)}function Dn(e,t){var r=e.computed,s=e.key;return!r&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}$.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};$.parseExport=function(e,t){if(this.next(),this.eat(l.star))return this.parseExportAllDeclaration(e,t);if(this.eat(l._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,s=e.specifiers;r<s.length;r+=1){var i=s[r];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};$.parseExportDeclaration=function(e){return this.parseStatement(null)};$.parseExportDefaultDeclaration=function(){var e;if(this.type===l._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Wr|Yo,!1,e)}else if(this.type===l._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var s=this.parseMaybeAssign();return this.semicolon(),s}};$.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Er(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};$.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var s=0,i=t.properties;s<i.length;s+=1){var o=i[s];this.checkPatternExport(e,o)}else if(r==="ArrayPattern")for(var c=0,u=t.elements;c<u.length;c+=1){var h=u[c];h&&this.checkPatternExport(e,h)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};$.checkVariableExport=function(e,t){if(e)for(var r=0,s=t;r<s.length;r+=1){var i=s[r];this.checkPatternExport(e,i.id)}};$.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};$.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};$.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(r)r=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;t.push(this.parseExportSpecifier(e))}return t};$.parseImport=function(e){return this.next(),this.type===l.string?(e.specifiers=Id,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};$.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Ot),this.finishNode(e,"ImportSpecifier")};$.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Ot),this.finishNode(e,"ImportDefaultSpecifier")};$.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Ot),this.finishNode(e,"ImportNamespaceSpecifier")};$.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===l.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return e;if(this.type===l.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;e.push(this.parseImportSpecifier())}return e};$.parseWithClause=function(){var e=[];if(!this.eat(l._with))return e;this.expect(l.braceL);for(var t={},r=!0;!this.eat(l.braceR);){if(r)r=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;var s=this.parseImportAttribute(),i=s.key.type==="Identifier"?s.key.name:s.key.value;Er(t,i)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(s)}return e};$.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===l.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(l.colon),this.type!==l.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};$.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===l.string){var e=this.parseLiteral(this.value);return yd.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};$.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};$.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var ct=Ve.prototype;ct.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];this.toAssignable(o,t),o.type==="RestElement"&&(o.argument.type==="ArrayPattern"||o.argument.type==="ObjectPattern")&&this.raise(o.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};ct.toAssignableList=function(e,t){for(var r=e.length,s=0;s<r;s++){var i=e[s];i&&this.toAssignable(i,t)}if(r){var o=e[r-1];this.options.ecmaVersion===6&&t&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return e};ct.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};ct.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==l.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};ct.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case l.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(l.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case l.braceL:return this.parseObj(!0)}return this.parseIdent()};ct.parseBindingList=function(e,t,r,s){for(var i=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(l.comma),t&&this.type===l.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===l.ellipsis){var c=this.parseRestBinding();this.parseBindingListItem(c),i.push(c),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(s))}return i};ct.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};ct.parseBindingListItem=function(e){return e};ct.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(l.eq))return r;var s=this.startNodeAt(e,t);return s.left=r,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")};ct.checkLValSimple=function(e,t,r){t===void 0&&(t=Ln);var s=t!==Ln;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===Ot&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(Er(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==Xo&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}};ct.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=Ln),e.type){case"ObjectPattern":for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];this.checkLValInnerPattern(o,t,r)}break;case"ArrayPattern":for(var c=0,u=e.elements;c<u.length;c+=1){var h=u[c];h&&this.checkLValInnerPattern(h,t,r)}break;default:this.checkLValSimple(e,t,r)}};ct.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=Ln),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var pt=function(t,r,s,i,o){this.token=t,this.isExpr=!!r,this.preserveSpace=!!s,this.override=i,this.generator=!!o},Pe={b_stat:new pt("{",!1),b_expr:new pt("{",!0),b_tmpl:new pt("${",!1),p_stat:new pt("(",!1),p_expr:new pt("(",!0),q_tmpl:new pt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new pt("function",!1),f_expr:new pt("function",!0),f_expr_gen:new pt("function",!0,!1,null,!0),f_gen:new pt("function",!1,!1,null,!0)},Cr=Ve.prototype;Cr.initialContext=function(){return[Pe.b_stat]};Cr.curContext=function(){return this.context[this.context.length-1]};Cr.braceIsBlock=function(e){var t=this.curContext();return t===Pe.f_expr||t===Pe.f_stat?!0:e===l.colon&&(t===Pe.b_stat||t===Pe.b_expr)?!t.isExpr:e===l._return||e===l.name&&this.exprAllowed?Je.test(this.input.slice(this.lastTokEnd,this.start)):e===l._else||e===l.semi||e===l.eof||e===l.parenR||e===l.arrow?!0:e===l.braceL?t===Pe.b_stat:e===l._var||e===l._const||e===l.name?!1:!this.exprAllowed};Cr.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Cr.updateContext=function(e){var t,r=this.type;r.keyword&&e===l.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};Cr.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};l.parenR.updateContext=l.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Pe.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};l.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Pe.b_stat:Pe.b_expr),this.exprAllowed=!0};l.dollarBraceL.updateContext=function(){this.context.push(Pe.b_tmpl),this.exprAllowed=!0};l.parenL.updateContext=function(e){var t=e===l._if||e===l._for||e===l._with||e===l._while;this.context.push(t?Pe.p_stat:Pe.p_expr),this.exprAllowed=!0};l.incDec.updateContext=function(){};l._function.updateContext=l._class.updateContext=function(e){e.beforeExpr&&e!==l._else&&!(e===l.semi&&this.curContext()!==Pe.p_stat)&&!(e===l._return&&Je.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===l.colon||e===l.braceL)&&this.curContext()===Pe.b_stat)?this.context.push(Pe.f_expr):this.context.push(Pe.f_stat),this.exprAllowed=!1};l.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};l.backQuote.updateContext=function(){this.curContext()===Pe.q_tmpl?this.context.pop():this.context.push(Pe.q_tmpl),this.exprAllowed=!1};l.star.updateContext=function(e){if(e===l._function){var t=this.context.length-1;this.context[t]===Pe.f_expr?this.context[t]=Pe.f_expr_gen:this.context[t]=Pe.f_gen}this.exprAllowed=!0};l.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==l.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var re=Ve.prototype;re.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s=e.key,i;switch(s.type){case"Identifier":i=s.name;break;case"Literal":i=String(s.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&o==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var c=t[i];if(c){var u;o==="init"?u=this.strict&&c.init||c.get||c.set:u=c.init||c[o],u&&this.raiseRecoverable(s.start,"Redefinition of property")}else c=t[i]={init:!1,get:!1,set:!1};c[o]=!0}};re.parseExpression=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===l.comma){var o=this.startNodeAt(r,s);for(o.expressions=[i];this.eat(l.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i};re.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,i=-1,o=-1,c=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,c=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Qn,s=!0);var u=this.start,h=this.startLoc;(this.type===l.parenL||this.type===l.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var f=this.parseMaybeConditional(e,t);if(r&&(f=r.call(this,f,u,h)),this.type.isAssign){var m=this.startNodeAt(u,h);return m.operator=this.value,this.type===l.eq&&(f=this.toAssignable(f,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=f.start&&(t.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(f):this.checkLValSimple(f),m.left=f,this.next(),m.right=this.parseMaybeAssign(e),c>-1&&(t.doubleProto=c),this.finishNode(m,"AssignmentExpression")}else s&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),f};re.parseMaybeConditional=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(l.question)){var o=this.startNodeAt(r,s);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(l.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i};re.parseExprOps=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,s,-1,e)};re.parseExprOp=function(e,t,r,s,i){var o=this.type.binop;if(o!=null&&(!i||this.type!==l._in)&&o>s){var c=this.type===l.logicalOR||this.type===l.logicalAND,u=this.type===l.coalesce;u&&(o=l.logicalAND.binop);var h=this.value;this.next();var f=this.start,m=this.startLoc,x=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),f,m,o,i),_=this.buildBinary(t,r,e,x,h,c||u);return(c&&this.type===l.coalesce||u&&(this.type===l.logicalOR||this.type===l.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(_,t,r,s,i)}return e};re.buildBinary=function(e,t,r,s,i,o){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var c=this.startNodeAt(e,t);return c.left=r,c.operator=i,c.right=s,this.finishNode(c,o?"LogicalExpression":"BinaryExpression")};re.parseMaybeUnary=function(e,t,r,s){var i=this.start,o=this.startLoc,c;if(this.isContextual("await")&&this.canAwait)c=this.parseAwait(s),t=!0;else if(this.type.prefix){var u=this.startNode(),h=this.type===l.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,h,s),this.checkExpressionErrors(e,!0),h?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&Ko(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&Us(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):t=!0,c=this.finishNode(u,h?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===l.privateId)(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),c=this.parsePrivateIdent(),this.type!==l._in&&this.unexpected();else{if(c=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return c;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(i,o);f.operator=this.value,f.prefix=!1,f.argument=c,this.checkLValSimple(c),this.next(),c=this.finishNode(f,"UpdateExpression")}}if(!r&&this.eat(l.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,o,c,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return c};function Ko(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ko(e.expression)}function Us(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Us(e.expression)||e.type==="ParenthesizedExpression"&&Us(e.expression)}re.parseExprSubscripts=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var o=this.parseSubscripts(i,r,s,!1,t);return e&&o.type==="MemberExpression"&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o};re.parseSubscripts=function(e,t,r,s,i){for(var o=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,c=!1;;){var u=this.parseSubscript(e,t,r,s,o,c,i);if(u.optional&&(c=!0),u===e||u.type==="ArrowFunctionExpression"){if(c){var h=this.startNodeAt(t,r);h.expression=u,u=this.finishNode(h,"ChainExpression")}return u}e=u}};re.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(l.arrow)};re.parseSubscriptAsyncArrow=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,s)};re.parseSubscript=function(e,t,r,s,i,o,c){var u=this.options.ecmaVersion>=11,h=u&&this.eat(l.questionDot);s&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(l.bracketL);if(f||h&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var m=this.startNodeAt(t,r);m.object=e,f?(m.property=this.parseExpression(),this.expect(l.bracketR)):this.type===l.privateId&&e.type!=="Super"?m.property=this.parsePrivateIdent():m.property=this.parseIdent(this.options.allowReserved!=="never"),m.computed=!!f,u&&(m.optional=h),e=this.finishNode(m,"MemberExpression")}else if(!s&&this.eat(l.parenL)){var x=new Qn,_=this.yieldPos,y=this.awaitPos,L=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var j=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,x);if(i&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=_,this.awaitPos=y,this.awaitIdentPos=L,this.parseSubscriptAsyncArrow(t,r,j,c);this.checkExpressionErrors(x,!0),this.yieldPos=_||this.yieldPos,this.awaitPos=y||this.awaitPos,this.awaitIdentPos=L||this.awaitIdentPos;var F=this.startNodeAt(t,r);F.callee=e,F.arguments=j,u&&(F.optional=h),e=this.finishNode(F,"CallExpression")}else if(this.type===l.backQuote){(h||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ne=this.startNodeAt(t,r);ne.tag=e,ne.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(ne,"TaggedTemplateExpression")}return e};re.parseExprAtom=function(e,t,r){this.type===l.slash&&this.readRegexp();var s,i=this.potentialArrowAt===this.start;switch(this.type){case l._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type===l.parenL&&!this.allowDirectSuper&&this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==l.dot&&this.type!==l.bracketL&&this.type!==l.parenL&&this.unexpected(),this.finishNode(s,"Super");case l._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case l.name:var o=this.start,c=this.startLoc,u=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(Pe.f_expr),this.parseFunction(this.startNodeAt(o,c),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(o,c),[h],!1,t);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===l.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(l.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,c),[h],!0,t)}return h;case l.regexp:var f=this.value;return s=this.parseLiteral(f.value),s.regex={pattern:f.pattern,flags:f.flags},s;case l.num:case l.string:return this.parseLiteral(this.value);case l._null:case l._true:case l._false:return s=this.startNode(),s.value=this.type===l._null?null:this.type===l._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case l.parenL:var m=this.start,x=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(x)&&(e.parenthesizedAssign=m),e.parenthesizedBind<0&&(e.parenthesizedBind=m)),x;case l.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(l.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case l.braceL:return this.overrideContext(Pe.b_expr),this.parseObj(!1,e);case l._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case l._class:return this.parseClass(this.startNode(),!1);case l._new:return this.parseNew();case l.backQuote:return this.parseTemplate();case l._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};re.parseExprAtomDefault=function(){this.unexpected()};re.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===l.parenL&&!e)return this.parseDynamicImport(t);if(this.type===l.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};re.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(l.parenR)?e.options=null:(this.expect(l.comma),this.afterTrailingComma(l.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(l.parenR)||(this.expect(l.comma),this.afterTrailingComma(l.parenR)||this.unexpected())));else if(!this.eat(l.parenR)){var t=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};re.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};re.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};re.parseParenExpression=function(){this.expect(l.parenL);var e=this.parseExpression();return this.expect(l.parenR),e};re.shouldParseArrow=function(e){return!this.canInsertSemicolon()};re.parseParenAndDistinguishExpression=function(e,t){var r=this.start,s=this.startLoc,i,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var c=this.start,u=this.startLoc,h=[],f=!0,m=!1,x=new Qn,_=this.yieldPos,y=this.awaitPos,L;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;)if(f?f=!1:this.expect(l.comma),o&&this.afterTrailingComma(l.parenR,!0)){m=!0;break}else if(this.type===l.ellipsis){L=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,x,this.parseParenItem));var j=this.lastTokEnd,F=this.lastTokEndLoc;if(this.expect(l.parenR),e&&this.shouldParseArrow(h)&&this.eat(l.arrow))return this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=_,this.awaitPos=y,this.parseParenArrowList(r,s,h,t);(!h.length||m)&&this.unexpected(this.lastTokStart),L&&this.unexpected(L),this.checkExpressionErrors(x,!0),this.yieldPos=_||this.yieldPos,this.awaitPos=y||this.awaitPos,h.length>1?(i=this.startNodeAt(c,u),i.expressions=h,this.finishNodeAt(i,"SequenceExpression",j,F)):i=h[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var ne=this.startNodeAt(r,s);return ne.expression=i,this.finishNode(ne,"ParenthesizedExpression")}else return i};re.parseParenItem=function(e){return e};re.parseParenArrowList=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,s)};var Cd=[];re.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===l.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,i,!0,!1),this.eat(l.parenL)?e.arguments=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Cd,this.finishNode(e,"NewExpression")};re.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===l.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
189
+ `),{code:o.slice(0,c+1)+r+o.slice(c+1)+s,mappings:this.shiftMappings(i.mappings,r.length)}}else return{code:r+o+s,mappings:this.shiftMappings(i.mappings,r.length)}}processBalancedCode(){let t=0,r=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(n.braceL)||this.tokens.matches1(n.dollarBraceL))t++;else if(this.tokens.matches1(n.braceR)){if(t===0)return;t--}if(this.tokens.matches1(n.parenL))r++;else if(this.tokens.matches1(n.parenR)){if(r===0)return;r--}this.processToken()}}processToken(){if(this.tokens.matches1(n._class)){this.processClass();return}for(const t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(n._class,n.name))throw new Error("Expected identifier for exported class name.");const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){const t=Xf(this,this.tokens,this.nameManager,this.disableESTransforms),r=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0;let s=t.headerInfo.className;r&&(s=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const o=this.tokens.currentToken().contextId;if(o==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(n._class);!this.tokens.matchesContextIdAndLabel(n.braceL,o);)this.processToken();this.processClassBody(t,s);const c=t.staticInitializerNames.map(u=>`${s}.${u}()`);r?this.tokens.appendCode(`, ${c.map(u=>`${u}, `).join("")}${s})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${c.map(u=>`${u};`).join(" ")}`)}processClassBody(t,r){const{headerInfo:s,constructorInsertPos:i,constructorInitializerStatements:o,fields:c,instanceInitializerNames:u,rangesToRemove:f}=t;let h=0,d=0;const x=this.tokens.currentToken().contextId;if(x==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(n.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const y=o.length+u.length>0;if(i===null&&y){const b=this.makeConstructorInitCode(o,u,r);if(s.hasSuperclass){const N=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${N}) { super(...${N}); ${b}; }`)}else this.tokens.appendCode(`constructor() { ${b}; }`)}for(;!this.tokens.matchesContextIdAndLabel(n.braceR,x);)if(h<c.length&&this.tokens.currentIndex()===c[h].start){let b=!1;for(this.tokens.matches1(n.bracketL)?this.tokens.copyTokenWithPrefix(`${c[h].initializerName}() {this`):this.tokens.matches1(n.string)||this.tokens.matches1(n.num)?(this.tokens.copyTokenWithPrefix(`${c[h].initializerName}() {this[`),b=!0):this.tokens.copyTokenWithPrefix(`${c[h].initializerName}() {this.`);this.tokens.currentIndex()<c[h].end;)b&&this.tokens.currentIndex()===c[h].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),h++}else if(d<f.length&&this.tokens.currentIndex()>=f[d].start){for(this.tokens.currentIndex()<f[d].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<f[d].end;)this.tokens.removeToken();d++}else this.tokens.currentIndex()===i?(this.tokens.copyToken(),y&&this.tokens.appendCode(`;${this.makeConstructorInitCode(o,u,r)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(n.braceR)}makeConstructorInitCode(t,r,s){return[...t,...r.map(i=>`${s}.prototype.${i}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(n.parenR,n.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,n.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(m._async)&&!this.tokens.matches1(n._async))return!1;const t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==n.lessThan||!t.isType)return!1;let r=this.tokens.currentIndex()+1;for(;this.tokens.tokens[r].isType;)r++;if(this.tokens.matches1AtIndex(r,n.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<r;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(t,r){for(let s=0;s<t.length;s++){const i=t[s];i!==void 0&&(t[s]=i+r)}return t}}var od={};(function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var t=`
190
+ `,r="\r",s=function(){function i(o){this.string=o;for(var c=[0],u=0;u<o.length;)switch(o[u]){case t:u+=t.length,c.push(u);break;case r:u+=r.length,o[u]===t&&(u+=t.length),c.push(u);break;default:u++;break}this.offsets=c}return i.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var c=0,u=this.offsets;u[c+1]<=o;)c++;var f=o-u[c];return{line:c,column:f}},i.prototype.indexForLocation=function(o){var c=o.line,u=o.column;return c<0||c>=this.offsets.length||u<0||u>this.lengthOfLine(c)?null:this.offsets[c]+u},i.prototype.lengthOfLine=function(o){var c=this.offsets[o],u=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return u-c},i}();e.LinesAndColumns=s,e.default=s})(od);function cd(e){const t=new Set;for(let r=0;r<e.tokens.length;r++)e.matches1AtIndex(r,n._import)&&!e.matches3AtIndex(r,n._import,n.name,n.eq)&&ld(e,r,t);return t}function ld(e,t,r){t++,!e.matches1AtIndex(t,n.parenL)&&(e.matches1AtIndex(t,n.name)&&(r.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,n.comma)&&t++),e.matches1AtIndex(t,n.star)&&(t+=2,r.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,n.braceL)&&(t++,ud(e,t,r)))}function ud(e,t,r){for(;;){if(e.matches1AtIndex(t,n.braceR))return;const s=Zr(e,t);if(t=s.endIndex,s.isType||r.add(s.rightName),e.matches2AtIndex(t,n.comma,n.braceR))return;if(e.matches1AtIndex(t,n.braceR))return;if(e.matches1AtIndex(t,n.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function pd(e,t){Eu(t);try{const r=hd(e,t),i=new Dn(r,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform();let o={code:i.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");o={...o,sourceMap:hu(i,t.filePath,t.sourceMapOptions,e,r.tokenProcessor.tokens)}}return o}catch(r){throw t.filePath&&(r.message=`Error transforming ${t.filePath}: ${r.message}`),r}}function hd(e,t){const r=t.transforms.includes("jsx"),s=t.transforms.includes("typescript"),i=t.transforms.includes("flow"),o=t.disableESTransforms===!0,c=Wf(e,r,s,i),u=c.tokens,f=c.scopes,h=new Xs(e,u),d=new En(h),x=new Wr(e,u,i,o,d),y=!!t.enableLegacyTypeScriptModuleInterop;let b=null;return t.transforms.includes("imports")?(b=new Jt(h,x,y,t,t.transforms.includes("typescript"),!!t.keepUnusedImports,d),b.preprocessTokens(),Hi(x,f,b.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&b.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&Hi(x,f,cd(x)),{tokenProcessor:x,scopes:f,nameManager:h,importProcessor:b,helperManager:d}}var fd=[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],Oo=[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],dd="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Mo="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ws={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},_s="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",md={5:_s,"5module":_s+" export import",6:_s+" const class extends export import super"},jo=/^in(stanceof)?$/,gd=new RegExp("["+Mo+"]"),xd=new RegExp("["+Mo+dd+"]");function $s(e,t){for(var r=65536,s=0;s<t.length;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function Ct(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&gd.test(String.fromCharCode(e)):t===!1?!1:$s(e,Oo)}function Ht(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&xd.test(String.fromCharCode(e)):t===!1?!1:$s(e,Oo)||$s(e,fd)}var ge=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function nt(e,t){return new ge(e,{beforeExpr:!0,binop:t})}var st={beforeExpr:!0},Ke={startsExpr:!0},yi={};function fe(e,t){return t===void 0&&(t={}),t.keyword=e,yi[e]=new ge(e,t)}var l={num:new ge("num",Ke),regexp:new ge("regexp",Ke),string:new ge("string",Ke),name:new ge("name",Ke),privateId:new ge("privateId",Ke),eof:new ge("eof"),bracketL:new ge("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ge("]"),braceL:new ge("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ge("}"),parenL:new ge("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ge(")"),comma:new ge(",",st),semi:new ge(";",st),colon:new ge(":",st),dot:new ge("."),question:new ge("?",st),questionDot:new ge("?."),arrow:new ge("=>",st),template:new ge("template"),invalidTemplate:new ge("invalidTemplate"),ellipsis:new ge("...",st),backQuote:new ge("`",Ke),dollarBraceL:new ge("${",{beforeExpr:!0,startsExpr:!0}),eq:new ge("=",{beforeExpr:!0,isAssign:!0}),assign:new ge("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ge("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ge("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:nt("||",1),logicalAND:nt("&&",2),bitwiseOR:nt("|",3),bitwiseXOR:nt("^",4),bitwiseAND:nt("&",5),equality:nt("==/!=/===/!==",6),relational:nt("</>/<=/>=",7),bitShift:nt("<</>>/>>>",8),plusMin:new ge("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:nt("%",10),star:nt("*",10),slash:nt("/",10),starstar:new ge("**",{beforeExpr:!0}),coalesce:nt("??",1),_break:fe("break"),_case:fe("case",st),_catch:fe("catch"),_continue:fe("continue"),_debugger:fe("debugger"),_default:fe("default",st),_do:fe("do",{isLoop:!0,beforeExpr:!0}),_else:fe("else",st),_finally:fe("finally"),_for:fe("for",{isLoop:!0}),_function:fe("function",Ke),_if:fe("if"),_return:fe("return",st),_switch:fe("switch"),_throw:fe("throw",st),_try:fe("try"),_var:fe("var"),_const:fe("const"),_while:fe("while",{isLoop:!0}),_with:fe("with"),_new:fe("new",{beforeExpr:!0,startsExpr:!0}),_this:fe("this",Ke),_super:fe("super",Ke),_class:fe("class",Ke),_extends:fe("extends",st),_export:fe("export"),_import:fe("import",Ke),_null:fe("null",Ke),_true:fe("true",Ke),_false:fe("false",Ke),_in:fe("in",{beforeExpr:!0,binop:7}),_instanceof:fe("instanceof",{beforeExpr:!0,binop:7}),_typeof:fe("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:fe("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:fe("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Je=/\r\n?|\n|\u2028|\u2029/,kd=new RegExp(Je.source,"g");function Tr(e){return e===10||e===13||e===8232||e===8233}function Fo(e,t,r){r===void 0&&(r=e.length);for(var s=t;s<r;s++){var i=e.charCodeAt(s);if(Tr(i))return s<r-1&&i===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var Bo=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,He=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,$o=Object.prototype,bd=$o.hasOwnProperty,yd=$o.toString,Ar=Object.hasOwn||function(e,t){return bd.call(e,t)},aa=Array.isArray||function(e){return yd.call(e)==="[object Array]"},oa=Object.create(null);function $t(e){return oa[e]||(oa[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Dt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var vd=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,sn=function(t,r){this.line=t,this.column=r};sn.prototype.offset=function(t){return new sn(this.line,this.column+t)};var Kn=function(t,r,s){this.start=r,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function Vo(e,t){for(var r=1,s=0;;){var i=Fo(e,s,t);if(i<0)return new sn(r,t-s);++r,s=i}}var Vs={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ca=!1;function wd(e){var t={};for(var r in Vs)t[r]=e&&Ar(e,r)?e[r]:Vs[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ca&&typeof console=="object"&&console.warn&&(ca=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
191
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),aa(t.onToken)){var s=t.onToken;t.onToken=function(i){return s.push(i)}}if(aa(t.onComment)&&(t.onComment=_d(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function _d(e,t){return function(r,s,i,o,c,u){var f={type:r?"Block":"Line",value:s,start:i,end:o};e.locations&&(f.loc=new Kn(this,c,u)),e.ranges&&(f.range=[i,o]),t.push(f)}}var sr=1,or=2,vi=4,qo=8,wi=16,Uo=32,Qn=64,zo=128,cr=256,fn=512,Ho=1024,Jn=sr|or|cr;function _i(e,t){return or|(e?vi:0)|(t?qo:0)}var On=0,Si=1,Mt=2,Wo=3,Go=4,Xo=5,$e=function(t,r,s){this.options=t=wd(t),this.sourceFile=t.sourceFile,this.keywords=$t(md[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var i="";t.allowReserved!==!0&&(i=ws[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(i+=" await")),this.reservedWords=$t(i);var o=(i?i+" ":"")+ws.strict;this.reservedWordsStrict=$t(o),this.reservedWordsStrictBind=$t(o+" "+ws.strictBind),this.input=String(r),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
192
+ `,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Je).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=l.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?or:sr),this.regexpState=null,this.privateNameStack=[]},ot={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};$e.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ot.inFunction.get=function(){return(this.currentVarScope().flags&or)>0};ot.inGenerator.get=function(){return(this.currentVarScope().flags&qo)>0};ot.inAsync.get=function(){return(this.currentVarScope().flags&vi)>0};ot.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(cr|fn))return!1;if(r&or)return(r&vi)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ot.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&sr)};ot.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Qn)>0||this.options.allowSuperOutsideMethod};ot.allowDirectSuper.get=function(){return(this.currentThisScope().flags&zo)>0};ot.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ot.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(cr|fn)||r&or&&!(r&wi))return!0}return!1};ot.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&Ho||!this.inModule&&t&sr)};ot.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&cr)>0};$e.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var s=this,i=0;i<t.length;i++)s=t[i](s);return s};$e.parse=function(t,r){return new this(r,t).parse()};$e.parseExpressionAt=function(t,r,s){var i=new this(s,t,r);return i.nextToken(),i.parseExpression()};$e.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties($e.prototype,ot);var Ye=$e.prototype,Sd=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ye.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){He.lastIndex=e,e+=He.exec(this.input)[0].length;var t=Sd.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){He.lastIndex=e+t[0].length;var r=He.exec(this.input),s=r.index+r[0].length,i=this.input.charAt(s);return i===";"||i==="}"||Je.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,He.lastIndex=e,e+=He.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ye.eat=function(e){return this.type===e?(this.next(),!0):!1};Ye.isContextual=function(e){return this.type===l.name&&this.value===e&&!this.containsEsc};Ye.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ye.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ye.canInsertSemicolon=function(){return this.type===l.eof||this.type===l.braceR||Je.test(this.input.slice(this.lastTokEnd,this.start))};Ye.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ye.semicolon=function(){!this.eat(l.semi)&&!this.insertSemicolon()&&this.unexpected()};Ye.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ye.expect=function(e){this.eat(e)||this.unexpected()};Ye.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Zn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ye.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};Ye.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,s=e.doubleProto;if(!t)return r>=0||s>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};Ye.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Ye.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var V=$e.prototype;V.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==l.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var s=0,i=Object.keys(this.undefinedExports);s<i.length;s+=1){var o=i[s];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Ii={kind:"loop"},Id={kind:"switch"};V.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;He.lastIndex=this.pos;var t=He.exec(this.input),r=this.pos+t[0].length,s=this.fullCharCodeAt(r);if(s===91||s===92)return!0;if(e)return!1;if(s===123)return!0;if(Ct(s)){var i=r;do r+=s<=65535?1:2;while(Ht(s=this.fullCharCodeAt(r)));if(s===92)return!0;var o=this.input.slice(i,r);if(!jo.test(o))return!0}return!1};V.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;He.lastIndex=this.pos;var e=He.exec(this.input),t=this.pos+e[0].length,r;return!Je.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Ht(r=this.fullCharCodeAt(t+8))||r===92))};V.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;He.lastIndex=this.pos;var r=He.exec(this.input),s=this.pos+r[0].length;if(Je.test(this.input.slice(this.pos,s)))return!1;if(e){var i=s+5,o;if(this.input.slice(s,i)!=="using"||i===this.input.length||Ht(o=this.fullCharCodeAt(i))||o===92)return!1;He.lastIndex=i;var c=He.exec(this.input);if(s=i+c[0].length,c&&Je.test(this.input.slice(i,s)))return!1}var u=this.fullCharCodeAt(s);if(!Ct(u)&&u!==92)return!1;var f=s;do s+=u<=65535?1:2;while(Ht(u=this.fullCharCodeAt(s)));if(u===92)return!0;var h=this.input.slice(f,s);return!(jo.test(h)||t&&h==="of")};V.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};V.isUsing=function(e){return this.isUsingKeyword(!1,e)};V.parseStatement=function(e,t,r){var s=this.type,i=this.startNode(),o;switch(this.isLet(e)&&(s=l._var,o="let"),s){case l._break:case l._continue:return this.parseBreakContinueStatement(i,s.keyword);case l._debugger:return this.parseDebuggerStatement(i);case l._do:return this.parseDoStatement(i);case l._for:return this.parseForStatement(i);case l._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case l._class:return e&&this.unexpected(),this.parseClass(i,!0);case l._if:return this.parseIfStatement(i);case l._return:return this.parseReturnStatement(i);case l._switch:return this.parseSwitchStatement(i);case l._throw:return this.parseThrowStatement(i);case l._try:return this.parseTryStatement(i);case l._const:case l._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(i,o);case l._while:return this.parseWhileStatement(i);case l._with:return this.parseWithStatement(i);case l.braceL:return this.parseBlock(!0,i);case l.semi:return this.parseEmptyStatement(i);case l._export:case l._import:if(this.options.ecmaVersion>10&&s===l._import){He.lastIndex=this.pos;var c=He.exec(this.input),u=this.pos+c[0].length,f=this.input.charCodeAt(u);if(f===40||f===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===l._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var h=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(h)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),h==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,h),this.semicolon(),this.finishNode(i,"VariableDeclaration");var d=this.value,x=this.parseExpression();return s===l.name&&x.type==="Identifier"&&this.eat(l.colon)?this.parseLabeledStatement(i,d,x,e):this.parseExpressionStatement(i,x)}};V.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(l.semi)||this.insertSemicolon()?e.label=null:this.type!==l.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var i=this.labels[s];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||e.label&&r))break}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};V.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};V.parseDoStatement=function(e){return this.next(),this.labels.push(Ii),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(l._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(l.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};V.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ii),this.enterScope(0),this.expect(l.parenL),this.type===l.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===l._var||this.type===l._const||r){var s=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(s,!0,i),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var o=this.isContextual("let"),c=!1,u=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(u){var f=this.startNode();return this.next(),u==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(f,!0,u),this.finishNode(f,"VariableDeclaration"),this.parseForAfterInit(e,f,t)}var h=this.containsEsc,d=new Zn,x=this.start,y=t>-1?this.parseExprSubscripts(d,"await"):this.parseExpression(!0,d);return this.type===l._in||(c=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===l._in&&this.unexpected(t),e.await=!0):c&&this.options.ecmaVersion>=8&&(y.start===x&&!h&&y.type==="Identifier"&&y.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),o&&c&&this.raise(y.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(y,!1,d),this.checkLValPattern(y),this.parseForIn(e,y)):(this.checkExpressionErrors(d,!0),t>-1&&this.unexpected(t),this.parseFor(e,y))};V.parseForAfterInit=function(e,t,r){return(this.type===l._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===l._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))};V.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Xr|(r?0:qs),!1,t)};V.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(l._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};V.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(l.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};V.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(l.braceL),this.labels.push(Id),this.enterScope(Ho);for(var t,r=!1;this.type!==l.braceR;)if(this.type===l._case||this.type===l._default){var s=this.type===l._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(l.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};V.parseThrowStatement=function(e){return this.next(),Je.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ed=[];V.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Uo:0),this.checkLValPattern(e,t?Go:Mt),this.expect(l.parenR),e};V.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===l._catch){var t=this.startNode();this.next(),this.eat(l.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(l._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};V.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};V.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ii),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};V.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};V.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};V.parseLabeledStatement=function(e,t,r,s){for(var i=0,o=this.labels;i<o.length;i+=1){var c=o[i];c.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===l._switch?"switch":null,f=this.labels.length-1;f>=0;f--){var h=this.labels[f];if(h.statementStart===e.start)h.statementStart=this.start,h.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};V.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};V.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(l.braceL),e&&this.enterScope(0);this.type!==l.braceR;){var s=this.parseStatement(null);t.body.push(s)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};V.parseFor=function(e,t){return e.init=t,this.expect(l.semi),e.test=this.type===l.semi?null:this.parseExpression(),this.expect(l.semi),e.update=this.type===l.parenR?null:this.parseExpression(),this.expect(l.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};V.parseForIn=function(e,t){var r=this.type===l._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(l.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};V.parseVar=function(e,t,r,s){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(l.eq)?i.init=this.parseMaybeAssign(t):!s&&r==="const"&&!(this.type===l._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&(r==="using"||r==="await using")&&this.options.ecmaVersion>=17&&this.type!==l._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):!s&&i.id.type!=="Identifier"&&!(t&&(this.type===l._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(l.comma))break}return e};V.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Si:Mt,!1)};var Xr=1,qs=2,Yo=4;V.parseFunction=function(e,t,r,s,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===l.star&&t&qs&&this.unexpected(),e.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&Xr&&(e.id=t&Yo&&this.type!==l.name?null:this.parseIdent(),e.id&&!(t&qs)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Si:Mt:Wo));var o=this.yieldPos,c=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_i(e.async,e.generator)),t&Xr||(e.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=u,this.finishNode(e,t&Xr?"FunctionDeclaration":"FunctionExpression")};V.parseFunctionParams=function(e){this.expect(l.parenL),e.params=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};V.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(l.braceL);this.type!==l.braceR;){var c=this.parseClassElement(e.superClass!==null);c&&(i.body.push(c),c.type==="MethodDefinition"&&c.kind==="constructor"?(o&&this.raiseRecoverable(c.start,"Duplicate constructor in the same class"),o=!0):c.key&&c.key.type==="PrivateIdentifier"&&Cd(s,c)&&this.raiseRecoverable(c.key.start,"Identifier '#"+c.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};V.parseClassElement=function(e){if(this.eat(l.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),s="",i=!1,o=!1,c="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(l.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===l.star?u=!0:s="static"}if(r.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===l.star)&&!this.canInsertSemicolon()?o=!0:s="async"),!s&&(t>=9||!o)&&this.eat(l.star)&&(i=!0),!s&&!o&&!i){var f=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?c=f:s=f)}if(s?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=s,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===l.parenL||c!=="method"||i||o){var h=!r.static&&Mn(r,"constructor"),d=h&&e;h&&c!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=h?"constructor":c,this.parseClassMethod(r,i,o,d)}else this.parseClassField(r);return r};V.isClassElementNameStart=function(){return this.type===l.name||this.type===l.privateId||this.type===l.num||this.type===l.string||this.type===l.bracketL||this.type.keyword};V.parseClassElementName=function(e){this.type===l.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};V.parseClassMethod=function(e,t,r,s){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&Mn(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,r,s);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};V.parseClassField=function(e){return Mn(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Mn(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(l.eq)?(this.enterScope(fn|Qn),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};V.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(cr|Qn);this.type!==l.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};V.parseClassId=function(e,t){this.type===l.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Mt,!1)):(t===!0&&this.unexpected(),e.id=null)};V.parseClassSuper=function(e){e.superClass=this.eat(l._extends)?this.parseExprSubscripts(null,!1):null};V.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};V.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,i=s===0?null:this.privateNameStack[s-1],o=0;o<r.length;++o){var c=r[o];Ar(t,c.name)||(i?i.used.push(c):this.raiseRecoverable(c.start,"Private field '#"+c.name+"' must be declared in an enclosing class"))}};function Cd(e,t){var r=t.key.name,s=e[r],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),s==="iget"&&i==="iset"||s==="iset"&&i==="iget"||s==="sget"&&i==="sset"||s==="sset"&&i==="sget"?(e[r]="true",!1):s?!0:(e[r]=i,!1)}function Mn(e,t){var r=e.computed,s=e.key;return!r&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}V.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};V.parseExport=function(e,t){if(this.next(),this.eat(l.star))return this.parseExportAllDeclaration(e,t);if(this.eat(l._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,s=e.specifiers;r<s.length;r+=1){var i=s[r];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};V.parseExportDeclaration=function(e){return this.parseStatement(null)};V.parseExportDefaultDeclaration=function(){var e;if(this.type===l._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Xr|Yo,!1,e)}else if(this.type===l._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var s=this.parseMaybeAssign();return this.semicolon(),s}};V.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Ar(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};V.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var s=0,i=t.properties;s<i.length;s+=1){var o=i[s];this.checkPatternExport(e,o)}else if(r==="ArrayPattern")for(var c=0,u=t.elements;c<u.length;c+=1){var f=u[c];f&&this.checkPatternExport(e,f)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};V.checkVariableExport=function(e,t){if(e)for(var r=0,s=t;r<s.length;r+=1){var i=s[r];this.checkPatternExport(e,i.id)}};V.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};V.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};V.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(r)r=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;t.push(this.parseExportSpecifier(e))}return t};V.parseImport=function(e){return this.next(),this.type===l.string?(e.specifiers=Ed,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};V.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Mt),this.finishNode(e,"ImportSpecifier")};V.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Mt),this.finishNode(e,"ImportDefaultSpecifier")};V.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Mt),this.finishNode(e,"ImportNamespaceSpecifier")};V.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===l.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return e;if(this.type===l.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;e.push(this.parseImportSpecifier())}return e};V.parseWithClause=function(){var e=[];if(!this.eat(l._with))return e;this.expect(l.braceL);for(var t={},r=!0;!this.eat(l.braceR);){if(r)r=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;var s=this.parseImportAttribute(),i=s.key.type==="Identifier"?s.key.name:s.key.value;Ar(t,i)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(s)}return e};V.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===l.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(l.colon),this.type!==l.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};V.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===l.string){var e=this.parseLiteral(this.value);return vd.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};V.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};V.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var ct=$e.prototype;ct.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];this.toAssignable(o,t),o.type==="RestElement"&&(o.argument.type==="ArrayPattern"||o.argument.type==="ObjectPattern")&&this.raise(o.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};ct.toAssignableList=function(e,t){for(var r=e.length,s=0;s<r;s++){var i=e[s];i&&this.toAssignable(i,t)}if(r){var o=e[r-1];this.options.ecmaVersion===6&&t&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return e};ct.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};ct.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==l.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};ct.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case l.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(l.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case l.braceL:return this.parseObj(!0)}return this.parseIdent()};ct.parseBindingList=function(e,t,r,s){for(var i=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(l.comma),t&&this.type===l.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===l.ellipsis){var c=this.parseRestBinding();this.parseBindingListItem(c),i.push(c),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(s))}return i};ct.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};ct.parseBindingListItem=function(e){return e};ct.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(l.eq))return r;var s=this.startNodeAt(e,t);return s.left=r,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")};ct.checkLValSimple=function(e,t,r){t===void 0&&(t=On);var s=t!==On;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===Mt&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(Ar(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==Xo&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}};ct.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=On),e.type){case"ObjectPattern":for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];this.checkLValInnerPattern(o,t,r)}break;case"ArrayPattern":for(var c=0,u=e.elements;c<u.length;c+=1){var f=u[c];f&&this.checkLValInnerPattern(f,t,r)}break;default:this.checkLValSimple(e,t,r)}};ct.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=On),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var pt=function(t,r,s,i,o){this.token=t,this.isExpr=!!r,this.preserveSpace=!!s,this.override=i,this.generator=!!o},Ne={b_stat:new pt("{",!1),b_expr:new pt("{",!0),b_tmpl:new pt("${",!1),p_stat:new pt("(",!1),p_expr:new pt("(",!0),q_tmpl:new pt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new pt("function",!1),f_expr:new pt("function",!0),f_expr_gen:new pt("function",!0,!1,null,!0),f_gen:new pt("function",!1,!1,null,!0)},Pr=$e.prototype;Pr.initialContext=function(){return[Ne.b_stat]};Pr.curContext=function(){return this.context[this.context.length-1]};Pr.braceIsBlock=function(e){var t=this.curContext();return t===Ne.f_expr||t===Ne.f_stat?!0:e===l.colon&&(t===Ne.b_stat||t===Ne.b_expr)?!t.isExpr:e===l._return||e===l.name&&this.exprAllowed?Je.test(this.input.slice(this.lastTokEnd,this.start)):e===l._else||e===l.semi||e===l.eof||e===l.parenR||e===l.arrow?!0:e===l.braceL?t===Ne.b_stat:e===l._var||e===l._const||e===l.name?!1:!this.exprAllowed};Pr.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Pr.updateContext=function(e){var t,r=this.type;r.keyword&&e===l.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};Pr.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};l.parenR.updateContext=l.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Ne.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};l.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ne.b_stat:Ne.b_expr),this.exprAllowed=!0};l.dollarBraceL.updateContext=function(){this.context.push(Ne.b_tmpl),this.exprAllowed=!0};l.parenL.updateContext=function(e){var t=e===l._if||e===l._for||e===l._with||e===l._while;this.context.push(t?Ne.p_stat:Ne.p_expr),this.exprAllowed=!0};l.incDec.updateContext=function(){};l._function.updateContext=l._class.updateContext=function(e){e.beforeExpr&&e!==l._else&&!(e===l.semi&&this.curContext()!==Ne.p_stat)&&!(e===l._return&&Je.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===l.colon||e===l.braceL)&&this.curContext()===Ne.b_stat)?this.context.push(Ne.f_expr):this.context.push(Ne.f_stat),this.exprAllowed=!1};l.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};l.backQuote.updateContext=function(){this.curContext()===Ne.q_tmpl?this.context.pop():this.context.push(Ne.q_tmpl),this.exprAllowed=!1};l.star.updateContext=function(e){if(e===l._function){var t=this.context.length-1;this.context[t]===Ne.f_expr?this.context[t]=Ne.f_expr_gen:this.context[t]=Ne.f_gen}this.exprAllowed=!0};l.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==l.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ne=$e.prototype;ne.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s=e.key,i;switch(s.type){case"Identifier":i=s.name;break;case"Literal":i=String(s.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&o==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var c=t[i];if(c){var u;o==="init"?u=this.strict&&c.init||c.get||c.set:u=c.init||c[o],u&&this.raiseRecoverable(s.start,"Redefinition of property")}else c=t[i]={init:!1,get:!1,set:!1};c[o]=!0}};ne.parseExpression=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===l.comma){var o=this.startNodeAt(r,s);for(o.expressions=[i];this.eat(l.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i};ne.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,i=-1,o=-1,c=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,c=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Zn,s=!0);var u=this.start,f=this.startLoc;(this.type===l.parenL||this.type===l.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var h=this.parseMaybeConditional(e,t);if(r&&(h=r.call(this,h,u,f)),this.type.isAssign){var d=this.startNodeAt(u,f);return d.operator=this.value,this.type===l.eq&&(h=this.toAssignable(h,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=h.start&&(t.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(h):this.checkLValSimple(h),d.left=h,this.next(),d.right=this.parseMaybeAssign(e),c>-1&&(t.doubleProto=c),this.finishNode(d,"AssignmentExpression")}else s&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),h};ne.parseMaybeConditional=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(l.question)){var o=this.startNodeAt(r,s);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(l.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i};ne.parseExprOps=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,s,-1,e)};ne.parseExprOp=function(e,t,r,s,i){var o=this.type.binop;if(o!=null&&(!i||this.type!==l._in)&&o>s){var c=this.type===l.logicalOR||this.type===l.logicalAND,u=this.type===l.coalesce;u&&(o=l.logicalAND.binop);var f=this.value;this.next();var h=this.start,d=this.startLoc,x=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),h,d,o,i),y=this.buildBinary(t,r,e,x,f,c||u);return(c&&this.type===l.coalesce||u&&(this.type===l.logicalOR||this.type===l.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(y,t,r,s,i)}return e};ne.buildBinary=function(e,t,r,s,i,o){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var c=this.startNodeAt(e,t);return c.left=r,c.operator=i,c.right=s,this.finishNode(c,o?"LogicalExpression":"BinaryExpression")};ne.parseMaybeUnary=function(e,t,r,s){var i=this.start,o=this.startLoc,c;if(this.isContextual("await")&&this.canAwait)c=this.parseAwait(s),t=!0;else if(this.type.prefix){var u=this.startNode(),f=this.type===l.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,f,s),this.checkExpressionErrors(e,!0),f?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&Ko(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&Us(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):t=!0,c=this.finishNode(u,f?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===l.privateId)(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),c=this.parsePrivateIdent(),this.type!==l._in&&this.unexpected();else{if(c=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return c;for(;this.type.postfix&&!this.canInsertSemicolon();){var h=this.startNodeAt(i,o);h.operator=this.value,h.prefix=!1,h.argument=c,this.checkLValSimple(c),this.next(),c=this.finishNode(h,"UpdateExpression")}}if(!r&&this.eat(l.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,o,c,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return c};function Ko(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ko(e.expression)}function Us(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Us(e.expression)||e.type==="ParenthesizedExpression"&&Us(e.expression)}ne.parseExprSubscripts=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var o=this.parseSubscripts(i,r,s,!1,t);return e&&o.type==="MemberExpression"&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o};ne.parseSubscripts=function(e,t,r,s,i){for(var o=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,c=!1;;){var u=this.parseSubscript(e,t,r,s,o,c,i);if(u.optional&&(c=!0),u===e||u.type==="ArrowFunctionExpression"){if(c){var f=this.startNodeAt(t,r);f.expression=u,u=this.finishNode(f,"ChainExpression")}return u}e=u}};ne.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(l.arrow)};ne.parseSubscriptAsyncArrow=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,s)};ne.parseSubscript=function(e,t,r,s,i,o,c){var u=this.options.ecmaVersion>=11,f=u&&this.eat(l.questionDot);s&&f&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(l.bracketL);if(h||f&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var d=this.startNodeAt(t,r);d.object=e,h?(d.property=this.parseExpression(),this.expect(l.bracketR)):this.type===l.privateId&&e.type!=="Super"?d.property=this.parsePrivateIdent():d.property=this.parseIdent(this.options.allowReserved!=="never"),d.computed=!!h,u&&(d.optional=f),e=this.finishNode(d,"MemberExpression")}else if(!s&&this.eat(l.parenL)){var x=new Zn,y=this.yieldPos,b=this.awaitPos,N=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var O=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,x);if(i&&!f&&this.shouldParseAsyncArrow())return this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=y,this.awaitPos=b,this.awaitIdentPos=N,this.parseSubscriptAsyncArrow(t,r,O,c);this.checkExpressionErrors(x,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=b||this.awaitPos,this.awaitIdentPos=N||this.awaitIdentPos;var F=this.startNodeAt(t,r);F.callee=e,F.arguments=O,u&&(F.optional=f),e=this.finishNode(F,"CallExpression")}else if(this.type===l.backQuote){(f||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ee=this.startNodeAt(t,r);ee.tag=e,ee.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(ee,"TaggedTemplateExpression")}return e};ne.parseExprAtom=function(e,t,r){this.type===l.slash&&this.readRegexp();var s,i=this.potentialArrowAt===this.start;switch(this.type){case l._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type===l.parenL&&!this.allowDirectSuper&&this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==l.dot&&this.type!==l.bracketL&&this.type!==l.parenL&&this.unexpected(),this.finishNode(s,"Super");case l._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case l.name:var o=this.start,c=this.startLoc,u=this.containsEsc,f=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&f.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(Ne.f_expr),this.parseFunction(this.startNodeAt(o,c),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(o,c),[f],!1,t);if(this.options.ecmaVersion>=8&&f.name==="async"&&this.type===l.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return f=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(l.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,c),[f],!0,t)}return f;case l.regexp:var h=this.value;return s=this.parseLiteral(h.value),s.regex={pattern:h.pattern,flags:h.flags},s;case l.num:case l.string:return this.parseLiteral(this.value);case l._null:case l._true:case l._false:return s=this.startNode(),s.value=this.type===l._null?null:this.type===l._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case l.parenL:var d=this.start,x=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(x)&&(e.parenthesizedAssign=d),e.parenthesizedBind<0&&(e.parenthesizedBind=d)),x;case l.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(l.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case l.braceL:return this.overrideContext(Ne.b_expr),this.parseObj(!1,e);case l._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case l._class:return this.parseClass(this.startNode(),!1);case l._new:return this.parseNew();case l.backQuote:return this.parseTemplate();case l._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};ne.parseExprAtomDefault=function(){this.unexpected()};ne.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===l.parenL&&!e)return this.parseDynamicImport(t);if(this.type===l.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};ne.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(l.parenR)?e.options=null:(this.expect(l.comma),this.afterTrailingComma(l.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(l.parenR)||(this.expect(l.comma),this.afterTrailingComma(l.parenR)||this.unexpected())));else if(!this.eat(l.parenR)){var t=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};ne.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};ne.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};ne.parseParenExpression=function(){this.expect(l.parenL);var e=this.parseExpression();return this.expect(l.parenR),e};ne.shouldParseArrow=function(e){return!this.canInsertSemicolon()};ne.parseParenAndDistinguishExpression=function(e,t){var r=this.start,s=this.startLoc,i,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var c=this.start,u=this.startLoc,f=[],h=!0,d=!1,x=new Zn,y=this.yieldPos,b=this.awaitPos,N;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;)if(h?h=!1:this.expect(l.comma),o&&this.afterTrailingComma(l.parenR,!0)){d=!0;break}else if(this.type===l.ellipsis){N=this.start,f.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else f.push(this.parseMaybeAssign(!1,x,this.parseParenItem));var O=this.lastTokEnd,F=this.lastTokEndLoc;if(this.expect(l.parenR),e&&this.shouldParseArrow(f)&&this.eat(l.arrow))return this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=y,this.awaitPos=b,this.parseParenArrowList(r,s,f,t);(!f.length||d)&&this.unexpected(this.lastTokStart),N&&this.unexpected(N),this.checkExpressionErrors(x,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=b||this.awaitPos,f.length>1?(i=this.startNodeAt(c,u),i.expressions=f,this.finishNodeAt(i,"SequenceExpression",O,F)):i=f[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var ee=this.startNodeAt(r,s);return ee.expression=i,this.finishNode(ee,"ParenthesizedExpression")}else return i};ne.parseParenItem=function(e){return e};ne.parseParenArrowList=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,s)};var Td=[];ne.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===l.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,i,!0,!1),this.eat(l.parenL)?e.arguments=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Td,this.finishNode(e,"NewExpression")};ne.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===l.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
193
193
  `),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
194
- `),cooked:this.value},this.next(),r.tail=this.type===l.backQuote,this.finishNode(r,"TemplateElement")};re.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(r.quasis=[s];!s.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(l.braceR),r.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};re.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===l.name||this.type===l.num||this.type===l.string||this.type===l.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===l.star)&&!Je.test(this.input.slice(this.lastTokEnd,this.start))};re.parseObj=function(e,t){var r=this.startNode(),s=!0,i={};for(r.properties=[],this.next();!this.eat(l.braceR);){if(s)s=!1;else if(this.expect(l.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(l.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),r.properties.push(o)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};re.parseProperty=function(e,t){var r=this.startNode(),s,i,o,c;if(this.options.ecmaVersion>=9&&this.eat(l.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===l.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(o=this.start,c=this.startLoc),e||(s=this.eat(l.star)));var u=this.containsEsc;return this.parsePropertyName(r),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(r)?(i=!0,s=this.options.ecmaVersion>=9&&this.eat(l.star),this.parsePropertyName(r)):i=!1,this.parsePropertyValue(r,e,s,i,o,c,t,u),this.finishNode(r,"Property")};re.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r=e.kind==="get"?0:1;if(e.value.params.length!==r){var s=e.value.start;e.kind==="get"?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};re.parsePropertyValue=function(e,t,r,s,i,o,c,u){(r||s)&&this.type===l.colon&&this.unexpected(),this.eat(l.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,c),e.kind="init"):this.options.ecmaVersion>=6&&this.type===l.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,s),e.kind="init"):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==l.comma&&this.type!==l.braceR&&this.type!==l.eq?((r||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===l.eq&&c?(c.shorthandAssign<0&&(c.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};re.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(l.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(l.bracketR),e.key;e.computed=!1}return e.key=this.type===l.num||this.type===l.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};re.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};re.parseMethod=function(e,t,r){var s=this.startNode(),i=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_i(t,s.generator)|Yn|(r?zo:0)),this.expect(l.parenL),s.params=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(s,"FunctionExpression")};re.parseArrowExpression=function(e,t,r,s){var i=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.enterScope(_i(r,!1)|wi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(e,"ArrowFunctionExpression")};re.parseFunctionBody=function(e,t,r,s){var i=t&&this.type!==l.braceL,o=this.strict,c=!1;if(i)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||u)&&(c=this.strictDirective(this.end),c&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var h=this.labels;this.labels=[],c&&(this.strict=!0),this.checkParams(e,!o&&!c&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Xo),e.body=this.parseBlock(!1,void 0,c&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=h}this.exitScope()};re.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var s=r[t];if(s.type!=="Identifier")return!1}return!0};re.checkParams=function(e,t){for(var r=Object.create(null),s=0,i=e.params;s<i.length;s+=1){var o=i[s];this.checkLValInnerPattern(o,Si,t?null:r)}};re.parseExprList=function(e,t,r,s){for(var i=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(l.comma),t&&this.afterTrailingComma(e))break;var c=void 0;r&&this.type===l.comma?c=null:this.type===l.ellipsis?(c=this.parseSpread(s),s&&this.type===l.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):c=this.parseMaybeAssign(!1,s),i.push(c)}return i};re.checkUnreserved=function(e){var t=e.start,r=e.end,s=e.name;if(this.inGenerator&&s==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Kn)&&s==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(s==="arguments"||s==="await")&&this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(s)&&(!this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))}};re.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};re.parseIdentNode=function(){var e=this.startNode();return this.type===l.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=l.name):this.unexpected(),e};re.parsePrivateIdent=function(){var e=this.startNode();return this.type===l.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};re.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===l.semi||this.canInsertSemicolon()||this.type!==l.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(l.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};re.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var On=Ve.prototype;On.raise=function(e,t){var r=$o(this.input,e);t+=" ("+r.line+":"+r.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var s=new SyntaxError(t);throw s.pos=e,s.loc=r,s.raisedAt=this.pos,s};On.raiseRecoverable=On.raise;On.curPosition=function(){if(this.options.locations)return new rn(this.curLine,this.pos-this.lineStart)};var Gt=Ve.prototype,Td=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Gt.enterScope=function(e){this.scopeStack.push(new Td(e))};Gt.exitScope=function(){this.scopeStack.pop()};Gt.treatFunctionsAsVarInScope=function(e){return e.flags&ar||!this.inModule&&e.flags&nr};Gt.declareName=function(e,t,r){var s=!1;if(t===Ot){var i=this.currentScope();s=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&nr&&delete this.undefinedExports[e]}else if(t===Go){var o=this.currentScope();o.lexical.push(e)}else if(t===Wo){var c=this.currentScope();this.treatFunctionsAsVar?s=c.lexical.indexOf(e)>-1:s=c.lexical.indexOf(e)>-1||c.var.indexOf(e)>-1,c.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var h=this.scopeStack[u];if(h.lexical.indexOf(e)>-1&&!(h.flags&Uo&&h.lexical[0]===e)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(e)>-1){s=!0;break}if(h.var.push(e),this.inModule&&h.flags&nr&&delete this.undefinedExports[e],h.flags&Kn)break}s&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};Gt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Gt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Gt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Kn|pn|or))return t}};Gt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Kn|pn|or)&&!(t.flags&wi))return t}};var Jn=function(t,r,s){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new Xn(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},hn=Ve.prototype;hn.startNode=function(){return new Jn(this,this.start,this.startLoc)};hn.startNodeAt=function(e,t){return new Jn(this,e,t)};function Qo(e,t,r,s){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=r),e}hn.finishNode=function(e,t){return Qo.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};hn.finishNodeAt=function(e,t,r,s){return Qo.call(this,e,t,r,s)};hn.copyNode=function(e){var t=new Jn(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var Ad="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Jo="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Zo=Jo+" Extended_Pictographic",e1=Zo,t1=e1+" EBase EComp EMod EPres ExtPict",r1=t1,Pd=r1,Nd={9:Jo,10:Zo,11:e1,12:t1,13:r1,14:Pd},Rd="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ld={9:"",10:"",11:"",12:"",13:"",14:Rd},la="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",n1="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",s1=n1+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",i1=s1+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",a1=i1+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",o1=a1+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Dd=o1+" "+Ad,Od={9:n1,10:s1,11:i1,12:a1,13:o1,14:Dd},c1={};function Md(e){var t=c1[e]={binary:Vt(Nd[e]+" "+la),binaryOfStrings:Vt(Ld[e]),nonBinary:{General_Category:Vt(la),Script:Vt(Od[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ss=0,ua=[9,10,11,12,13,14];Ss<ua.length;Ss+=1){var jd=ua[Ss];Md(jd)}var V=Ve.prototype,Mn=function(t,r){this.parent=t,this.base=r||this};Mn.prototype.separatedFrom=function(t){for(var r=this;r;r=r.parent)for(var s=t;s;s=s.parent)if(r.base===s.base&&r!==s)return!0;return!1};Mn.prototype.sibling=function(){return new Mn(this.parent,this.base)};var Ct=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=c1[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Ct.prototype.reset=function(t,r,s){var i=s.indexOf("v")!==-1,o=s.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=s,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)};Ct.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Ct.prototype.at=function(t,r){r===void 0&&(r=!1);var s=this.source,i=s.length;if(t>=i)return-1;var o=s.charCodeAt(t);if(!(r||this.switchU)||o<=55295||o>=57344||t+1>=i)return o;var c=s.charCodeAt(t+1);return c>=56320&&c<=57343?(o<<10)+c-56613888:o};Ct.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var s=this.source,i=s.length;if(t>=i)return i;var o=s.charCodeAt(t),c;return!(r||this.switchU)||o<=55295||o>=57344||t+1>=i||(c=s.charCodeAt(t+1))<56320||c>57343?t+1:t+2};Ct.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Ct.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Ct.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Ct.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};Ct.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var s=this.pos,i=0,o=t;i<o.length;i+=1){var c=o[i],u=this.at(s,r);if(u===-1||u!==c)return!1;s=this.nextIndex(s,r)}return this.pos=s,!0};V.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,s=!1,i=!1,o=0;o<r.length;o++){var c=r.charAt(o);t.indexOf(c)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(c,o+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),c==="u"&&(s=!0),c==="v"&&(i=!0)}this.options.ecmaVersion>=15&&s&&i&&this.raise(e.start,"Invalid regular expression flag")};function Fd(e){for(var t in e)return!0;return!1}V.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Fd(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};V.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var s=r[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}};V.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Mn(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};V.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};V.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};V.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};V.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};V.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};V.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var s=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};V.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};V.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};V.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(e),s=e.eat(45);if(r||s){for(var i=0;i<r.length;i++){var o=r.charAt(i);r.indexOf(o,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){var c=this.regexp_eatModifiers(e);!r&&!c&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var u=0;u<c.length;u++){var h=c.charAt(u);(c.indexOf(h,u+1)>-1||r.indexOf(h)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};V.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};V.regexp_eatModifiers=function(e){for(var t="",r=0;(r=e.current())!==-1&&Bd(r);)t+=Lt(r),e.advance();return t};function Bd(e){return e===105||e===109||e===115}V.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};V.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};V.regexp_eatSyntaxCharacter=function(e){var t=e.current();return l1(t)?(e.lastIntValue=t,e.advance(),!0):!1};function l1(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}V.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!l1(r);)e.advance();return e.pos!==t};V.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};V.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var s=0,i=r;s<i.length;s+=1){var o=i[s];o.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};V.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};V.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Lt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Lt(e.lastIntValue);return!0}return!1};V.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,s=e.current(r);return e.advance(r),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(s=e.lastIntValue),Vd(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Vd(e){return Et(e,!0)||e===36||e===95}V.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,s=e.current(r);return e.advance(r),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(s=e.lastIntValue),$d(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function $d(e){return Ht(e,!0)||e===36||e===95||e===8204||e===8205}V.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};V.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};V.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};V.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};V.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};V.regexp_eatZero=function(e){return e.current()===48&&!Zn(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};V.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};V.regexp_eatControlLetter=function(e){var t=e.current();return u1(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function u1(e){return e>=65&&e<=90||e>=97&&e<=122}V.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(s&&i>=55296&&i<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var c=e.lastIntValue;if(c>=56320&&c<=57343)return e.lastIntValue=(i-55296)*1024+(c-56320)+65536,!0}e.pos=o,e.lastIntValue=i}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&qd(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function qd(e){return e>=0&&e<=1114111}V.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};V.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var p1=0,Dt=1,it=2;V.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ud(t))return e.lastIntValue=-1,e.advance(),Dt;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&s===it&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return p1};function Ud(e){return e===100||e===68||e===115||e===83||e===119||e===87}V.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,s),Dt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return p1};V.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Er(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};V.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Dt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return it;e.raise("Invalid property name")};V.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";h1(t=e.current());)e.lastStringValue+=Lt(t),e.advance();return e.lastStringValue!==""};function h1(e){return u1(e)||e===95}V.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";zd(t=e.current());)e.lastStringValue+=Lt(t),e.advance();return e.lastStringValue!==""};function zd(e){return h1(e)||Zn(e)}V.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};V.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===it&&e.raise("Negated character class may contain strings"),!0}return!1};V.regexp_classContents=function(e){return e.current()===93?Dt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Dt)};V.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};V.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||m1(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1};V.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};V.regexp_classSetExpression=function(e){var t=Dt,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===it&&(t=it);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==it&&(t=Dt);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===it&&(t=it)}};V.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return r!==-1&&s!==-1&&r>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};V.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Dt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};V.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return r&&s===it&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null};V.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};V.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===it&&(t=it);return t};V.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Dt:it};V.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&Hd(r)||Wd(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function Hd(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Wd(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}V.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Gd(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Gd(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}V.regexp_eatClassControlLetter=function(e){var t=e.current();return Zn(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};V.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};V.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Zn(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Zn(e){return e>=48&&e<=57}V.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;f1(r=e.current());)e.lastIntValue=16*e.lastIntValue+d1(r),e.advance();return e.pos!==t};function f1(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function d1(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}V.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};V.regexp_eatOctalDigit=function(e){var t=e.current();return m1(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function m1(e){return e>=48&&e<=55}V.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var i=e.current();if(!f1(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+d1(i),e.advance()}return!0};var Ei=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Xn(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},pe=Ve.prototype;pe.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ei(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};pe.getToken=function(){return this.next(),new Ei(this)};typeof Symbol<"u"&&(pe[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===l.eof,value:t}}}});pe.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(l.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};pe.readToken=function(e){return Et(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};pe.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var r=this.input.charCodeAt(e+1);return r<=56319||r>=57344?t:(t<<10)+r-56613888};pe.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};pe.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var s=void 0,i=t;(s=Fo(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};pe.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Ir(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};pe.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Bo.test(String.fromCharCode(e)))++this.pos;else break e}}};pe.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};pe.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(l.ellipsis)):(++this.pos,this.finishToken(l.dot))};pe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(l.assign,2):this.finishOp(l.slash,1)};pe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,s=e===42?l.star:l.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,s=l.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(l.assign,r+1):this.finishOp(s,r)};pe.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(l.assign,3)}return this.finishOp(e===124?l.logicalOR:l.logicalAND,2)}return t===61?this.finishOp(l.assign,2):this.finishOp(e===124?l.bitwiseOR:l.bitwiseAND,1)};pe.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(l.assign,2):this.finishOp(l.bitwiseXOR,1)};pe.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Je.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(l.incDec,2):t===61?this.finishOp(l.assign,2):this.finishOp(l.plusMin,1)};pe.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(l.assign,r+1):this.finishOp(l.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(l.relational,r))};pe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(l.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(l.arrow)):this.finishOp(e===61?l.eq:l.prefix,1)};pe.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(l.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(l.assign,3)}return this.finishOp(l.coalesce,2)}}return this.finishOp(l.question,1)};pe.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Et(t,!0)||t===92))return this.finishToken(l.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Lt(t)+"'")};pe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(l.parenL);case 41:return++this.pos,this.finishToken(l.parenR);case 59:return++this.pos,this.finishToken(l.semi);case 44:return++this.pos,this.finishToken(l.comma);case 91:return++this.pos,this.finishToken(l.bracketL);case 93:return++this.pos,this.finishToken(l.bracketR);case 123:return++this.pos,this.finishToken(l.braceL);case 125:return++this.pos,this.finishToken(l.braceR);case 58:return++this.pos,this.finishToken(l.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(l.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(l.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Lt(e)+"'")};pe.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};pe.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(Je.test(s)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var o=this.pos,c=this.readWord1();this.containsEsc&&this.unexpected(o);var u=this.regexpState||(this.regexpState=new Ct(this));u.reset(r,i,c),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var h=null;try{h=new RegExp(i,c)}catch{}return this.finishToken(l.regexp,{pattern:i,flags:c,value:h})};pe.readInt=function(e,t,r){for(var s=this.options.ecmaVersion>=12&&t===void 0,i=r&&this.input.charCodeAt(this.pos)===48,o=this.pos,c=0,u=0,h=0,f=t??1/0;h<f;++h,++this.pos){var m=this.input.charCodeAt(this.pos),x=void 0;if(s&&m===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=m;continue}if(m>=97?x=m-97+10:m>=65?x=m-65+10:m>=48&&m<=57?x=m-48:x=1/0,x>=e)break;u=m,c=c*e+x}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:c};function Xd(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function g1(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}pe.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=g1(this.input.slice(t,this.pos)),++this.pos):Et(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(l.num,r)};pe.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&s===110){var i=g1(this.input.slice(t,this.pos));return++this.pos,Et(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(l.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),s===46&&!r&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!r&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Et(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=Xd(this.input.slice(t,this.pos),r);return this.finishToken(l.num,o)};pe.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};pe.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Ir(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(l.string,t)};var x1={};pe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===x1)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};pe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw x1;this.raise(e,t)};pe.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===l.template||this.type===l.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(l.dollarBraceL)):(++this.pos,this.finishToken(l.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(l.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Ir(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
194
+ `),cooked:this.value},this.next(),r.tail=this.type===l.backQuote,this.finishNode(r,"TemplateElement")};ne.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(r.quasis=[s];!s.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(l.braceR),r.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};ne.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===l.name||this.type===l.num||this.type===l.string||this.type===l.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===l.star)&&!Je.test(this.input.slice(this.lastTokEnd,this.start))};ne.parseObj=function(e,t){var r=this.startNode(),s=!0,i={};for(r.properties=[],this.next();!this.eat(l.braceR);){if(s)s=!1;else if(this.expect(l.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(l.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),r.properties.push(o)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};ne.parseProperty=function(e,t){var r=this.startNode(),s,i,o,c;if(this.options.ecmaVersion>=9&&this.eat(l.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===l.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(o=this.start,c=this.startLoc),e||(s=this.eat(l.star)));var u=this.containsEsc;return this.parsePropertyName(r),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(r)?(i=!0,s=this.options.ecmaVersion>=9&&this.eat(l.star),this.parsePropertyName(r)):i=!1,this.parsePropertyValue(r,e,s,i,o,c,t,u),this.finishNode(r,"Property")};ne.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r=e.kind==="get"?0:1;if(e.value.params.length!==r){var s=e.value.start;e.kind==="get"?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};ne.parsePropertyValue=function(e,t,r,s,i,o,c,u){(r||s)&&this.type===l.colon&&this.unexpected(),this.eat(l.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,c),e.kind="init"):this.options.ecmaVersion>=6&&this.type===l.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,s),e.kind="init"):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==l.comma&&this.type!==l.braceR&&this.type!==l.eq?((r||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===l.eq&&c?(c.shorthandAssign<0&&(c.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};ne.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(l.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(l.bracketR),e.key;e.computed=!1}return e.key=this.type===l.num||this.type===l.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};ne.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};ne.parseMethod=function(e,t,r){var s=this.startNode(),i=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_i(t,s.generator)|Qn|(r?zo:0)),this.expect(l.parenL),s.params=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(s,"FunctionExpression")};ne.parseArrowExpression=function(e,t,r,s){var i=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.enterScope(_i(r,!1)|wi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(e,"ArrowFunctionExpression")};ne.parseFunctionBody=function(e,t,r,s){var i=t&&this.type!==l.braceL,o=this.strict,c=!1;if(i)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||u)&&(c=this.strictDirective(this.end),c&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var f=this.labels;this.labels=[],c&&(this.strict=!0),this.checkParams(e,!o&&!c&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Xo),e.body=this.parseBlock(!1,void 0,c&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=f}this.exitScope()};ne.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var s=r[t];if(s.type!=="Identifier")return!1}return!0};ne.checkParams=function(e,t){for(var r=Object.create(null),s=0,i=e.params;s<i.length;s+=1){var o=i[s];this.checkLValInnerPattern(o,Si,t?null:r)}};ne.parseExprList=function(e,t,r,s){for(var i=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(l.comma),t&&this.afterTrailingComma(e))break;var c=void 0;r&&this.type===l.comma?c=null:this.type===l.ellipsis?(c=this.parseSpread(s),s&&this.type===l.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):c=this.parseMaybeAssign(!1,s),i.push(c)}return i};ne.checkUnreserved=function(e){var t=e.start,r=e.end,s=e.name;if(this.inGenerator&&s==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Jn)&&s==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(s==="arguments"||s==="await")&&this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(s)&&(!this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))}};ne.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};ne.parseIdentNode=function(){var e=this.startNode();return this.type===l.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=l.name):this.unexpected(),e};ne.parsePrivateIdent=function(){var e=this.startNode();return this.type===l.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};ne.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===l.semi||this.canInsertSemicolon()||this.type!==l.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(l.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};ne.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var jn=$e.prototype;jn.raise=function(e,t){var r=Vo(this.input,e);t+=" ("+r.line+":"+r.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var s=new SyntaxError(t);throw s.pos=e,s.loc=r,s.raisedAt=this.pos,s};jn.raiseRecoverable=jn.raise;jn.curPosition=function(){if(this.options.locations)return new sn(this.curLine,this.pos-this.lineStart)};var Gt=$e.prototype,Ad=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Gt.enterScope=function(e){this.scopeStack.push(new Ad(e))};Gt.exitScope=function(){this.scopeStack.pop()};Gt.treatFunctionsAsVarInScope=function(e){return e.flags&or||!this.inModule&&e.flags&sr};Gt.declareName=function(e,t,r){var s=!1;if(t===Mt){var i=this.currentScope();s=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&sr&&delete this.undefinedExports[e]}else if(t===Go){var o=this.currentScope();o.lexical.push(e)}else if(t===Wo){var c=this.currentScope();this.treatFunctionsAsVar?s=c.lexical.indexOf(e)>-1:s=c.lexical.indexOf(e)>-1||c.var.indexOf(e)>-1,c.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var f=this.scopeStack[u];if(f.lexical.indexOf(e)>-1&&!(f.flags&Uo&&f.lexical[0]===e)||!this.treatFunctionsAsVarInScope(f)&&f.functions.indexOf(e)>-1){s=!0;break}if(f.var.push(e),this.inModule&&f.flags&sr&&delete this.undefinedExports[e],f.flags&Jn)break}s&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};Gt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Gt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Gt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Jn|fn|cr))return t}};Gt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Jn|fn|cr)&&!(t.flags&wi))return t}};var es=function(t,r,s){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new Kn(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},dn=$e.prototype;dn.startNode=function(){return new es(this,this.start,this.startLoc)};dn.startNodeAt=function(e,t){return new es(this,e,t)};function Qo(e,t,r,s){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=r),e}dn.finishNode=function(e,t){return Qo.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};dn.finishNodeAt=function(e,t,r,s){return Qo.call(this,e,t,r,s)};dn.copyNode=function(e){var t=new es(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var Pd="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Jo="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Zo=Jo+" Extended_Pictographic",ec=Zo,tc=ec+" EBase EComp EMod EPres ExtPict",rc=tc,Nd=rc,Rd={9:Jo,10:Zo,11:ec,12:tc,13:rc,14:Nd},Ld="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Dd={9:"",10:"",11:"",12:"",13:"",14:Ld},la="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",nc="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",sc=nc+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ic=sc+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ac=ic+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",oc=ac+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Od=oc+" "+Pd,Md={9:nc,10:sc,11:ic,12:ac,13:oc,14:Od},cc={};function jd(e){var t=cc[e]={binary:$t(Rd[e]+" "+la),binaryOfStrings:$t(Dd[e]),nonBinary:{General_Category:$t(la),Script:$t(Md[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ss=0,ua=[9,10,11,12,13,14];Ss<ua.length;Ss+=1){var Fd=ua[Ss];jd(Fd)}var $=$e.prototype,Fn=function(t,r){this.parent=t,this.base=r||this};Fn.prototype.separatedFrom=function(t){for(var r=this;r;r=r.parent)for(var s=t;s;s=s.parent)if(r.base===s.base&&r!==s)return!0;return!1};Fn.prototype.sibling=function(){return new Fn(this.parent,this.base)};var Tt=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=cc[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Tt.prototype.reset=function(t,r,s){var i=s.indexOf("v")!==-1,o=s.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=s,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)};Tt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Tt.prototype.at=function(t,r){r===void 0&&(r=!1);var s=this.source,i=s.length;if(t>=i)return-1;var o=s.charCodeAt(t);if(!(r||this.switchU)||o<=55295||o>=57344||t+1>=i)return o;var c=s.charCodeAt(t+1);return c>=56320&&c<=57343?(o<<10)+c-56613888:o};Tt.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var s=this.source,i=s.length;if(t>=i)return i;var o=s.charCodeAt(t),c;return!(r||this.switchU)||o<=55295||o>=57344||t+1>=i||(c=s.charCodeAt(t+1))<56320||c>57343?t+1:t+2};Tt.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Tt.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Tt.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Tt.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};Tt.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var s=this.pos,i=0,o=t;i<o.length;i+=1){var c=o[i],u=this.at(s,r);if(u===-1||u!==c)return!1;s=this.nextIndex(s,r)}return this.pos=s,!0};$.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,s=!1,i=!1,o=0;o<r.length;o++){var c=r.charAt(o);t.indexOf(c)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(c,o+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),c==="u"&&(s=!0),c==="v"&&(i=!0)}this.options.ecmaVersion>=15&&s&&i&&this.raise(e.start,"Invalid regular expression flag")};function Bd(e){for(var t in e)return!0;return!1}$.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Bd(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};$.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var s=r[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}};$.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Fn(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};$.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};$.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};$.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};$.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};$.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};$.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var s=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};$.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};$.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};$.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(e),s=e.eat(45);if(r||s){for(var i=0;i<r.length;i++){var o=r.charAt(i);r.indexOf(o,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){var c=this.regexp_eatModifiers(e);!r&&!c&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var u=0;u<c.length;u++){var f=c.charAt(u);(c.indexOf(f,u+1)>-1||r.indexOf(f)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};$.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};$.regexp_eatModifiers=function(e){for(var t="",r=0;(r=e.current())!==-1&&$d(r);)t+=Dt(r),e.advance();return t};function $d(e){return e===105||e===109||e===115}$.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};$.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};$.regexp_eatSyntaxCharacter=function(e){var t=e.current();return lc(t)?(e.lastIntValue=t,e.advance(),!0):!1};function lc(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}$.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!lc(r);)e.advance();return e.pos!==t};$.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};$.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var s=0,i=r;s<i.length;s+=1){var o=i[s];o.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};$.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};$.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Dt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Dt(e.lastIntValue);return!0}return!1};$.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,s=e.current(r);return e.advance(r),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(s=e.lastIntValue),Vd(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Vd(e){return Ct(e,!0)||e===36||e===95}$.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,s=e.current(r);return e.advance(r),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(s=e.lastIntValue),qd(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function qd(e){return Ht(e,!0)||e===36||e===95||e===8204||e===8205}$.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};$.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};$.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};$.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};$.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};$.regexp_eatZero=function(e){return e.current()===48&&!ts(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};$.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};$.regexp_eatControlLetter=function(e){var t=e.current();return uc(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function uc(e){return e>=65&&e<=90||e>=97&&e<=122}$.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(s&&i>=55296&&i<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var c=e.lastIntValue;if(c>=56320&&c<=57343)return e.lastIntValue=(i-55296)*1024+(c-56320)+65536,!0}e.pos=o,e.lastIntValue=i}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ud(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function Ud(e){return e>=0&&e<=1114111}$.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};$.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var pc=0,Ot=1,it=2;$.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(zd(t))return e.lastIntValue=-1,e.advance(),Ot;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&s===it&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return pc};function zd(e){return e===100||e===68||e===115||e===83||e===119||e===87}$.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,s),Ot}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return pc};$.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Ar(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};$.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Ot;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return it;e.raise("Invalid property name")};$.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";hc(t=e.current());)e.lastStringValue+=Dt(t),e.advance();return e.lastStringValue!==""};function hc(e){return uc(e)||e===95}$.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Hd(t=e.current());)e.lastStringValue+=Dt(t),e.advance();return e.lastStringValue!==""};function Hd(e){return hc(e)||ts(e)}$.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};$.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===it&&e.raise("Negated character class may contain strings"),!0}return!1};$.regexp_classContents=function(e){return e.current()===93?Ot:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Ot)};$.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};$.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||mc(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1};$.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};$.regexp_classSetExpression=function(e){var t=Ot,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===it&&(t=it);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==it&&(t=Ot);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===it&&(t=it)}};$.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return r!==-1&&s!==-1&&r>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};$.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Ot:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};$.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return r&&s===it&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null};$.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};$.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===it&&(t=it);return t};$.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Ot:it};$.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&Wd(r)||Gd(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function Wd(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Gd(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}$.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Xd(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Xd(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}$.regexp_eatClassControlLetter=function(e){var t=e.current();return ts(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};$.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};$.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;ts(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function ts(e){return e>=48&&e<=57}$.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;fc(r=e.current());)e.lastIntValue=16*e.lastIntValue+dc(r),e.advance();return e.pos!==t};function fc(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function dc(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}$.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};$.regexp_eatOctalDigit=function(e){var t=e.current();return mc(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function mc(e){return e>=48&&e<=55}$.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var i=e.current();if(!fc(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+dc(i),e.advance()}return!0};var Ei=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Kn(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},pe=$e.prototype;pe.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ei(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};pe.getToken=function(){return this.next(),new Ei(this)};typeof Symbol<"u"&&(pe[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===l.eof,value:t}}}});pe.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(l.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};pe.readToken=function(e){return Ct(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};pe.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var r=this.input.charCodeAt(e+1);return r<=56319||r>=57344?t:(t<<10)+r-56613888};pe.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};pe.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var s=void 0,i=t;(s=Fo(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};pe.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Tr(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};pe.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Bo.test(String.fromCharCode(e)))++this.pos;else break e}}};pe.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};pe.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(l.ellipsis)):(++this.pos,this.finishToken(l.dot))};pe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(l.assign,2):this.finishOp(l.slash,1)};pe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,s=e===42?l.star:l.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,s=l.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(l.assign,r+1):this.finishOp(s,r)};pe.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(l.assign,3)}return this.finishOp(e===124?l.logicalOR:l.logicalAND,2)}return t===61?this.finishOp(l.assign,2):this.finishOp(e===124?l.bitwiseOR:l.bitwiseAND,1)};pe.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(l.assign,2):this.finishOp(l.bitwiseXOR,1)};pe.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Je.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(l.incDec,2):t===61?this.finishOp(l.assign,2):this.finishOp(l.plusMin,1)};pe.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(l.assign,r+1):this.finishOp(l.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(l.relational,r))};pe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(l.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(l.arrow)):this.finishOp(e===61?l.eq:l.prefix,1)};pe.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(l.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(l.assign,3)}return this.finishOp(l.coalesce,2)}}return this.finishOp(l.question,1)};pe.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Ct(t,!0)||t===92))return this.finishToken(l.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Dt(t)+"'")};pe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(l.parenL);case 41:return++this.pos,this.finishToken(l.parenR);case 59:return++this.pos,this.finishToken(l.semi);case 44:return++this.pos,this.finishToken(l.comma);case 91:return++this.pos,this.finishToken(l.bracketL);case 93:return++this.pos,this.finishToken(l.bracketR);case 123:return++this.pos,this.finishToken(l.braceL);case 125:return++this.pos,this.finishToken(l.braceR);case 58:return++this.pos,this.finishToken(l.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(l.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(l.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Dt(e)+"'")};pe.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};pe.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(Je.test(s)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var o=this.pos,c=this.readWord1();this.containsEsc&&this.unexpected(o);var u=this.regexpState||(this.regexpState=new Tt(this));u.reset(r,i,c),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var f=null;try{f=new RegExp(i,c)}catch{}return this.finishToken(l.regexp,{pattern:i,flags:c,value:f})};pe.readInt=function(e,t,r){for(var s=this.options.ecmaVersion>=12&&t===void 0,i=r&&this.input.charCodeAt(this.pos)===48,o=this.pos,c=0,u=0,f=0,h=t??1/0;f<h;++f,++this.pos){var d=this.input.charCodeAt(this.pos),x=void 0;if(s&&d===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),f===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=d;continue}if(d>=97?x=d-97+10:d>=65?x=d-65+10:d>=48&&d<=57?x=d-48:x=1/0,x>=e)break;u=d,c=c*e+x}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:c};function Yd(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function gc(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}pe.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=gc(this.input.slice(t,this.pos)),++this.pos):Ct(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(l.num,r)};pe.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&s===110){var i=gc(this.input.slice(t,this.pos));return++this.pos,Ct(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(l.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),s===46&&!r&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!r&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Ct(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=Yd(this.input.slice(t,this.pos),r);return this.finishToken(l.num,o)};pe.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};pe.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Tr(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(l.string,t)};var xc={};pe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===xc)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};pe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw xc;this.raise(e,t)};pe.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===l.template||this.type===l.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(l.dollarBraceL)):(++this.pos,this.finishToken(l.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(l.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Tr(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
195
195
  `;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};pe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(l.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
196
196
  `&&++this.pos;case`
197
197
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};pe.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
198
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Lt(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(s,8);return i>255&&(s=s.slice(0,-1),i=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Ir(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};pe.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};pe.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ht(i,s))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(t?Et:Ht)(c,s)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Lt(c),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};pe.readWord=function(){var e=this.readWord1(),t=l.name;return this.keywords.test(e)&&(t=yi[e]),this.finishToken(t,e)};var Yd="8.16.0";Ve.acorn={Parser:Ve,version:Yd,defaultOptions:$s,Position:rn,SourceLocation:Xn,getLineInfo:$o,Node:Jn,TokenType:ge,tokTypes:l,keywordTypes:yi,TokContext:pt,tokContexts:Pe,isIdentifierChar:Ht,isIdentifierStart:Et,Token:Ei,isNewLine:Ir,lineBreak:Je,lineBreakG:xd,nonASCIIwhitespace:Bo};function k1(e,t){return Ve.parse(e,t)}function Is(e,t,r,s,i){r||(r=R),function o(c,u,h){var f=h||c.type;b1(r,f,c,u,o),t[f]&&t[f](c,u)}(e,s,i)}function Kd(e,t,r,s,i){var o=[];r||(r=R),function c(u,h,f){var m=f||u.type,x=u!==o[o.length-1];x&&o.push(u),b1(r,m,u,h,c),t[m]&&t[m](u,h||o,o),x&&o.pop()}(e,s,i)}function Ci(e,t,r){r(e,t)}function cr(e,t,r){}function b1(e,t,r,s,i){if(e[t]==null)throw new Error("No walker function defined for node type "+t);e[t](r,s,i)}var R={};R.Program=R.BlockStatement=R.StaticBlock=function(e,t,r){for(var s=0,i=e.body;s<i.length;s+=1){var o=i[s];r(o,t,"Statement")}};R.Statement=Ci;R.EmptyStatement=cr;R.ExpressionStatement=R.ParenthesizedExpression=R.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};R.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")};R.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};R.BreakStatement=R.ContinueStatement=cr;R.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")};R.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var s=0,i=e.cases;s<i.length;s+=1){var o=i[s];r(o,t)}};R.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var s=0,i=e.consequent;s<i.length;s+=1){var o=i[s];r(o,t,"Statement")}};R.ReturnStatement=R.YieldExpression=R.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")};R.ThrowStatement=R.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};R.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")};R.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")};R.WhileStatement=R.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")};R.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")};R.ForInStatement=R.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")};R.ForInit=function(e,t,r){e.type==="VariableDeclaration"?r(e,t):r(e,t,"Expression")};R.DebuggerStatement=cr;R.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};R.VariableDeclaration=function(e,t,r){for(var s=0,i=e.declarations;s<i.length;s+=1){var o=i[s];r(o,t)}};R.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")};R.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var s=0,i=e.params;s<i.length;s+=1){var o=i[s];r(o,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};R.Pattern=function(e,t,r){e.type==="Identifier"?r(e,t,"VariablePattern"):e.type==="MemberExpression"?r(e,t,"MemberPattern"):r(e,t)};R.VariablePattern=cr;R.MemberPattern=Ci;R.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};R.ArrayPattern=function(e,t,r){for(var s=0,i=e.elements;s<i.length;s+=1){var o=i[s];o&&r(o,t,"Pattern")}};R.ObjectPattern=function(e,t,r){for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];o.type==="Property"?(o.computed&&r(o.key,t,"Expression"),r(o.value,t,"Pattern")):o.type==="RestElement"&&r(o.argument,t,"Pattern")}};R.Expression=Ci;R.ThisExpression=R.Super=R.MetaProperty=cr;R.ArrayExpression=function(e,t,r){for(var s=0,i=e.elements;s<i.length;s+=1){var o=i[s];o&&r(o,t,"Expression")}};R.ObjectExpression=function(e,t,r){for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];r(o,t)}};R.FunctionExpression=R.ArrowFunctionExpression=R.FunctionDeclaration;R.SequenceExpression=function(e,t,r){for(var s=0,i=e.expressions;s<i.length;s+=1){var o=i[s];r(o,t,"Expression")}};R.TemplateLiteral=function(e,t,r){for(var s=0,i=e.quasis;s<i.length;s+=1){var o=i[s];r(o,t)}for(var c=0,u=e.expressions;c<u.length;c+=1){var h=u[c];r(h,t,"Expression")}};R.TemplateElement=cr;R.UnaryExpression=R.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};R.BinaryExpression=R.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")};R.AssignmentExpression=R.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")};R.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")};R.NewExpression=R.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var s=0,i=e.arguments;s<i.length;s+=1){var o=i[s];r(o,t,"Expression")}};R.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")};R.ExportNamedDeclaration=R.ExportDefaultDeclaration=function(e,t,r){if(e.declaration&&r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression"),e.attributes)for(var s=0,i=e.attributes;s<i.length;s+=1){var o=i[s];r(o,t)}};R.ExportAllDeclaration=function(e,t,r){if(e.exported&&r(e.exported,t),r(e.source,t,"Expression"),e.attributes)for(var s=0,i=e.attributes;s<i.length;s+=1){var o=i[s];r(o,t)}};R.ImportAttribute=function(e,t,r){r(e.value,t,"Expression")};R.ImportDeclaration=function(e,t,r){for(var s=0,i=e.specifiers;s<i.length;s+=1){var o=i[s];r(o,t)}if(r(e.source,t,"Expression"),e.attributes)for(var c=0,u=e.attributes;c<u.length;c+=1){var h=u[c];r(h,t)}};R.ImportExpression=function(e,t,r){r(e.source,t,"Expression"),e.options&&r(e.options,t,"Expression")};R.ImportSpecifier=R.ImportDefaultSpecifier=R.ImportNamespaceSpecifier=R.Identifier=R.PrivateIdentifier=R.Literal=cr;R.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")};R.ClassDeclaration=R.ClassExpression=function(e,t,r){return r(e,t,"Class")};R.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)};R.ClassBody=function(e,t,r){for(var s=0,i=e.body;s<i.length;s+=1){var o=i[s];r(o,t)}};R.MethodDefinition=R.PropertyDefinition=R.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),e.value&&r(e.value,t,"Expression")};let Gr=0;const y1=new Set(["React","Fragment","window","document","navigator","location","history","localStorage","sessionStorage","console","fetch","URL","URLSearchParams","FormData","Headers","Request","Response","Blob","File","FileReader","FileList","AbortController","AbortSignal","Event","CustomEvent","EventTarget","MutationObserver","IntersectionObserver","ResizeObserver","requestAnimationFrame","cancelAnimationFrame","setTimeout","setInterval","clearTimeout","clearInterval","HTMLElement","SVGElement","Element","Node","NodeList","Math","Date","JSON","Array","Object","String","Number","Boolean","BigInt","Symbol","RegExp","Promise","Set","Map","WeakSet","WeakMap","Proxy","Reflect","Error","TypeError","ReferenceError","RangeError","SyntaxError","URIError","parseInt","parseFloat","isNaN","isFinite","NaN","Infinity","undefined","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","btoa","atob","structuredClone","queueMicrotask","Record","Partial","Required","Readonly","Pick","Omit","Exclude","Extract","require","module","exports","globalThis","self","_jsxDEV","_jsxs","_jsx","_Fragment","DataTable","MetricCard","StatusBadge","DetailCard","StepWizard","Logo","Avatar","cn"]);function Qd(e){const t=new Set(y1),r=/import\s*\{([^}]+)\}\s*from\s*['"][^'"]+['"]/g;let s;for(;s=r.exec(e);)for(const L of s[1].split(",")){const j=L.trim();if(!j)continue;const F=j.split(/\s+as\s+/);t.add(F[F.length-1].trim())}const i=/import\s+([A-Z]\w*)\s+from\s*['"][^'"]+['"]/g;for(;s=i.exec(e);)t.add(s[1]);const o=/import\s*\*\s*as\s+(\w+)\s+from\s*['"][^'"]+['"]/g;for(;s=o.exec(e);)t.add(s[1]);const c=/(?:const|let|var)\s+(\w+)/g;for(;s=c.exec(e);)t.add(s[1]);const u=/function\s+(\w+)/g;for(;s=u.exec(e);)t.add(s[1]);const h=/class\s+(\w+)/g;for(;s=h.exec(e);)t.add(s[1]);const f=/enum\s+(\w+)/g;for(;s=f.exec(e);)t.add(s[1]);const m=/(?:type|interface)\s+(\w+)/g;for(;s=m.exec(e);)t.add(s[1]);const x=/<([A-Z]\w*)/g,_=[],y=new Set;for(;s=x.exec(e);){const L=s[1];if(t.has(L)||y.has(L))continue;y.add(L);const F=e.substring(0,s.index).split(`
199
- `).length;_.push({name:L,line:F})}return _}function Jd(e,t){let r;try{r=k1(e,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return[]}const s=new Set(y1);Is(r,{ImportDeclaration(c){for(const u of c.specifiers)s.add(u.local.name)},VariableDeclarator(c){yt(c.id,s)},FunctionDeclaration(c){c.id&&s.add(c.id.name)},ClassDeclaration(c){c.id&&s.add(c.id.name)}}),Is(r,{FunctionDeclaration(c){Es(c.params,s)},FunctionExpression(c){Es(c.params,s)},ArrowFunctionExpression(c){Es(c.params,s)},CatchClause(c){c.param&&yt(c.param,s)},ForInStatement(c){if(c.left.type==="VariableDeclaration")for(const u of c.left.declarations)yt(u.id,s)},ForOfStatement(c){if(c.left.type==="VariableDeclaration")for(const u of c.left.declarations)yt(u.id,s)}});const i=[],o=new Set;return Is(r,{Identifier(c){const u=c.name;s.has(u)||o.has(u)}}),Kd(r,{Identifier(c,u,h){var y,L;const f=c.name;if(s.has(f)||o.has(f))return;const m=h[h.length-2];if(!m||m.type==="MemberExpression"&&m.property===c&&!m.computed||m.type==="Property"&&m.key===c&&!m.computed||m.type==="ImportSpecifier"||m.type==="ImportDefaultSpecifier"||m.type==="ImportNamespaceSpecifier"||m.type==="VariableDeclarator"&&m.id===c||m.type==="FunctionDeclaration"&&m.id===c||m.type==="ClassDeclaration"&&m.id===c||m.type==="LabeledStatement"&&m.label===c||(m.type==="BreakStatement"||m.type==="ContinueStatement")&&m.label===c||m.type==="MethodDefinition"&&m.key===c||m.type==="JSXAttribute"&&m.name===c||m.type==="JSXOpeningElement"&&m.name===c||m.type==="JSXClosingElement"&&m.name===c)return;o.add(f);const x=((L=(y=c.loc)==null?void 0:y.start)==null?void 0:L.line)??1,_=Math.min(x,t);i.push({name:f,line:_})}}),i}function yt(e,t){if(e)switch(e.type){case"Identifier":t.add(e.name);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?yt(r.argument,t):yt(r.value,t);break;case"ArrayPattern":for(const r of e.elements)r&&yt(r,t);break;case"RestElement":yt(e.argument,t);break;case"AssignmentPattern":yt(e.left,t);break}}function Es(e,t){for(const r of e)yt(r,t)}function jn(e,t){const r=e.split(`
200
- `),s=[];let i=null,o=null,c=0;if(t>0&&t<=r.length){const h=r[t-1].match(/^(\s*)/);c=h?h[1].length:0}for(let u=Math.min(t-1,r.length-1);u>=0;u--){const h=r[u];if(!i){const f=h.match(/^(\s*)(export\s+default\s+)?function\s+(\w+)/);f&&(i={name:f[3],line:u+1});const m=h.match(/^(\s*)(export\s+default\s+)?const\s+(\w+)\s*=\s*(\([^)]*\)|[^=])*=>/);m&&(i={name:m[3],line:u+1})}if(!o){const f=h.match(/activePage\s*===\s*['"](\w+)['"]/);f&&(o={page:f[1],line:u+1})}if(i&&o)break}return i&&s.push(`inside function ${i.name} (line ${i.line})`),o&&s.push(`inside activePage === '${o.page}' block (line ${o.line})`),s.length===0&&s.push(`at indent level ${c} spaces`),s.join(", ")}function Zd(e){const t=e.split(`
201
- `),r=[],s=/\{?\/\*\s*@section:\s*(.+?)\s*\*\/\}?/;for(let i=0;i<t.length;i++){const o=t[i].match(s);o&&r.push({name:o[1].trim(),startLine:i+1,endLine:t.length})}for(let i=0;i<r.length;i++)if(i+1<r.length)r[i].endLine=r[i+1].startLine-1;else{let o=t.length;for(let c=r[i].startLine;c<t.length;c++)if(t[c].includes("</main>")||t[c].match(/^\s*<\/div>\s*$/)){o=c;break}r[i].endLine=o}return r}function Fn(e,t){const r=e.split(`
198
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Dt(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(s,8);return i>255&&(s=s.slice(0,-1),i=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Tr(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};pe.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};pe.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ht(i,s))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(t?Ct:Ht)(c,s)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Dt(c),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};pe.readWord=function(){var e=this.readWord1(),t=l.name;return this.keywords.test(e)&&(t=yi[e]),this.finishToken(t,e)};var Kd="8.16.0";$e.acorn={Parser:$e,version:Kd,defaultOptions:Vs,Position:sn,SourceLocation:Kn,getLineInfo:Vo,Node:es,TokenType:ge,tokTypes:l,keywordTypes:yi,TokContext:pt,tokContexts:Ne,isIdentifierChar:Ht,isIdentifierStart:Ct,Token:Ei,isNewLine:Tr,lineBreak:Je,lineBreakG:kd,nonASCIIwhitespace:Bo};function kc(e,t){return $e.parse(e,t)}function Is(e,t,r,s,i){r||(r=L),function o(c,u,f){var h=f||c.type;bc(r,h,c,u,o),t[h]&&t[h](c,u)}(e,s,i)}function Qd(e,t,r,s,i){var o=[];r||(r=L),function c(u,f,h){var d=h||u.type,x=u!==o[o.length-1];x&&o.push(u),bc(r,d,u,f,c),t[d]&&t[d](u,f||o,o),x&&o.pop()}(e,s,i)}function Ci(e,t,r){r(e,t)}function lr(e,t,r){}function bc(e,t,r,s,i){if(e[t]==null)throw new Error("No walker function defined for node type "+t);e[t](r,s,i)}var L={};L.Program=L.BlockStatement=L.StaticBlock=function(e,t,r){for(var s=0,i=e.body;s<i.length;s+=1){var o=i[s];r(o,t,"Statement")}};L.Statement=Ci;L.EmptyStatement=lr;L.ExpressionStatement=L.ParenthesizedExpression=L.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};L.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")};L.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};L.BreakStatement=L.ContinueStatement=lr;L.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")};L.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var s=0,i=e.cases;s<i.length;s+=1){var o=i[s];r(o,t)}};L.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var s=0,i=e.consequent;s<i.length;s+=1){var o=i[s];r(o,t,"Statement")}};L.ReturnStatement=L.YieldExpression=L.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")};L.ThrowStatement=L.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};L.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")};L.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")};L.WhileStatement=L.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")};L.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")};L.ForInStatement=L.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")};L.ForInit=function(e,t,r){e.type==="VariableDeclaration"?r(e,t):r(e,t,"Expression")};L.DebuggerStatement=lr;L.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};L.VariableDeclaration=function(e,t,r){for(var s=0,i=e.declarations;s<i.length;s+=1){var o=i[s];r(o,t)}};L.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")};L.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var s=0,i=e.params;s<i.length;s+=1){var o=i[s];r(o,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};L.Pattern=function(e,t,r){e.type==="Identifier"?r(e,t,"VariablePattern"):e.type==="MemberExpression"?r(e,t,"MemberPattern"):r(e,t)};L.VariablePattern=lr;L.MemberPattern=Ci;L.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};L.ArrayPattern=function(e,t,r){for(var s=0,i=e.elements;s<i.length;s+=1){var o=i[s];o&&r(o,t,"Pattern")}};L.ObjectPattern=function(e,t,r){for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];o.type==="Property"?(o.computed&&r(o.key,t,"Expression"),r(o.value,t,"Pattern")):o.type==="RestElement"&&r(o.argument,t,"Pattern")}};L.Expression=Ci;L.ThisExpression=L.Super=L.MetaProperty=lr;L.ArrayExpression=function(e,t,r){for(var s=0,i=e.elements;s<i.length;s+=1){var o=i[s];o&&r(o,t,"Expression")}};L.ObjectExpression=function(e,t,r){for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];r(o,t)}};L.FunctionExpression=L.ArrowFunctionExpression=L.FunctionDeclaration;L.SequenceExpression=function(e,t,r){for(var s=0,i=e.expressions;s<i.length;s+=1){var o=i[s];r(o,t,"Expression")}};L.TemplateLiteral=function(e,t,r){for(var s=0,i=e.quasis;s<i.length;s+=1){var o=i[s];r(o,t)}for(var c=0,u=e.expressions;c<u.length;c+=1){var f=u[c];r(f,t,"Expression")}};L.TemplateElement=lr;L.UnaryExpression=L.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};L.BinaryExpression=L.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")};L.AssignmentExpression=L.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")};L.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")};L.NewExpression=L.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var s=0,i=e.arguments;s<i.length;s+=1){var o=i[s];r(o,t,"Expression")}};L.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")};L.ExportNamedDeclaration=L.ExportDefaultDeclaration=function(e,t,r){if(e.declaration&&r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression"),e.attributes)for(var s=0,i=e.attributes;s<i.length;s+=1){var o=i[s];r(o,t)}};L.ExportAllDeclaration=function(e,t,r){if(e.exported&&r(e.exported,t),r(e.source,t,"Expression"),e.attributes)for(var s=0,i=e.attributes;s<i.length;s+=1){var o=i[s];r(o,t)}};L.ImportAttribute=function(e,t,r){r(e.value,t,"Expression")};L.ImportDeclaration=function(e,t,r){for(var s=0,i=e.specifiers;s<i.length;s+=1){var o=i[s];r(o,t)}if(r(e.source,t,"Expression"),e.attributes)for(var c=0,u=e.attributes;c<u.length;c+=1){var f=u[c];r(f,t)}};L.ImportExpression=function(e,t,r){r(e.source,t,"Expression"),e.options&&r(e.options,t,"Expression")};L.ImportSpecifier=L.ImportDefaultSpecifier=L.ImportNamespaceSpecifier=L.Identifier=L.PrivateIdentifier=L.Literal=lr;L.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")};L.ClassDeclaration=L.ClassExpression=function(e,t,r){return r(e,t,"Class")};L.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)};L.ClassBody=function(e,t,r){for(var s=0,i=e.body;s<i.length;s+=1){var o=i[s];r(o,t)}};L.MethodDefinition=L.PropertyDefinition=L.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),e.value&&r(e.value,t,"Expression")};let Yr=0;const yc=new Set(["React","Fragment","window","document","navigator","location","history","localStorage","sessionStorage","console","fetch","URL","URLSearchParams","FormData","Headers","Request","Response","Blob","File","FileReader","FileList","AbortController","AbortSignal","Event","CustomEvent","EventTarget","MutationObserver","IntersectionObserver","ResizeObserver","requestAnimationFrame","cancelAnimationFrame","setTimeout","setInterval","clearTimeout","clearInterval","HTMLElement","SVGElement","Element","Node","NodeList","Math","Date","JSON","Array","Object","String","Number","Boolean","BigInt","Symbol","RegExp","Promise","Set","Map","WeakSet","WeakMap","Proxy","Reflect","Error","TypeError","ReferenceError","RangeError","SyntaxError","URIError","parseInt","parseFloat","isNaN","isFinite","NaN","Infinity","undefined","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","btoa","atob","structuredClone","queueMicrotask","Record","Partial","Required","Readonly","Pick","Omit","Exclude","Extract","require","module","exports","globalThis","self","_jsxDEV","_jsxs","_jsx","_Fragment","DataTable","MetricCard","StatusBadge","DetailCard","StepWizard","Logo","Avatar","cn"]);function Jd(e){const t=new Set(yc),r=/import\s*\{([^}]+)\}\s*from\s*['"][^'"]+['"]/g;let s;for(;s=r.exec(e);)for(const N of s[1].split(",")){const O=N.trim();if(!O)continue;const F=O.split(/\s+as\s+/);t.add(F[F.length-1].trim())}const i=/import\s+([A-Z]\w*)\s+from\s*['"][^'"]+['"]/g;for(;s=i.exec(e);)t.add(s[1]);const o=/import\s*\*\s*as\s+(\w+)\s+from\s*['"][^'"]+['"]/g;for(;s=o.exec(e);)t.add(s[1]);const c=/(?:const|let|var)\s+(\w+)/g;for(;s=c.exec(e);)t.add(s[1]);const u=/function\s+(\w+)/g;for(;s=u.exec(e);)t.add(s[1]);const f=/class\s+(\w+)/g;for(;s=f.exec(e);)t.add(s[1]);const h=/enum\s+(\w+)/g;for(;s=h.exec(e);)t.add(s[1]);const d=/(?:type|interface)\s+(\w+)/g;for(;s=d.exec(e);)t.add(s[1]);const x=/<([A-Z]\w*)/g,y=[],b=new Set;for(;s=x.exec(e);){const N=s[1];if(t.has(N)||b.has(N))continue;b.add(N);const F=e.substring(0,s.index).split(`
199
+ `).length;y.push({name:N,line:F})}return y}function Zd(e,t){let r;try{r=kc(e,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return[]}const s=new Set(yc);Is(r,{ImportDeclaration(c){for(const u of c.specifiers)s.add(u.local.name)},VariableDeclarator(c){vt(c.id,s)},FunctionDeclaration(c){c.id&&s.add(c.id.name)},ClassDeclaration(c){c.id&&s.add(c.id.name)}}),Is(r,{FunctionDeclaration(c){Es(c.params,s)},FunctionExpression(c){Es(c.params,s)},ArrowFunctionExpression(c){Es(c.params,s)},CatchClause(c){c.param&&vt(c.param,s)},ForInStatement(c){if(c.left.type==="VariableDeclaration")for(const u of c.left.declarations)vt(u.id,s)},ForOfStatement(c){if(c.left.type==="VariableDeclaration")for(const u of c.left.declarations)vt(u.id,s)}});const i=[],o=new Set;return Is(r,{Identifier(c){const u=c.name;s.has(u)||o.has(u)}}),Qd(r,{Identifier(c,u,f){var b,N;const h=c.name;if(s.has(h)||o.has(h))return;const d=f[f.length-2];if(!d||d.type==="MemberExpression"&&d.property===c&&!d.computed||d.type==="Property"&&d.key===c&&!d.computed||d.type==="ImportSpecifier"||d.type==="ImportDefaultSpecifier"||d.type==="ImportNamespaceSpecifier"||d.type==="VariableDeclarator"&&d.id===c||d.type==="FunctionDeclaration"&&d.id===c||d.type==="ClassDeclaration"&&d.id===c||d.type==="LabeledStatement"&&d.label===c||(d.type==="BreakStatement"||d.type==="ContinueStatement")&&d.label===c||d.type==="MethodDefinition"&&d.key===c||d.type==="JSXAttribute"&&d.name===c||d.type==="JSXOpeningElement"&&d.name===c||d.type==="JSXClosingElement"&&d.name===c)return;o.add(h);const x=((N=(b=c.loc)==null?void 0:b.start)==null?void 0:N.line)??1,y=Math.min(x,t);i.push({name:h,line:y})}}),i}function vt(e,t){if(e)switch(e.type){case"Identifier":t.add(e.name);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?vt(r.argument,t):vt(r.value,t);break;case"ArrayPattern":for(const r of e.elements)r&&vt(r,t);break;case"RestElement":vt(e.argument,t);break;case"AssignmentPattern":vt(e.left,t);break}}function Es(e,t){for(const r of e)vt(r,t)}function Bn(e,t){const r=e.split(`
200
+ `),s=[];let i=null,o=null,c=0;if(t>0&&t<=r.length){const f=r[t-1].match(/^(\s*)/);c=f?f[1].length:0}for(let u=Math.min(t-1,r.length-1);u>=0;u--){const f=r[u];if(!i){const h=f.match(/^(\s*)(export\s+default\s+)?function\s+(\w+)/);h&&(i={name:h[3],line:u+1});const d=f.match(/^(\s*)(export\s+default\s+)?const\s+(\w+)\s*=\s*(\([^)]*\)|[^=])*=>/);d&&(i={name:d[3],line:u+1})}if(!o){const h=f.match(/activePage\s*===\s*['"](\w+)['"]/);h&&(o={page:h[1],line:u+1})}if(i&&o)break}return i&&s.push(`inside function ${i.name} (line ${i.line})`),o&&s.push(`inside activePage === '${o.page}' block (line ${o.line})`),s.length===0&&s.push(`at indent level ${c} spaces`),s.join(", ")}function em(e){const t=e.split(`
201
+ `),r=[],s=/\{?\/\*\s*@section:\s*(.+?)\s*\*\/\}?/;for(let i=0;i<t.length;i++){const o=t[i].match(s);o&&r.push({name:o[1].trim(),startLine:i+1,endLine:t.length})}for(let i=0;i<r.length;i++)if(i+1<r.length)r[i].endLine=r[i+1].startLine-1;else{let o=t.length;for(let c=r[i].startLine;c<t.length;c++)if(t[c].includes("</main>")||t[c].match(/^\s*<\/div>\s*$/)){o=c;break}r[i].endLine=o}return r}function $n(e,t){const r=e.split(`
202
202
  `),s=Math.max(0,t-6),i=Math.min(r.length,t+5);return r.slice(s,i).map((o,c)=>{const u=s+c+1;return`${u===t?">>>":" "} ${u}: ${o}`}).join(`
203
- `)}function es(e,t={}){var m;const{filename:r="App.tsx",isTypeScript:s,isJSX:i}=t,o=((m=r.split(".").pop())==null?void 0:m.toLowerCase())??"",c=[];(s??(o==="tsx"||o==="ts"))&&c.push("typescript"),(i??(o==="tsx"||o==="jsx"))&&c.push("jsx");const u=[],h=Zd(e);let f="";try{f=ud(e,{transforms:c,jsxRuntime:"automatic",production:!1,filePath:r}).code}catch(x){const _=tm(x,e);return u.push(_),{code:"",error:_,errors:u,sections:h}}try{k1(f,{ecmaVersion:"latest",sourceType:"module"})}catch(x){const _=(x.message||"").toLowerCase();if(_.includes("export")||_.includes("import")){const y=em(x,e);u.push(y)}}if((o==="tsx"||o==="jsx")&&!/export\s+default\s/.test(e)&&!/module\.exports/.test(e)&&u.push({id:`struct-${++Gr}`,category:"transpilation",severity:"error",message:'Missing "export default" — component will not render in preview',timestamp:new Date().toISOString()}),o==="tsx"||o==="jsx"){const x=Qd(e);for(const{name:_,line:y}of x)u.push({id:`scope-${++Gr}`,category:"runtime",severity:"error",message:`"${_}" is used in JSX but not imported or declared — will cause ReferenceError at runtime`,line:y,sourceContext:Fn(e,y),location:jn(e,y),timestamp:new Date().toISOString()})}if(o==="tsx"||o==="jsx"||o==="ts"||o==="js"){const x=e.split(`
204
- `).length,_=Jd(f,x);for(const{name:y,line:L}of _)u.some(j=>j.message.includes(`"${y}"`))||u.push({id:`scope-${++Gr}`,category:"runtime",severity:"error",message:`"${y}" is not defined — will cause ReferenceError at runtime. Check spelling or add import/declaration.`,line:L,sourceContext:Fn(e,L),location:jn(e,L),timestamp:new Date().toISOString()})}return{code:f,error:u.length>0?u[0]:null,errors:u,sections:h}}function em(e,t,r){const s=e.message||"Module validation failed";let i,o;e.loc&&(i=e.loc.line,o=e.loc.column+1);const c=i?Fn(t,i):void 0,u=i?jn(t,i):void 0,h=s.replace(/\s*\(\d+:\d+\)\s*$/,"");return{id:`module-${++Gr}`,category:"transpilation",severity:"error",message:h,line:i,column:o,sourceContext:c,location:u,timestamp:new Date().toISOString()}}function tm(e,t){var f,m;const r=e.message||"Transpilation failed";let s,i;const o=r.match(/\((\d+):(\d+)\)/);if(o&&(s=parseInt(o[1],10),i=parseInt(o[2],10)),!s&&typeof e.pos=="number"){const x=t.substring(0,e.pos).split(`
205
- `);s=x.length,i=(((f=x[x.length-1])==null?void 0:f.length)??0)+1}const c=s?Fn(t,s):void 0,u=s?jn(t,s):void 0;let h="";if(s&&(r.includes("Unexpected token")||r.includes("Unterminated"))){const x=t.split(`
206
- `).length,_=rm(t),y=((m=t.split(`
207
- `).reverse().find(F=>F.trim()))==null?void 0:m.trim())??"",L=/^[}\])\s;]*$/.test(y)||y.endsWith("};");if(x>20&&_>=2&&!L)h=` — FILE APPEARS TRUNCATED (${_} unclosed brackets/tags at end of file). The code was cut off mid-generation. Do NOT try to fix syntax — instead, use content_tool edit to add the missing closing code from where it was cut off.`;else{const F=nm(t);if(F){const ne=F.char==="{"?"brace":F.char==="("?"parenthesis":"bracket";h=` — likely caused by unclosed '${F.char}' (${ne}) on line ${F.line}. Read lines ${Math.max(1,F.line-2)}–${F.line+10} to find where the closing '${F.char==="{"?"}":F.char==="("?")":"]"}' is missing, then add it with content_tool edit.`}}}return{id:`transpile-${++Gr}`,category:"transpilation",severity:"error",message:sm(r)+h,line:s,column:i,sourceContext:c,location:u,timestamp:new Date().toISOString()}}function rm(e){const t={"(":")","[":"]","{":"}"},r=new Set([")","]","}"]),s=[];let i=!1,o="",c=!1,u=!1,h=!1;for(let f=0;f<e.length;f++){const m=e[f],x=e[f+1];if(m===`
208
- `){u=!1;continue}if(!u){if(h){m==="*"&&x==="/"&&(h=!1,f++);continue}if(i){if(m==="\\"){f++;continue}m===o&&(i=!1);continue}if(c){if(m==="\\"){f++;continue}m==="`"&&(c=!1);continue}if(m==="/"&&x==="/"){u=!0,f++;continue}if(m==="/"&&x==="*"){h=!0,f++;continue}if(m==="'"||m==='"'){i=!0,o=m;continue}if(m==="`"){c=!0;continue}t[m]?s.push(m):r.has(m)&&s.length>0&&s.pop()}}return s.length}function nm(e,t){const r={"(":")","[":"]","{":"}"},s={")":"(","]":"[","}":"{"},i=[];let o=!1,c="",u=!1,h=!1,f=!1,m=1,x=null;for(let _=0;_<e.length;_++){const y=e[_],L=e[_+1];if(y===`
209
- `){m++,h=!1;continue}if(!h){if(f){y==="*"&&L==="/"&&(f=!1,_++);continue}if(o){if(y==="\\"){_++;continue}y===c&&(o=!1);continue}if(u){if(y==="\\"){_++;continue}y==="`"&&(u=!1);continue}if(y==="/"&&L==="/"){h=!0,_++;continue}if(y==="/"&&L==="*"){f=!0,_++;continue}if(y==="'"||y==='"'){o=!0,c=y;continue}if(y==="`"){u=!0;continue}r[y]?i.push({char:y,line:m}):s[y]&&(i.length>0&&i[i.length-1].char===s[y]?i.pop():x||(x=i.length>0?i[i.length-1]:{char:y,line:m}))}}return x||(i.length>0?i[0]:null)}function sm(e){return e.replace(/^\/[^:]+:\s*/,"").replace(/^Error:\s*/,"")}function im(e){const t={};for(const[r,s]of Object.entries(e))t[r]=es(s,{filename:r});return t}const am="https://esm.sh";function Ti(e={}){var h,f;const t=e.cdnBase||am,r="18.2.0",s="?external=react,react-dom",i={react:`${t}/react@${r}?dev`,"react/":`${t}/react@${r}&dev/`,"react-dom":`${t}/react-dom@${r}?dev`,"react-dom/":`${t}/react-dom@${r}&dev/`,"react/jsx-runtime":`${t}/react@${r}/jsx-runtime?dev`,"react/jsx-dev-runtime":`${t}/react@${r}/jsx-dev-runtime?dev`,"class-variance-authority":`${t}/class-variance-authority@0.7.1`,clsx:`${t}/clsx@2.1.1`,"tailwind-merge":`${t}/tailwind-merge@2.6.0`,"lucide-react":`${t}/lucide-react@0.468.0${s}`,"react-icons/":`${t}/react-icons@5.4.0/`,"date-fns":`${t}/date-fns@4.1.0`,"date-fns/":`${t}/date-fns@4.1.0/`,"chart.js":`${t}/chart.js@4.4.8/auto`,"chart.js/auto":`${t}/chart.js@4.4.8/auto`,"chart.js/":`${t}/chart.js@4.4.8/`,"react-chartjs-2":`${t}/react-chartjs-2@5.3.0${s}`,recharts:`${t}/recharts@2.15.0${s}`,"recharts/":`${t}/recharts@2.15.0&external=react,react-dom/`,"framer-motion":`${t}/framer-motion@11.18.0${s}`,"framer-motion/":`${t}/framer-motion@11.18.0&external=react,react-dom/`,"react-hook-form":`${t}/react-hook-form@7.54.2${s}`,zod:`${t}/zod@3.24.1`,"@hookform/resolvers":`${t}/@hookform/resolvers@3.9.1${s}`,"@hookform/resolvers/":`${t}/@hookform/resolvers@3.9.1&external=react,react-dom/`,"@tanstack/react-table":`${t}/@tanstack/react-table@8.21.2${s}`,zustand:`${t}/zustand@5.0.3${s}`,"zustand/":`${t}/zustand@5.0.3&external=react,react-dom/`,"react-router-dom":`${t}/react-router-dom@6.28.2${s}`,"react-router-dom/":`${t}/react-router-dom@6.28.2&external=react,react-dom/`,sonner:`${t}/sonner@1.7.3${s}`,cmdk:`${t}/cmdk@1.0.4${s}`,"@dnd-kit/core":`${t}/@dnd-kit/core@6.3.1${s}`,"@dnd-kit/sortable":`${t}/@dnd-kit/sortable@10.0.0${s}`,"@dnd-kit/utilities":`${t}/@dnd-kit/utilities@3.2.2`,axios:`${t}/axios@1.7.9`,"axios/":`${t}/axios@1.7.9/`,"lodash-es":`${t}/lodash-es@4.17.21`,"lodash-es/":`${t}/lodash-es@4.17.21/`,nanoid:`${t}/nanoid@5.0.9`,uuid:`${t}/uuid@11.0.5`,"react-markdown":`${t}/react-markdown@9.0.3${s}`,"remark-gfm":`${t}/remark-gfm@4.0.0`,"react-syntax-highlighter":`${t}/react-syntax-highlighter@15.6.1${s}`,"react-syntax-highlighter/":`${t}/react-syntax-highlighter@15.6.1&external=react,react-dom/`,"react-leaflet":`${t}/react-leaflet@4.2.1${s}`,"react-leaflet/":`${t}/react-leaflet@4.2.1&external=react,react-dom/`,leaflet:`${t}/leaflet@1.9.4`,"leaflet/":`${t}/leaflet@1.9.4/`,"react-player":`${t}/react-player@2.16.0${s}`,"react-player/":`${t}/react-player@2.16.0&external=react,react-dom/`,"usehooks-ts":`${t}/usehooks-ts@3.1.0${s}`,"react-colorful":`${t}/react-colorful@5.6.1${s}`,"@radix-ui/react-slot":`${t}/@radix-ui/react-slot@1.1.1${s}`,"@radix-ui/react-accordion":`${t}/@radix-ui/react-accordion@1.2.2${s}`,"@radix-ui/react-alert-dialog":`${t}/@radix-ui/react-alert-dialog@1.1.4${s}`,"@radix-ui/react-aspect-ratio":`${t}/@radix-ui/react-aspect-ratio@1.1.1${s}`,"@radix-ui/react-avatar":`${t}/@radix-ui/react-avatar@1.1.2${s}`,"@radix-ui/react-checkbox":`${t}/@radix-ui/react-checkbox@1.1.3${s}`,"@radix-ui/react-collapsible":`${t}/@radix-ui/react-collapsible@1.1.2${s}`,"@radix-ui/react-context-menu":`${t}/@radix-ui/react-context-menu@2.2.4${s}`,"@radix-ui/react-dialog":`${t}/@radix-ui/react-dialog@1.1.4${s}`,"@radix-ui/react-dropdown-menu":`${t}/@radix-ui/react-dropdown-menu@2.1.4${s}`,"@radix-ui/react-hover-card":`${t}/@radix-ui/react-hover-card@1.1.4${s}`,"@radix-ui/react-label":`${t}/@radix-ui/react-label@2.1.1${s}`,"@radix-ui/react-menubar":`${t}/@radix-ui/react-menubar@1.1.4${s}`,"@radix-ui/react-navigation-menu":`${t}/@radix-ui/react-navigation-menu@1.2.3${s}`,"@radix-ui/react-popover":`${t}/@radix-ui/react-popover@1.1.4${s}`,"@radix-ui/react-progress":`${t}/@radix-ui/react-progress@1.1.1${s}`,"@radix-ui/react-radio-group":`${t}/@radix-ui/react-radio-group@1.2.2${s}`,"@radix-ui/react-scroll-area":`${t}/@radix-ui/react-scroll-area@1.2.2${s}`,"@radix-ui/react-select":`${t}/@radix-ui/react-select@2.1.4${s}`,"@radix-ui/react-separator":`${t}/@radix-ui/react-separator@1.1.1${s}`,"@radix-ui/react-slider":`${t}/@radix-ui/react-slider@1.2.2${s}`,"@radix-ui/react-switch":`${t}/@radix-ui/react-switch@1.1.2${s}`,"@radix-ui/react-tabs":`${t}/@radix-ui/react-tabs@1.1.2${s}`,"@radix-ui/react-toast":`${t}/@radix-ui/react-toast@1.2.4${s}`,"@radix-ui/react-toggle":`${t}/@radix-ui/react-toggle@1.1.1${s}`,"@radix-ui/react-toggle-group":`${t}/@radix-ui/react-toggle-group@1.1.1${s}`,"@radix-ui/react-tooltip":`${t}/@radix-ui/react-tooltip@1.1.6${s}`,"@radix-ui/react-portal":`${t}/@radix-ui/react-portal@1.1.3${s}`,"@radix-ui/react-visually-hidden":`${t}/@radix-ui/react-visually-hidden@1.1.1${s}`,"@radix-ui/react-collection":`${t}/@radix-ui/react-collection@1.1.1${s}`,"@radix-ui/react-context":`${t}/@radix-ui/react-context@1.1.1${s}`,"embla-carousel-react":`${t}/embla-carousel-react@8.5.1${s}`,"embla-carousel-autoplay":`${t}/embla-carousel-autoplay@8.5.1`,vaul:`${t}/vaul@1.1.2${s}`,"resize-observer-polyfill":`${t}/resize-observer-polyfill@1.5.1`,"react-resizable-panels":`${t}/react-resizable-panels@2.1.7${s}`,"react-day-picker":`${t}/react-day-picker@9.4.4${s}`,"input-otp":`${t}/input-otp@1.4.1${s}`,"react-dropzone":`${t}/react-dropzone@14.3.5${s}`,"qrcode.react":`${t}/qrcode.react@4.2.0${s}`},o=["esm.sh","cdn.jsdelivr.net","unpkg.com","cdn.skypack.dev","cdnjs.cloudflare.com"];if(e.dependencies)for(const[m,x]of Object.entries(e.dependencies))if(x.startsWith("http")){try{const _=new URL(x);if(!o.some(y=>_.hostname===y||_.hostname.endsWith("."+y))){console.warn(`[codeviz] Blocked untrusted CDN URL for "${m}": ${x}`);continue}}catch{console.warn(`[codeviz] Invalid URL for "${m}": ${x}`);continue}i[m]=x}else i[m]=`${t}/${m}@${x}${s}`;const c={...i,...((h=e.overrides)==null?void 0:h.imports)||{}},u={react:`${t}/react@${r}?dev`,"react/":`${t}/react@${r}&dev/`,"react-dom":`${t}/react-dom@${r}?dev`,"react-dom/":`${t}/react-dom@${r}&dev/`,"react/jsx-runtime":`${t}/react@${r}/jsx-runtime?dev`,"react/jsx-dev-runtime":`${t}/react@${r}/jsx-dev-runtime?dev`};return{imports:c,scopes:{[`${t}/`]:u,...((f=e.overrides)==null?void 0:f.scopes)||{}}}}function Ai(e){return`<script type="importmap">${JSON.stringify(e,null,2)}<\/script>`}function v1(){return`Available packages (just import, no install needed):
203
+ `)}function rs(e,t={}){var d;const{filename:r="App.tsx",isTypeScript:s,isJSX:i}=t,o=((d=r.split(".").pop())==null?void 0:d.toLowerCase())??"",c=[];(s??(o==="tsx"||o==="ts"))&&c.push("typescript"),(i??(o==="tsx"||o==="jsx"))&&c.push("jsx");const u=[],f=em(e);let h="";try{h=pd(e,{transforms:c,jsxRuntime:"automatic",production:!1,filePath:r}).code}catch(x){const y=rm(x,e);return u.push(y),{code:"",error:y,errors:u,sections:f}}try{kc(h,{ecmaVersion:"latest",sourceType:"module"})}catch(x){const y=(x.message||"").toLowerCase();if(y.includes("export")||y.includes("import")){const b=tm(x,e);u.push(b)}}if((o==="tsx"||o==="jsx")&&!/export\s+default\s/.test(e)&&!/module\.exports/.test(e)&&u.push({id:`struct-${++Yr}`,category:"transpilation",severity:"error",message:'Missing "export default" — component will not render in preview',timestamp:new Date().toISOString()}),o==="tsx"||o==="jsx"){const x=Jd(e);for(const{name:y,line:b}of x)u.push({id:`scope-${++Yr}`,category:"runtime",severity:"error",message:`"${y}" is used in JSX but not imported or declared — will cause ReferenceError at runtime`,line:b,sourceContext:$n(e,b),location:Bn(e,b),timestamp:new Date().toISOString()})}if(o==="tsx"||o==="jsx"||o==="ts"||o==="js"){const x=e.split(`
204
+ `).length,y=Zd(h,x);for(const{name:b,line:N}of y)u.some(O=>O.message.includes(`"${b}"`))||u.push({id:`scope-${++Yr}`,category:"runtime",severity:"error",message:`"${b}" is not defined — will cause ReferenceError at runtime. Check spelling or add import/declaration.`,line:N,sourceContext:$n(e,N),location:Bn(e,N),timestamp:new Date().toISOString()})}return{code:h,error:u.length>0?u[0]:null,errors:u,sections:f}}function tm(e,t,r){const s=e.message||"Module validation failed";let i,o;e.loc&&(i=e.loc.line,o=e.loc.column+1);const c=i?$n(t,i):void 0,u=i?Bn(t,i):void 0,f=s.replace(/\s*\(\d+:\d+\)\s*$/,"");return{id:`module-${++Yr}`,category:"transpilation",severity:"error",message:f,line:i,column:o,sourceContext:c,location:u,timestamp:new Date().toISOString()}}function rm(e,t){var h,d;const r=e.message||"Transpilation failed";let s,i;const o=r.match(/\((\d+):(\d+)\)/);if(o&&(s=parseInt(o[1],10),i=parseInt(o[2],10)),!s&&typeof e.pos=="number"){const x=t.substring(0,e.pos).split(`
205
+ `);s=x.length,i=(((h=x[x.length-1])==null?void 0:h.length)??0)+1}const c=s?$n(t,s):void 0,u=s?Bn(t,s):void 0;let f="";if(s&&(r.includes("Unexpected token")||r.includes("Unterminated"))){const x=t.split(`
206
+ `).length,y=nm(t),b=((d=t.split(`
207
+ `).reverse().find(F=>F.trim()))==null?void 0:d.trim())??"",N=/^[}\])\s;]*$/.test(b)||b.endsWith("};");if(x>20&&y>=2&&!N)f=` — FILE APPEARS TRUNCATED (${y} unclosed brackets/tags at end of file). The code was cut off mid-generation. Do NOT try to fix syntax — instead, use content_tool edit to add the missing closing code from where it was cut off.`;else{const F=sm(t);if(F){const ee=F.char==="{"?"brace":F.char==="("?"parenthesis":"bracket";f=` — likely caused by unclosed '${F.char}' (${ee}) on line ${F.line}. Read lines ${Math.max(1,F.line-2)}–${F.line+10} to find where the closing '${F.char==="{"?"}":F.char==="("?")":"]"}' is missing, then add it with content_tool edit.`}}}return{id:`transpile-${++Yr}`,category:"transpilation",severity:"error",message:im(r)+f,line:s,column:i,sourceContext:c,location:u,timestamp:new Date().toISOString()}}function nm(e){const t={"(":")","[":"]","{":"}"},r=new Set([")","]","}"]),s=[];let i=!1,o="",c=!1,u=!1,f=!1;for(let h=0;h<e.length;h++){const d=e[h],x=e[h+1];if(d===`
208
+ `){u=!1;continue}if(!u){if(f){d==="*"&&x==="/"&&(f=!1,h++);continue}if(i){if(d==="\\"){h++;continue}d===o&&(i=!1);continue}if(c){if(d==="\\"){h++;continue}d==="`"&&(c=!1);continue}if(d==="/"&&x==="/"){u=!0,h++;continue}if(d==="/"&&x==="*"){f=!0,h++;continue}if(d==="'"||d==='"'){i=!0,o=d;continue}if(d==="`"){c=!0;continue}t[d]?s.push(d):r.has(d)&&s.length>0&&s.pop()}}return s.length}function sm(e,t){const r={"(":")","[":"]","{":"}"},s={")":"(","]":"[","}":"{"},i=[];let o=!1,c="",u=!1,f=!1,h=!1,d=1,x=null;for(let y=0;y<e.length;y++){const b=e[y],N=e[y+1];if(b===`
209
+ `){d++,f=!1;continue}if(!f){if(h){b==="*"&&N==="/"&&(h=!1,y++);continue}if(o){if(b==="\\"){y++;continue}b===c&&(o=!1);continue}if(u){if(b==="\\"){y++;continue}b==="`"&&(u=!1);continue}if(b==="/"&&N==="/"){f=!0,y++;continue}if(b==="/"&&N==="*"){h=!0,y++;continue}if(b==="'"||b==='"'){o=!0,c=b;continue}if(b==="`"){u=!0;continue}r[b]?i.push({char:b,line:d}):s[b]&&(i.length>0&&i[i.length-1].char===s[b]?i.pop():x||(x=i.length>0?i[i.length-1]:{char:b,line:d}))}}return x||(i.length>0?i[0]:null)}function im(e){return e.replace(/^\/[^:]+:\s*/,"").replace(/^Error:\s*/,"")}function am(e){const t={};for(const[r,s]of Object.entries(e))t[r]=rs(s,{filename:r});return t}const om="https://esm.sh",cm=['function r(){for(var s="",i=0,t;i<arguments.length;i++)if(t=arguments[i]){','if(typeof t==="string"||typeof t==="number"){s&&(s+=" ");s+=t}','else if(Array.isArray(t)){if(t.length){var n=r.apply(null,t);if(n){s&&(s+=" ");s+=n}}}','else if(typeof t==="object"){for(var k in t)if(t[k]){s&&(s+=" ");s+=k}}}',"return s}","export default r;export{r as clsx};"].join("");function Ti(e={}){var f,h;const t=e.cdnBase||om,r="18.2.0",s="?external=react,react-dom",i={react:`${t}/react@${r}?dev`,"react/":`${t}/react@${r}&dev/`,"react-dom":`${t}/react-dom@${r}?dev`,"react-dom/":`${t}/react-dom@${r}&dev/`,"react/jsx-runtime":`${t}/react@${r}/jsx-runtime?dev`,"react/jsx-dev-runtime":`${t}/react@${r}/jsx-dev-runtime?dev`,"class-variance-authority":`${t}/class-variance-authority@0.7.1`,clsx:`data:text/javascript,${encodeURIComponent(cm)}`,"tailwind-merge":`${t}/tailwind-merge@2.6.0`,"lucide-react":`${t}/lucide-react@0.468.0${s}`,"react-icons/":`${t}/react-icons@5.4.0/`,"date-fns":`${t}/date-fns@4.1.0`,"date-fns/":`${t}/date-fns@4.1.0/`,"chart.js":`${t}/chart.js@4.4.8/auto`,"chart.js/auto":`${t}/chart.js@4.4.8/auto`,"chart.js/":`${t}/chart.js@4.4.8/`,"react-chartjs-2":`${t}/react-chartjs-2@5.3.0${s}`,recharts:`${t}/recharts@2.15.0${s}`,"recharts/":`${t}/recharts@2.15.0&external=react,react-dom/`,"framer-motion":`${t}/framer-motion@11.18.0${s}`,"framer-motion/":`${t}/framer-motion@11.18.0&external=react,react-dom/`,"react-hook-form":`${t}/react-hook-form@7.54.2${s}`,zod:`${t}/zod@3.24.1`,"@hookform/resolvers":`${t}/@hookform/resolvers@3.9.1${s}`,"@hookform/resolvers/":`${t}/@hookform/resolvers@3.9.1&external=react,react-dom/`,"@tanstack/react-table":`${t}/@tanstack/react-table@8.21.2${s}`,zustand:`${t}/zustand@5.0.3${s}`,"zustand/":`${t}/zustand@5.0.3&external=react,react-dom/`,"react-router-dom":`${t}/react-router-dom@6.28.2${s}`,"react-router-dom/":`${t}/react-router-dom@6.28.2&external=react,react-dom/`,sonner:`${t}/sonner@1.7.3${s}`,cmdk:`${t}/cmdk@1.0.4${s}`,"@dnd-kit/core":`${t}/@dnd-kit/core@6.3.1${s}`,"@dnd-kit/sortable":`${t}/@dnd-kit/sortable@10.0.0${s}`,"@dnd-kit/utilities":`${t}/@dnd-kit/utilities@3.2.2`,axios:`${t}/axios@1.7.9`,"axios/":`${t}/axios@1.7.9/`,"lodash-es":`${t}/lodash-es@4.17.21`,"lodash-es/":`${t}/lodash-es@4.17.21/`,nanoid:`${t}/nanoid@5.0.9`,uuid:`${t}/uuid@11.0.5`,"react-markdown":`${t}/react-markdown@9.0.3${s}`,"remark-gfm":`${t}/remark-gfm@4.0.0`,"react-syntax-highlighter":`${t}/react-syntax-highlighter@15.6.1${s}`,"react-syntax-highlighter/":`${t}/react-syntax-highlighter@15.6.1&external=react,react-dom/`,"react-leaflet":`${t}/react-leaflet@4.2.1${s}`,"react-leaflet/":`${t}/react-leaflet@4.2.1&external=react,react-dom/`,leaflet:`${t}/leaflet@1.9.4`,"leaflet/":`${t}/leaflet@1.9.4/`,"react-player":`${t}/react-player@2.16.0${s}`,"react-player/":`${t}/react-player@2.16.0&external=react,react-dom/`,"usehooks-ts":`${t}/usehooks-ts@3.1.0${s}`,"react-colorful":`${t}/react-colorful@5.6.1${s}`,"@radix-ui/react-slot":`${t}/@radix-ui/react-slot@1.1.1${s}`,"@radix-ui/react-accordion":`${t}/@radix-ui/react-accordion@1.2.2${s}`,"@radix-ui/react-alert-dialog":`${t}/@radix-ui/react-alert-dialog@1.1.4${s}`,"@radix-ui/react-aspect-ratio":`${t}/@radix-ui/react-aspect-ratio@1.1.1${s}`,"@radix-ui/react-avatar":`${t}/@radix-ui/react-avatar@1.1.2${s}`,"@radix-ui/react-checkbox":`${t}/@radix-ui/react-checkbox@1.1.3${s}`,"@radix-ui/react-collapsible":`${t}/@radix-ui/react-collapsible@1.1.2${s}`,"@radix-ui/react-context-menu":`${t}/@radix-ui/react-context-menu@2.2.4${s}`,"@radix-ui/react-dialog":`${t}/@radix-ui/react-dialog@1.1.4${s}`,"@radix-ui/react-dropdown-menu":`${t}/@radix-ui/react-dropdown-menu@2.1.4${s}`,"@radix-ui/react-hover-card":`${t}/@radix-ui/react-hover-card@1.1.4${s}`,"@radix-ui/react-label":`${t}/@radix-ui/react-label@2.1.1${s}`,"@radix-ui/react-menubar":`${t}/@radix-ui/react-menubar@1.1.4${s}`,"@radix-ui/react-navigation-menu":`${t}/@radix-ui/react-navigation-menu@1.2.3${s}`,"@radix-ui/react-popover":`${t}/@radix-ui/react-popover@1.1.4${s}`,"@radix-ui/react-progress":`${t}/@radix-ui/react-progress@1.1.1${s}`,"@radix-ui/react-radio-group":`${t}/@radix-ui/react-radio-group@1.2.2${s}`,"@radix-ui/react-scroll-area":`${t}/@radix-ui/react-scroll-area@1.2.2${s}`,"@radix-ui/react-select":`${t}/@radix-ui/react-select@2.1.4${s}`,"@radix-ui/react-separator":`${t}/@radix-ui/react-separator@1.1.1${s}`,"@radix-ui/react-slider":`${t}/@radix-ui/react-slider@1.2.2${s}`,"@radix-ui/react-switch":`${t}/@radix-ui/react-switch@1.1.2${s}`,"@radix-ui/react-tabs":`${t}/@radix-ui/react-tabs@1.1.2${s}`,"@radix-ui/react-toast":`${t}/@radix-ui/react-toast@1.2.4${s}`,"@radix-ui/react-toggle":`${t}/@radix-ui/react-toggle@1.1.1${s}`,"@radix-ui/react-toggle-group":`${t}/@radix-ui/react-toggle-group@1.1.1${s}`,"@radix-ui/react-tooltip":`${t}/@radix-ui/react-tooltip@1.1.6${s}`,"@radix-ui/react-portal":`${t}/@radix-ui/react-portal@1.1.3${s}`,"@radix-ui/react-visually-hidden":`${t}/@radix-ui/react-visually-hidden@1.1.1${s}`,"@radix-ui/react-collection":`${t}/@radix-ui/react-collection@1.1.1${s}`,"@radix-ui/react-context":`${t}/@radix-ui/react-context@1.1.1${s}`,"embla-carousel-react":`${t}/embla-carousel-react@8.5.1${s}`,"embla-carousel-autoplay":`${t}/embla-carousel-autoplay@8.5.1`,vaul:`${t}/vaul@1.1.2${s}`,"resize-observer-polyfill":`${t}/resize-observer-polyfill@1.5.1`,"react-resizable-panels":`${t}/react-resizable-panels@2.1.7${s}`,"react-day-picker":`${t}/react-day-picker@9.4.4${s}`,"input-otp":`${t}/input-otp@1.4.1${s}`,"react-dropzone":`${t}/react-dropzone@14.3.5${s}`,"qrcode.react":`${t}/qrcode.react@4.2.0${s}`},o=["esm.sh","cdn.jsdelivr.net","unpkg.com","cdn.skypack.dev","cdnjs.cloudflare.com"];if(e.dependencies)for(const[d,x]of Object.entries(e.dependencies))if(x.startsWith("http")){try{const y=new URL(x);if(!o.some(b=>y.hostname===b||y.hostname.endsWith("."+b))){console.warn(`[codeviz] Blocked untrusted CDN URL for "${d}": ${x}`);continue}}catch{console.warn(`[codeviz] Invalid URL for "${d}": ${x}`);continue}i[d]=x}else i[d]=`${t}/${d}@${x}${s}`;const c={...i,...((f=e.overrides)==null?void 0:f.imports)||{}},u={react:`${t}/react@${r}?dev`,"react/":`${t}/react@${r}&dev/`,"react-dom":`${t}/react-dom@${r}?dev`,"react-dom/":`${t}/react-dom@${r}&dev/`,"react/jsx-runtime":`${t}/react@${r}/jsx-runtime?dev`,"react/jsx-dev-runtime":`${t}/react@${r}/jsx-dev-runtime?dev`};return{imports:c,scopes:{[`${t}/`]:u,...((h=e.overrides)==null?void 0:h.scopes)||{}}}}function Ai(e){return`<script type="importmap">${JSON.stringify(e,null,2)}<\/script>`}function vc(){return`Available packages (just import, no install needed):
210
210
 
211
211
  STYLING: clsx, class-variance-authority, tailwind-merge
212
212
  ICONS: lucide-react (1400+ icons), react-icons/* (40k+ icons from fa/md/hi/etc)
@@ -235,7 +235,13 @@ UI PRIMITIVES (Radix): accordion, alert-dialog, aspect-ratio, avatar, checkbox,
235
235
  navigation-menu, popover, progress, radio-group, scroll-area, select, separator,
236
236
  slider, switch, tabs, toast, toggle, toggle-group, tooltip, portal, visually-hidden
237
237
 
238
- All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all styling.`}const om="https://cdn.tailwindcss.com/3.4.16?plugins=forms,typography";function wn(e){const{transpiledCode:t,template:r,importMap:s,tailwindCdn:i=om,externalResources:o=[],themeCSS:c,componentsPreamble:u}=e;return r==="html"?cm(t,{tailwindCdn:i,externalResources:o}):r==="markdown"?um(t,{tailwindCdn:i,externalResources:o}):r==="mermaid"?pm(t):r==="svg"?hm(t):r==="csv"?fm(t):r==="json"?dm(t):r==="architecture"?mm(t):r==="dot"?gm(t):r==="latex"?xm(t):km(t,{importMap:s,tailwindCdn:i,externalResources:o,themeCSS:c,componentsPreamble:u})}function cm(e,t){const{tailwindCdn:r,externalResources:s=[]}=t;if(e.includes("<html")||e.includes("<!DOCTYPE"))return e;const i=s.map(c=>c.endsWith(".css")?`<link rel="stylesheet" href="${c}">`:`<script src="${c}"><\/script>`).join(`
238
+ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all styling.`}const lm="https://cdn.tailwindcss.com/3.4.16?plugins=forms,typography",um=new Set(["cn"]),pm=/^([ \t]*)import\s+(?:(?:(\w+)\s*,?\s*)?(?:\{([^}]*)\})?(?:\*\s+as\s+(\w+))?)\s+from\s+['"]([^'"]+)['"];?\s*$/,hm=/^[ \t]*import\s+['"]([^'"]+)['"];?\s*$/;function wc(e,t){const r=e.split(`
239
+ `),s=new Map,i=new Set,o=[],c=[];for(const h of r){const d=hm.exec(h);if(d){const y=d[1];i.has(y)||(i.add(y),o.push(`__side__${y}`));continue}const x=pm.exec(h);if(x){const[,,y,b,N,O]=x;let F=s.get(O);if(F||(F={namedImports:new Map},s.set(O,F),o.push(O)),y&&!F.defaultImport&&(F.defaultImport=y),N&&!F.namespaceImport&&(F.namespaceImport=N),b)for(const ee of b.split(",")){const P=ee.trim();if(!P)continue;const D=P.match(/^(\w+)\s+as\s+(\w+)$/);D?F.namedImports.set(D[2],D[1]):F.namedImports.set(P,P)}continue}c.push(h)}const u=[];for(const h of o){if(h.startsWith("__side__")){u.push(`import '${h.slice(8)}';`);continue}const d=s.get(h);if(d.namespaceImport){u.push(`import * as ${d.namespaceImport} from '${h}';`);continue}const x=[];if(d.defaultImport&&x.push(d.defaultImport),d.namedImports.size>0){const y=[...d.namedImports.entries()].map(([b,N])=>b===N?b:`${N} as ${b}`).join(", ");x.push(`{ ${y} }`)}x.length>0&&u.push(`import ${x.join(", ")} from '${h}';`)}let f=c.join(`
240
+ `);return t&&t.size>0&&(f=f.split(`
241
+ `).filter(h=>{const d=h.match(/^\s*(?:export\s+)?(?:const|let|var)\s+(\w+)\s*=|^\s*(?:export\s+)?function\s+(\w+)\s*\(/);if(d){const x=d[1]||d[2];if(t.has(x))return!1}return!0}).join(`
242
+ `)),u.join(`
243
+ `)+`
244
+ `+f}function Sn(e){const{transpiledCode:t,template:r,importMap:s,tailwindCdn:i=lm,externalResources:o=[],themeCSS:c,componentsPreamble:u}=e;return r==="html"?fm(t,{tailwindCdn:i,externalResources:o}):r==="markdown"?mm(t,{tailwindCdn:i,externalResources:o}):r==="mermaid"?gm(t):r==="svg"?xm(t):r==="csv"?km(t):r==="json"?bm(t):r==="architecture"?ym(t):r==="dot"?vm(t):r==="latex"?wm(t):_m(t,{importMap:s,tailwindCdn:i,externalResources:o,themeCSS:c,componentsPreamble:u})}function fm(e,t){const{tailwindCdn:r,externalResources:s=[]}=t;if(e.includes("<html")||e.includes("<!DOCTYPE"))return e;const i=s.map(c=>c.endsWith(".css")?`<link rel="stylesheet" href="${c}">`:`<script src="${c}"><\/script>`).join(`
239
245
  `);return`<!DOCTYPE html>
240
246
  <html lang="en">
241
247
  <head>
@@ -243,7 +249,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
243
249
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
244
250
  ${r?`<script src="${r}"><\/script>`:""}
245
251
  ${i}
246
- ${Tt()}
252
+ ${At()}
247
253
  <style>
248
254
  body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; }
249
255
  </style>
@@ -261,7 +267,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
261
267
  }
262
268
  <\/script>
263
269
  </body>
264
- </html>`}function ts(){return`
270
+ </html>`}function ns(){return`
265
271
  .mermaid-viewer {
266
272
  position: relative;
267
273
  border: 1px solid #30363d;
@@ -319,7 +325,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
319
325
  align-items: center;
320
326
  user-select: none;
321
327
  }
322
- `}function rs(){return`
328
+ `}function ss(){return`
323
329
  function initZoomPan(viewer) {
324
330
  const viewport = viewer.querySelector('.mermaid-viewport');
325
331
  const inner = viewer.querySelector('.mermaid-inner');
@@ -390,7 +396,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
390
396
  // Auto-fit on first load
391
397
  requestAnimationFrame(() => fitToContainer());
392
398
  }
393
- `}function lm(e){return`<div class="mermaid-viewer">
399
+ `}function dm(e){return`<div class="mermaid-viewer">
394
400
  <div class="mermaid-controls">
395
401
  <button data-action="zoom-in" title="Zoom in">+</button>
396
402
  <button data-action="zoom-out" title="Zoom out">&minus;</button>
@@ -405,7 +411,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
405
411
  <div class="mermaid">${e}</div>
406
412
  </div>
407
413
  </div>
408
- </div>`}function um(e,t){const{tailwindCdn:r,externalResources:s=[]}=t,i=s.map(u=>u.endsWith(".css")?`<link rel="stylesheet" href="${u}">`:`<script src="${u}"><\/script>`).join(`
414
+ </div>`}function mm(e,t){const{tailwindCdn:r,externalResources:s=[]}=t,i=s.map(u=>u.endsWith(".css")?`<link rel="stylesheet" href="${u}">`:`<script src="${u}"><\/script>`).join(`
409
415
  `),o=r?`<script src="${r}"><\/script>`:"",c=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
410
416
  <html lang="en">
411
417
  <head>
@@ -416,7 +422,10 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
416
422
  <script src="https://cdn.jsdelivr.net/npm/marked@14/marked.min.js"><\/script>
417
423
  <script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"><\/script>
418
424
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@5/github-markdown-dark.min.css">
419
- ${Tt()}
425
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16/dist/katex.min.css">
426
+ <script src="https://cdn.jsdelivr.net/npm/katex@0.16/dist/katex.min.js"><\/script>
427
+ <script src="https://cdn.jsdelivr.net/npm/katex@0.16/dist/contrib/auto-render.min.js"><\/script>
428
+ ${At()}
420
429
  <style>
421
430
  body { margin: 0; padding: 0; background: #0d1117; }
422
431
  .markdown-body {
@@ -427,13 +436,25 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
427
436
  padding: 32px 24px;
428
437
  }
429
438
  pre code { border-radius: 6px; }
430
- ${ts()}
439
+ /* KaTeX display math blocks */
440
+ .katex-display {
441
+ margin: 24px 0;
442
+ padding: 16px;
443
+ background: #161b22;
444
+ border-radius: 8px;
445
+ border: 1px solid #30363d;
446
+ overflow-x: auto;
447
+ }
448
+ .katex-display > .katex { text-align: center; }
449
+ .katex-display .katex { font-size: 1.1em; }
450
+ .katex-error { color: #f85149; }
451
+ ${ns()}
431
452
  </style>
432
453
  </head>
433
454
  <body>
434
455
  <article id="content" class="markdown-body"></article>
435
456
  <script>
436
- ${rs()}
457
+ ${ss()}
437
458
 
438
459
  mermaid.initialize({
439
460
  startOnLoad: false,
@@ -442,19 +463,59 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
442
463
  fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
443
464
  });
444
465
 
466
+ // Protect math expressions from marked's escaping.
467
+ // Replace $$...$$ and $...$ with placeholders, run marked, then restore.
468
+ var mathStore = [];
469
+ function shieldMath(text) {
470
+ // Display math first ($$...$$) — greedy across lines
471
+ text = text.replace(/\\$\\$([\\s\\S]+?)\\$\\$/g, function(m) {
472
+ var idx = mathStore.length;
473
+ mathStore.push(m);
474
+ return '\\x00MATH' + idx + 'MATH\\x00';
475
+ });
476
+ // Inline math ($...$) — single line, not empty
477
+ text = text.replace(/\\$([^\\$\\n]+?)\\$/g, function(m) {
478
+ var idx = mathStore.length;
479
+ mathStore.push(m);
480
+ return '\\x00MATH' + idx + 'MATH\\x00';
481
+ });
482
+ return text;
483
+ }
484
+ function restoreMath(html) {
485
+ return html.replace(/\\x00MATH(\\d+)MATH\\x00/g, function(_, idx) {
486
+ return mathStore[+idx];
487
+ });
488
+ }
489
+
445
490
  const renderer = new marked.Renderer();
446
491
  const origCode = renderer.code.bind(renderer);
447
492
  renderer.code = function({ text, lang }) {
448
493
  if (lang === 'mermaid') {
449
- return ${JSON.stringify(lm("__MERMAID__"))}.replace('__MERMAID__', text);
494
+ return ${JSON.stringify(dm("__MERMAID__"))}.replace('__MERMAID__', text);
450
495
  }
451
496
  return origCode({ text, lang });
452
497
  };
453
498
 
454
499
  marked.setOptions({ renderer, gfm: true, breaks: true });
455
500
 
456
- const md = \`${c}\`;
457
- document.getElementById('content').innerHTML = marked.parse(md);
501
+ var md = \`${c}\`;
502
+ md = shieldMath(md);
503
+ var html = marked.parse(md);
504
+ html = restoreMath(html);
505
+ document.getElementById('content').innerHTML = html;
506
+
507
+ // Render LaTeX math via KaTeX auto-render
508
+ renderMathInElement(document.getElementById('content'), {
509
+ delimiters: [
510
+ { left: '$$', right: '$$', display: true },
511
+ { left: '$', right: '$', display: false },
512
+ { left: '\\\\(', right: '\\\\)', display: false },
513
+ { left: '\\\\[', right: '\\\\]', display: true },
514
+ ],
515
+ throwOnError: false,
516
+ trust: false,
517
+ strict: false,
518
+ });
458
519
 
459
520
  mermaid.run({ nodes: document.querySelectorAll('.mermaid') }).then(() => {
460
521
  document.querySelectorAll('.mermaid-viewer').forEach(initZoomPan);
@@ -465,17 +526,17 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
465
526
  });
466
527
  <\/script>
467
528
  </body>
468
- </html>`}function pm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
529
+ </html>`}function gm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
469
530
  <html lang="en">
470
531
  <head>
471
532
  <meta charset="UTF-8">
472
533
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
473
534
  <script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"><\/script>
474
- ${Tt()}
535
+ ${At()}
475
536
  <style>
476
537
  * { box-sizing: border-box; margin: 0; padding: 0; }
477
538
  body { background: #0d1117; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
478
- ${ts()}
539
+ ${ns()}
479
540
  .mermaid-viewer {
480
541
  position: fixed;
481
542
  inset: 0;
@@ -508,7 +569,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
508
569
  </div>
509
570
 
510
571
  <script>
511
- ${rs()}
572
+ ${ss()}
512
573
 
513
574
  mermaid.initialize({
514
575
  startOnLoad: false,
@@ -532,16 +593,16 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
532
593
  });
533
594
  <\/script>
534
595
  </body>
535
- </html>`}function hm(e){return`<!DOCTYPE html>
596
+ </html>`}function xm(e){return`<!DOCTYPE html>
536
597
  <html lang="en">
537
598
  <head>
538
599
  <meta charset="UTF-8">
539
600
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
540
- ${Tt()}
601
+ ${At()}
541
602
  <style>
542
603
  * { box-sizing: border-box; margin: 0; padding: 0; }
543
604
  body { background: #0d1117; }
544
- ${ts()}
605
+ ${ns()}
545
606
  .mermaid-viewer { position: fixed; inset: 0; border: none; border-radius: 0; margin: 0; }
546
607
  .mermaid-viewport { width: 100vw; height: 100vh; }
547
608
  /* Ensure SVG is visible even without explicit width/height */
@@ -574,7 +635,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
574
635
  </div>
575
636
  </div>
576
637
  <script>
577
- ${rs()}
638
+ ${ss()}
578
639
 
579
640
  // If SVG has viewBox but no width/height, set explicit dimensions from viewBox
580
641
  const svg = document.querySelector('#svg-container > svg');
@@ -593,12 +654,12 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
593
654
  window.parent.postMessage({ type: 'codeviz', action: 'ready' }, '*');
594
655
  <\/script>
595
656
  </body>
596
- </html>`}function fm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
657
+ </html>`}function km(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
597
658
  <html lang="en">
598
659
  <head>
599
660
  <meta charset="UTF-8">
600
661
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
601
- ${Tt()}
662
+ ${At()}
602
663
  <style>
603
664
  * { box-sizing: border-box; margin: 0; padding: 0; }
604
665
  body { background: #0d1117; color: #e6edf3; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; padding: 16px; }
@@ -705,12 +766,12 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
705
766
  window.parent.postMessage({ type: 'codeviz', action: 'ready' }, '*');
706
767
  <\/script>
707
768
  </body>
708
- </html>`}function dm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
769
+ </html>`}function bm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
709
770
  <html lang="en">
710
771
  <head>
711
772
  <meta charset="UTF-8">
712
773
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
713
- ${Tt()}
774
+ ${At()}
714
775
  <style>
715
776
  * { box-sizing: border-box; margin: 0; padding: 0; }
716
777
  body { background: #0d1117; color: #e6edf3; font-family: 'SF Mono', Menlo, monospace; font-size: 13px; padding: 16px; line-height: 1.5; }
@@ -829,12 +890,12 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
829
890
  window.parent.postMessage({ type: 'codeviz', action: 'ready' }, '*');
830
891
  <\/script>
831
892
  </body>
832
- </html>`}function mm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
893
+ </html>`}function ym(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
833
894
  <html lang="en">
834
895
  <head>
835
896
  <meta charset="UTF-8">
836
897
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
837
- ${Tt()}
898
+ ${At()}
838
899
  <style>
839
900
  * { box-sizing: border-box; margin: 0; padding: 0; }
840
901
  html, body { width: 100%; height: 100%; overflow: hidden; }
@@ -873,17 +934,17 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
873
934
  setTimeout(checkReady, 500);
874
935
  <\/script>
875
936
  </body>
876
- </html>`}function gm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
937
+ </html>`}function vm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
877
938
  <html lang="en">
878
939
  <head>
879
940
  <meta charset="UTF-8">
880
941
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
881
942
  <script src="https://cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js"><\/script>
882
- ${Tt()}
943
+ ${At()}
883
944
  <style>
884
945
  * { box-sizing: border-box; margin: 0; padding: 0; }
885
946
  body { background: #0d1117; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
886
- ${ts()}
947
+ ${ns()}
887
948
  .mermaid-viewer { position: fixed; inset: 0; border: none; border-radius: 0; margin: 0; }
888
949
  .mermaid-viewport { width: 100vw; height: 100vh; }
889
950
  #dot-container svg {
@@ -920,7 +981,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
920
981
  </div>
921
982
  </div>
922
983
  <script>
923
- ${rs()}
984
+ ${ss()}
924
985
 
925
986
  const dotSrc = \`${t}\`;
926
987
 
@@ -943,7 +1004,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
943
1004
  });
944
1005
  <\/script>
945
1006
  </body>
946
- </html>`}function xm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
1007
+ </html>`}function wm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
947
1008
  <html lang="en">
948
1009
  <head>
949
1010
  <meta charset="UTF-8">
@@ -951,7 +1012,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
951
1012
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16/dist/katex.min.css">
952
1013
  <script src="https://cdn.jsdelivr.net/npm/katex@0.16/dist/katex.min.js"><\/script>
953
1014
  <script src="https://cdn.jsdelivr.net/npm/katex@0.16/dist/contrib/auto-render.min.js"><\/script>
954
- ${Tt()}
1015
+ ${At()}
955
1016
  <style>
956
1017
  * { box-sizing: border-box; margin: 0; padding: 0; }
957
1018
  body {
@@ -1056,18 +1117,18 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
1056
1117
  window.parent.postMessage({ type: 'codeviz', action: 'ready' }, '*');
1057
1118
  <\/script>
1058
1119
  </body>
1059
- </html>`}function km(e,t){const{importMap:r,tailwindCdn:s,externalResources:i=[],themeCSS:o,componentsPreamble:c}=t,u=i.map(x=>x.endsWith(".css")?`<link rel="stylesheet" href="${x}">`:`<script src="${x}"><\/script>`).join(`
1060
- `),h=s?`<script src="${s}"><\/script>`:"",f=o?`<style data-theme>${o}</style>`:"",m=c?c+`
1061
- `+e:e;return`<!DOCTYPE html>
1120
+ </html>`}function _m(e,t){const{importMap:r,tailwindCdn:s,externalResources:i=[],themeCSS:o,componentsPreamble:c}=t,u=i.map(y=>y.endsWith(".css")?`<link rel="stylesheet" href="${y}">`:`<script src="${y}"><\/script>`).join(`
1121
+ `),f=s?`<script src="${s}"><\/script>`:"",h=o?`<style data-theme>${o}</style>`:"",d=c?c+`
1122
+ `+e:e,x=wc(d,um);return`<!DOCTYPE html>
1062
1123
  <html lang="en">
1063
1124
  <head>
1064
1125
  <meta charset="UTF-8">
1065
1126
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
1066
1127
  ${Ai(r)}
1067
- ${h}
1068
- ${u}
1069
- ${Tt()}
1070
1128
  ${f}
1129
+ ${u}
1130
+ ${At()}
1131
+ ${h}
1071
1132
  <style>
1072
1133
  * { box-sizing: border-box; }
1073
1134
  body {
@@ -1081,10 +1142,10 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
1081
1142
  <body>
1082
1143
  <div id="root"></div>
1083
1144
  <script type="module">
1084
- ${bm(m)}
1145
+ ${Sm(x)}
1085
1146
  <\/script>
1086
1147
  </body>
1087
- </html>`}function bm(e){return`
1148
+ </html>`}function Sm(e){return`
1088
1149
  import React from 'react';
1089
1150
  import { createRoot } from 'react-dom/client';
1090
1151
 
@@ -1161,7 +1222,7 @@ ${bm(m)}
1161
1222
  }
1162
1223
 
1163
1224
  main();
1164
- `}function Tt(){return`<script>
1225
+ `}function At(){return`<script>
1165
1226
  // Capture unhandled errors — include line/column from ErrorEvent
1166
1227
  window.addEventListener('error', (e) => {
1167
1228
  window.parent.postMessage({
@@ -1208,17 +1269,17 @@ ${bm(m)}
1208
1269
  payload: { message: msg, level: 'error' }
1209
1270
  }, '*');
1210
1271
  };
1211
- <\/script>`}let ym=0;function pa(e,t,r){return{id:`preview-${++ym}`,category:e,severity:"error",message:t,timestamp:new Date().toISOString(),...r}}const w1=S.memo(function({code:t,template:r,importMap:s,dependencies:i,cdnBase:o,tailwindCdn:c,externalResources:u,files:h,onError:f,onLoad:m,theme:x="dark",showLoader:_=!0,loader:y,themeCSS:L,componentsPreamble:j}){const F=S.useRef(null),[ne,P]=S.useState(!0),M=S.useRef(f),O=S.useRef(m);S.useEffect(()=>{M.current=f,O.current=m},[f,m]);const U=S.useMemo(()=>Ti({cdnBase:o,dependencies:i,overrides:s}),[o,i,s]);S.useEffect(()=>{const z=B=>{var Le,$e,Me,W,oe,Te,he,_e;if(B.origin!=="null"&&B.origin!==window.location.origin)return;const ce=B.data;if((ce==null?void 0:ce.type)==="codeviz"){if(ce.action==="ready")P(!1),(Le=O.current)==null||Le.call(O);else if(ce.action==="error"){const be=(($e=ce.payload)==null?void 0:$e.message)||"Unknown error";P(!1);const Z=be.includes("Failed to resolve")||be.includes("does not provide an export")?"import":"runtime";(Te=M.current)==null||Te.call(M,pa(Z,be,{stack:(Me=ce.payload)==null?void 0:Me.stack,line:(W=ce.payload)==null?void 0:W.line,column:(oe=ce.payload)==null?void 0:oe.column}))}else if(ce.action==="console"&&((he=ce.payload)==null?void 0:he.level)==="error"){const be=(ce.payload.message||"").trim();be&&be!=="{}"&&be!=="[]"&&be!=="undefined"&&be!=="null"&&!be.includes("Warning:")&&!be.includes("ReactDOM.render")&&!be.includes("Each child in a list")&&!be.includes("validateDOMNesting")&&((_e=M.current)==null||_e.call(M,pa("console-error",be)))}}};return window.addEventListener("message",z),()=>window.removeEventListener("message",z)},[]);const H=S.useMemo(()=>{var B;if(r==="html"||r==="markdown"||r==="mermaid"||r==="svg"||r==="csv"||r==="json"||r==="dot"||r==="latex"||r==="architecture")return wn({transpiledCode:t,template:r,importMap:U,tailwindCdn:c,externalResources:u});const z=es(t,{filename:r==="react"?"App.jsx":"App.tsx"});return z.error?((B=M.current)==null||B.call(M,z.error),wn({transpiledCode:vm(z.error),template:"html",importMap:U,tailwindCdn:!1})):wn({transpiledCode:z.code,template:r,importMap:U,tailwindCdn:c,externalResources:u,themeCSS:L,componentsPreamble:j})},[t,r,U,c,u,L,j]),G=S.useRef(H);S.useEffect(()=>{H!==G.current&&(P(!0),G.current=H)},[H]);const A=x==="dark"?"#09090b":"#ffffff";return E.jsxs("div",{style:{...Ts.container,backgroundColor:A},children:[_&&ne&&E.jsx("div",{style:{...Ts.overlay,backgroundColor:A},children:y||E.jsx(Hs,{size:"lg",label:"Building preview..."})}),E.jsx("iframe",{ref:F,srcDoc:H,sandbox:"allow-scripts allow-modals allow-popups",style:Ts.iframe,title:"Preview"})]})});function vm(e){const t=[`<div style="padding:20px;color:#fca5a5;font-family:'SF Mono',Menlo,monospace;font-size:13px;line-height:1.6;background:#18181b;min-height:100vh;">`,'<div style="color:#ef4444;font-weight:600;font-size:14px;margin-bottom:8px;">Transpilation Error</div>',`<div style="color:#fca5a5;margin-bottom:12px;">${Cs(e.message)}</div>`];if(e.line&&t.push(`<div style="color:#71717a;font-size:11px;margin-bottom:8px;">Line ${e.line}${e.column?`:${e.column}`:""}</div>`),e.sourceContext){t.push('<pre style="background:#0f0f0f;border-radius:8px;padding:12px;overflow-x:auto;font-size:12px;border:1px solid #27272a;">');for(const r of e.sourceContext.split(`
1272
+ <\/script>`}let Im=0;function pa(e,t,r){return{id:`preview-${++Im}`,category:e,severity:"error",message:t,timestamp:new Date().toISOString(),...r}}const _c=S.memo(function({code:t,template:r,importMap:s,dependencies:i,cdnBase:o,tailwindCdn:c,externalResources:u,files:f,onError:h,onLoad:d,theme:x="dark",showLoader:y=!0,loader:b,themeCSS:N,componentsPreamble:O}){const F=S.useRef(null),[ee,P]=S.useState(!0),D=S.useRef(h),j=S.useRef(d);S.useEffect(()=>{D.current=h,j.current=d},[h,d]);const U=S.useMemo(()=>Ti({cdnBase:o,dependencies:i,overrides:s}),[o,i,s]);S.useEffect(()=>{const z=B=>{var Ae,Ve,je,W,oe,Pe,he,_e;if(B.origin!=="null"&&B.origin!==window.location.origin)return;const ce=B.data;if((ce==null?void 0:ce.type)==="codeviz"){if(ce.action==="ready")P(!1),(Ae=j.current)==null||Ae.call(j);else if(ce.action==="error"){const be=((Ve=ce.payload)==null?void 0:Ve.message)||"Unknown error";P(!1);const Q=be.includes("Failed to resolve")||be.includes("does not provide an export")?"import":"runtime";(Pe=D.current)==null||Pe.call(D,pa(Q,be,{stack:(je=ce.payload)==null?void 0:je.stack,line:(W=ce.payload)==null?void 0:W.line,column:(oe=ce.payload)==null?void 0:oe.column}))}else if(ce.action==="console"&&((he=ce.payload)==null?void 0:he.level)==="error"){const be=(ce.payload.message||"").trim();be&&be!=="{}"&&be!=="[]"&&be!=="undefined"&&be!=="null"&&!be.includes("Warning:")&&!be.includes("ReactDOM.render")&&!be.includes("Each child in a list")&&!be.includes("validateDOMNesting")&&((_e=D.current)==null||_e.call(D,pa("console-error",be)))}}};return window.addEventListener("message",z),()=>window.removeEventListener("message",z)},[]);const H=S.useMemo(()=>{var B;if(r==="html"||r==="markdown"||r==="mermaid"||r==="svg"||r==="csv"||r==="json"||r==="dot"||r==="latex"||r==="architecture")return Sn({transpiledCode:t,template:r,importMap:U,tailwindCdn:c,externalResources:u});const z=rs(t,{filename:r==="react"?"App.jsx":"App.tsx"});return z.error?((B=D.current)==null||B.call(D,z.error),Sn({transpiledCode:Em(z.error),template:"html",importMap:U,tailwindCdn:!1})):Sn({transpiledCode:z.code,template:r,importMap:U,tailwindCdn:c,externalResources:u,themeCSS:N,componentsPreamble:O})},[t,r,U,c,u,N,O]),G=S.useRef(H);S.useEffect(()=>{H!==G.current&&(P(!0),G.current=H)},[H]);const A=x==="dark"?"#09090b":"#ffffff";return E.jsxs("div",{style:{...Ts.container,backgroundColor:A},children:[y&&ee&&E.jsx("div",{style:{...Ts.overlay,backgroundColor:A},children:b||E.jsx(Hs,{size:"lg",label:"Building preview..."})}),E.jsx("iframe",{ref:F,srcDoc:H,sandbox:"allow-scripts allow-modals allow-popups",style:Ts.iframe,title:"Preview"})]})});function Em(e){const t=[`<div style="padding:20px;color:#fca5a5;font-family:'SF Mono',Menlo,monospace;font-size:13px;line-height:1.6;background:#18181b;min-height:100vh;">`,'<div style="color:#ef4444;font-weight:600;font-size:14px;margin-bottom:8px;">Transpilation Error</div>',`<div style="color:#fca5a5;margin-bottom:12px;">${Cs(e.message)}</div>`];if(e.line&&t.push(`<div style="color:#71717a;font-size:11px;margin-bottom:8px;">Line ${e.line}${e.column?`:${e.column}`:""}</div>`),e.sourceContext){t.push('<pre style="background:#0f0f0f;border-radius:8px;padding:12px;overflow-x:auto;font-size:12px;border:1px solid #27272a;">');for(const r of e.sourceContext.split(`
1212
1273
  `)){const i=parseInt(r)===e.line;t.push(i?`<span style="color:#ef4444;background:rgba(239,68,68,0.1);display:block;padding:0 4px;">${Cs(r)}</span>`:`<span style="color:#52525b;">${Cs(r)}</span>`)}t.push("</pre>")}return t.push("</div>"),t.join(`
1213
- `)}function Cs(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const Ts={container:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},overlay:{position:"absolute",inset:0,zIndex:10,display:"flex",alignItems:"center",justifyContent:"center"},iframe:{width:"100%",height:"100%",border:"none",display:"block"}},_1=new Set(["react","react-ts","html","markdown","mermaid","svg","csv","json","dot","latex","architecture"]),Xr={EDITOR_DEBOUNCE_MS:400,PREVIEW_SWITCH_DELAY_MS:800,COPY_CONFIRMATION_MS:2e3},zs=768,S1=S.memo(function({view:t,onViewChange:r,onRefresh:s,isLoading:i,theme:o,isStreaming:c=!1,isFullscreen:u=!1,onFullscreenToggle:h,onDownload:f,downloadOptions:m,onClose:x,hideSplit:_=!1}){const y=o==="dark",[L,j]=S.useState(()=>typeof window<"u"?window.innerWidth>=zs:!1);S.useEffect(()=>{const A=window.matchMedia(`(min-width: ${zs}px)`),z=B=>j(B.matches);return z(A),A.addEventListener("change",z),()=>A.removeEventListener("change",z)},[]);const F=!_&&(L||u),[ne,P]=S.useState(!1);S.useEffect(()=>{t==="split"&&!F&&r("code")},[F,t,r]);const M=F?["code","split","preview"]:["code","preview"],O={display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,borderRadius:4,border:"none",cursor:"pointer",backgroundColor:"transparent",color:y?"#71717a":"#a1a1aa",transition:"all 0.15s",padding:0},U=(A,z)=>{A.currentTarget.style.backgroundColor=z?y?"#27272a":"#e4e4e7":"transparent",A.currentTarget.style.color=z?y?"#d4d4d8":"#52525b":y?"#71717a":"#a1a1aa"},H=(A,z)=>{A.currentTarget.style.backgroundColor=z?"rgba(239,68,68,0.15)":"transparent",A.currentTarget.style.color=z?"#ef4444":y?"#71717a":"#a1a1aa"},G=S.useCallback((A,z)=>{switch(A){case"code":return E.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[E.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"5 4 1 8 5 12"}),E.jsx("polyline",{points:"11 4 15 8 11 12"})]}),"Code"]});case"split":return E.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[E.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[E.jsx("rect",{x:"1",y:"2",width:"14",height:"12",rx:"1.5"}),E.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"14"})]}),"Split"]});case"preview":return E.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[E.jsx("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:z?"#22c55e":"currentColor",stroke:"none",children:E.jsx("path",{d:"M4 2.5v11l9-5.5z"})}),"Preview"]})}},[]);return E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"0 6px 0 8px",backgroundColor:y?"#18181b":"#fafafa",borderBottom:`1px solid ${y?"#27272a":"#e4e4e7"}`,flexShrink:0,userSelect:"none"},children:[E.jsx("div",{style:{display:"flex",alignItems:"center",gap:1,padding:1,borderRadius:5,backgroundColor:y?"#27272a":"#e4e4e7"},children:M.map(A=>{const B=c&&(A==="preview"||A==="split");return E.jsx("button",{onClick:()=>!B&&r(A),disabled:B,style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:4,border:"none",cursor:B?"not-allowed":"pointer",fontSize:11,fontWeight:500,fontFamily:"inherit",letterSpacing:.2,lineHeight:1,opacity:B?.4:1,backgroundColor:t===A?y?"#3f3f46":"#ffffff":"transparent",color:t===A?y?"#fafafa":"#18181b":y?"#71717a":"#a1a1aa",boxShadow:t===A?"0 1px 2px rgba(0,0,0,0.08)":"none",transition:"all 0.15s"},children:G(A,t===A)},A)})}),E.jsx("div",{}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:1},children:[E.jsx("button",{onClick:s,title:"Refresh preview",style:O,onMouseEnter:A=>U(A,!0),onMouseLeave:A=>U(A,!1),children:E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[E.jsx("path",{d:"M2 8a6 6 0 0 1 10.3-4.2M14 2v4h-4"}),E.jsx("path",{d:"M14 8a6 6 0 0 1-10.3 4.2M2 14v-4h4"})]})}),(f||m&&m.length>0)&&E.jsxs("div",{style:{position:"relative"},children:[E.jsx("button",{onClick:()=>{m&&m.length>0?P(!ne):f==null||f()},title:"Download",style:O,onMouseEnter:A=>U(A,!0),onMouseLeave:A=>U(A,!1),children:E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M8 2v8m0 0l-3-3m3 3l3-3"}),E.jsx("path",{d:"M2 12v1.5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V12"})]})}),ne&&m&&m.length>0&&E.jsx("div",{style:{position:"absolute",top:"100%",right:0,marginTop:4,minWidth:160,padding:"4px 0",borderRadius:8,border:`1px solid ${y?"#30363d":"#d0d7de"}`,backgroundColor:y?"#161b22":"#ffffff",boxShadow:"0 8px 24px rgba(0,0,0,0.2)",zIndex:100},children:m.map((A,z)=>E.jsx("button",{onClick:()=>{A.action(),P(!1)},style:{display:"block",width:"100%",padding:"6px 12px",border:"none",background:"none",color:y?"#e6edf3":"#24292f",fontSize:12,textAlign:"left",cursor:"pointer",fontFamily:"inherit"},onMouseEnter:B=>{B.currentTarget.style.backgroundColor=y?"#21262d":"#f3f4f6"},onMouseLeave:B=>{B.currentTarget.style.backgroundColor="transparent"},children:A.label},z))})]}),h&&E.jsx("button",{onClick:h,title:u?"Exit fullscreen":"Fullscreen",style:O,onMouseEnter:A=>U(A,!0),onMouseLeave:A=>U(A,!1),children:u?E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"4 14 4 10 0 10"}),E.jsx("polyline",{points:"12 2 12 6 16 6"}),E.jsx("line",{x1:"0",y1:"16",x2:"4",y2:"10"}),E.jsx("line",{x1:"16",y1:"0",x2:"12",y2:"6"})]}):E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"10 2 14 2 14 6"}),E.jsx("polyline",{points:"6 14 2 14 2 10"}),E.jsx("line",{x1:"14",y1:"2",x2:"10",y2:"6"}),E.jsx("line",{x1:"2",y1:"14",x2:"6",y2:"10"})]})}),x&&E.jsxs(E.Fragment,{children:[E.jsx("div",{style:{width:1,height:14,backgroundColor:y?"#27272a":"#e4e4e7",margin:"0 2px"}}),E.jsx("button",{onClick:x,title:"Close preview",style:O,onMouseEnter:A=>H(A,!0),onMouseLeave:A=>H(A,!1),children:E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[E.jsx("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),E.jsx("line",{x1:"12",y1:"4",x2:"4",y2:"12"})]})})]})]})]})}),I1=S.memo(function({errors:t,isLoading:r,isStreaming:s,language:i,theme:o,filename:c,footerSlot:u,view:h}){const f=o==="dark",m=t.filter(A=>A.severity==="error").length,x=t.filter(A=>A.severity==="warning").length,_=h==="preview"||h==="split",[y,L]=S.useState(!1),[j,F]=S.useState(!1),ne=S.useRef(),P=S.useRef(null);S.useEffect(()=>()=>{clearTimeout(ne.current)},[]),S.useEffect(()=>{if(!j)return;const A=z=>{P.current&&!P.current.contains(z.target)&&F(!1)};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[j]);let M="Ready",O=f?"#71717a":"#a1a1aa";s?(M="⟳ Streaming...",O="#818cf8"):m>0?(M=`✕ ${m} error${m>1?"s":""}`,O="#ef4444"):r&&_&&(M="◌ Building...",O="#f59e0b");const U=S.useCallback(()=>{const A=new CustomEvent("codeviz:copy-request");window.dispatchEvent(A),L(!0),clearTimeout(ne.current),ne.current=setTimeout(()=>L(!1),Xr.COPY_CONFIRMATION_MS)},[]),H=f?"#52525b":"#a1a1aa",G=f?"#a1a1aa":"#71717a";return E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24,padding:"0 8px",backgroundColor:f?"#18181b":"#f4f4f5",borderTop:`1px solid ${f?"#27272a":"#e4e4e7"}`,fontSize:11,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace',flexShrink:0,userSelect:"none",position:"relative"},children:[E.jsxs("div",{ref:P,style:{display:"flex",alignItems:"center",gap:8,minWidth:0,flex:"0 0 auto",position:"relative"},children:[E.jsx("span",{style:{color:O,fontWeight:500,cursor:m>0?"pointer":"default"},onClick:m>0?()=>F(A=>!A):void 0,title:m>0?"Click to view errors":void 0,children:M}),x>0&&E.jsxs("span",{style:{color:"#f59e0b"},children:["⚠ ",x]}),j&&t.length>0&&E.jsx("div",{style:{position:"absolute",bottom:"100%",right:0,marginBottom:2,width:320,maxHeight:180,overflowY:"auto",backgroundColor:f?"#1e1e2e":"#ffffff",border:`1px solid ${f?"#3f3f50":"#d4d4d8"}`,borderRadius:4,boxShadow:f?"0 2px 8px rgba(0,0,0,0.4)":"0 2px 8px rgba(0,0,0,0.1)",zIndex:50,padding:0},children:t.map((A,z)=>E.jsxs("div",{style:{padding:"3px 8px",borderBottom:z<t.length-1?`1px solid ${f?"#27272a":"#f4f4f5"}`:"none",fontSize:10,lineHeight:1.4,display:"flex",alignItems:"baseline",gap:4},children:[E.jsx("span",{style:{color:A.severity==="error"?"#ef4444":"#f59e0b",fontWeight:600,fontSize:9,textTransform:"uppercase",flexShrink:0},children:A.category}),A.line&&E.jsxs("span",{style:{color:f?"#71717a":"#a1a1aa",fontSize:9,flexShrink:0},children:["L",A.line]}),E.jsx("span",{style:{color:f?"#d4d4d8":"#3f3f46",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:'"SF Mono", Menlo, monospace',fontSize:9},children:A.message.length>120?A.message.slice(0,120)+"…":A.message})]},A.id))})]}),c&&E.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",color:f?"#71717a":"#a1a1aa",padding:"0 8px"},children:[s&&E.jsx("div",{style:{width:5,height:5,borderRadius:"50%",backgroundColor:"#f59e0b",flexShrink:0,animation:"codevizPulse 1s infinite"}}),c]}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flex:"0 0 auto"},children:[E.jsx("button",{onClick:U,title:y?"Copied!":"Copy code",style:{display:"flex",alignItems:"center",gap:3,border:"none",background:"none",cursor:"pointer",padding:"0 2px",color:y?"#22c55e":H,fontSize:11,fontFamily:"inherit",transition:"color 0.15s"},onMouseEnter:A=>{y||(A.currentTarget.style.color=G)},onMouseLeave:A=>{y||(A.currentTarget.style.color=H)},children:y?E.jsxs(E.Fragment,{children:[E.jsx("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("polyline",{points:"3 8 7 12 13 4"})}),"Copied"]}):E.jsxs(E.Fragment,{children:[E.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"5",y:"5",width:"9",height:"9",rx:"1.5"}),E.jsx("path",{d:"M3 11V3a1.5 1.5 0 011.5-1.5H11"})]}),"Copy"]})}),E.jsx("span",{style:{color:H},children:i.toUpperCase()}),u]})]})}),E1=S.memo(function({errors:t,theme:r}){const s=r==="dark",i=t.filter(c=>c.severity==="error").length,o=t.filter(c=>c.severity==="warning").length;return E.jsxs("div",{style:{width:"100%",height:"100%",overflow:"auto",backgroundColor:s?"#09090b":"#ffffff",padding:"24px 20px",fontFamily:'"SF Mono", Menlo, Consolas, monospace'},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:16,paddingBottom:12,borderBottom:`1px solid ${s?"#27272a":"#e4e4e7"}`},children:[E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"#ef4444",strokeWidth:"1.5"}),E.jsx("line",{x1:"8",y1:"4.5",x2:"8",y2:"8.5",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round"}),E.jsx("circle",{cx:"8",cy:"11",r:"0.75",fill:"#ef4444"})]}),E.jsxs("span",{style:{color:"#ef4444",fontWeight:600,fontSize:13},children:[i," error",i!==1?"s":""]}),o>0&&E.jsxs("span",{style:{color:"#f59e0b",fontSize:12},children:[o," warning",o!==1?"s":""]})]}),t.map(c=>E.jsxs("div",{style:{marginBottom:8,padding:"8px 10px",borderRadius:6,backgroundColor:s?c.severity==="error"?"rgba(239,68,68,0.08)":"rgba(245,158,11,0.08)":c.severity==="error"?"rgba(239,68,68,0.05)":"rgba(245,158,11,0.05)",border:`1px solid ${s?c.severity==="error"?"rgba(239,68,68,0.2)":"rgba(245,158,11,0.2)":c.severity==="error"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)"}`},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:3},children:[E.jsx("span",{style:{color:c.severity==="error"?"#ef4444":"#f59e0b",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:.5},children:c.category}),c.line&&E.jsxs("span",{style:{color:s?"#71717a":"#a1a1aa",fontSize:10},children:["Line ",c.line,c.column?`:${c.column}`:""]})]}),E.jsx("div",{style:{color:s?"#d4d4d8":"#3f3f46",fontSize:11,lineHeight:1.5,wordBreak:"break-word"},children:c.message}),c.sourceContext&&E.jsx("pre",{style:{marginTop:6,padding:"6px 8px",borderRadius:4,backgroundColor:s?"#0f0f0f":"#f9fafb",border:`1px solid ${s?"#1e1e1e":"#e5e7eb"}`,fontSize:10,lineHeight:1.4,overflow:"auto",color:s?"#a1a1aa":"#6b7280",whiteSpace:"pre-wrap"},children:c.sourceContext})]},c.id))]})}),Ge={};function wm(e){Ge[e.id]=e}function _m(e){for(const t of e)Ge[t.id]=t}function Sm(e){delete Ge[e]}function Im(){for(const e of Object.keys(Ge))delete Ge[e]}function Em(e){return Ge[e]}function Cm(){return Object.keys(Ge)}function Tm(){return Object.values(Ge)}function C1(){const e=Object.values(Ge);return e.length===0?"_No templates registered._":e.map(t=>`- **${t.id}**: ${t.description} [keywords: ${t.keywords.join(", ")}]`).join(`
1214
- `)}function Am(e,t){const r=e.toLowerCase(),s=Object.keys(Ge);let o=t??s[0]??"",c=0;for(const[u,h]of Object.entries(Ge)){let f=0;for(const m of h.keywords)r.includes(m)&&(f+=m.length);f>c&&(c=f,o=u)}return o}function T1(e){return _1.has(e)}function A1(e){switch(e.toLowerCase().replace(/^\./,"")){case"html":case"htm":return"html";case"md":case"markdown":case"mdx":return"markdown";case"mermaid":case"mmd":return"mermaid";case"svg":return"svg";case"csv":case"tsv":return"csv";case"json":case"jsonl":return"json";case"dot":case"gv":case"graphviz":return"dot";case"latex":case"tex":case"katex":return"latex";case"architecture":case"arch":case"drawio":return"architecture";case"jsx":case"js":case"javascript":return"react";case"tsx":case"ts":case"typescript":default:return"react-ts"}}function P1(e,t,r,s,i,o){const c=(u,h)=>s?`${s.replace(/\.[^.]+$/,"")}${h}`:u;switch(t){case"html":return{filename:s||"preview.html",content:e,mime:"text/html"};case"markdown":return{filename:s||"document.md",content:e,mime:"text/markdown"};case"dot":return{filename:s||"diagram.dot",content:e,mime:"text/vnd.graphviz"};case"latex":return{filename:s||"document.tex",content:e,mime:"application/x-latex"};case"architecture":return{filename:s||"architecture.drawio",content:e,mime:"application/xml"};case"mermaid":return{filename:s||"diagram.mermaid",content:e,mime:"text/plain"};case"svg":return{filename:s||"image.svg",content:e,mime:"image/svg+xml"};case"csv":return{filename:s||"data.csv",content:e,mime:"text/csv"};case"json":return{filename:s||"data.json",content:e,mime:"application/json"};case"react":case"react-ts":{const u=es(e,{filename:t==="react"?"App.jsx":"App.tsx"});if(u.error)return{filename:`component.${r==="jsx"||r==="js"?"jsx":"tsx"}`,content:e,mime:"text/plain"};const h=Ti({}),m=(i?i+`
1215
- `+u.code:u.code).replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${"),x=o?`<style data-theme>${o}</style>`:"",y=`<!DOCTYPE html>
1274
+ `)}function Cs(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const Ts={container:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},overlay:{position:"absolute",inset:0,zIndex:10,display:"flex",alignItems:"center",justifyContent:"center"},iframe:{width:"100%",height:"100%",border:"none",display:"block"}},Sc=new Set(["react","react-ts","html","markdown","mermaid","svg","csv","json","dot","latex","architecture"]),Kr={EDITOR_DEBOUNCE_MS:400,PREVIEW_SWITCH_DELAY_MS:800,COPY_CONFIRMATION_MS:2e3},zs=768,Ic=S.memo(function({view:t,onViewChange:r,onRefresh:s,isLoading:i,theme:o,isStreaming:c=!1,isFullscreen:u=!1,onFullscreenToggle:f,onDownload:h,downloadOptions:d,onClose:x,hideSplit:y=!1}){const b=o==="dark",[N,O]=S.useState(()=>typeof window<"u"?window.innerWidth>=zs:!1);S.useEffect(()=>{const A=window.matchMedia(`(min-width: ${zs}px)`),z=B=>O(B.matches);return z(A),A.addEventListener("change",z),()=>A.removeEventListener("change",z)},[]);const F=!y&&(N||u),[ee,P]=S.useState(!1);S.useEffect(()=>{t==="split"&&!F&&r("code")},[F,t,r]);const D=F?["code","split","preview"]:["code","preview"],j={display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,borderRadius:4,border:"none",cursor:"pointer",backgroundColor:"transparent",color:b?"#71717a":"#a1a1aa",transition:"all 0.15s",padding:0},U=(A,z)=>{A.currentTarget.style.backgroundColor=z?b?"#27272a":"#e4e4e7":"transparent",A.currentTarget.style.color=z?b?"#d4d4d8":"#52525b":b?"#71717a":"#a1a1aa"},H=(A,z)=>{A.currentTarget.style.backgroundColor=z?"rgba(239,68,68,0.15)":"transparent",A.currentTarget.style.color=z?"#ef4444":b?"#71717a":"#a1a1aa"},G=S.useCallback((A,z)=>{switch(A){case"code":return E.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[E.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"5 4 1 8 5 12"}),E.jsx("polyline",{points:"11 4 15 8 11 12"})]}),"Code"]});case"split":return E.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[E.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[E.jsx("rect",{x:"1",y:"2",width:"14",height:"12",rx:"1.5"}),E.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"14"})]}),"Split"]});case"preview":return E.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[E.jsx("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:z?"#22c55e":"currentColor",stroke:"none",children:E.jsx("path",{d:"M4 2.5v11l9-5.5z"})}),"Preview"]})}},[]);return E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"0 6px 0 8px",backgroundColor:b?"#18181b":"#fafafa",borderBottom:`1px solid ${b?"#27272a":"#e4e4e7"}`,flexShrink:0,userSelect:"none"},children:[E.jsx("div",{style:{display:"flex",alignItems:"center",gap:1,padding:1,borderRadius:5,backgroundColor:b?"#27272a":"#e4e4e7"},children:D.map(A=>{const B=c&&(A==="preview"||A==="split");return E.jsx("button",{onClick:()=>!B&&r(A),disabled:B,style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:4,border:"none",cursor:B?"not-allowed":"pointer",fontSize:11,fontWeight:500,fontFamily:"inherit",letterSpacing:.2,lineHeight:1,opacity:B?.4:1,backgroundColor:t===A?b?"#3f3f46":"#ffffff":"transparent",color:t===A?b?"#fafafa":"#18181b":b?"#71717a":"#a1a1aa",boxShadow:t===A?"0 1px 2px rgba(0,0,0,0.08)":"none",transition:"all 0.15s"},children:G(A,t===A)},A)})}),E.jsx("div",{}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:1},children:[E.jsx("button",{onClick:s,title:"Refresh preview",style:j,onMouseEnter:A=>U(A,!0),onMouseLeave:A=>U(A,!1),children:E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[E.jsx("path",{d:"M2 8a6 6 0 0 1 10.3-4.2M14 2v4h-4"}),E.jsx("path",{d:"M14 8a6 6 0 0 1-10.3 4.2M2 14v-4h4"})]})}),(h||d&&d.length>0)&&E.jsxs("div",{style:{position:"relative"},children:[E.jsx("button",{onClick:()=>{d&&d.length>0?P(!ee):h==null||h()},title:"Download",style:j,onMouseEnter:A=>U(A,!0),onMouseLeave:A=>U(A,!1),children:E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M8 2v8m0 0l-3-3m3 3l3-3"}),E.jsx("path",{d:"M2 12v1.5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V12"})]})}),ee&&d&&d.length>0&&E.jsx("div",{style:{position:"absolute",top:"100%",right:0,marginTop:4,minWidth:160,padding:"4px 0",borderRadius:8,border:`1px solid ${b?"#27272a":"#e4e4e7"}`,backgroundColor:b?"#18181b":"#fafafa",boxShadow:b?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.1)",zIndex:100},children:d.map((A,z)=>E.jsx("button",{onClick:()=>{A.action(),P(!1)},style:{display:"block",width:"100%",padding:"6px 12px",border:"none",background:"none",color:b?"#e6edf3":"#24292f",fontSize:12,textAlign:"left",cursor:"pointer",fontFamily:"inherit"},onMouseEnter:B=>{B.currentTarget.style.backgroundColor=b?"#21262d":"#f3f4f6"},onMouseLeave:B=>{B.currentTarget.style.backgroundColor="transparent"},children:A.label},z))})]}),f&&E.jsx("button",{onClick:f,title:u?"Exit fullscreen":"Fullscreen",style:j,onMouseEnter:A=>U(A,!0),onMouseLeave:A=>U(A,!1),children:u?E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"4 14 4 10 0 10"}),E.jsx("polyline",{points:"12 2 12 6 16 6"}),E.jsx("line",{x1:"0",y1:"16",x2:"4",y2:"10"}),E.jsx("line",{x1:"16",y1:"0",x2:"12",y2:"6"})]}):E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"10 2 14 2 14 6"}),E.jsx("polyline",{points:"6 14 2 14 2 10"}),E.jsx("line",{x1:"14",y1:"2",x2:"10",y2:"6"}),E.jsx("line",{x1:"2",y1:"14",x2:"6",y2:"10"})]})}),x&&E.jsxs(E.Fragment,{children:[E.jsx("div",{style:{width:1,height:14,backgroundColor:b?"#27272a":"#e4e4e7",margin:"0 2px"}}),E.jsx("button",{onClick:x,title:"Close preview",style:j,onMouseEnter:A=>H(A,!0),onMouseLeave:A=>H(A,!1),children:E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[E.jsx("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),E.jsx("line",{x1:"12",y1:"4",x2:"4",y2:"12"})]})})]})]})]})}),Ec=S.memo(function({errors:t,isLoading:r,isStreaming:s,language:i,theme:o,filename:c,footerSlot:u,view:f}){const h=o==="dark",d=t.filter(A=>A.severity==="error").length,x=t.filter(A=>A.severity==="warning").length,y=f==="preview"||f==="split",[b,N]=S.useState(!1),[O,F]=S.useState(!1),ee=S.useRef(),P=S.useRef(null);S.useEffect(()=>()=>{clearTimeout(ee.current)},[]),S.useEffect(()=>{if(!O)return;const A=z=>{P.current&&!P.current.contains(z.target)&&F(!1)};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[O]);let D="Ready",j=h?"#71717a":"#a1a1aa";s?(D="⟳ Streaming...",j="#818cf8"):d>0?(D=`✕ ${d} error${d>1?"s":""}`,j="#ef4444"):r&&y&&(D="◌ Building...",j="#f59e0b");const U=S.useCallback(()=>{const A=new CustomEvent("codeviz:copy-request");window.dispatchEvent(A),N(!0),clearTimeout(ee.current),ee.current=setTimeout(()=>N(!1),Kr.COPY_CONFIRMATION_MS)},[]),H=h?"#52525b":"#a1a1aa",G=h?"#a1a1aa":"#71717a";return E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24,padding:"0 8px",backgroundColor:h?"#18181b":"#f4f4f5",borderTop:`1px solid ${h?"#27272a":"#e4e4e7"}`,fontSize:11,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace',flexShrink:0,userSelect:"none",position:"relative"},children:[E.jsxs("div",{ref:P,style:{display:"flex",alignItems:"center",gap:8,minWidth:0,flex:"0 0 auto",position:"relative"},children:[E.jsx("span",{style:{color:j,fontWeight:500,cursor:d>0?"pointer":"default"},onClick:d>0?()=>F(A=>!A):void 0,title:d>0?"Click to view errors":void 0,children:D}),x>0&&E.jsxs("span",{style:{color:"#f59e0b"},children:["⚠ ",x]}),O&&t.length>0&&E.jsx("div",{style:{position:"absolute",bottom:"100%",right:0,marginBottom:2,width:320,maxHeight:180,overflowY:"auto",backgroundColor:h?"#1e1e2e":"#ffffff",border:`1px solid ${h?"#3f3f50":"#d4d4d8"}`,borderRadius:4,boxShadow:h?"0 2px 8px rgba(0,0,0,0.4)":"0 2px 8px rgba(0,0,0,0.1)",zIndex:50,padding:0},children:t.map((A,z)=>E.jsxs("div",{style:{padding:"3px 8px",borderBottom:z<t.length-1?`1px solid ${h?"#27272a":"#f4f4f5"}`:"none",fontSize:10,lineHeight:1.4,display:"flex",alignItems:"baseline",gap:4},children:[E.jsx("span",{style:{color:A.severity==="error"?"#ef4444":"#f59e0b",fontWeight:600,fontSize:9,textTransform:"uppercase",flexShrink:0},children:A.category}),A.line&&E.jsxs("span",{style:{color:h?"#71717a":"#a1a1aa",fontSize:9,flexShrink:0},children:["L",A.line]}),E.jsx("span",{style:{color:h?"#d4d4d8":"#3f3f46",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:'"SF Mono", Menlo, monospace',fontSize:9},children:A.message.length>120?A.message.slice(0,120)+"…":A.message})]},A.id))})]}),c&&E.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",color:h?"#71717a":"#a1a1aa",padding:"0 8px"},children:[s&&E.jsx("div",{style:{width:5,height:5,borderRadius:"50%",backgroundColor:"#f59e0b",flexShrink:0,animation:"codevizPulse 1s infinite"}}),c]}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flex:"0 0 auto"},children:[E.jsx("button",{onClick:U,title:b?"Copied!":"Copy code",style:{display:"flex",alignItems:"center",gap:3,border:"none",background:"none",cursor:"pointer",padding:"0 2px",color:b?"#22c55e":H,fontSize:11,fontFamily:"inherit",transition:"color 0.15s"},onMouseEnter:A=>{b||(A.currentTarget.style.color=G)},onMouseLeave:A=>{b||(A.currentTarget.style.color=H)},children:b?E.jsxs(E.Fragment,{children:[E.jsx("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("polyline",{points:"3 8 7 12 13 4"})}),"Copied"]}):E.jsxs(E.Fragment,{children:[E.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"5",y:"5",width:"9",height:"9",rx:"1.5"}),E.jsx("path",{d:"M3 11V3a1.5 1.5 0 011.5-1.5H11"})]}),"Copy"]})}),E.jsx("span",{style:{color:H},children:i.toUpperCase()}),u]})]})}),Cc=S.memo(function({errors:t,theme:r}){const s=r==="dark",i=t.filter(c=>c.severity==="error").length,o=t.filter(c=>c.severity==="warning").length;return E.jsxs("div",{style:{width:"100%",height:"100%",overflow:"auto",backgroundColor:s?"#09090b":"#ffffff",padding:"24px 20px",fontFamily:'"SF Mono", Menlo, Consolas, monospace'},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:16,paddingBottom:12,borderBottom:`1px solid ${s?"#27272a":"#e4e4e7"}`},children:[E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"#ef4444",strokeWidth:"1.5"}),E.jsx("line",{x1:"8",y1:"4.5",x2:"8",y2:"8.5",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round"}),E.jsx("circle",{cx:"8",cy:"11",r:"0.75",fill:"#ef4444"})]}),E.jsxs("span",{style:{color:"#ef4444",fontWeight:600,fontSize:13},children:[i," error",i!==1?"s":""]}),o>0&&E.jsxs("span",{style:{color:"#f59e0b",fontSize:12},children:[o," warning",o!==1?"s":""]})]}),t.map(c=>E.jsxs("div",{style:{marginBottom:8,padding:"8px 10px",borderRadius:6,backgroundColor:s?c.severity==="error"?"rgba(239,68,68,0.08)":"rgba(245,158,11,0.08)":c.severity==="error"?"rgba(239,68,68,0.05)":"rgba(245,158,11,0.05)",border:`1px solid ${s?c.severity==="error"?"rgba(239,68,68,0.2)":"rgba(245,158,11,0.2)":c.severity==="error"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)"}`},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:3},children:[E.jsx("span",{style:{color:c.severity==="error"?"#ef4444":"#f59e0b",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:.5},children:c.category}),c.line&&E.jsxs("span",{style:{color:s?"#71717a":"#a1a1aa",fontSize:10},children:["Line ",c.line,c.column?`:${c.column}`:""]})]}),E.jsx("div",{style:{color:s?"#d4d4d8":"#3f3f46",fontSize:11,lineHeight:1.5,wordBreak:"break-word"},children:c.message}),c.sourceContext&&E.jsx("pre",{style:{marginTop:6,padding:"6px 8px",borderRadius:4,backgroundColor:s?"#0f0f0f":"#f9fafb",border:`1px solid ${s?"#1e1e1e":"#e5e7eb"}`,fontSize:10,lineHeight:1.4,overflow:"auto",color:s?"#a1a1aa":"#6b7280",whiteSpace:"pre-wrap"},children:c.sourceContext})]},c.id))]})}),Ge={};function Cm(e){Ge[e.id]=e}function Tm(e){for(const t of e)Ge[t.id]=t}function Am(e){delete Ge[e]}function Pm(){for(const e of Object.keys(Ge))delete Ge[e]}function Nm(e){return Ge[e]}function Rm(){return Object.keys(Ge)}function Lm(){return Object.values(Ge)}function Tc(){const e=Object.values(Ge);return e.length===0?"_No templates registered._":e.map(t=>`- **${t.id}**: ${t.description} [keywords: ${t.keywords.join(", ")}]`).join(`
1275
+ `)}function Dm(e,t){const r=e.toLowerCase(),s=Object.keys(Ge);let o=t??s[0]??"",c=0;for(const[u,f]of Object.entries(Ge)){let h=0;for(const d of f.keywords)r.includes(d)&&(h+=d.length);h>c&&(c=h,o=u)}return o}function Ac(e){return Sc.has(e)}function Pc(e){switch(e.toLowerCase().replace(/^\./,"")){case"html":case"htm":return"html";case"md":case"markdown":case"mdx":return"markdown";case"mermaid":case"mmd":return"mermaid";case"svg":return"svg";case"csv":case"tsv":return"csv";case"json":case"jsonl":return"json";case"dot":case"gv":case"graphviz":return"dot";case"latex":case"tex":case"katex":return"latex";case"architecture":case"arch":case"drawio":return"architecture";case"jsx":case"js":case"javascript":return"react";case"tsx":case"ts":case"typescript":default:return"react-ts"}}function Nc(e,t,r,s,i,o){const c=(u,f)=>s?`${s.replace(/\.[^.]+$/,"")}${f}`:u;switch(t){case"html":return{filename:s||"preview.html",content:e,mime:"text/html"};case"markdown":return{filename:s||"document.md",content:e,mime:"text/markdown"};case"dot":return{filename:s||"diagram.dot",content:e,mime:"text/vnd.graphviz"};case"latex":return{filename:s||"document.tex",content:e,mime:"application/x-latex"};case"architecture":return{filename:s||"architecture.drawio",content:e,mime:"application/xml"};case"mermaid":return{filename:s||"diagram.mermaid",content:e,mime:"text/plain"};case"svg":return{filename:s||"image.svg",content:e,mime:"image/svg+xml"};case"csv":return{filename:s||"data.csv",content:e,mime:"text/csv"};case"json":return{filename:s||"data.json",content:e,mime:"application/json"};case"react":case"react-ts":{const u=rs(e,{filename:t==="react"?"App.jsx":"App.tsx"});if(u.error)return{filename:`component.${r==="jsx"||r==="js"?"jsx":"tsx"}`,content:e,mime:"text/plain"};const f=Ti({}),d=(i?i+`
1276
+ `+u.code:u.code).replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${"),x=o?`<style data-theme>${o}</style>`:"",b=`<!DOCTYPE html>
1216
1277
  <html lang="en">
1217
1278
  <head>
1218
1279
  <meta charset="UTF-8">
1219
1280
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
1220
1281
  <title>${s?s.replace(/\.[^.]+$/,""):"Preview"}</title>
1221
- ${Ai(h)}
1282
+ ${Ai(f)}
1222
1283
  <script src="https://cdn.tailwindcss.com/3.4.16?plugins=forms,typography"><\/script>
1223
1284
  ${x}
1224
1285
  <style>
@@ -1232,7 +1293,7 @@ ${bm(m)}
1232
1293
  <script type="module">
1233
1294
  import React from 'react';
1234
1295
  import { createRoot } from 'react-dom/client';
1235
- const code = \`${m}\`;
1296
+ const code = \`${d}\`;
1236
1297
  const blob = new Blob([code], { type: 'text/javascript' });
1237
1298
  const url = URL.createObjectURL(blob);
1238
1299
  const mod = await import(url);
@@ -1241,7 +1302,7 @@ ${bm(m)}
1241
1302
  createRoot(document.getElementById('root')).render(React.createElement(App));
1242
1303
  <\/script>
1243
1304
  </body>
1244
- </html>`;return{filename:c("preview.html",".html"),content:y,mime:"text/html"}}default:return{filename:"file.txt",content:e,mime:"text/plain"}}}const Pm=`export default function App() {
1305
+ </html>`;return{filename:c("preview.html",".html"),content:b,mime:"text/html"}}default:return{filename:"file.txt",content:e,mime:"text/plain"}}}const Om=`export default function App() {
1245
1306
  return (
1246
1307
  <div className="flex items-center justify-center min-h-screen bg-gradient-to-br from-indigo-500 to-purple-600">
1247
1308
  <div className="bg-white rounded-2xl shadow-xl p-8 max-w-md text-center">
@@ -1250,7 +1311,7 @@ ${bm(m)}
1250
1311
  </div>
1251
1312
  </div>
1252
1313
  );
1253
- }`,Nm=S.memo(S.forwardRef(function({code:t,language:r="tsx",template:s="react-ts",templateId:i,importMap:o,dependencies:c,cdnBase:u,externalResources:h,tailwindCdn:f,onChange:m,onError:x,onLoad:_,onClose:y,onFullscreenChange:L,showEditor:j=!0,showPreview:F,defaultView:ne="split",editorOptions:P,className:M,height:O="100%",width:U="100%",theme:H="dark",readOnly:G=!1,showLoader:A=!0,loader:z,showToolbar:B=!0,showStatusBar:ce=!0,filename:Le,hideSplit:$e=!1,footerSlot:Me,isStreaming:W,themeCSS:oe,componentsPreamble:Te},he){const _e=i?Ge[i]:null,be=(_e==null?void 0:_e.code)??t??Pm,Z=(_e==null?void 0:_e.language)??r,ae=(_e==null?void 0:_e.type)??s??A1(Z),de=F??T1(ae),[ze,b]=S.useState(be),[I,T]=S.useState([]),[C,D]=S.useState(j?de?ne:"code":"preview"),[Y,Q]=S.useState(!0),[le,ve]=S.useState(!1),[me,je]=S.useState(!1),we=le||(W??!1),Ie=S.useRef(W),Ee=S.useRef(!1),De=S.useRef(),At=S.useRef(null),gt=S.useRef(null),xt=S.useRef(0),[Tr,lr]=S.useState(0),ur=S.useRef(),[pr,lt]=S.useState(be),Fe=S.useRef(be),Pt=S.useRef(t),Ze=S.useRef(!1);S.useEffect(()=>{t!=null&&t!==Pt.current&&t!==Fe.current&&(Pt.current=t,Fe.current=t,Ze.current=!0,b(t),we||lt(t),queueMicrotask(()=>{Ze.current=!1}))},[t,we]),S.useEffect(()=>{const K=Ie.current;if(Ie.current=W,K&&!W&&!le&&de){const Ae=Fe.current;lt(Ae),T([]),Q(!0),Ee.current=!0,clearTimeout(De.current),De.current=setTimeout(()=>{Ee.current&&(Ee.current=!1,D("preview"))},Xr.PREVIEW_SWITCH_DELAY_MS)}},[W,le,de]),S.useEffect(()=>{we&&(C==="preview"||C==="split")&&D("code")},[we,C]);const[hr,Mt]=S.useState(null),jt=S.useRef(null);S.useEffect(()=>{const K=()=>{const Ae=Fe.current;Ae&&navigator.clipboard.writeText(Ae).catch(()=>{const Se=document.createElement("textarea");Se.value=Ae,Se.style.position="fixed",Se.style.opacity="0",document.body.appendChild(Se),Se.select(),document.execCommand("copy"),document.body.removeChild(Se)})};return window.addEventListener("codeviz:copy-request",K),()=>window.removeEventListener("codeviz:copy-request",K)},[]),S.useEffect(()=>{const K=()=>{const Ae=document.fullscreenElement===gt.current;je(Ae),L==null||L(Ae),Ae?D(Se=>(jt.current=Se,de?"preview":"code")):jt.current!=null&&(D(jt.current),jt.current=null)};return document.addEventListener("fullscreenchange",K),()=>document.removeEventListener("fullscreenchange",K)},[L,de]);const Ar=S.useCallback(()=>{const K=gt.current;K&&(document.fullscreenElement===K?document.exitFullscreen():K.requestFullscreen())},[]),Ft=S.useCallback((K,Ae,Se)=>{const ut=K.replace(/[^a-zA-Z0-9\-_.]/g,"_"),bt=new Blob([Ae],{type:Se}),xr=URL.createObjectURL(bt),Nt=document.createElement("a");Nt.href=xr,Nt.download=ut,document.body.appendChild(Nt),Nt.click(),document.body.removeChild(Nt),URL.revokeObjectURL(xr)},[]),Pr=S.useCallback(()=>{const K=Fe.current,{filename:Ae,content:Se,mime:ut}=P1(K,ae,Z,Le,Te,oe);Ft(Ae,Se,ut)},[ae,Z,Le,Te,oe,Ft]),fr=S.useCallback(()=>{Ft("document.md",Fe.current,"text/markdown")},[Ft]),dr=S.useCallback(()=>{const K=Fe.current,Ae=`<!DOCTYPE html>
1314
+ }`,Mm=S.memo(S.forwardRef(function({code:t,language:r="tsx",template:s="react-ts",templateId:i,importMap:o,dependencies:c,cdnBase:u,externalResources:f,tailwindCdn:h,onChange:d,onError:x,onLoad:y,onClose:b,onFullscreenChange:N,showEditor:O=!0,showPreview:F,defaultView:ee="split",editorOptions:P,className:D,height:j="100%",width:U="100%",theme:H="dark",readOnly:G=!1,showLoader:A=!0,loader:z,showToolbar:B=!0,showStatusBar:ce=!0,filename:Ae,hideSplit:Ve=!1,footerSlot:je,isStreaming:W,themeCSS:oe,componentsPreamble:Pe},he){const _e=i?Ge[i]:null,be=(_e==null?void 0:_e.code)??t??Om,Q=(_e==null?void 0:_e.language)??r,se=(_e==null?void 0:_e.type)??s??Pc(Q),de=F??Ac(se),[ze,v]=S.useState(be),[I,T]=S.useState([]),[C,M]=S.useState(O?de?ee:"code":"preview"),[K,J]=S.useState(!0),[le,ve]=S.useState(!1),[me,Fe]=S.useState(!1),we=le||(W??!1),Ie=S.useRef(W),Ee=S.useRef(!1),De=S.useRef(),Pt=S.useRef(null),gt=S.useRef(null),xt=S.useRef(0),[Nr,ur]=S.useState(0),pr=S.useRef(),[hr,lt]=S.useState(be),Me=S.useRef(be),Nt=S.useRef(t),Ze=S.useRef(!1);S.useEffect(()=>{t!=null&&t!==Nt.current&&t!==Me.current&&(Nt.current=t,Me.current=t,Ze.current=!0,v(t),we||lt(t),queueMicrotask(()=>{Ze.current=!1}))},[t,we]),S.useEffect(()=>{const Y=Ie.current;if(Ie.current=W,Y&&!W&&!le&&de){const Ce=Me.current;lt(Ce),T([]),J(!0),Ee.current=!0,clearTimeout(De.current),De.current=setTimeout(()=>{Ee.current&&(Ee.current=!1,M("preview"))},Kr.PREVIEW_SWITCH_DELAY_MS)}},[W,le,de]),S.useEffect(()=>{we&&(C==="preview"||C==="split")&&M("code")},[we,C]);const[fr,jt]=S.useState(null),Ft=S.useRef(null);S.useEffect(()=>{const Y=()=>{const Ce=Me.current;Ce&&navigator.clipboard.writeText(Ce).catch(()=>{const Se=document.createElement("textarea");Se.value=Ce,Se.style.position="fixed",Se.style.opacity="0",document.body.appendChild(Se),Se.select(),document.execCommand("copy"),document.body.removeChild(Se)})};return window.addEventListener("codeviz:copy-request",Y),()=>window.removeEventListener("codeviz:copy-request",Y)},[]),S.useEffect(()=>{const Y=()=>{const Ce=document.fullscreenElement===gt.current;Fe(Ce),N==null||N(Ce),Ce?M(Se=>(Ft.current=Se,de?"preview":"code")):Ft.current!=null&&(M(Ft.current),Ft.current=null)};return document.addEventListener("fullscreenchange",Y),()=>document.removeEventListener("fullscreenchange",Y)},[N,de]);const Rr=S.useCallback(()=>{const Y=gt.current;Y&&(document.fullscreenElement===Y?document.exitFullscreen():Y.requestFullscreen())},[]),kt=S.useCallback((Y,Ce,Se)=>{const ut=Y.replace(/[^a-zA-Z0-9\-_.]/g,"_"),yt=new Blob([Ce],{type:Se}),yr=URL.createObjectURL(yt),Rt=document.createElement("a");Rt.href=yr,Rt.download=ut,document.body.appendChild(Rt),Rt.click(),document.body.removeChild(Rt),URL.revokeObjectURL(yr)},[]),Xt=S.useCallback(()=>{const Y=Me.current,{filename:Ce,content:Se,mime:ut}=Nc(Y,se,Q,Ae,Pe,oe);kt(Ce,Se,ut)},[se,Q,Ae,Pe,oe,kt]),dr=S.useCallback(()=>{kt("document.md",Me.current,"text/markdown")},[kt]),mr=S.useCallback(()=>{const Y=Me.current,Ce=`<!DOCTYPE html>
1254
1315
  <html><head>
1255
1316
  <meta charset="UTF-8">
1256
1317
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@5/github-markdown.min.css">
@@ -1264,10 +1325,10 @@ ${bm(m)}
1264
1325
  <article id="content" class="markdown-body"></article>
1265
1326
  <script>
1266
1327
  marked.setOptions({ gfm: true, breaks: true });
1267
- document.getElementById('content').innerHTML = marked.parse(${JSON.stringify(K)});
1328
+ document.getElementById('content').innerHTML = marked.parse(${JSON.stringify(Y)});
1268
1329
  setTimeout(() => { window.print(); }, 500);
1269
1330
  <\/script>
1270
- </body></html>`,Se=window.open("","_blank");Se&&(Se.document.write(Ae),Se.document.close())},[]),mr=S.useMemo(()=>{if(ae==="markdown")return[{label:"Download as Markdown (.md)",action:fr},{label:"Download as PDF (Print)",action:dr}]},[ae,fr,dr]),Nr=S.useCallback(K=>{b(K),Fe.current=K,Ze.current||(m==null||m(K),clearTimeout(ur.current),ur.current=setTimeout(()=>{lt(K)},Xr.EDITOR_DEBOUNCE_MS))},[m]),Rr=S.useCallback(K=>{Ee.current&&(Ee.current=!1,clearTimeout(De.current),D("code")),T(Ae=>Ae.some(Se=>Se.message===K.message)?Ae:[...Ae.slice(-9),K]),x==null||x(K)},[x]),Lr=S.useCallback(()=>{Q(!1);const K=Ie.current??!1;!we&&!K&&de&&C==="code"&&!Ee.current&&D("preview"),_==null||_()},[_,we,de,C]);S.useImperativeHandle(he,()=>({getCode:()=>Fe.current,setCode:K=>{Ze.current=!0,Mt(ze),b(K),lt(K),Fe.current=K,Pt.current=K,T([]),queueMicrotask(()=>{Ze.current=!1})},streamCode:K=>{Ze.current=!0,le||(Mt(Fe.current),ve(!0),D("code")),Fe.current=K,Pt.current=K,b(K),queueMicrotask(()=>{Ze.current=!1})},commitCode:()=>{ve(!1);const K=Fe.current;b(K),lt(K),T([]),Q(!0),de&&W==null&&(Ee.current=!0,clearTimeout(De.current),De.current=setTimeout(()=>{Ee.current&&(Ee.current=!1,D("preview"))},Xr.PREVIEW_SWITCH_DELAY_MS))},editCode:(K,Ae)=>{const Se=Fe.current,ut=Se.indexOf(K);if(ut===-1)return!1;Ze.current=!0,hr==null&&Mt(Se);const bt=Se.slice(0,ut)+Ae+Se.slice(ut+K.length);return b(bt),lt(bt),Fe.current=bt,Pt.current=bt,queueMicrotask(()=>{Ze.current=!1}),!0},refresh:()=>{xt.current+=1,lr(xt.current),T([])},setView:K=>D(K),getErrors:()=>I,clearErrors:()=>T([]),isLoading:()=>Y})),S.useEffect(()=>{if(i&&Ge[i]){const K=Ge[i];b(K.code),lt(K.code),Fe.current=K.code,Mt(null)}},[i]);const Xt=H==="dark",gr=C==="split"||C==="code",kt=C==="split"||C==="preview",Dr=de&&pr!==be&&!we,Or={display:"flex",flexDirection:"column",width:me?"100vw":typeof U=="number"?`${U}px`:U,height:me?"100vh":typeof O=="number"?`${O}px`:O,overflow:"hidden",borderRadius:me?0:10,border:me?"none":`1px solid ${Xt?"#27272a":"#e4e4e7"}`,backgroundColor:Xt?"#09090b":"#ffffff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},Mr={display:"flex",flexDirection:"row",flex:1,minHeight:0,overflow:"hidden"},Yt={flex:1,minWidth:0,minHeight:0,overflow:"hidden"},jr={flexShrink:0,width:1,backgroundColor:Xt?"#27272a":"#e4e4e7"},Fr=ae==="react-ts"?"react-ts":ae;return E.jsxs("div",{ref:gt,className:M,style:Or,children:[B&&E.jsx(S1,{view:C,onViewChange:D,onRefresh:()=>{xt.current+=1,lr(xt.current),T([])},isLoading:Y,theme:H,isStreaming:we,isFullscreen:me,onFullscreenToggle:Ar,onDownload:mr?void 0:Pr,downloadOptions:mr,onClose:y,hideSplit:$e}),E.jsxs("div",{style:Mr,children:[gr&&E.jsx("div",{style:Yt,children:E.jsx(ya,{code:ze,language:Z,onChange:Nr,theme:H,readOnly:G||we,options:P,editorRef:At,baseCode:hr})}),gr&&kt&&E.jsx("div",{style:jr}),kt&&!we&&I.length>0&&E.jsx("div",{style:Yt,children:E.jsx(E1,{errors:I,theme:H})}),(kt||Dr&&!kt)&&E.jsx("div",{style:{...Yt,...kt&&!(I.length>0&&!we)?{}:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0,pointerEvents:"none"}},children:E.jsx(w1,{code:pr,template:Fr,importMap:o,dependencies:c,cdnBase:u,tailwindCdn:f,externalResources:h,files:void 0,onError:Rr,onLoad:Lr,theme:H,showLoader:A&&kt&&!(I.length>0&&!we),loader:z,themeCSS:oe,componentsPreamble:Te})},Tr)]}),ce&&E.jsx(I1,{errors:I,isLoading:Y,isStreaming:we,language:Z,theme:H,view:C,filename:Le,footerSlot:Me})]})})),N1={"application/vnd.react":{description:"React TSX component (single file, default export)",extension:".tsx",template:"react-ts",example:"export default function App() { return <h1>Hello</h1>; }"},"text/html":{description:"Static HTML (rendered directly, Tailwind CSS available)",extension:".html",template:"html",example:'<div class="p-4"><h1 class="text-2xl font-bold">Hello</h1></div>'},"text/markdown":{description:"Markdown with Mermaid diagram support (GFM, rendered with github-markdown-css)",extension:".md",template:"markdown",example:`# Hello
1331
+ </body></html>`,Se=window.open("","_blank");Se&&(Se.document.write(Ce),Se.document.close())},[]),gr=S.useCallback(()=>{kt(Ae||`component${Q==="tsx"||Q==="typescript"?".tsx":".jsx"}`,Me.current,"text/plain")},[Q,Ae,kt]),xr=S.useMemo(()=>{if(se==="markdown")return[{label:"Download as Markdown (.md)",action:dr},{label:"Download as PDF (Print)",action:mr}]},[se,dr,mr]),kr=S.useMemo(()=>se!=="react"&&se!=="react-ts"?void 0:[{label:`Download ${Q==="tsx"||Q==="typescript"?"TSX":"JSX"}`,action:gr},{label:"Download HTML",action:Xt}],[se,Q,gr,Xt]),Lr=S.useCallback(Y=>{v(Y),Me.current=Y,Ze.current||(d==null||d(Y),clearTimeout(pr.current),pr.current=setTimeout(()=>{lt(Y)},Kr.EDITOR_DEBOUNCE_MS))},[d]),Dr=S.useCallback(Y=>{Ee.current&&(Ee.current=!1,clearTimeout(De.current),M("code")),T(Ce=>Ce.some(Se=>Se.message===Y.message)?Ce:[...Ce.slice(-9),Y]),x==null||x(Y)},[x]),Or=S.useCallback(()=>{J(!1);const Y=Ie.current??!1;!we&&!Y&&de&&C==="code"&&!Ee.current&&M("preview"),y==null||y()},[y,we,de,C]);S.useImperativeHandle(he,()=>({getCode:()=>Me.current,setCode:Y=>{Ze.current=!0,jt(ze),v(Y),lt(Y),Me.current=Y,Nt.current=Y,T([]),queueMicrotask(()=>{Ze.current=!1})},streamCode:Y=>{Ze.current=!0,le||(jt(Me.current),ve(!0),M("code")),Me.current=Y,Nt.current=Y,v(Y),queueMicrotask(()=>{Ze.current=!1})},commitCode:()=>{ve(!1);const Y=Me.current;v(Y),lt(Y),T([]),J(!0),de&&W==null&&(Ee.current=!0,clearTimeout(De.current),De.current=setTimeout(()=>{Ee.current&&(Ee.current=!1,M("preview"))},Kr.PREVIEW_SWITCH_DELAY_MS))},editCode:(Y,Ce)=>{const Se=Me.current,ut=Se.indexOf(Y);if(ut===-1)return!1;Ze.current=!0,fr==null&&jt(Se);const yt=Se.slice(0,ut)+Ce+Se.slice(ut+Y.length);return v(yt),lt(yt),Me.current=yt,Nt.current=yt,queueMicrotask(()=>{Ze.current=!1}),!0},refresh:()=>{xt.current+=1,ur(xt.current),T([])},setView:Y=>M(Y),getErrors:()=>I,clearErrors:()=>T([]),isLoading:()=>K})),S.useEffect(()=>{if(i&&Ge[i]){const Y=Ge[i];v(Y.code),lt(Y.code),Me.current=Y.code,jt(null)}},[i]);const Yt=H==="dark",br=C==="split"||C==="code",bt=C==="split"||C==="preview",Mr=de&&hr!==be&&!we,jr={display:"flex",flexDirection:"column",width:me?"100vw":typeof U=="number"?`${U}px`:U,height:me?"100vh":typeof j=="number"?`${j}px`:j,overflow:"hidden",borderRadius:me?0:10,border:me?"none":`1px solid ${Yt?"#27272a":"#e4e4e7"}`,backgroundColor:Yt?"#09090b":"#ffffff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},Fr={display:"flex",flexDirection:"row",flex:1,minHeight:0,overflow:"hidden"},Kt={flex:1,minWidth:0,minHeight:0,overflow:"hidden"},Br={flexShrink:0,width:1,backgroundColor:Yt?"#27272a":"#e4e4e7"},$r=se==="react-ts"?"react-ts":se;return E.jsxs("div",{ref:gt,className:D,style:jr,children:[B&&E.jsx(Ic,{view:C,onViewChange:M,onRefresh:()=>{xt.current+=1,ur(xt.current),T([])},isLoading:K,theme:H,isStreaming:we,isFullscreen:me,onFullscreenToggle:Rr,onDownload:xr||kr?void 0:Xt,downloadOptions:xr||kr,onClose:b,hideSplit:Ve}),E.jsxs("div",{style:Fr,children:[br&&E.jsx("div",{style:Kt,children:E.jsx(ya,{code:ze,language:Q,onChange:Lr,theme:H,readOnly:G||we,options:P,editorRef:Pt,baseCode:fr})}),br&&bt&&E.jsx("div",{style:Br}),bt&&!we&&I.length>0&&E.jsx("div",{style:Kt,children:E.jsx(Cc,{errors:I,theme:H})}),(bt||Mr&&!bt)&&E.jsx("div",{style:{...Kt,...bt&&!(I.length>0&&!we)?{}:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0,pointerEvents:"none"}},children:E.jsx(_c,{code:hr,template:$r,importMap:o,dependencies:c,cdnBase:u,tailwindCdn:h,externalResources:f,files:void 0,onError:Dr,onLoad:Or,theme:H,showLoader:A&&bt&&!(I.length>0&&!we),loader:z,themeCSS:oe,componentsPreamble:Pe})},Nr)]}),ce&&E.jsx(Ec,{errors:I,isLoading:K,isStreaming:we,language:Q,theme:H,view:C,filename:Ae,footerSlot:je})]})})),Rc={"application/vnd.react":{description:"React TSX component (single file, default export)",extension:".tsx",template:"react-ts",example:"export default function App() { return <h1>Hello</h1>; }"},"text/html":{description:"Static HTML (rendered directly, Tailwind CSS available)",extension:".html",template:"html",example:'<div class="p-4"><h1 class="text-2xl font-bold">Hello</h1></div>'},"text/markdown":{description:"Markdown with Mermaid diagram support (GFM, rendered with github-markdown-css)",extension:".md",template:"markdown",example:`# Hello
1271
1332
 
1272
1333
  Some text
1273
1334
 
@@ -1282,7 +1343,7 @@ Alice,30,NYC
1282
1343
  Bob,25,LA`},"application/json":{description:"JSON data with collapsible tree view and syntax highlighting",extension:".json",template:"json",example:'{"users": [{"name": "Alice", "role": "admin"}]}'},"text/vnd.graphviz":{description:"Graphviz DOT diagram with zoom/pan viewer (digraph, subgraph, clusters)",extension:".dot",template:"dot",example:`digraph G {
1283
1344
  A -> B -> C;
1284
1345
  B -> D;
1285
- }`},"application/x-latex":{description:"LaTeX math equations rendered with KaTeX (inline $...$ and display $$...$$)",extension:".tex",template:"latex",example:"The quadratic formula: $$x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$$"},"application/vnd.architecture":{description:"Architecture diagram using Draw.io XML (mxGraphModel). Supports AWS, GCP, Azure, K8s shapes and all draw.io stencils.",extension:".drawio",template:"architecture",example:'<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>'}};function Rm(){return N1}function Lm(){return`## Artifact Preview (CodeViz)
1346
+ }`},"application/x-latex":{description:"LaTeX math equations rendered with KaTeX (inline $...$ and display $$...$$)",extension:".tex",template:"latex",example:"The quadratic formula: $$x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$$"},"application/vnd.architecture":{description:"Architecture diagram using Draw.io XML (mxGraphModel). Supports AWS, GCP, Azure, K8s shapes and all draw.io stencils.",extension:".drawio",template:"architecture",example:'<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>'}};function jm(){return Rc}function Fm(){return`## Artifact Preview (CodeViz)
1286
1347
 
1287
1348
  You can create interactive React or HTML artifacts that render in a live preview.
1288
1349
 
@@ -1306,7 +1367,7 @@ You can create interactive React or HTML artifacts that render in a live preview
1306
1367
  5. **Pick a template**: Start from the closest matching template to save tokens. Edit the template body — don't rewrite imports.
1307
1368
 
1308
1369
  ### Available Templates
1309
- ${C1()}
1370
+ ${Tc()}
1310
1371
 
1311
1372
  ### Template Selection
1312
1373
  Pick the template whose keywords best match the user's request. If unsure, use **singlepage**.
@@ -1319,7 +1380,7 @@ Templates use a **skeleton-first** approach to save tokens. Each template provid
1319
1380
 
1320
1381
  **How to extend:** Pick a template, then replace placeholder components with real content. Keep the layout structure — only modify the body.
1321
1382
 
1322
- ${v1()}
1383
+ ${vc()}
1323
1384
 
1324
1385
  ### Error Handling
1325
1386
  If you receive an error from the preview, fix it by:
@@ -1363,7 +1424,7 @@ Format: **Draw.io XML** (mxGraphModel). The renderer includes ALL draw.io shape
1363
1424
  **Generic shapes:** Use \`style="shape=mxgraph.NAME"\` for:
1364
1425
  - K8s: \`mxgraph.kubernetes.*\` (pod, node2, svc, deploy, ns)
1365
1426
  - Network: \`mxgraph.network.*\` (server, firewall, cloud, rack_unit)
1366
- - Basic: \`rounded=1;whiteSpace=wrap;html=1;fillColor=#COLOR;strokeColor=#COLOR;fontColor=#fff;\` for simple boxes`}const Dm=`
1427
+ - Basic: \`rounded=1;whiteSpace=wrap;html=1;fillColor=#COLOR;strokeColor=#COLOR;fontColor=#fff;\` for simple boxes`}const Bm=`
1367
1428
  /* ── Font: Roboto ── */
1368
1429
  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');
1369
1430
  * { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
@@ -1431,7 +1492,7 @@ Format: **Draw.io XML** (mxGraphModel). The renderer includes ALL draw.io shape
1431
1492
  .bg-status-positive { background-color: var(--status-positive); }
1432
1493
  .bg-status-negative { background-color: var(--status-negative); }
1433
1494
  .bg-status-warning { background-color: var(--status-warning); }
1434
- `,Om=`
1495
+ `,$m=`
1435
1496
  // ── Built-in UI Components (auto-injected by CodeViz) ──────────────────────
1436
1497
  // Agent code can use these directly: <DataTable />, <MetricCard />, etc.
1437
1498
  // Do NOT remove or modify — these are managed by the platform.
@@ -1811,5 +1872,5 @@ function Avatar({ initials = 'RA', dark }) {
1811
1872
  }
1812
1873
 
1813
1874
  // ── End built-in components ─────────────────────────────────────────────────
1814
- `,Mm=["DataTable","MetricCard","StatusBadge","DetailCard","StepWizard","Logo","Avatar"];exports.BANKING_THEME_CSS=Dm;exports.BUILTIN_COMPONENTS_TSX=Om;exports.BUILTIN_COMPONENT_NAMES=Mm;exports.CodeViz=Nm;exports.EditorPane=ya;exports.ErrorPanel=E1;exports.Loader=Hs;exports.PREVIEW_TEMPLATES=_1;exports.PreviewPane=w1;exports.RENDERABLE_TYPES=N1;exports.SPLIT_BREAKPOINT=zs;exports.StatusBar=I1;exports.TIMINGS=Xr;exports.Toolbar=S1;exports.buildDownload=P1;exports.buildImportMap=Ti;exports.buildPreviewHtml=wn;exports.clearTemplates=Im;exports.getAgentSystemPrompt=Lm;exports.getAvailablePackages=v1;exports.getRenderableTypes=Rm;exports.getTemplate=Em;exports.getTemplateIds=Cm;exports.getTemplateSummary=C1;exports.getTemplates=Tm;exports.hasPreviewSupport=T1;exports.importMapToScript=Ai;exports.inferTemplate=A1;exports.pickTemplate=Am;exports.registerTemplate=wm;exports.registerTemplates=_m;exports.templates=Ge;exports.transpile=es;exports.transpileFiles=im;exports.unregisterTemplate=Sm;
1875
+ `,Vm=["DataTable","MetricCard","StatusBadge","DetailCard","StepWizard","Logo","Avatar"];exports.BANKING_THEME_CSS=Bm;exports.BUILTIN_COMPONENTS_TSX=$m;exports.BUILTIN_COMPONENT_NAMES=Vm;exports.CodeViz=Mm;exports.EditorPane=ya;exports.ErrorPanel=Cc;exports.Loader=Hs;exports.PREVIEW_TEMPLATES=Sc;exports.PreviewPane=_c;exports.RENDERABLE_TYPES=Rc;exports.SPLIT_BREAKPOINT=zs;exports.StatusBar=Ec;exports.TIMINGS=Kr;exports.Toolbar=Ic;exports.buildDownload=Nc;exports.buildImportMap=Ti;exports.buildPreviewHtml=Sn;exports.clearTemplates=Pm;exports.deduplicateESMImports=wc;exports.getAgentSystemPrompt=Fm;exports.getAvailablePackages=vc;exports.getRenderableTypes=jm;exports.getTemplate=Nm;exports.getTemplateIds=Rm;exports.getTemplateSummary=Tc;exports.getTemplates=Lm;exports.hasPreviewSupport=Ac;exports.importMapToScript=Ai;exports.inferTemplate=Pc;exports.pickTemplate=Dm;exports.registerTemplate=Cm;exports.registerTemplates=Tm;exports.templates=Ge;exports.transpile=rs;exports.transpileFiles=am;exports.unregisterTemplate=Am;
1815
1876
  //# sourceMappingURL=index.cjs.map