@trojanbox-vcp-test/site-edit-engine 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -0
- package/dist/index.js +127 -2
- package/dist/internal/protocol/operation.d.ts +2 -0
- package/dist/internal/protocol/render.d.ts +3 -30
- package/dist/internal/protocol.d.ts +1 -1
- package/dist/next-app-router.js +1 -140
- package/dist/preview-runtime.d.ts +249 -303
- package/dist/runtime-sync.d.ts +8 -8
- package/dist/runtime.d.ts +1 -127
- package/dist/site-edit-instrumentation.d.ts +1 -1
- package/dist/source-watcher.js +1 -150
- package/dist/types.d.ts +12 -14
- package/dist/webpack-loader.cjs +50 -588
- package/package.json +2 -2
- package/dist/execute-integration/execute-fixture-harness.d.ts +0 -25
- package/dist/execute-integration/execute-fixture-harness.js +0 -37
- package/dist/internal/ast/diagnostics/index.d.ts +0 -5
- package/dist/internal/ast/diagnostics/index.js +0 -25
- package/dist/internal/ast/history/index.d.ts +0 -15
- package/dist/internal/ast/history/index.js +0 -62
- package/dist/internal/ast/index.d.ts +0 -8
- package/dist/internal/ast/index.js +0 -5
- package/dist/internal/ast/locators/index.d.ts +0 -1
- package/dist/internal/ast/locators/index.js +0 -1
- package/dist/internal/ast/locators/resolve-locator.d.ts +0 -16
- package/dist/internal/ast/locators/resolve-locator.js +0 -920
- package/dist/internal/ast/parser/SourceParser.d.ts +0 -30
- package/dist/internal/ast/parser/SourceParser.js +0 -49
- package/dist/internal/ast/parser/index.d.ts +0 -21
- package/dist/internal/ast/parser/index.js +0 -64
- package/dist/internal/ast/primitives/conditional/conditional-primitives.d.ts +0 -18
- package/dist/internal/ast/primitives/conditional/conditional-primitives.js +0 -237
- package/dist/internal/ast/primitives/conditional/index.d.ts +0 -1
- package/dist/internal/ast/primitives/conditional/index.js +0 -1
- package/dist/internal/ast/primitives/imports/add-import.d.ts +0 -18
- package/dist/internal/ast/primitives/imports/add-import.js +0 -111
- package/dist/internal/ast/primitives/imports/index.d.ts +0 -2
- package/dist/internal/ast/primitives/imports/index.js +0 -2
- package/dist/internal/ast/primitives/imports/remove-import.d.ts +0 -15
- package/dist/internal/ast/primitives/imports/remove-import.js +0 -72
- package/dist/internal/ast/primitives/index.d.ts +0 -10
- package/dist/internal/ast/primitives/index.js +0 -10
- package/dist/internal/ast/primitives/jsx/index.d.ts +0 -4
- package/dist/internal/ast/primitives/jsx/index.js +0 -4
- package/dist/internal/ast/primitives/jsx/insert-child.d.ts +0 -11
- package/dist/internal/ast/primitives/jsx/insert-child.js +0 -69
- package/dist/internal/ast/primitives/jsx/move-node.d.ts +0 -9
- package/dist/internal/ast/primitives/jsx/move-node.js +0 -76
- package/dist/internal/ast/primitives/jsx/remove-node.d.ts +0 -7
- package/dist/internal/ast/primitives/jsx/remove-node.js +0 -36
- package/dist/internal/ast/primitives/jsx/update-text.d.ts +0 -8
- package/dist/internal/ast/primitives/jsx/update-text.js +0 -81
- package/dist/internal/ast/primitives/next/index.d.ts +0 -1
- package/dist/internal/ast/primitives/next/index.js +0 -1
- package/dist/internal/ast/primitives/next/next-primitives.d.ts +0 -43
- package/dist/internal/ast/primitives/next/next-primitives.js +0 -211
- package/dist/internal/ast/primitives/shared.d.ts +0 -60
- package/dist/internal/ast/primitives/shared.js +0 -176
- package/dist/internal/ast/primitives/style/class-expression.d.ts +0 -23
- package/dist/internal/ast/primitives/style/class-expression.js +0 -174
- package/dist/internal/ast/primitives/style/index.d.ts +0 -1
- package/dist/internal/ast/primitives/style/index.js +0 -1
- package/dist/internal/ast/primitives/style/style-primitives.d.ts +0 -49
- package/dist/internal/ast/primitives/style/style-primitives.js +0 -555
- package/dist/internal/ast/primitives/values/index.d.ts +0 -1
- package/dist/internal/ast/primitives/values/index.js +0 -1
- package/dist/internal/ast/primitives/values/value-primitives.d.ts +0 -42
- package/dist/internal/ast/primitives/values/value-primitives.js +0 -158
- package/dist/internal/ast/printer/SourcePrinter.d.ts +0 -21
- package/dist/internal/ast/printer/SourcePrinter.js +0 -76
- package/dist/internal/ast/printer/index.d.ts +0 -6
- package/dist/internal/ast/printer/index.js +0 -126
- package/dist/internal/ast/types.d.ts +0 -190
- package/dist/internal/ast/types.js +0 -1
- package/dist/internal/capability/capability-resolver.d.ts +0 -16
- package/dist/internal/capability/capability-resolver.js +0 -127
- package/dist/internal/classname-source.d.ts +0 -24
- package/dist/internal/classname-source.js +0 -220
- package/dist/internal/contracts/IEditEngineRuntime.d.ts +0 -18
- package/dist/internal/contracts/IEditEngineRuntime.js +0 -1
- package/dist/internal/domain/EditDiagnostic.d.ts +0 -38
- package/dist/internal/domain/EditDiagnostic.js +0 -43
- package/dist/internal/events/event-bus.d.ts +0 -14
- package/dist/internal/events/event-bus.js +0 -21
- package/dist/internal/graph/graph-builder.d.ts +0 -12
- package/dist/internal/graph/graph-builder.js +0 -1371
- package/dist/internal/graph/import-resolver.d.ts +0 -31
- package/dist/internal/graph/import-resolver.js +0 -109
- package/dist/internal/graph/project-graph-builder.d.ts +0 -32
- package/dist/internal/graph/project-graph-builder.js +0 -133
- package/dist/internal/graph/types.d.ts +0 -114
- package/dist/internal/graph/types.js +0 -6
- package/dist/internal/history/undo-redo.d.ts +0 -28
- package/dist/internal/history/undo-redo.js +0 -42
- package/dist/internal/index.d.ts +0 -2
- package/dist/internal/index.js +0 -1
- package/dist/internal/planner/planner.d.ts +0 -104
- package/dist/internal/planner/planner.js +0 -2533
- package/dist/internal/planner/types.d.ts +0 -275
- package/dist/internal/planner/types.js +0 -6
- package/dist/internal/protocol/boundary.js +0 -3
- package/dist/internal/protocol/capability.js +0 -8
- package/dist/internal/protocol/error.js +0 -38
- package/dist/internal/protocol/event.js +0 -3
- package/dist/internal/protocol/identity.js +0 -30
- package/dist/internal/protocol/operation.js +0 -8
- package/dist/internal/protocol/render.js +0 -3
- package/dist/internal/protocol.js +0 -2
- package/dist/internal/provenance/binding-graph.d.ts +0 -39
- package/dist/internal/provenance/binding-graph.js +0 -184
- package/dist/internal/provenance/capability-policy.d.ts +0 -15
- package/dist/internal/provenance/capability-policy.js +0 -96
- package/dist/internal/provenance/data-source-classifier.d.ts +0 -14
- package/dist/internal/provenance/data-source-classifier.js +0 -281
- package/dist/internal/provenance/resolve-text-provenance.d.ts +0 -45
- package/dist/internal/provenance/resolve-text-provenance.js +0 -3090
- package/dist/internal/provenance/types.d.ts +0 -89
- package/dist/internal/provenance/types.js +0 -1
- package/dist/internal/render/component-semantic.d.ts +0 -11
- package/dist/internal/render/component-semantic.js +0 -141
- package/dist/internal/render/content-model.d.ts +0 -3
- package/dist/internal/render/content-model.js +0 -89
- package/dist/internal/render/media-model.d.ts +0 -3
- package/dist/internal/render/media-model.js +0 -45
- package/dist/internal/render/provenance-types.d.ts +0 -33
- package/dist/internal/render/provenance-types.js +0 -1
- package/dist/internal/render/render-projection.d.ts +0 -24
- package/dist/internal/render/render-projection.js +0 -281
- package/dist/internal/render/tailwind-style-model.d.ts +0 -19
- package/dist/internal/render/tailwind-style-model.js +0 -1187
- package/dist/internal/runtime/EditEngineRuntime.d.ts +0 -25
- package/dist/internal/runtime/EditEngineRuntime.js +0 -89
- package/dist/internal/runtime/EditEngineRuntimeSnapshot.d.ts +0 -31
- package/dist/internal/runtime/EditEngineRuntimeSnapshot.js +0 -15
- package/dist/internal/runtime/InternalEditEngine.d.ts +0 -44
- package/dist/internal/runtime/InternalEditEngine.js +0 -1391
- package/dist/internal/runtime.d.ts +0 -3
- package/dist/internal/runtime.js +0 -1
- package/dist/internal/topology/topology.d.ts +0 -6
- package/dist/internal/topology/topology.js +0 -98
- package/dist/internal/topology/types.d.ts +0 -35
- package/dist/internal/topology/types.js +0 -5
- package/dist/internal/types.d.ts +0 -1
- package/dist/internal/types.js +0 -1
- package/dist/internal/writeback/in-memory-fs.d.ts +0 -7
- package/dist/internal/writeback/in-memory-fs.js +0 -44
- package/dist/internal/writeback/types.d.ts +0 -45
- package/dist/internal/writeback/types.js +0 -7
- package/dist/internal/writeback/writeback-service.d.ts +0 -7
- package/dist/internal/writeback/writeback-service.js +0 -568
- package/dist/internal-adapter.d.ts +0 -18
- package/dist/internal-adapter.js +0 -350
- package/dist/next-app-router-fs.js +0 -64
- package/dist/preview-runtime.js +0 -102
- package/dist/public-file-system.js +0 -1
- package/dist/runtime-sync.js +0 -321
- package/dist/runtime.js +0 -134
- package/dist/site-edit-instrumentation.js +0 -322
- package/dist/snapshot-file-system.d.ts +0 -19
- package/dist/snapshot-file-system.js +0 -49
- package/dist/source-writeback-test-harness.d.ts +0 -244
- package/dist/source-writeback-test-harness.js +0 -119
- package/dist/types.js +0 -1
package/dist/webpack-loader.cjs
CHANGED
|
@@ -1,592 +1,54 @@
|
|
|
1
|
-
const generateModule = require("@babel/generator");
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
: generateModule.default;
|
|
10
|
-
const traverse =
|
|
11
|
-
typeof traverseModule === "function"
|
|
12
|
-
? traverseModule
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
parentKey: "data-vcp-edit-parent-key",
|
|
18
|
-
|
|
19
|
-
removable: "data-vcp-removable",
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"head",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"noscript",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"form",
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"nav",
|
|
47
|
-
"ol",
|
|
48
|
-
"section",
|
|
49
|
-
"ul",
|
|
50
|
-
]);
|
|
51
|
-
|
|
52
|
-
const SUPPRESS_HYDRATION_WARNING_PROP = "suppressHydrationWarning";
|
|
53
|
-
|
|
54
|
-
function siteEditInstrumentationLoader(source, inputSourceMap) {
|
|
55
|
-
this.cacheable?.();
|
|
56
|
-
const callback = this.async();
|
|
57
|
-
|
|
58
|
-
try {
|
|
59
|
-
if (!shouldInstrumentResource(this.resourcePath)) {
|
|
60
|
-
callback(null, source, inputSourceMap);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const options = this.getOptions?.() ?? {};
|
|
65
|
-
const result = instrumentSiteEditRuntimeAttributes({
|
|
66
|
-
source,
|
|
67
|
-
file: this.resourcePath,
|
|
68
|
-
projectRoot: options.projectRoot,
|
|
69
|
-
});
|
|
70
|
-
callback(null, result.code, inputSourceMap);
|
|
71
|
-
} catch (error) {
|
|
72
|
-
callback(error);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function shouldInstrumentResource(resourcePath) {
|
|
77
|
-
return (
|
|
78
|
-
typeof resourcePath === "string" &&
|
|
79
|
-
/\.(jsx|tsx)$/.test(resourcePath) &&
|
|
80
|
-
!resourcePath.includes("/node_modules/") &&
|
|
81
|
-
!resourcePath.endsWith(".d.ts")
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function instrumentSiteEditRuntimeAttributes(options) {
|
|
86
|
-
if (!mayContainJsx(options.source)) {
|
|
87
|
-
return { code: options.source, elements: [] };
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const attributes = options.attributes ?? ATTRIBUTES;
|
|
91
|
-
const ast = parser.parse(options.source, {
|
|
92
|
-
sourceType: "module",
|
|
93
|
-
plugins: ["jsx", "typescript"],
|
|
94
|
-
});
|
|
95
|
-
const elements = [];
|
|
96
|
-
const sourceFile = toProjectRelativeFile(options.file, options.projectRoot);
|
|
97
|
-
|
|
98
|
-
traverse(ast, {
|
|
99
|
-
JSXElement(path) {
|
|
100
|
-
const opening = path.node.openingElement;
|
|
101
|
-
const name = opening.name;
|
|
102
|
-
|
|
103
|
-
if (
|
|
104
|
-
!isSiteEditMarkableElement(name) ||
|
|
105
|
-
hasAttribute(opening, attributes.key)
|
|
106
|
-
) {
|
|
107
|
-
return;
|
|
1
|
+
"use strict";var oS=Object.create;var Vs=Object.defineProperty;var lS=Object.getOwnPropertyDescriptor;var uS=Object.getOwnPropertyNames;var cS=Object.getPrototypeOf,pS=Object.prototype.hasOwnProperty;var fS=(e,t)=>()=>(e&&(t=e(e=0)),t);var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),hS=(e,t)=>{for(var r in t)Vs(e,r,{get:t[r],enumerable:!0})},Ap=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of uS(t))!pS.call(e,s)&&s!==r&&Vs(e,s,{get:()=>t[s],enumerable:!(i=lS(t,s))||i.enumerable});return e};var Na=(e,t,r)=>(r=e!=null?oS(cS(e)):{},Ap(t||!e||!e.__esModule?Vs(r,"default",{value:e,enumerable:!0}):r,e)),dS=e=>Ap(Vs({},"__esModule",{value:!0}),e);var _a=I((Oa,zi)=>{(function(e,t){if(typeof Oa=="object"&&typeof zi<"u")t(zi),zi.exports=r(zi);else if(typeof define=="function"&&define.amd)define(["module"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(Oa,(function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=(W,j)=>{for(var D in j)t(W,D,{get:j[D],enumerable:!0})},a=(W,j,D,$)=>{if(j&&typeof j=="object"||typeof j=="function")for(let oe of i(j))!s.call(W,oe)&&oe!==D&&t(W,oe,{get:()=>j[oe],enumerable:!($=r(j,oe))||$.enumerable});return W},o=W=>a(t({},"__esModule",{value:!0}),W),l={};n(l,{decode:()=>Dt,decodeGeneratedRanges:()=>et,decodeOriginalScopes:()=>ue,encode:()=>dr,encodeGeneratedRanges:()=>At,encodeOriginalScopes:()=>Ce}),e.exports=o(l);var c=44,f=59,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=new Uint8Array(64),A=new Uint8Array(128);for(let W=0;W<x.length;W++){let j=x.charCodeAt(W);P[W]=j,A[j]=W}function v(W,j){let D=0,$=0,oe=0;do{let De=W.next();oe=A[De],D|=(oe&31)<<$,$+=5}while(oe&32);let Te=D&1;return D>>>=1,Te&&(D=-2147483648|-D),j+D}function _(W,j,D){let $=j-D;$=$<0?-$<<1|1:$<<1;do{let oe=$&31;$>>>=5,$>0&&(oe|=32),W.write(P[oe])}while($>0);return j}function w(W,j){return W.pos>=j?!1:W.peek()!==c}var O=1024*16,L=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(W){return Buffer.from(W.buffer,W.byteOffset,W.byteLength).toString()}}:{decode(W){let j="";for(let D=0;D<W.length;D++)j+=String.fromCharCode(W[D]);return j}},ee=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(O)}write(W){let{buffer:j}=this;j[this.pos++]=W,this.pos===O&&(this.out+=L.decode(j),this.pos=0)}flush(){let{buffer:W,out:j,pos:D}=this;return D>0?j+L.decode(W.subarray(0,D)):j}},X=class{constructor(W){this.pos=0,this.buffer=W}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(W){let{buffer:j,pos:D}=this,$=j.indexOf(W,D);return $===-1?j.length:$}},J=[];function ue(W){let{length:j}=W,D=new X(W),$=[],oe=[],Te=0;for(;D.pos<j;D.pos++){Te=v(D,Te);let De=v(D,0);if(!w(D,j)){let Ve=oe.pop();Ve[2]=Te,Ve[3]=De;continue}let ve=v(D,0),Le=v(D,0)&1?[Te,De,0,0,ve,v(D,0)]:[Te,De,0,0,ve],Re=J;if(w(D,j)){Re=[];do{let Ve=v(D,0);Re.push(Ve)}while(w(D,j))}Le.vars=Re,$.push(Le),oe.push(Le)}return $}function Ce(W){let j=new ee;for(let D=0;D<W.length;)D=Be(W,D,j,[0]);return j.flush()}function Be(W,j,D,$){let oe=W[j],{0:Te,1:De,2:ve,3:Fe,4:Oe,vars:Le}=oe;j>0&&D.write(c),$[0]=_(D,Te,$[0]),_(D,De,0),_(D,Oe,0);let Re=oe.length===6?1:0;_(D,Re,0),oe.length===6&&_(D,oe[5],0);for(let Ve of Le)_(D,Ve,0);for(j++;j<W.length;){let Ve=W[j],{0:ge,1:qe}=Ve;if(ge>ve||ge===ve&&qe>=Fe)break;j=Be(W,j,D,$)}return D.write(c),$[0]=_(D,ve,$[0]),_(D,Fe,0),j}function et(W){let{length:j}=W,D=new X(W),$=[],oe=[],Te=0,De=0,ve=0,Fe=0,Oe=0,Le=0,Re=0,Ve=0;do{let ge=D.indexOf(";"),qe=0;for(;D.pos<ge;D.pos++){if(qe=v(D,qe),!w(D,ge)){let te=oe.pop();te[2]=Te,te[3]=qe;continue}let $e=v(D,0),dt=$e&1,mt=$e&2,mr=$e&4,q=null,R=J,H;if(dt){let te=v(D,De);ve=v(D,De===te?ve:0),De=te,H=[Te,qe,0,0,te,ve]}else H=[Te,qe,0,0];if(H.isScope=!!mr,mt){let te=Fe,ce=Oe;Fe=v(D,Fe);let pe=te===Fe;Oe=v(D,pe?Oe:0),Le=v(D,pe&&ce===Oe?Le:0),q=[Fe,Oe,Le]}if(H.callsite=q,w(D,ge)){R=[];do{Re=Te,Ve=qe;let te=v(D,0),ce;if(te<-1){ce=[[v(D,0)]];for(let pe=-1;pe>te;pe--){let Ie=Re;Re=v(D,Re),Ve=v(D,Re===Ie?Ve:0);let at=v(D,0);ce.push([at,Re,Ve])}}else ce=[[te]];R.push(ce)}while(w(D,ge))}H.bindings=R,$.push(H),oe.push(H)}Te++,D.pos=ge+1}while(D.pos<j);return $}function At(W){if(W.length===0)return"";let j=new ee;for(let D=0;D<W.length;)D=vt(W,D,j,[0,0,0,0,0,0,0]);return j.flush()}function vt(W,j,D,$){let oe=W[j],{0:Te,1:De,2:ve,3:Fe,isScope:Oe,callsite:Le,bindings:Re}=oe;$[0]<Te?(Ot(D,$[0],Te),$[0]=Te,$[1]=0):j>0&&D.write(c),$[1]=_(D,oe[1],$[1]);let Ve=(oe.length===6?1:0)|(Le?2:0)|(Oe?4:0);if(_(D,Ve,0),oe.length===6){let{4:ge,5:qe}=oe;ge!==$[2]&&($[3]=0),$[2]=_(D,ge,$[2]),$[3]=_(D,qe,$[3])}if(Le){let{0:ge,1:qe,2:$e}=oe.callsite;ge!==$[4]?($[5]=0,$[6]=0):qe!==$[5]&&($[6]=0),$[4]=_(D,ge,$[4]),$[5]=_(D,qe,$[5]),$[6]=_(D,$e,$[6])}if(Re)for(let ge of Re){ge.length>1&&_(D,-ge.length,0);let qe=ge[0][0];_(D,qe,0);let $e=Te,dt=De;for(let mt=1;mt<ge.length;mt++){let mr=ge[mt];$e=_(D,mr[1],$e),dt=_(D,mr[2],dt),_(D,mr[0],0)}}for(j++;j<W.length;){let ge=W[j],{0:qe,1:$e}=ge;if(qe>ve||qe===ve&&$e>=Fe)break;j=vt(W,j,D,$)}return $[0]<ve?(Ot(D,$[0],ve),$[0]=ve,$[1]=0):D.write(c),$[1]=_(D,Fe,$[1]),j}function Ot(W,j,D){do W.write(f);while(++j<D)}function Dt(W){let{length:j}=W,D=new X(W),$=[],oe=0,Te=0,De=0,ve=0,Fe=0;do{let Oe=D.indexOf(";"),Le=[],Re=!0,Ve=0;for(oe=0;D.pos<Oe;){let ge;oe=v(D,oe),oe<Ve&&(Re=!1),Ve=oe,w(D,Oe)?(Te=v(D,Te),De=v(D,De),ve=v(D,ve),w(D,Oe)?(Fe=v(D,Fe),ge=[oe,Te,De,ve,Fe]):ge=[oe,Te,De,ve]):ge=[oe],Le.push(ge),D.pos++}Re||er(Le),$.push(Le),D.pos=Oe+1}while(D.pos<=j);return $}function er(W){W.sort(Kr)}function Kr(W,j){return W[0]-j[0]}function dr(W){let j=new ee,D=0,$=0,oe=0,Te=0;for(let De=0;De<W.length;De++){let ve=W[De];if(De>0&&j.write(f),ve.length===0)continue;let Fe=0;for(let Oe=0;Oe<ve.length;Oe++){let Le=ve[Oe];Oe>0&&j.write(c),Fe=_(j,Le[0],Fe),Le.length!==1&&(D=_(j,Le[1],D),$=_(j,Le[2],$),oe=_(j,Le[3],oe),Le.length!==4&&(Te=_(j,Le[4],Te)))}}return j.flush()}}))});var vp=I((ka,Da)=>{(function(e,t){typeof ka=="object"&&typeof Da<"u"?Da.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(ka,(function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(w){return e.test(w)}function s(w){return w.startsWith("//")}function n(w){return w.startsWith("/")}function a(w){return w.startsWith("file:")}function o(w){return/^[.?#]/.test(w)}function l(w){let O=t.exec(w);return f(O[1],O[2]||"",O[3],O[4]||"",O[5]||"/",O[6]||"",O[7]||"")}function c(w){let O=r.exec(w),L=O[2];return f("file:","",O[1]||"","",n(L)?L:"/"+L,O[3]||"",O[4]||"")}function f(w,O,L,ee,X,J,ue){return{scheme:w,user:O,host:L,port:ee,path:X,query:J,hash:ue,type:7}}function x(w){if(s(w)){let L=l("http:"+w);return L.scheme="",L.type=6,L}if(n(w)){let L=l("http://foo.com"+w);return L.scheme="",L.host="",L.type=5,L}if(a(w))return c(w);if(i(w))return l(w);let O=l("http://foo.com/"+w);return O.scheme="",O.host="",O.type=w?w.startsWith("?")?3:w.startsWith("#")?2:4:1,O}function P(w){if(w.endsWith("/.."))return w;let O=w.lastIndexOf("/");return w.slice(0,O+1)}function A(w,O){v(O,O.type),w.path==="/"?w.path=O.path:w.path=P(O.path)+w.path}function v(w,O){let L=O<=4,ee=w.path.split("/"),X=1,J=0,ue=!1;for(let Be=1;Be<ee.length;Be++){let et=ee[Be];if(!et){ue=!0;continue}if(ue=!1,et!=="."){if(et===".."){J?(ue=!0,J--,X--):L&&(ee[X++]=et);continue}ee[X++]=et,J++}}let Ce="";for(let Be=1;Be<X;Be++)Ce+="/"+ee[Be];(!Ce||ue&&!Ce.endsWith("/.."))&&(Ce+="/"),w.path=Ce}function _(w,O){if(!w&&!O)return"";let L=x(w),ee=L.type;if(O&&ee!==7){let J=x(O),ue=J.type;switch(ee){case 1:L.hash=J.hash;case 2:L.query=J.query;case 3:case 4:A(L,J);case 5:L.user=J.user,L.host=J.host,L.port=J.port;case 6:L.scheme=J.scheme}ue>ee&&(ee=ue)}v(L,ee);let X=L.query+L.hash;switch(ee){case 2:case 3:return X;case 4:{let J=L.path.slice(1);return J?o(O||w)&&!o(J)?"./"+J+X:J+X:X||"."}case 5:return L.path+X;default:return L.scheme+"//"+L.user+L.host+L.port+L.path+X}}return _}))});var Ma=I((La,Gi)=>{(function(e,t){if(typeof La=="object"&&typeof Gi<"u")t(Gi,vp(),_a()),Gi.exports=r(Gi);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(La,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(N,M)=>function(){return M||(0,N[a(N)[0]])((M={exports:{}}).exports,M),M.exports},f=(N,M)=>{for(var B in M)s(N,B,{get:M[B],enumerable:!0})},x=(N,M,B,V)=>{if(M&&typeof M=="object"||typeof M=="function")for(let ae of a(M))!l.call(N,ae)&&ae!==B&&s(N,ae,{get:()=>M[ae],enumerable:!(V=n(M,ae))||V.enumerable});return N},P=(N,M,B)=>(B=N!=null?i(o(N)):{},x(M||!N||!N.__esModule?s(B,"default",{value:N,enumerable:!0}):B,N)),A=N=>x(s({},"__esModule",{value:!0}),N),v=c({"umd:@jridgewell/sourcemap-codec"(N,M){M.exports=r}}),_=c({"umd:@jridgewell/resolve-uri"(N,M){M.exports=t}}),w={};f(w,{AnyMap:()=>Fe,FlattenMap:()=>Fe,GREATEST_LOWER_BOUND:()=>dt,LEAST_UPPER_BOUND:()=>$e,TraceMap:()=>mt,allGeneratedPositionsFor:()=>pe,decodedMap:()=>Yr,decodedMappings:()=>R,eachMapping:()=>Ie,encodedMap:()=>yi,encodedMappings:()=>q,generatedPositionFor:()=>ce,isIgnored:()=>Hi,originalPositionFor:()=>te,presortedDecodedMap:()=>Vr,sourceContentFor:()=>Lt,traceSegment:()=>H}),e.exports=A(w);var O=P(v()),L=P(_());function ee(N){if(!N)return"";let M=N.lastIndexOf("/");return N.slice(0,M+1)}function X(N,M){let B=ee(N),V=M?M+"/":"";return ae=>(0,L.default)(V+(ae||""),B)}var J=0,ue=1,Ce=2,Be=3,et=4,At=1,vt=2;function Ot(N,M){let B=Dt(N,0);if(B===N.length)return N;M||(N=N.slice());for(let V=B;V<N.length;V=Dt(N,V+1))N[V]=Kr(N[V],M);return N}function Dt(N,M){for(let B=M;B<N.length;B++)if(!er(N[B]))return B;return N.length}function er(N){for(let M=1;M<N.length;M++)if(N[M][J]<N[M-1][J])return!1;return!0}function Kr(N,M){return M||(N=N.slice()),N.sort(dr)}function dr(N,M){return N[J]-M[J]}function W(N,M){let B=M.map(()=>[]);for(let V=0;V<N.length;V++){let ae=N[V];for(let re=0;re<ae.length;re++){let be=ae[re];if(be.length===1)continue;let je=be[ue],Se=be[Ce],tt=be[Be],st=B[je];(st[Se]||(st[Se]=[])).push([tt,V,be[J]])}}for(let V=0;V<B.length;V++){let ae=B[V];for(let re=0;re<ae.length;re++){let be=ae[re];be&&be.sort(dr)}}return B}var j=!1;function D(N,M,B,V){for(;B<=V;){let ae=B+(V-B>>1),re=N[ae][J]-M;if(re===0)return j=!0,ae;re<0?B=ae+1:V=ae-1}return j=!1,B-1}function $(N,M,B){for(let V=B+1;V<N.length&&N[V][J]===M;B=V++);return B}function oe(N,M,B){for(let V=B-1;V>=0&&N[V][J]===M;B=V--);return B}function Te(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function De(N,M,B,V){let{lastKey:ae,lastNeedle:re,lastIndex:be}=B,je=0,Se=N.length-1;if(V===ae){if(M===re)return j=be!==-1&&N[be][J]===M,be;M>=re?je=be===-1?0:be:Se=be}return B.lastKey=V,B.lastNeedle=M,B.lastIndex=D(N,M,je,Se)}function ve(N){return typeof N=="string"?JSON.parse(N):N}var Fe=function(N,M){let B=ve(N);if(!("sections"in B))return new mt(B,M);let V=[],ae=[],re=[],be=[],je=[];Oe(B,M,V,ae,re,be,je,0,0,1/0,1/0);let Se={version:3,file:B.file,names:be,sources:ae,sourcesContent:re,mappings:V,ignoreList:je};return Vr(Se)};function Oe(N,M,B,V,ae,re,be,je,Se,tt,st){let{sections:nt}=N;for(let _t=0;_t<nt.length;_t++){let{map:Mt,offset:tr}=nt[_t],rr=tt,Sr=st;if(_t+1<nt.length){let Ti=nt[_t+1].offset;rr=Math.min(tt,je+Ti.line),rr===tt?Sr=Math.min(st,Se+Ti.column):rr<tt&&(Sr=Se+Ti.column)}Le(Mt,M,B,V,ae,re,be,je+tr.line,Se+tr.column,rr,Sr)}}function Le(N,M,B,V,ae,re,be,je,Se,tt,st){let nt=ve(N);if("sections"in nt)return Oe(...arguments);let _t=new mt(nt,M),Mt=V.length,tr=re.length,rr=R(_t),{resolvedSources:Sr,sourcesContent:Ti,ignoreList:Ca}=_t;if(Re(V,Sr),Re(re,_t.names),Ti)Re(ae,Ti);else for(let Bt=0;Bt<Sr.length;Bt++)ae.push(null);if(Ca)for(let Bt=0;Bt<Ca.length;Bt++)be.push(Ca[Bt]+Mt);for(let Bt=0;Bt<rr.length;Bt++){let Ia=je+Bt;if(Ia>tt)return;let xp=Ve(B,Ia),aS=Bt===0?Se:0,gp=rr[Bt];for(let wa=0;wa<gp.length;wa++){let Xr=gp[wa],Ks=aS+Xr[J];if(Ia===tt&&Ks>=st)return;if(Xr.length===1){xp.push([Ks]);continue}let bp=Mt+Xr[ue],Ep=Xr[Ce],Pp=Xr[Be];xp.push(Xr.length===4?[Ks,bp,Ep,Pp]:[Ks,bp,Ep,Pp,tr+Xr[et]])}}}function Re(N,M){for(let B=0;B<M.length;B++)N.push(M[B])}function Ve(N,M){for(let B=N.length;B<=M;B++)N[B]=[];return N[M]}var ge="`line` must be greater than 0 (lines start at line 1)",qe="`column` must be greater than or equal to 0 (columns start at column 0)",$e=-1,dt=1,mt=class{constructor(N,M){let B=typeof N=="string";if(!B&&N._decodedMemo)return N;let V=ve(N),{version:ae,file:re,names:be,sourceRoot:je,sources:Se,sourcesContent:tt}=V;this.version=ae,this.file=re,this.names=be||[],this.sourceRoot=je,this.sources=Se,this.sourcesContent=tt,this.ignoreList=V.ignoreList||V.x_google_ignoreList||void 0;let st=X(M,je);this.resolvedSources=Se.map(st);let{mappings:nt}=V;if(typeof nt=="string")this._encoded=nt,this._decoded=void 0;else if(Array.isArray(nt))this._encoded=void 0,this._decoded=Ot(nt,B);else throw V.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(V)}`);this._decodedMemo=Te(),this._bySources=void 0,this._bySourceMemos=void 0}};function mr(N){return N}function q(N){var M,B;return(B=(M=N)._encoded)!=null?B:M._encoded=(0,O.encode)(N._decoded)}function R(N){var M;return(M=N)._decoded||(M._decoded=(0,O.decode)(N._encoded))}function H(N,M,B){let V=R(N);if(M>=V.length)return null;let ae=V[M],re=Jr(ae,N._decodedMemo,M,B,dt);return re===-1?null:ae[re]}function te(N,M){let{line:B,column:V,bias:ae}=M;if(B--,B<0)throw new Error(ge);if(V<0)throw new Error(qe);let re=R(N);if(B>=re.length)return Tr(null,null,null,null);let be=re[B],je=Jr(be,N._decodedMemo,B,V,ae||dt);if(je===-1)return Tr(null,null,null,null);let Se=be[je];if(Se.length===1)return Tr(null,null,null,null);let{names:tt,resolvedSources:st}=N;return Tr(st[Se[ue]],Se[Ce]+1,Se[Be],Se.length===5?tt[Se[et]]:null)}function ce(N,M){let{source:B,line:V,column:ae,bias:re}=M;return Sp(N,B,V,ae,re||dt,!1)}function pe(N,M){let{source:B,line:V,column:ae,bias:re}=M;return Sp(N,B,V,ae,re||$e,!0)}function Ie(N,M){let B=R(N),{names:V,resolvedSources:ae}=N;for(let re=0;re<B.length;re++){let be=B[re];for(let je=0;je<be.length;je++){let Se=be[je],tt=re+1,st=Se[0],nt=null,_t=null,Mt=null,tr=null;Se.length!==1&&(nt=ae[Se[1]],_t=Se[2]+1,Mt=Se[3]),Se.length===5&&(tr=V[Se[4]]),M({generatedLine:tt,generatedColumn:st,source:nt,originalLine:_t,originalColumn:Mt,name:tr})}}}function at(N,M){let{sources:B,resolvedSources:V}=N,ae=B.indexOf(M);return ae===-1&&(ae=V.indexOf(M)),ae}function Lt(N,M){let{sourcesContent:B}=N;if(B==null)return null;let V=at(N,M);return V===-1?null:B[V]}function Hi(N,M){let{ignoreList:B}=N;if(B==null)return!1;let V=at(N,M);return V===-1?!1:B.includes(V)}function Vr(N,M){let B=new mt(yr(N,[]),M);return B._decoded=N.mappings,B}function Yr(N){return yr(N,R(N))}function yi(N){return yr(N,q(N))}function yr(N,M){return{version:N.version,file:N.file,names:N.names,sourceRoot:N.sourceRoot,sources:N.sources,sourcesContent:N.sourcesContent,mappings:M,ignoreList:N.ignoreList||N.x_google_ignoreList}}function Tr(N,M,B,V){return{source:N,line:M,column:B,name:V}}function Wt(N,M){return{line:N,column:M}}function Jr(N,M,B,V,ae){let re=De(N,V,M,B);return j?re=(ae===$e?$:oe)(N,V,re):ae===$e&&re++,re===-1||re===N.length?-1:re}function nS(N,M,B,V,ae){let re=Jr(N,M,B,V,dt);if(!j&&ae===$e&&re++,re===-1||re===N.length)return[];let be=j?V:N[re][J];j||(re=oe(N,be,re));let je=$(N,be,re),Se=[];for(;re<=je;re++){let tt=N[re];Se.push(Wt(tt[At]+1,tt[vt]))}return Se}function Sp(N,M,B,V,ae,re){var be,je;if(B--,B<0)throw new Error(ge);if(V<0)throw new Error(qe);let{sources:Se,resolvedSources:tt}=N,st=Se.indexOf(M);if(st===-1&&(st=tt.indexOf(M)),st===-1)return re?[]:Wt(null,null);let nt=(be=N)._bySourceMemos||(be._bySourceMemos=Se.map(Te)),Mt=((je=N)._bySources||(je._bySources=W(R(N),nt)))[st][B];if(Mt==null)return re?[]:Wt(null,null);let tr=nt[st];if(re)return nS(Mt,tr,B,V,ae);let rr=Jr(Mt,tr,B,V,ae);if(rr===-1)return Wt(null,null);let Sr=Mt[rr];return Wt(Sr[At]+1,Sr[vt])}}))});var Cp=I((Ba,Qi)=>{(function(e,t){if(typeof Ba=="object"&&typeof Qi<"u")t(Qi,_a(),Ma()),Qi.exports=r(Qi);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(Ba,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(q,R)=>function(){return R||(0,q[a(q)[0]])((R={exports:{}}).exports,R),R.exports},f=(q,R)=>{for(var H in R)s(q,H,{get:R[H],enumerable:!0})},x=(q,R,H,te)=>{if(R&&typeof R=="object"||typeof R=="function")for(let ce of a(R))!l.call(q,ce)&&ce!==H&&s(q,ce,{get:()=>R[ce],enumerable:!(te=n(R,ce))||te.enumerable});return q},P=(q,R,H)=>(H=q!=null?i(o(q)):{},x(R||!q||!q.__esModule?s(H,"default",{value:q,enumerable:!0}):H,q)),A=q=>x(s({},"__esModule",{value:!0}),q),v=c({"umd:@jridgewell/sourcemap-codec"(q,R){R.exports=t}}),_=c({"umd:@jridgewell/trace-mapping"(q,R){R.exports=r}}),w={};f(w,{GenMapping:()=>er,addMapping:()=>W,addSegment:()=>dr,allMappings:()=>Fe,fromMap:()=>ve,maybeAddMapping:()=>D,maybeAddSegment:()=>j,setIgnore:()=>oe,setSourceContent:()=>$,toDecodedMap:()=>Te,toEncodedMap:()=>De}),e.exports=A(w);var O=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function L(q){return q}function ee(q,R){return q._indexes[R]}function X(q,R){let H=ee(q,R);if(H!==void 0)return H;let{array:te,_indexes:ce}=q,pe=te.push(R);return ce[R]=pe-1}function J(q,R){let H=ee(q,R);if(H===void 0)return;let{array:te,_indexes:ce}=q;for(let pe=H+1;pe<te.length;pe++){let Ie=te[pe];te[pe-1]=Ie,ce[Ie]--}ce[R]=void 0,te.pop()}var ue=P(v()),Ce=P(_()),Be=0,et=1,At=2,vt=3,Ot=4,Dt=-1,er=class{constructor({file:q,sourceRoot:R}={}){this._names=new O,this._sources=new O,this._sourcesContent=[],this._mappings=[],this.file=q,this.sourceRoot=R,this._ignoreList=new O}};function Kr(q){return q}function dr(q,R,H,te,ce,pe,Ie,at){return Oe(!1,q,R,H,te,ce,pe,Ie,at)}function W(q,R){return mr(!1,q,R)}var j=(q,R,H,te,ce,pe,Ie,at)=>Oe(!0,q,R,H,te,ce,pe,Ie,at),D=(q,R)=>mr(!0,q,R);function $(q,R,H){let{_sources:te,_sourcesContent:ce}=q,pe=X(te,R);ce[pe]=H}function oe(q,R,H=!0){let{_sources:te,_sourcesContent:ce,_ignoreList:pe}=q,Ie=X(te,R);Ie===ce.length&&(ce[Ie]=null),H?X(pe,Ie):J(pe,Ie)}function Te(q){let{_mappings:R,_sources:H,_sourcesContent:te,_names:ce,_ignoreList:pe}=q;return qe(R),{version:3,file:q.file||void 0,names:ce.array,sourceRoot:q.sourceRoot||void 0,sources:H.array,sourcesContent:te,mappings:R,ignoreList:pe.array}}function De(q){let R=Te(q);return Object.assign({},R,{mappings:(0,ue.encode)(R.mappings)})}function ve(q){let R=new Ce.TraceMap(q),H=new er({file:R.file,sourceRoot:R.sourceRoot});return $e(H._names,R.names),$e(H._sources,R.sources),H._sourcesContent=R.sourcesContent||R.sources.map(()=>null),H._mappings=(0,Ce.decodedMappings)(R),R.ignoreList&&$e(H._ignoreList,R.ignoreList),H}function Fe(q){let R=[],{_mappings:H,_sources:te,_names:ce}=q;for(let pe=0;pe<H.length;pe++){let Ie=H[pe];for(let at=0;at<Ie.length;at++){let Lt=Ie[at],Hi={line:pe+1,column:Lt[Be]},Vr,Yr,yi;Lt.length!==1&&(Vr=te.array[Lt[et]],Yr={line:Lt[At]+1,column:Lt[vt]},Lt.length===5&&(yi=ce.array[Lt[Ot]])),R.push({generated:Hi,source:Vr,original:Yr,name:yi})}}return R}function Oe(q,R,H,te,ce,pe,Ie,at,Lt){let{_mappings:Hi,_sources:Vr,_sourcesContent:Yr,_names:yi}=R,yr=Re(Hi,H),Tr=Ve(yr,te);if(!ce)return q&&dt(yr,Tr)?void 0:ge(yr,Tr,[te]);let Wt=X(Vr,ce),Jr=at?X(yi,at):Dt;if(Wt===Yr.length&&(Yr[Wt]=Lt??null),!(q&&mt(yr,Tr,Wt,pe,Ie,Jr)))return ge(yr,Tr,at?[te,Wt,pe,Ie,Jr]:[te,Wt,pe,Ie])}function Le(q){}function Re(q,R){for(let H=q.length;H<=R;H++)q[H]=[];return q[R]}function Ve(q,R){let H=q.length;for(let te=H-1;te>=0;H=te--){let ce=q[te];if(R>=ce[Be])break}return H}function ge(q,R,H){for(let te=q.length;te>R;te--)q[te]=q[te-1];q[R]=H}function qe(q){let{length:R}=q,H=R;for(let te=H-1;te>=0&&!(q[te].length>0);H=te,te--);H<R&&(q.length=H)}function $e(q,R){for(let H=0;H<R.length;H++)X(q,R[H])}function dt(q,R){return R===0?!0:q[R-1].length===1}function mt(q,R,H,te,ce,pe){if(R===0)return!1;let Ie=q[R-1];return Ie.length===1?!1:H===Ie[et]&&te===Ie[At]&&ce===Ie[vt]&&pe===(Ie.length===5?Ie[Ot]:Dt)}function mr(q,R,H){let{generated:te,source:ce,original:pe,name:Ie,content:at}=H;return ce?Oe(q,R,te.line-1,te.column,ce,pe.line-1,pe.column,Ie,at):Oe(q,R,te.line-1,te.column,null,null,null,null,null)}}))});var Ip=I(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.default=void 0;var Ir=Cp(),Fa=Ma(),Ra=class{constructor(t,r){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let s=this._map=new Ir.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(i=t.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new Fa.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0,Ir.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o])}}if(typeof r=="string"&&!t.inputSourceMap)(0,Ir.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,Ir.setSourceContent)(s,a.replace(/\\/g,"/"),r[a])}get(){return(0,Ir.toEncodedMap)(this._map)}getDecoded(){return(0,Ir.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,Ir.allMappings)(this._map))}mark(t,r,i,s,n,a){var o;this._rawMappings=void 0;let l;if(r!=null)if(this._inputMap){if(l=(0,Fa.originalPositionFor)(this._inputMap,{line:r,column:i}),!l.name&&n){let c=(0,Fa.originalPositionFor)(this._inputMap,n);c.name&&(s=c.name)}}else l={name:null,source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0,Ir.maybeAddMapping)(this._map,{name:s,generated:t,source:(o=l)==null?void 0:o.source,original:l})}};Ys.default=Ra});var Np=I(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.default=void 0;var wp=[];for(let e=0;e<32;e++)wp.push(" ".repeat(e*2));var ja=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r}get(){let{_map:t,_last:r}=this;this._queuedChar!==32&&this._flush();let i=r===10?(this._buf+this._str).trimRight():this._buf+this._str;if(t===null)return{code:i,decodedMap:void 0,map:null,rawMappings:void 0};let s={code:i,decodedMap:t.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t.get();return s.map=n,n},set map(n){Object.defineProperty(s,"map",{value:n,writable:!0})},get rawMappings(){let n=t.getRawMappings();return s.rawMappings=n,n},set rawMappings(n){Object.defineProperty(s,"rawMappings",{value:n,writable:!0})}};return s}append(t,r){this._flush(),this._append(t,r)}appendChar(t){this._flush(),this._appendChar(t,1,!0)}queue(t){this._flush(),this._queuedChar=t}_flush(){let t=this._queuedChar;t!==0&&(this._appendChar(t,1,!0),this._queuedChar=0)}_appendChar(t,r,i){if(this._last=t,t===-1){let a=r>=64?this._indentChar.repeat(r):wp[r/2];this._str+=a}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);let s=t===32,n=this._position;if(t!==10){if(this._map){let a=this._sourcePosition;i&&a?(this._map.mark(n,a.line,a.column,s?void 0:a.identifierName,s?void 0:a.identifierNamePos,a.filename),!s&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0)):this._map.mark(n)}n.column+=r}else n.line++,n.column=0}_append(t,r){let i=t.length,s=this._position,n=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t;let a=this._map!==null;if(!r&&!a){s.column+=i;return}let{column:o,identifierName:l,identifierNamePos:c,filename:f}=n,x=n.line;(l!=null||c!=null)&&this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0);let P=t.indexOf(`
|
|
2
|
+
`),A=0;for(a&&P!==0&&this._map.mark(s,x,o,l,c,f);P!==-1;)s.line++,s.column=0,A=P+1,A<i&&x!==void 0&&(x++,a&&this._map.mark(s,x,0,void 0,void 0,f)),P=t.indexOf(`
|
|
3
|
+
`,A);s.column+=i-A}removeLastSemicolon(){this._queuedChar===59&&(this._queuedChar=0)}getLastChar(t){if(!t)return this._last;let r=this._queuedChar;return r!==0?r:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let i=t.identifierName,s=this._sourcePosition;i!=null&&(this._canMarkIdName=!1,s.identifierName=i),r(),i!=null&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,i){this._map&&this._normalizePosition(t,r,i)}_normalizePosition(t,r,i){this._flush();let s=r[t],n=this._sourcePosition;s&&(n.line=s.line,n.column=Math.max(s.column+i,0),n.filename=r.filename)}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}};Js.default=ja});var Xs=I(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.default=mS;function mS(e,t){let r=Object.keys(t);for(let i of r)if(e[i]!==t[i])return!1;return!0}});var Si=I(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=yS;var Op=new Set;function yS(e,t,r="",i=e){if(Op.has(i))return;Op.add(i);let{internal:s,trace:n}=TS(1,2);s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
|
|
4
|
+
${n}`)}function TS(e,t){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!s)return{internal:!1,trace:""};let n=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map(a=>` at ${a}`).join(`
|
|
5
|
+
`)}}});var He=I(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.isAccessor=ME;d.isAnyTypeAnnotation=Zx;d.isArgumentPlaceholder=wb;d.isArrayExpression=SS;d.isArrayPattern=yx;d.isArrayTypeAnnotation=eg;d.isArrowFunctionExpression=Tx;d.isAssignmentExpression=xS;d.isAssignmentPattern=mx;d.isAwaitExpression=qx;d.isBigIntLiteral=Kx;d.isBinary=iE;d.isBinaryExpression=gS;d.isBindExpression=Nb;d.isBlock=aE;d.isBlockParent=nE;d.isBlockStatement=AS;d.isBooleanLiteral=JS;d.isBooleanLiteralTypeAnnotation=rg;d.isBooleanTypeAnnotation=tg;d.isBreakStatement=vS;d.isCallExpression=CS;d.isCatchClause=IS;d.isClass=kE;d.isClassAccessorProperty=Wx;d.isClassBody=Sx;d.isClassDeclaration=gx;d.isClassExpression=xx;d.isClassImplements=sg;d.isClassMethod=kx;d.isClassPrivateMethod=Hx;d.isClassPrivateProperty=$x;d.isClassProperty=Xx;d.isCompletionStatement=uE;d.isConditional=cE;d.isConditionalExpression=wS;d.isContinueStatement=NS;d.isDebuggerStatement=OS;d.isDecimalLiteral=Mb;d.isDeclaration=xE;d.isDeclareClass=ng;d.isDeclareExportAllDeclaration=dg;d.isDeclareExportDeclaration=hg;d.isDeclareFunction=ag;d.isDeclareInterface=og;d.isDeclareModule=lg;d.isDeclareModuleExports=ug;d.isDeclareOpaqueType=pg;d.isDeclareTypeAlias=cg;d.isDeclareVariable=fg;d.isDeclaredPredicate=mg;d.isDecorator=Ob;d.isDirective=ES;d.isDirectiveLiteral=PS;d.isDoExpression=_b;d.isDoWhileStatement=_S;d.isEmptyStatement=kS;d.isEmptyTypeAnnotation=Cg;d.isEnumBody=KE;d.isEnumBooleanBody=eb;d.isEnumBooleanMember=sb;d.isEnumDeclaration=Zg;d.isEnumDefaultedMember=ob;d.isEnumMember=VE;d.isEnumNumberBody=tb;d.isEnumNumberMember=nb;d.isEnumStringBody=rb;d.isEnumStringMember=ab;d.isEnumSymbolBody=ib;d.isExistsTypeAnnotation=yg;d.isExportAllDeclaration=bx;d.isExportDeclaration=DE;d.isExportDefaultDeclaration=Ex;d.isExportDefaultSpecifier=kb;d.isExportNamedDeclaration=Px;d.isExportNamespaceSpecifier=Vx;d.isExportSpecifier=Ax;d.isExpression=rE;d.isExpressionStatement=DS;d.isExpressionWrapper=hE;d.isFile=LS;d.isFlow=FE;d.isFlowBaseAnnotation=jE;d.isFlowDeclaration=qE;d.isFlowPredicate=UE;d.isFlowType=RE;d.isFor=dE;d.isForInStatement=MS;d.isForOfStatement=vx;d.isForStatement=BS;d.isForXStatement=mE;d.isFunction=yE;d.isFunctionDeclaration=FS;d.isFunctionExpression=RS;d.isFunctionParameter=gE;d.isFunctionParent=TE;d.isFunctionTypeAnnotation=Tg;d.isFunctionTypeParam=Sg;d.isGenericTypeAnnotation=xg;d.isIdentifier=jS;d.isIfStatement=qS;d.isImmutable=vE;d.isImport=Ux;d.isImportAttribute=Qx;d.isImportDeclaration=Cx;d.isImportDefaultSpecifier=Ix;d.isImportExpression=Ox;d.isImportNamespaceSpecifier=wx;d.isImportOrExportDeclaration=_p;d.isImportSpecifier=Nx;d.isIndexedAccessType=lb;d.isInferredPredicate=gg;d.isInterfaceDeclaration=Eg;d.isInterfaceExtends=bg;d.isInterfaceTypeAnnotation=Pg;d.isInterpreterDirective=bS;d.isIntersectionTypeAnnotation=Ag;d.isJSX=YE;d.isJSXAttribute=cb;d.isJSXClosingElement=pb;d.isJSXClosingFragment=Ab;d.isJSXElement=fb;d.isJSXEmptyExpression=hb;d.isJSXExpressionContainer=db;d.isJSXFragment=Eb;d.isJSXIdentifier=yb;d.isJSXMemberExpression=Tb;d.isJSXNamespacedName=Sb;d.isJSXOpeningElement=xb;d.isJSXOpeningFragment=Pb;d.isJSXSpreadAttribute=gb;d.isJSXSpreadChild=mb;d.isJSXText=bb;d.isLVal=EE;d.isLabeledStatement=US;d.isLiteral=AE;d.isLogicalExpression=WS;d.isLoop=pE;d.isMemberExpression=$S;d.isMetaProperty=_x;d.isMethod=IE;d.isMiscellaneous=JE;d.isMixedTypeAnnotation=vg;d.isModuleDeclaration=eP;d.isModuleExpression=Bb;d.isModuleSpecifier=LE;d.isNewExpression=HS;d.isNoop=vb;d.isNullLiteral=YS;d.isNullLiteralTypeAnnotation=ig;d.isNullableTypeAnnotation=Ig;d.isNumberLiteral=zE;d.isNumberLiteralTypeAnnotation=wg;d.isNumberTypeAnnotation=Ng;d.isNumericLiteral=VS;d.isObjectExpression=GS;d.isObjectMember=wE;d.isObjectMethod=QS;d.isObjectPattern=Dx;d.isObjectProperty=ZS;d.isObjectTypeAnnotation=Og;d.isObjectTypeCallProperty=kg;d.isObjectTypeIndexer=Dg;d.isObjectTypeInternalSlot=_g;d.isObjectTypeProperty=Lg;d.isObjectTypeSpreadProperty=Mg;d.isOpaqueType=Bg;d.isOptionalCallExpression=Jx;d.isOptionalIndexedAccessType=ub;d.isOptionalMemberExpression=Yx;d.isParenthesizedExpression=ix;d.isPattern=_E;d.isPatternLike=bE;d.isPipelineBareFunction=jb;d.isPipelinePrimaryTopicReference=qb;d.isPipelineTopicExpression=Rb;d.isPlaceholder=Cb;d.isPrivate=BE;d.isPrivateName=zx;d.isProgram=zS;d.isProperty=NE;d.isPureish=SE;d.isQualifiedTypeIdentifier=Fg;d.isRecordExpression=Db;d.isRegExpLiteral=XS;d.isRegexLiteral=GE;d.isRestElement=ex;d.isRestProperty=QE;d.isReturnStatement=tx;d.isScopable=sE;d.isSequenceExpression=rx;d.isSpreadElement=Lx;d.isSpreadProperty=ZE;d.isStandardized=tE;d.isStatement=oE;d.isStaticBlock=Gx;d.isStringLiteral=KS;d.isStringLiteralTypeAnnotation=Rg;d.isStringTypeAnnotation=jg;d.isSuper=Mx;d.isSwitchCase=sx;d.isSwitchStatement=nx;d.isSymbolTypeAnnotation=qg;d.isTSAnyKeyword=Gb;d.isTSArrayType=T0;d.isTSAsExpression=F0;d.isTSBaseType=HE;d.isTSBigIntKeyword=Zb;d.isTSBooleanKeyword=Qb;d.isTSCallSignatureDeclaration=Xb;d.isTSConditionalType=A0;d.isTSConstructSignatureDeclaration=Wb;d.isTSConstructorType=f0;d.isTSDeclareFunction=Vb;d.isTSDeclareMethod=Yb;d.isTSEntityName=PE;d.isTSEnumBody=q0;d.isTSEnumDeclaration=U0;d.isTSEnumMember=K0;d.isTSExportAssignment=H0;d.isTSExpressionWithTypeArguments=k0;d.isTSExternalModuleReference=W0;d.isTSFunctionType=p0;d.isTSImportEqualsDeclaration=X0;d.isTSImportType=J0;d.isTSIndexSignature=zb;d.isTSIndexedAccessType=w0;d.isTSInferType=v0;d.isTSInstantiationExpression=B0;d.isTSInterfaceBody=L0;d.isTSInterfaceDeclaration=D0;d.isTSIntersectionType=P0;d.isTSIntrinsicKeyword=e0;d.isTSLiteralType=_0;d.isTSMappedType=N0;d.isTSMethodSignature=Hb;d.isTSModuleBlock=Y0;d.isTSModuleDeclaration=V0;d.isTSNamedTupleMember=b0;d.isTSNamespaceExportDeclaration=z0;d.isTSNeverKeyword=t0;d.isTSNonNullExpression=$0;d.isTSNullKeyword=r0;d.isTSNumberKeyword=i0;d.isTSObjectKeyword=s0;d.isTSOptionalType=x0;d.isTSParameterProperty=Kb;d.isTSParenthesizedType=C0;d.isTSPropertySignature=$b;d.isTSQualifiedName=Jb;d.isTSRestType=g0;d.isTSSatisfiesExpression=R0;d.isTSStringKeyword=n0;d.isTSSymbolKeyword=a0;d.isTSTemplateLiteralType=O0;d.isTSThisType=c0;d.isTSTupleType=S0;d.isTSType=$E;d.isTSTypeAliasDeclaration=M0;d.isTSTypeAnnotation=G0;d.isTSTypeAssertion=j0;d.isTSTypeElement=WE;d.isTSTypeLiteral=y0;d.isTSTypeOperator=I0;d.isTSTypeParameter=eE;d.isTSTypeParameterDeclaration=Z0;d.isTSTypeParameterInstantiation=Q0;d.isTSTypePredicate=d0;d.isTSTypeQuery=m0;d.isTSTypeReference=h0;d.isTSUndefinedKeyword=o0;d.isTSUnionType=E0;d.isTSUnknownKeyword=l0;d.isTSVoidKeyword=u0;d.isTaggedTemplateExpression=Bx;d.isTemplateElement=Fx;d.isTemplateLiteral=Rx;d.isTerminatorless=lE;d.isThisExpression=ax;d.isThisTypeAnnotation=Ug;d.isThrowStatement=ox;d.isTopicReference=Fb;d.isTryStatement=lx;d.isTupleExpression=Lb;d.isTupleTypeAnnotation=Kg;d.isTypeAlias=Yg;d.isTypeAnnotation=Jg;d.isTypeCastExpression=Xg;d.isTypeParameter=Wg;d.isTypeParameterDeclaration=$g;d.isTypeParameterInstantiation=Hg;d.isTypeScript=XE;d.isTypeofTypeAnnotation=Vg;d.isUnaryExpression=ux;d.isUnaryLike=OE;d.isUnionTypeAnnotation=zg;d.isUpdateExpression=cx;d.isUserWhitespacable=CE;d.isV8IntrinsicIdentifier=Ib;d.isVariableDeclaration=px;d.isVariableDeclarator=fx;d.isVariance=Gg;d.isVoidPattern=Ub;d.isVoidTypeAnnotation=Qg;d.isWhile=fE;d.isWhileStatement=hx;d.isWithStatement=dx;d.isYieldExpression=jx;var T=Xs(),Zi=Si();function SS(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,T.default)(e,t)}function xS(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,T.default)(e,t)}function gS(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,T.default)(e,t)}function bS(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,T.default)(e,t)}function ES(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,T.default)(e,t)}function PS(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,T.default)(e,t)}function AS(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,T.default)(e,t)}function vS(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,T.default)(e,t)}function CS(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,T.default)(e,t)}function IS(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,T.default)(e,t)}function wS(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,T.default)(e,t)}function NS(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,T.default)(e,t)}function OS(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,T.default)(e,t)}function _S(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,T.default)(e,t)}function kS(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,T.default)(e,t)}function DS(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,T.default)(e,t)}function LS(e,t){return!e||e.type!=="File"?!1:t==null||(0,T.default)(e,t)}function MS(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,T.default)(e,t)}function BS(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,T.default)(e,t)}function FS(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,T.default)(e,t)}function RS(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,T.default)(e,t)}function jS(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,T.default)(e,t)}function qS(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,T.default)(e,t)}function US(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,T.default)(e,t)}function KS(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,T.default)(e,t)}function VS(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,T.default)(e,t)}function YS(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,T.default)(e,t)}function JS(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,T.default)(e,t)}function XS(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,T.default)(e,t)}function WS(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,T.default)(e,t)}function $S(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,T.default)(e,t)}function HS(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,T.default)(e,t)}function zS(e,t){return!e||e.type!=="Program"?!1:t==null||(0,T.default)(e,t)}function GS(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,T.default)(e,t)}function QS(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,T.default)(e,t)}function ZS(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,T.default)(e,t)}function ex(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,T.default)(e,t)}function tx(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,T.default)(e,t)}function rx(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,T.default)(e,t)}function ix(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,T.default)(e,t)}function sx(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,T.default)(e,t)}function nx(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,T.default)(e,t)}function ax(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,T.default)(e,t)}function ox(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,T.default)(e,t)}function lx(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,T.default)(e,t)}function ux(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,T.default)(e,t)}function cx(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,T.default)(e,t)}function px(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,T.default)(e,t)}function fx(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,T.default)(e,t)}function hx(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,T.default)(e,t)}function dx(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,T.default)(e,t)}function mx(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,T.default)(e,t)}function yx(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,T.default)(e,t)}function Tx(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,T.default)(e,t)}function Sx(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,T.default)(e,t)}function xx(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,T.default)(e,t)}function gx(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,T.default)(e,t)}function bx(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,T.default)(e,t)}function Ex(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,T.default)(e,t)}function Px(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,T.default)(e,t)}function Ax(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,T.default)(e,t)}function vx(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,T.default)(e,t)}function Cx(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,T.default)(e,t)}function Ix(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,T.default)(e,t)}function wx(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,T.default)(e,t)}function Nx(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,T.default)(e,t)}function Ox(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,T.default)(e,t)}function _x(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,T.default)(e,t)}function kx(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,T.default)(e,t)}function Dx(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,T.default)(e,t)}function Lx(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,T.default)(e,t)}function Mx(e,t){return!e||e.type!=="Super"?!1:t==null||(0,T.default)(e,t)}function Bx(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,T.default)(e,t)}function Fx(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,T.default)(e,t)}function Rx(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,T.default)(e,t)}function jx(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,T.default)(e,t)}function qx(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,T.default)(e,t)}function Ux(e,t){return!e||e.type!=="Import"?!1:t==null||(0,T.default)(e,t)}function Kx(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,T.default)(e,t)}function Vx(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,T.default)(e,t)}function Yx(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,T.default)(e,t)}function Jx(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,T.default)(e,t)}function Xx(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,T.default)(e,t)}function Wx(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,T.default)(e,t)}function $x(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,T.default)(e,t)}function Hx(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,T.default)(e,t)}function zx(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,T.default)(e,t)}function Gx(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,T.default)(e,t)}function Qx(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,T.default)(e,t)}function Zx(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function eg(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function tg(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function rg(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function ig(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function sg(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,T.default)(e,t)}function ng(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,T.default)(e,t)}function ag(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,T.default)(e,t)}function og(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,T.default)(e,t)}function lg(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,T.default)(e,t)}function ug(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,T.default)(e,t)}function cg(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,T.default)(e,t)}function pg(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,T.default)(e,t)}function fg(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,T.default)(e,t)}function hg(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,T.default)(e,t)}function dg(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,T.default)(e,t)}function mg(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,T.default)(e,t)}function yg(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Tg(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Sg(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,T.default)(e,t)}function xg(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function gg(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,T.default)(e,t)}function bg(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,T.default)(e,t)}function Eg(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,T.default)(e,t)}function Pg(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Ag(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function vg(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Cg(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Ig(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function wg(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Ng(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Og(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function _g(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,T.default)(e,t)}function kg(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,T.default)(e,t)}function Dg(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,T.default)(e,t)}function Lg(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,T.default)(e,t)}function Mg(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,T.default)(e,t)}function Bg(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,T.default)(e,t)}function Fg(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,T.default)(e,t)}function Rg(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function jg(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function qg(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Ug(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Kg(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Vg(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Yg(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,T.default)(e,t)}function Jg(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Xg(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,T.default)(e,t)}function Wg(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,T.default)(e,t)}function $g(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,T.default)(e,t)}function Hg(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,T.default)(e,t)}function zg(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Gg(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,T.default)(e,t)}function Qg(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Zg(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,T.default)(e,t)}function eb(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,T.default)(e,t)}function tb(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,T.default)(e,t)}function rb(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,T.default)(e,t)}function ib(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,T.default)(e,t)}function sb(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,T.default)(e,t)}function nb(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,T.default)(e,t)}function ab(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,T.default)(e,t)}function ob(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,T.default)(e,t)}function lb(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,T.default)(e,t)}function ub(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,T.default)(e,t)}function cb(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,T.default)(e,t)}function pb(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,T.default)(e,t)}function fb(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,T.default)(e,t)}function hb(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,T.default)(e,t)}function db(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,T.default)(e,t)}function mb(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,T.default)(e,t)}function yb(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,T.default)(e,t)}function Tb(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,T.default)(e,t)}function Sb(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,T.default)(e,t)}function xb(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,T.default)(e,t)}function gb(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,T.default)(e,t)}function bb(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,T.default)(e,t)}function Eb(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,T.default)(e,t)}function Pb(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,T.default)(e,t)}function Ab(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,T.default)(e,t)}function vb(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,T.default)(e,t)}function Cb(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,T.default)(e,t)}function Ib(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,T.default)(e,t)}function wb(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,T.default)(e,t)}function Nb(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,T.default)(e,t)}function Ob(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,T.default)(e,t)}function _b(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,T.default)(e,t)}function kb(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,T.default)(e,t)}function Db(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,T.default)(e,t)}function Lb(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,T.default)(e,t)}function Mb(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,T.default)(e,t)}function Bb(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,T.default)(e,t)}function Fb(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,T.default)(e,t)}function Rb(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,T.default)(e,t)}function jb(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,T.default)(e,t)}function qb(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,T.default)(e,t)}function Ub(e,t){return!e||e.type!=="VoidPattern"?!1:t==null||(0,T.default)(e,t)}function Kb(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,T.default)(e,t)}function Vb(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,T.default)(e,t)}function Yb(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,T.default)(e,t)}function Jb(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,T.default)(e,t)}function Xb(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,T.default)(e,t)}function Wb(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,T.default)(e,t)}function $b(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,T.default)(e,t)}function Hb(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,T.default)(e,t)}function zb(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,T.default)(e,t)}function Gb(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,T.default)(e,t)}function Qb(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,T.default)(e,t)}function Zb(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,T.default)(e,t)}function e0(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,T.default)(e,t)}function t0(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,T.default)(e,t)}function r0(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,T.default)(e,t)}function i0(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,T.default)(e,t)}function s0(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,T.default)(e,t)}function n0(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,T.default)(e,t)}function a0(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,T.default)(e,t)}function o0(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,T.default)(e,t)}function l0(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,T.default)(e,t)}function u0(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,T.default)(e,t)}function c0(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,T.default)(e,t)}function p0(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,T.default)(e,t)}function f0(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,T.default)(e,t)}function h0(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,T.default)(e,t)}function d0(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,T.default)(e,t)}function m0(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,T.default)(e,t)}function y0(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,T.default)(e,t)}function T0(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,T.default)(e,t)}function S0(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,T.default)(e,t)}function x0(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,T.default)(e,t)}function g0(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,T.default)(e,t)}function b0(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,T.default)(e,t)}function E0(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,T.default)(e,t)}function P0(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,T.default)(e,t)}function A0(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,T.default)(e,t)}function v0(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,T.default)(e,t)}function C0(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,T.default)(e,t)}function I0(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,T.default)(e,t)}function w0(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,T.default)(e,t)}function N0(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,T.default)(e,t)}function O0(e,t){return!e||e.type!=="TSTemplateLiteralType"?!1:t==null||(0,T.default)(e,t)}function _0(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,T.default)(e,t)}function k0(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,T.default)(e,t)}function D0(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,T.default)(e,t)}function L0(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,T.default)(e,t)}function M0(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,T.default)(e,t)}function B0(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,T.default)(e,t)}function F0(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,T.default)(e,t)}function R0(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,T.default)(e,t)}function j0(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,T.default)(e,t)}function q0(e,t){return!e||e.type!=="TSEnumBody"?!1:t==null||(0,T.default)(e,t)}function U0(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,T.default)(e,t)}function K0(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,T.default)(e,t)}function V0(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,T.default)(e,t)}function Y0(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,T.default)(e,t)}function J0(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,T.default)(e,t)}function X0(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,T.default)(e,t)}function W0(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,T.default)(e,t)}function $0(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,T.default)(e,t)}function H0(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,T.default)(e,t)}function z0(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,T.default)(e,t)}function G0(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Q0(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,T.default)(e,t)}function Z0(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,T.default)(e,t)}function eE(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,T.default)(e,t)}function tE(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function rE(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function iE(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,T.default)(e,t)}function sE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,T.default)(e,t)}function nE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,T.default)(e,t)}function aE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,T.default)(e,t)}function oE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function lE(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,T.default)(e,t)}function uE(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function cE(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function pE(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function fE(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function hE(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,T.default)(e,t)}function dE(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function mE(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function yE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,T.default)(e,t)}function TE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,T.default)(e,t)}function SE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,T.default)(e,t)}function xE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,T.default)(e,t)}function gE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,T.default)(e,t)}function bE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function EE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function PE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,T.default)(e,t)}function AE(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,T.default)(e,t)}function vE(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,T.default)(e,t)}function CE(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,T.default)(e,t)}function IE(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,T.default)(e,t)}function wE(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,T.default)(e,t)}function NE(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,T.default)(e,t)}function OE(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,T.default)(e,t)}function _E(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,T.default)(e,t)}function kE(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,T.default)(e,t)}function _p(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,T.default)(e,t)}function DE(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,T.default)(e,t)}function LE(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,T.default)(e,t)}function ME(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,T.default)(e,t)}function BE(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,T.default)(e,t)}function FE(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,T.default)(e,t)}function RE(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,T.default)(e,t)}function jE(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,T.default)(e,t)}function qE(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,T.default)(e,t)}function UE(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,T.default)(e,t)}function KE(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,T.default)(e,t)}function VE(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,T.default)(e,t)}function YE(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,T.default)(e,t)}function JE(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,T.default)(e,t)}function XE(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,T.default)(e,t)}function WE(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,T.default)(e,t)}function $E(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,T.default)(e,t)}function HE(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,T.default)(e,t)}function zE(e,t){return(0,Zi.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,T.default)(e,t)}function GE(e,t){return(0,Zi.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,T.default)(e,t)}function QE(e,t){return(0,Zi.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,T.default)(e,t)}function ZE(e,t){return(0,Zi.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,T.default)(e,t)}function eP(e,t){return(0,Zi.default)("isModuleDeclaration","isImportOrExportDeclaration"),_p(e,t)}});var Va=I(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.default=tP;var Wr=He();function kp(e){return(0,Wr.isMemberExpression)(e)||(0,Wr.isMetaProperty)(e)}function tP(e,t,r){if(!kp(e))return!1;let i=Array.isArray(t)?t:t.split("."),s=[],n;for(n=e;kp(n);n=(a=n.object)!=null?a:n.meta){var a;s.push(n.property)}if(s.push(n),s.length<i.length||!r&&s.length>i.length)return!1;for(let o=0,l=s.length-1;o<i.length;o++,l--){let c=s[l],f;if((0,Wr.isIdentifier)(c))f=c.name;else if((0,Wr.isStringLiteral)(c))f=c.value;else if((0,Wr.isThisExpression)(c))f="this";else if((0,Wr.isSuper)(c))f="super";else if((0,Wr.isPrivateName)(c))f="#"+c.id.name;else return!1;if(i[o]!==f)return!1}return!0}});var Ja=I(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=iP;var rP=Va();function iP(e,t){let r=e.split(".");return i=>(0,rP.default)(i,r,t)}});var Dp=I(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.default=void 0;var sP=Ja(),nP=(0,sP.default)("React.Component"),oX=Ws.default=nP});var Lp=I(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=aP;function aP(e){return!!e&&/^[a-z]/.test(e)}});var $s=I(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.default=oP;var Mp=Ft();function oP(e,t){if(e===t)return!0;if(e==null||Mp.ALIAS_KEYS[t])return!1;let r=Mp.FLIPPED_ALIAS_KEYS[t];return!!(r!=null&&r.includes(e))}});var Ha=I($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.default=uP;var lP=Ft();function uP(e,t){if(e===t)return!0;let r=lP.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(t))}});var xi=I(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.default=dP;var cP=Xs(),pP=$s(),fP=Ha(),hP=Ft();function dP(e,t,r){return t?(0,pP.default)(t.type,e)?r===void 0?!0:(0,cP.default)(t,r):!r&&t.type==="Placeholder"&&e in hP.FLIPPED_ALIAS_KEYS?(0,fP.default)(t.expectedNode,e):!1:!1}});var qp=I(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.isIdentifierChar=jp;es.isIdentifierName=SP;es.isIdentifierStart=Rp;var Qa="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Bp="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",mP=new RegExp("["+Qa+"]"),yP=new RegExp("["+Qa+Bp+"]");Qa=Bp=null;var Fp=[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],TP=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Ga(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function Rp(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&mP.test(String.fromCharCode(e)):Ga(e,Fp)}function jp(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&yP.test(String.fromCharCode(e)):Ga(e,Fp)||Ga(e,TP)}function SP(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if((i&64512)===55296&&r+1<e.length){let s=e.charCodeAt(++r);(s&64512)===56320&&(i=65536+((i&1023)<<10)+(s&1023))}if(t){if(t=!1,!Rp(i))return!1}else if(!jp(i))return!1}return!t}});var Yp=I($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.isKeyword=PP;$r.isReservedWord=Up;$r.isStrictBindOnlyReservedWord=Vp;$r.isStrictBindReservedWord=EP;$r.isStrictReservedWord=Kp;var Za={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},xP=new Set(Za.keyword),gP=new Set(Za.strict),bP=new Set(Za.strictBind);function Up(e,t){return t&&e==="await"||e==="enum"}function Kp(e,t){return Up(e,t)||gP.has(e)}function Vp(e){return bP.has(e)}function EP(e,t){return Kp(e,t)||Vp(e)}function PP(e){return xP.has(e)}});var rs=I(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});Object.defineProperty(ir,"isIdentifierChar",{enumerable:!0,get:function(){return eo.isIdentifierChar}});Object.defineProperty(ir,"isIdentifierName",{enumerable:!0,get:function(){return eo.isIdentifierName}});Object.defineProperty(ir,"isIdentifierStart",{enumerable:!0,get:function(){return eo.isIdentifierStart}});Object.defineProperty(ir,"isKeyword",{enumerable:!0,get:function(){return ts.isKeyword}});Object.defineProperty(ir,"isReservedWord",{enumerable:!0,get:function(){return ts.isReservedWord}});Object.defineProperty(ir,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return ts.isStrictBindOnlyReservedWord}});Object.defineProperty(ir,"isStrictBindReservedWord",{enumerable:!0,get:function(){return ts.isStrictBindReservedWord}});Object.defineProperty(ir,"isStrictReservedWord",{enumerable:!0,get:function(){return ts.isStrictReservedWord}});var eo=qp(),ts=Yp()});var gi=I(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=AP;var to=rs();function AP(e,t=!0){return typeof e!="string"||t&&((0,to.isKeyword)(e)||(0,to.isStrictReservedWord)(e,!0))?!1:(0,to.isIdentifierName)(e)}});var $p=I(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.readCodePoint=Wp;is.readInt=Xp;is.readStringContents=CP;var vP=function(t){return t>=48&&t<=57},Jp={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Hs={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function CP(e,t,r,i,s,n){let a=r,o=i,l=s,c="",f=null,x=r,{length:P}=t;for(;;){if(r>=P){n.unterminated(a,o,l),c+=t.slice(x,r);break}let A=t.charCodeAt(r);if(IP(e,A,t,r)){c+=t.slice(x,r);break}if(A===92){c+=t.slice(x,r);let v=wP(t,r,i,s,e==="template",n);v.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:c+=v.ch,{pos:r,lineStart:i,curLine:s}=v,x=r}else A===8232||A===8233?(++r,++s,i=r):A===10||A===13?e==="template"?(c+=t.slice(x,r)+`
|
|
6
|
+
`,++r,A===13&&t.charCodeAt(r)===10&&++r,++s,x=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:c,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function IP(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function wP(e,t,r,i,s,n){let a=!s;t++;let o=c=>({pos:t,ch:c,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
|
|
7
|
+
`);case 114:return o("\r");case 120:{let c;return{code:c,pos:t}=io(e,t,r,i,2,!1,a,n),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=Wp(e,t,r,i,a,n),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let c=t-1,x=/^[0-7]+/.exec(e.slice(c,t+2))[0],P=parseInt(x,8);P>255&&(x=x.slice(0,-1),P=parseInt(x,8)),t+=x.length-1;let A=e.charCodeAt(t);if(x!=="0"||A===56||A===57){if(s)return o(null);n.strictNumericEscape(c,r,i)}return o(String.fromCharCode(P))}return o(String.fromCharCode(l))}}function io(e,t,r,i,s,n,a,o){let l=t,c;return{n:c,pos:t}=Xp(e,t,r,i,16,s,n,!1,o,!a),c===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:c,pos:t}}function Xp(e,t,r,i,s,n,a,o,l,c){let f=t,x=s===16?Jp.hex:Jp.decBinOct,P=s===16?Hs.hex:s===10?Hs.dec:s===8?Hs.oct:Hs.bin,A=!1,v=0;for(let _=0,w=n??1/0;_<w;++_){let O=e.charCodeAt(t),L;if(O===95&&o!=="bail"){let ee=e.charCodeAt(t-1),X=e.charCodeAt(t+1);if(o){if(Number.isNaN(X)||!P(X)||x.has(ee)||x.has(X)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(O>=97?L=O-97+10:O>=65?L=O-65+10:vP(O)?L=O-48:L=1/0,L>=s){if(L<=9&&c)return{n:null,pos:t};if(L<=9&&l.invalidDigit(t,r,i,s))L=0;else if(a)L=0,A=!0;else break}++t,v=v*s+L}return t===f||n!=null&&t-f!==n||A?{n:null,pos:t}:{n:v,pos:t}}function Wp(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=io(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=io(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}});var bi=I(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.UPDATE_OPERATORS=he.UNARY_OPERATORS=he.STRING_UNARY_OPERATORS=he.STATEMENT_OR_BLOCK_KEYS=he.NUMBER_UNARY_OPERATORS=he.NUMBER_BINARY_OPERATORS=he.LOGICAL_OPERATORS=he.INHERIT_KEYS=he.FOR_INIT_KEYS=he.FLATTENABLE_KEYS=he.EQUALITY_BINARY_OPERATORS=he.COMPARISON_BINARY_OPERATORS=he.COMMENT_KEYS=he.BOOLEAN_UNARY_OPERATORS=he.BOOLEAN_NUMBER_BINARY_OPERATORS=he.BOOLEAN_BINARY_OPERATORS=he.BINARY_OPERATORS=he.ASSIGNMENT_OPERATORS=void 0;var SX=he.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],xX=he.FLATTENABLE_KEYS=["body","expressions"],gX=he.FOR_INIT_KEYS=["left","init"],bX=he.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],NP=he.LOGICAL_OPERATORS=["||","&&","??"],EX=he.UPDATE_OPERATORS=["++","--"],OP=he.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],_P=he.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],kP=he.COMPARISON_BINARY_OPERATORS=[..._P,"in","instanceof"],DP=he.BOOLEAN_BINARY_OPERATORS=[...kP,...OP],Hp=he.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],PX=he.BINARY_OPERATORS=["+",...Hp,...DP,"|>"],AX=he.ASSIGNMENT_OPERATORS=["=","+=",...Hp.map(e=>e+"="),...NP.map(e=>e+"=")],LP=he.BOOLEAN_UNARY_OPERATORS=["delete","!"],MP=he.NUMBER_UNARY_OPERATORS=["+","-","~"],BP=he.STRING_UNARY_OPERATORS=["typeof"],vX=he.UNARY_OPERATORS=["void","throw",...LP,...MP,...BP],CX=he.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};he.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");he.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var sr=I(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.allExpandedTypes=xe.VISITOR_KEYS=xe.NODE_UNION_SHAPES__PRIVATE=xe.NODE_PARENT_VALIDATIONS=xe.NODE_FIELDS=xe.FLIPPED_ALIAS_KEYS=xe.DEPRECATED_KEYS=xe.BUILDER_KEYS=xe.ALIAS_KEYS=void 0;xe.arrayOf=Gp;xe.arrayOfType=Qp;xe.assertEach=Zp;xe.assertNodeOrValueType=zP;xe.assertNodeType=Gs;xe.assertOneOf=$P;xe.assertOptionalChainStart=QP;xe.assertShape=GP;xe.assertValueType=oo;xe.chain=ef;xe.default=tf;xe.defineAliasedType=tA;xe.validate=ao;xe.validateArrayOfType=WP;xe.validateOptional=JP;xe.validateOptionalType=XP;xe.validateType=YP;var zp=xi(),ss=Qs(),FP=xe.VISITOR_KEYS={},RP=xe.ALIAS_KEYS={},so=xe.FLIPPED_ALIAS_KEYS={},jP=xe.NODE_FIELDS={},qP=xe.BUILDER_KEYS={},UP=xe.DEPRECATED_KEYS={},KP=xe.NODE_PARENT_VALIDATIONS={},VP=xe.NODE_UNION_SHAPES__PRIVATE={};function zs(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function ao(e){return{validate:e}}function YP(...e){return ao(Gs(...e))}function JP(e){return{validate:e,optional:!0}}function XP(...e){return{validate:Gs(...e),optional:!0}}function Gp(e){return ef(oo("array"),Zp(e))}function Qp(...e){return Gp(Gs(...e))}function WP(...e){return ao(Qp(...e))}function Zp(e){let t=process.env.BABEL_TYPES_8_BREAKING?ss.validateChild:()=>{};function r(i,s,n){if(!Array.isArray(n))return;let a=0,o={toString(){return`${s}[${a}]`}};for(;a<n.length;a++){let l=n[a];e(i,o,l),t(i,o,l)}}return r.each=e,r}function $P(...e){function t(r,i,s){if(!e.includes(s))throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`)}return t.oneOf=e,t}var HP=xe.allExpandedTypes=[];function Gs(...e){let t=new Set;HP.push({types:e,set:t});function r(i,s,n){let a=n?.type;if(a!=null){if(t.has(a)){(0,ss.validateChild)(i,s,n);return}if(a==="Placeholder"){for(let o of e)if((0,zp.default)(o,n)){(0,ss.validateChild)(i,s,n);return}}}throw new TypeError(`Property ${s} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return r.oneOfNodeTypes=e,r}function zP(...e){function t(r,i,s){let n=zs(s);for(let a of e)if(n===a||(0,zp.default)(a,s)){(0,ss.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function oo(e){function t(r,i,s){if(zs(s)!==e)throw new TypeError(`Property ${i} expected type of ${e} but got ${zs(s)}`)}return t.type=e,t}function GP(e){let t=Object.keys(e);function r(i,s,n){let a=[];for(let o of t)try{(0,ss.validateField)(i,o,n[o],e[o])}catch(l){if(l instanceof TypeError){a.push(l.message);continue}throw l}if(a.length)throw new TypeError(`Property ${s} of ${i.type} expected to have the following:
|
|
8
|
+
${a.join(`
|
|
9
|
+
`)}`)}return r.shapeOf=e,r}function QP(){function e(t){var r;let i=t;for(;t;){let{type:s}=i;if(s==="OptionalCallExpression"){if(i.optional)return;i=i.callee;continue}if(s==="OptionalMemberExpression"){if(i.optional)return;i=i.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return e}function ef(...e){function t(...r){for(let i of e)i(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var ZP=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),eA=new Set(["default","optional","deprecated","validate"]),no={};function tA(...e){return(t,r={})=>{let i=r.aliases;if(!i){var s;r.inherits&&(i=(s=no[r.inherits].aliases)==null?void 0:s.slice()),i??(i=[]),r.aliases=i}let n=e.filter(a=>!i.includes(a));i.unshift(...n),tf(t,r)}}function tf(e,t={}){let r=t.inherits&&no[t.inherits]||{},i=t.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let c=r.fields[l],f=c.default;if(Array.isArray(f)?f.length>0:f&&typeof f=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[l]={default:Array.isArray(f)?[]:f,optional:c.optional,deprecated:c.deprecated,validate:c.validate}}}let s=t.visitor||r.visitor||[],n=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!ZP.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(UP[t.deprecatedAlias]=e);for(let o of s.concat(a))i[o]=i[o]||{};for(let o of Object.keys(i)){let l=i[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=oo(zs(l.default)));for(let c of Object.keys(l))if(!eA.has(c))throw new Error(`Unknown field key "${c}" on ${e}.${o}`)}FP[e]=t.visitor=s,qP[e]=t.builder=a,jP[e]=t.fields=i,RP[e]=t.aliases=n,n.forEach(o=>{so[o]=so[o]||[],so[o].push(e)}),t.validate&&(KP[e]=t.validate),t.unionShape&&(VP[e]=t.unionShape),no[e]=t}});var as=I(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.patternLikeCommon=ot.importAttributes=ot.functionTypeAnnotationCommon=ot.functionDeclarationCommon=ot.functionCommon=ot.classMethodOrPropertyUnionShapeCommon=ot.classMethodOrPropertyCommon=ot.classMethodOrDeclareMethodCommon=void 0;var yt=xi(),rA=gi(),rf=rs(),iA=$p(),Ei=bi(),S=sr(),ns=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});ot.classMethodOrPropertyUnionShapeCommon=ns;var U=(0,S.defineAliasedType)("Standardized");U("ArrayExpression",{fields:{elements:{validate:(0,S.arrayOf)((0,S.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});U("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){let e=(0,S.assertOneOf)(...Ei.ASSIGNMENT_OPERATORS),t=(0,S.assertOneOf)("=");return function(r,i,s){((0,yt.default)("Pattern",r.left)?t:e)(r,i,s)}})(),{oneOf:Ei.ASSIGNMENT_OPERATORS}):(0,S.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,S.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});U("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,S.assertOneOf)(...Ei.BINARY_OPERATORS)},left:{validate:(function(){let e=(0,S.assertNodeType)("Expression"),t=(0,S.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,n){(i.operator==="in"?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,S.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});U("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});U("Directive",{visitor:["value"],fields:{value:{validate:(0,S.assertNodeType)("DirectiveLiteral")}}});U("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});U("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,S.arrayOfType)("Directive"),default:[]},body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});U("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});U("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,S.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,S.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});U("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});U("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},consequent:{validate:(0,S.assertNodeType)("Expression")},alternate:{validate:(0,S.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});U("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});U("DebuggerStatement",{aliases:["Statement"]});U("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});U("EmptyStatement",{aliases:["Statement"]});U("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});U("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,S.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertEach)((0,S.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,S.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});U("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});U("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,S.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},update:{validate:(0,S.assertNodeType)("Expression"),optional:!0},body:{validate:(0,S.assertNodeType)("Statement")}}});var Pi=()=>({params:(0,S.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});ot.functionCommon=Pi;var Hr=()=>({returnType:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});ot.functionTypeAnnotationCommon=Hr;var sf=()=>Object.assign({},Pi(),{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}});ot.functionDeclarationCommon=sf;U("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},sf(),Hr(),{body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,S.assertNodeType)("Identifier");return function(t,r,i){(0,yt.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});U("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Pi(),Hr(),{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Ai=()=>({typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}});ot.patternLikeCommon=Ai;U("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Ai(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,rA.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,S.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let i=/\.(\w+)$/.exec(t.toString());if(!i)return;let[,s]=i,n={computed:!1};if(s==="property"){if((0,yt.default)("MemberExpression",e,n)||(0,yt.default)("OptionalMemberExpression",e,n))return}else if(s==="key"){if((0,yt.default)("Property",e,n)||(0,yt.default)("Method",e,n))return}else if(s==="exported"){if((0,yt.default)("ExportSpecifier",e))return}else if(s==="imported"){if((0,yt.default)("ImportSpecifier",e,{imported:r}))return}else if(s==="meta"&&(0,yt.default)("MetaProperty",e,{meta:r}))return;if(((0,rf.isKeyword)(r.name)||(0,rf.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});U("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},consequent:{validate:(0,S.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,S.assertNodeType)("Statement")}}});U("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,S.assertNodeType)("Identifier")},body:{validate:(0,S.assertNodeType)("Statement")}}});U("StringLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});U("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,S.chain)((0,S.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let i=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});U("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});U("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});U("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,S.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("string"),Object.assign(function(e,t,r){let i=/[^dgimsuvy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,S.assertValueType)("string"),default:""}}});U("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,S.assertOneOf)(...Ei.LOGICAL_OPERATORS)},left:{validate:(0,S.assertNodeType)("Expression")},right:{validate:(0,S.assertNodeType)("Expression")}}});U("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,S.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,S.assertNodeType)("Expression","Super")},property:{validate:(function(){let e=(0,S.assertNodeType)("Identifier","PrivateName"),t=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r})()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertValueType)("boolean"),optional:!0}})});U("NewExpression",{inherits:"CallExpression"});U("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,S.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,S.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,S.arrayOfType)("Directive"),default:[]},body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});U("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,S.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});U("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ns(),{fields:Object.assign({},Pi(),Hr(),{kind:Object.assign({validate:(0,S.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r})()},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));U("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,S.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,yt.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,S.assertValueType)("boolean"),default:!1},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,S.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,S.assertNodeType)("Expression");return function(r,i,s){((0,yt.default)("ObjectPattern",r)?e:t)(s,"value",s.value)}})():void 0});U("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Ai(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(e[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}:void 0});U("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression"),optional:!0}}});U("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,S.validateArrayOfType)("Expression")},aliases:["Expression"]});U("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}}});U("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},consequent:(0,S.validateArrayOfType)("Statement")}});U("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,S.assertNodeType)("Expression")},cases:(0,S.validateArrayOfType)("SwitchCase")}});U("ThisExpression",{aliases:["Expression"]});U("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});U("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,S.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,S.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,S.assertNodeType)("BlockStatement")}}});U("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...Ei.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});U("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","MemberExpression"):(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...Ei.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});U("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},kind:{validate:(0,S.assertOneOf)("var","let","const","using","await using")},declarations:(0,S.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,S.assertNodeType)("Identifier","Placeholder"),t=(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,S.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(i,s,n){let{kind:a,declarations:o}=n,l=(0,yt.default)("ForXStatement",i,{left:n});if(l&&o.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(let c of o)a==="const"||a==="let"||a==="var"?!l&&!c.init?e(c,"id",c.id):t(c,"id",c.id):r(c,"id",c.id)}})():void 0});U("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,S.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,S.assertValueType)("boolean")},init:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});U("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});U("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});U("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ai(),{left:{validate:(0,S.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,S.assertNodeType)("Expression")},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}})});U("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ai(),{elements:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeOrValueType)("null","PatternLike")))}})});U("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Pi(),Hr(),{expression:{validate:(0,S.assertValueType)("boolean")},body:{validate:(0,S.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});U("ClassBody",{visitor:["body"],fields:{body:(0,S.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});U("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0}}});U("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,S.assertNodeType)("Identifier");return function(t,r,i){(0,yt.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});var Zs=ot.importAttributes={attributes:{optional:!0,validate:(0,S.arrayOfType)("ImportAttribute")}};Zs.assertions={deprecated:!0,optional:!0,validate:(0,S.arrayOfType)("ImportAttribute")};U("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,S.assertNodeType)("StringLiteral")},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("type","value"))},Zs)});U("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,S.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,S.validateOptional)((0,S.assertOneOf)("value"))}});U("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,S.assertNodeType)("Declaration")}},Zs,{specifiers:{default:[],validate:(0,S.arrayOf)((function(){let e=(0,S.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,S.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,i,s){(r.source?e:t)(r,i,s)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e})())},source:{validate:(0,S.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("type","value"))})});U("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},exported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,S.assertOneOf)("type","value"),optional:!0}}});U("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,S.assertNodeType)("VariableDeclaration","LVal");let e=(0,S.assertNodeType)("VariableDeclaration"),t=(0,S.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,i,s){(0,yt.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")},await:{default:!1}}});U("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},Zs,{module:{optional:!0,validate:(0,S.assertValueType)("boolean")},phase:{default:null,validate:(0,S.assertOneOf)("source","defer")},specifiers:(0,S.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,S.assertNodeType)("StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}})});U("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});U("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});U("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},imported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}}});U("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,S.assertOneOf)("source","defer")},source:{validate:(0,S.assertNodeType)("Expression")},options:{validate:(0,S.assertNodeType)("Expression"),optional:!0}}});U("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,yt.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,S.assertNodeType)("Identifier")},property:{validate:(0,S.assertNodeType)("Identifier")}}});var en=()=>({abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,S.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},key:{validate:(0,S.chain)((function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});ot.classMethodOrPropertyCommon=en;var lo=()=>Object.assign({},Pi(),en(),{params:(0,S.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,S.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,S.chain)((0,S.assertValueType)("string"),(0,S.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}});ot.classMethodOrDeclareMethodCommon=lo;U("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ns(),{fields:Object.assign({},lo(),Hr(),{body:{validate:(0,S.assertNodeType)("BlockStatement")}})}));U("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ai(),{properties:(0,S.validateArrayOfType)("RestElement","ObjectProperty")})});U("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});U("Super",{aliases:["Expression"]});U("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,S.assertNodeType)("Expression")},quasi:{validate:(0,S.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});U("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,S.chain)((0,S.assertShape)({raw:{validate:(0,S.assertValueType)("string")},cooked:{validate:(0,S.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,iA.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!i)throw new Error("Invalid raw");t.value.cooked=a?null:n})},tail:{default:!1}}});U("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,S.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
|
|
10
|
+
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});U("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,S.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});U("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});U("Import",{aliases:["Expression"]});U("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});U("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,S.assertNodeType)("Identifier")}}});U("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},property:{validate:(function(){let e=(0,S.assertNodeType)("Identifier"),t=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")}}});U("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,S.assertNodeType)("Expression")},arguments:(0,S.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")},typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});U("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},ns(),{fields:Object.assign({},en(),{value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})}));U("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},ns(!0),{fields:Object.assign({},en(),{key:{validate:(0,S.chain)((function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})}));U("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,S.assertNodeType)("PrivateName")},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,S.assertValueType)("boolean"),default:!1},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}}});U("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},lo(),Hr(),{kind:{validate:(0,S.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,S.assertNodeType)("PrivateName")},body:{validate:(0,S.assertNodeType)("BlockStatement")}})});U("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,S.assertNodeType)("Identifier")}}});U("StaticBlock",{visitor:["body"],fields:{body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});U("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,S.assertNodeType)("StringLiteral")}}})});var af=I(()=>{"use strict";var nf=as(),C=sr(),Z=(0,C.defineAliasedType)("Flow"),uo=e=>{let t=e==="DeclareClass";Z(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),extends:(0,C.validateOptional)((0,C.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,C.validateOptional)((0,C.arrayOfType)("InterfaceExtends")),implements:(0,C.validateOptional)((0,C.arrayOfType)("ClassImplements"))}:{},{body:(0,C.validateType)("ObjectTypeAnnotation")})})};Z("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,C.validateType)("FlowType")}});Z("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,C.validate)((0,C.assertValueType)("boolean"))}});Z("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterInstantiation")}});uo("DeclareClass");Z("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),predicate:(0,C.validateOptionalType)("DeclaredPredicate")}});uo("DeclareInterface");Z("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier","StringLiteral"),body:(0,C.validateType)("BlockStatement"),kind:(0,C.validateOptional)((0,C.assertOneOf)("CommonJS","ES"))}});Z("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,C.validateType)("TypeAnnotation")}});Z("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),right:(0,C.validateType)("FlowType")}});Z("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,C.validateOptionalType)("FlowType"),impltype:(0,C.validateOptionalType)("FlowType")}});Z("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier")}});Z("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,C.validateOptionalType)("Flow"),specifiers:(0,C.validateOptional)((0,C.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,C.validateOptionalType)("StringLiteral"),default:(0,C.validateOptional)((0,C.assertValueType)("boolean"))},nf.importAttributes)});Z("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,C.validateType)("StringLiteral"),exportKind:(0,C.validateOptional)((0,C.assertOneOf)("type","value"))},nf.importAttributes)});Z("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,C.validateType)("Flow")}});Z("ExistsTypeAnnotation",{aliases:["FlowType"]});Z("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),params:(0,C.validateArrayOfType)("FunctionTypeParam"),rest:(0,C.validateOptionalType)("FunctionTypeParam"),this:(0,C.validateOptionalType)("FunctionTypeParam"),returnType:(0,C.validateType)("FlowType")}});Z("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,C.validateOptionalType)("Identifier"),typeAnnotation:(0,C.validateType)("FlowType"),optional:(0,C.validateOptional)((0,C.assertValueType)("boolean"))}});Z("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,C.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterInstantiation")}});Z("InferredPredicate",{aliases:["FlowPredicate"]});Z("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,C.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterInstantiation")}});uo("InterfaceDeclaration");Z("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,C.validateOptional)((0,C.arrayOfType)("InterfaceExtends")),body:(0,C.validateType)("ObjectTypeAnnotation")}});Z("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});Z("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,C.validateType)("FlowType")}});Z("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,C.validate)((0,C.assertValueType)("number"))}});Z("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,C.validate)((0,C.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,C.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,C.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,C.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,C.assertValueType)("boolean"),default:!1},inexact:(0,C.validateOptional)((0,C.assertValueType)("boolean"))}});Z("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,C.validateType)("Identifier"),value:(0,C.validateType)("FlowType"),optional:(0,C.validate)((0,C.assertValueType)("boolean")),static:(0,C.validate)((0,C.assertValueType)("boolean")),method:(0,C.validate)((0,C.assertValueType)("boolean"))}});Z("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,C.validateType)("FlowType"),static:(0,C.validate)((0,C.assertValueType)("boolean"))}});Z("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,C.validateOptionalType)("Identifier"),key:(0,C.validateType)("FlowType"),value:(0,C.validateType)("FlowType"),static:(0,C.validate)((0,C.assertValueType)("boolean")),variance:(0,C.validateOptionalType)("Variance")}});Z("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,C.validateType)("Identifier","StringLiteral"),value:(0,C.validateType)("FlowType"),kind:(0,C.validate)((0,C.assertOneOf)("init","get","set")),static:(0,C.validate)((0,C.assertValueType)("boolean")),proto:(0,C.validate)((0,C.assertValueType)("boolean")),optional:(0,C.validate)((0,C.assertValueType)("boolean")),variance:(0,C.validateOptionalType)("Variance"),method:(0,C.validate)((0,C.assertValueType)("boolean"))}});Z("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,C.validateType)("FlowType")}});Z("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,C.validateOptionalType)("FlowType"),impltype:(0,C.validateType)("FlowType")}});Z("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,C.validateType)("Identifier"),qualification:(0,C.validateType)("Identifier","QualifiedTypeIdentifier")}});Z("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,C.validate)((0,C.assertValueType)("string"))}});Z("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});Z("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,C.validateType)("FlowType")}});Z("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),right:(0,C.validateType)("FlowType")}});Z("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,C.validateType)("FlowType")}});Z("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,C.validateType)("Expression"),typeAnnotation:(0,C.validateType)("TypeAnnotation")}});Z("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,C.validate)((0,C.assertValueType)("string")),bound:(0,C.validateOptionalType)("TypeAnnotation"),default:(0,C.validateOptionalType)("FlowType"),variance:(0,C.validateOptionalType)("Variance")}});Z("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,C.validate)((0,C.arrayOfType)("TypeParameter"))}});Z("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});Z("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});Z("Variance",{builder:["kind"],fields:{kind:(0,C.validate)((0,C.assertOneOf)("minus","plus"))}});Z("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,C.validateType)("Identifier"),body:(0,C.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});Z("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,C.validate)((0,C.assertValueType)("boolean")),members:(0,C.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});Z("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,C.validate)((0,C.assertValueType)("boolean")),members:(0,C.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});Z("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,C.validate)((0,C.assertValueType)("boolean")),members:(0,C.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});Z("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,C.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});Z("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,C.validateType)("Identifier"),init:(0,C.validateType)("BooleanLiteral")}});Z("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,C.validateType)("Identifier"),init:(0,C.validateType)("NumericLiteral")}});Z("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,C.validateType)("Identifier"),init:(0,C.validateType)("StringLiteral")}});Z("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,C.validateType)("Identifier")}});Z("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,C.validateType)("FlowType"),indexType:(0,C.validateType)("FlowType")}});Z("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,C.validateType)("FlowType"),indexType:(0,C.validateType)("FlowType"),optional:(0,C.validate)((0,C.assertValueType)("boolean"))}})});var of=I(()=>{"use strict";var Je=sr(),Tt=(0,Je.defineAliasedType)("JSX");Tt("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,Je.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,Je.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});Tt("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,Je.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});Tt("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,Je.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,Je.assertNodeType)("JSXClosingElement")},children:(0,Je.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,Je.assertValueType)("boolean"),optional:!0}})});Tt("JSXEmptyExpression",{});Tt("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,Je.assertNodeType)("Expression","JSXEmptyExpression")}}});Tt("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,Je.assertNodeType)("Expression")}}});Tt("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,Je.assertValueType)("string")}}});Tt("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,Je.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,Je.assertNodeType)("JSXIdentifier")}}});Tt("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,Je.assertNodeType)("JSXIdentifier")},name:{validate:(0,Je.assertNodeType)("JSXIdentifier")}}});Tt("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,Je.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,Je.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,Je.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,Je.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Tt("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,Je.assertNodeType)("Expression")}}});Tt("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,Je.assertValueType)("string")}}});Tt("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,Je.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,Je.assertNodeType)("JSXClosingFragment")},children:(0,Je.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});Tt("JSXOpeningFragment",{aliases:["Immutable"]});Tt("JSXClosingFragment",{aliases:["Immutable"]})});var fo=I(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.PLACEHOLDERS_FLIPPED_ALIAS=wr.PLACEHOLDERS_ALIAS=wr.PLACEHOLDERS=void 0;var sA=sr(),nA=wr.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],po=wr.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of nA){let t=sA.ALIAS_KEYS[e];t!=null&&t.length&&(po[e]=t)}var co=wr.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(po).forEach(e=>{po[e].forEach(t=>{hasOwnProperty.call(co,t)||(co[t]=[]),co[t].push(e)})})});var lf=I(()=>{"use strict";var tn=sr(),aA=fo(),oA=as(),ho=(0,tn.defineAliasedType)("Miscellaneous");ho("Noop",{visitor:[]});ho("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,tn.assertNodeType)("Identifier")},expectedNode:{validate:(0,tn.assertOneOf)(...aA.PLACEHOLDERS)}},(0,oA.patternLikeCommon)())});ho("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,tn.assertValueType)("string")}}})});var uf=I(()=>{"use strict";var Ue=sr();(0,Ue.default)("ArgumentPlaceholder",{});(0,Ue.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Ue.assertNodeType)("Expression")},callee:{validate:(0,Ue.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Ue.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Ue.assertNodeType)("Expression")}}});(0,Ue.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Ue.assertNodeType)("BlockStatement")},async:{validate:(0,Ue.assertValueType)("boolean"),default:!1}}});(0,Ue.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Ue.assertNodeType)("Identifier")}}});(0,Ue.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Ue.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Ue.default)("TupleExpression",{fields:{elements:{validate:(0,Ue.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Ue.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Ue.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Ue.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Ue.assertNodeType)("Program")}},aliases:["Expression"]});(0,Ue.default)("TopicReference",{aliases:["Expression"]});(0,Ue.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Ue.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ue.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Ue.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ue.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Ue.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var yf=I(()=>{"use strict";var k=sr(),mo=as(),lA=xi(),se=(0,k.defineAliasedType)("TypeScript"),Ct=(0,k.assertValueType)("boolean"),cf=()=>({returnType:{validate:(0,k.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,k.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});se("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,k.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,k.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,k.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,k.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,k.arrayOfType)("Decorator"),optional:!0}}});se("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,mo.functionDeclarationCommon)(),cf())});se("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,mo.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,mo.classMethodOrDeclareMethodCommon)(),cf())}));se("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,k.validateType)("TSEntityName"),right:(0,k.validateType)("Identifier")}});var rn=()=>({typeParameters:(0,k.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,k.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,k.validateOptionalType)("TSTypeAnnotation")}),pf={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:rn()};se("TSCallSignatureDeclaration",pf);se("TSConstructSignatureDeclaration",pf);var ff=()=>({key:(0,k.validateType)("Expression"),computed:{default:!1},optional:(0,k.validateOptional)(Ct)});se("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},ff(),{readonly:(0,k.validateOptional)(Ct),typeAnnotation:(0,k.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,k.assertOneOf)("get","set")}})});se("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},rn(),ff(),{kind:{validate:(0,k.assertOneOf)("method","get","set")}})});se("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,k.validateOptional)(Ct),static:(0,k.validateOptional)(Ct),parameters:(0,k.validateArrayOfType)("Identifier"),typeAnnotation:(0,k.validateOptionalType)("TSTypeAnnotation")}});var uA=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of uA)se(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});se("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var hf={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};se("TSFunctionType",Object.assign({},hf,{fields:rn()}));se("TSConstructorType",Object.assign({},hf,{fields:Object.assign({},rn(),{abstract:(0,k.validateOptional)(Ct)})}));se("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,k.validateType)("TSEntityName"),typeParameters:(0,k.validateOptionalType)("TSTypeParameterInstantiation")}});se("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,k.validateType)("Identifier","TSThisType"),typeAnnotation:(0,k.validateOptionalType)("TSTypeAnnotation"),asserts:(0,k.validateOptional)(Ct)}});se("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,k.validateType)("TSEntityName","TSImportType"),typeParameters:(0,k.validateOptionalType)("TSTypeParameterInstantiation")}});se("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,k.validateArrayOfType)("TSTypeElement")}});se("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,k.validateType)("TSType")}});se("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,k.validateArrayOfType)("TSType","TSNamedTupleMember")}});se("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,k.validateType)("TSType")}});se("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,k.validateType)("TSType")}});se("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,k.validateType)("Identifier"),optional:{validate:Ct,default:!1},elementType:(0,k.validateType)("TSType")}});var df={aliases:["TSType"],visitor:["types"],fields:{types:(0,k.validateArrayOfType)("TSType")}};se("TSUnionType",df);se("TSIntersectionType",df);se("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,k.validateType)("TSType"),extendsType:(0,k.validateType)("TSType"),trueType:(0,k.validateType)("TSType"),falseType:(0,k.validateType)("TSType")}});se("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,k.validateType)("TSTypeParameter")}});se("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,k.validateType)("TSType")}});se("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,k.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,k.validateType)("TSType")}});se("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,k.validateType)("TSType"),indexType:(0,k.validateType)("TSType")}});se("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,k.validateType)("TSTypeParameter")},{readonly:(0,k.validateOptional)((0,k.assertOneOf)(!0,!1,"+","-")),optional:(0,k.validateOptional)((0,k.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,k.validateOptionalType)("TSType"),nameType:(0,k.validateOptionalType)("TSType")})});se("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,k.validateArrayOfType)("TemplateElement"),types:{validate:(0,k.chain)((0,k.assertValueType)("array"),(0,k.assertEach)((0,k.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
|
|
11
|
+
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});se("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){let e=(0,k.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,k.assertOneOf)("-"),r=(0,k.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),i=function(n,a,o){(0,lA.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):r(n,a,o)};return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i})()}}});se("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,k.validateType)("TSEntityName"),typeParameters:(0,k.validateOptionalType)("TSTypeParameterInstantiation")}});se("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,k.validateOptional)(Ct),id:(0,k.validateType)("Identifier"),typeParameters:(0,k.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,k.validateOptional)((0,k.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,k.validateType)("TSInterfaceBody")}});se("TSInterfaceBody",{visitor:["body"],fields:{body:(0,k.validateArrayOfType)("TSTypeElement")}});se("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,k.validateOptional)(Ct),id:(0,k.validateType)("Identifier"),typeParameters:(0,k.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,k.validateType)("TSType")}});se("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,k.validateType)("Expression"),typeParameters:(0,k.validateOptionalType)("TSTypeParameterInstantiation")}});var mf={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,k.validateType)("Expression"),typeAnnotation:(0,k.validateType)("TSType")}};se("TSAsExpression",mf);se("TSSatisfiesExpression",mf);se("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,k.validateType)("TSType"),expression:(0,k.validateType)("Expression")}});se("TSEnumBody",{visitor:["members"],fields:{members:(0,k.validateArrayOfType)("TSEnumMember")}});se("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,k.validateOptional)(Ct),const:(0,k.validateOptional)(Ct),id:(0,k.validateType)("Identifier"),members:(0,k.validateArrayOfType)("TSEnumMember"),initializer:(0,k.validateOptionalType)("Expression"),body:(0,k.validateOptionalType)("TSEnumBody")}});se("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,k.validateType)("Identifier","StringLiteral"),initializer:(0,k.validateOptionalType)("Expression")}});se("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,k.assertOneOf)("global","module","namespace")},declare:(0,k.validateOptional)(Ct)},{global:(0,k.validateOptional)(Ct)},{id:(0,k.validateType)("Identifier","StringLiteral"),body:(0,k.validateType)("TSModuleBlock","TSModuleDeclaration")})});se("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,k.validateArrayOfType)("Statement")}});se("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,k.validateType)("StringLiteral")},{qualifier:(0,k.validateOptionalType)("TSEntityName")},{typeParameters:(0,k.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,k.assertNodeType)("ObjectExpression"),optional:!0}})});se("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,k.validate)(Ct)},{id:(0,k.validateType)("Identifier"),moduleReference:(0,k.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,k.assertOneOf)("type","value"),optional:!0}})});se("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,k.validateType)("StringLiteral")}});se("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,k.validateType)("Expression")}});se("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,k.validateType)("Expression")}});se("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,k.validateType)("Identifier")}});se("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,k.assertNodeType)("TSType")}}});se("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,k.validateArrayOfType)("TSType")}});se("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,k.validateArrayOfType)("TSTypeParameter")}});se("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,k.assertValueType)("string")},in:{validate:(0,k.assertValueType)("boolean"),optional:!0},out:{validate:(0,k.assertValueType)("boolean"),optional:!0},const:{validate:(0,k.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,k.assertNodeType)("TSType"),optional:!0},default:{validate:(0,k.assertNodeType)("TSType"),optional:!0}}})});var Tf=I(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.DEPRECATED_ALIASES=void 0;var UX=sn.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var Ft=I(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});Object.defineProperty(ft,"ALIAS_KEYS",{enumerable:!0,get:function(){return St.ALIAS_KEYS}});Object.defineProperty(ft,"BUILDER_KEYS",{enumerable:!0,get:function(){return St.BUILDER_KEYS}});Object.defineProperty(ft,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return yo.DEPRECATED_ALIASES}});Object.defineProperty(ft,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return St.DEPRECATED_KEYS}});Object.defineProperty(ft,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return St.FLIPPED_ALIAS_KEYS}});Object.defineProperty(ft,"NODE_FIELDS",{enumerable:!0,get:function(){return St.NODE_FIELDS}});Object.defineProperty(ft,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return St.NODE_PARENT_VALIDATIONS}});Object.defineProperty(ft,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return St.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(ft,"PLACEHOLDERS",{enumerable:!0,get:function(){return To.PLACEHOLDERS}});Object.defineProperty(ft,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return To.PLACEHOLDERS_ALIAS}});Object.defineProperty(ft,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return To.PLACEHOLDERS_FLIPPED_ALIAS}});ft.TYPES=void 0;Object.defineProperty(ft,"VISITOR_KEYS",{enumerable:!0,get:function(){return St.VISITOR_KEYS}});as();af();of();lf();uf();yf();var St=sr(),To=fo(),yo=Tf();Object.keys(yo.DEPRECATED_ALIASES).forEach(e=>{St.FLIPPED_ALIAS_KEYS[e]=St.FLIPPED_ALIAS_KEYS[yo.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of St.allExpandedTypes)for(let r of e){let i=St.FLIPPED_ALIAS_KEYS[r];i?i.forEach(t.add,t):t.add(r)}var VX=ft.TYPES=[].concat(Object.keys(St.VISITOR_KEYS),Object.keys(St.FLIPPED_ALIAS_KEYS),Object.keys(St.DEPRECATED_KEYS))});var Qs=I(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.default=cA;vi.validateChild=xf;vi.validateField=Sf;vi.validateInternal=pA;var os=Ft();function cA(e,t,r){if(!e)return;let i=os.NODE_FIELDS[e.type];if(!i)return;let s=i[t];Sf(e,t,r,s),xf(e,t,r)}function pA(e,t,r,i,s){if(e!=null&&e.validate&&!(e.optional&&i==null)&&(e.validate(t,r,i),s)){var n;let a=i.type;if(a==null)return;(n=os.NODE_PARENT_VALIDATIONS[a])==null||n.call(os.NODE_PARENT_VALIDATIONS,t,r,i)}}function Sf(e,t,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(e,t,r))}function xf(e,t,r){var i;let s=r?.type;s!=null&&((i=os.NODE_PARENT_VALIDATIONS[s])==null||i.call(os.NODE_PARENT_VALIDATIONS,e,t,r))}});var So=I(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.anyTypeAnnotation=J1;h.argumentPlaceholder=gC;h.arrayExpression=mA;h.arrayPattern=c1;h.arrayTypeAnnotation=X1;h.arrowFunctionExpression=p1;h.assignmentExpression=yA;h.assignmentPattern=u1;h.awaitExpression=D1;h.bigIntLiteral=dA;h.binaryExpression=TA;h.bindExpression=bC;h.blockStatement=bA;h.booleanLiteral=UA;h.booleanLiteralTypeAnnotation=$1;h.booleanTypeAnnotation=W1;h.breakStatement=EA;h.callExpression=PA;h.catchClause=AA;h.classAccessorProperty=j1;h.classBody=f1;h.classDeclaration=d1;h.classExpression=h1;h.classImplements=z1;h.classMethod=C1;h.classPrivateMethod=U1;h.classPrivateProperty=q1;h.classProperty=R1;h.conditionalExpression=vA;h.continueStatement=CA;h.debuggerStatement=IA;h.decimalLiteral=IC;h.declareClass=G1;h.declareExportAllDeclaration=av;h.declareExportDeclaration=nv;h.declareFunction=Q1;h.declareInterface=Z1;h.declareModule=ev;h.declareModuleExports=tv;h.declareOpaqueType=iv;h.declareTypeAlias=rv;h.declareVariable=sv;h.declaredPredicate=ov;h.decorator=EC;h.directive=xA;h.directiveLiteral=gA;h.doExpression=PC;h.doWhileStatement=wA;h.emptyStatement=NA;h.emptyTypeAnnotation=Sv;h.enumBooleanBody=Xv;h.enumBooleanMember=zv;h.enumDeclaration=Jv;h.enumDefaultedMember=Zv;h.enumNumberBody=Wv;h.enumNumberMember=Gv;h.enumStringBody=$v;h.enumStringMember=Qv;h.enumSymbolBody=Hv;h.existsTypeAnnotation=lv;h.exportAllDeclaration=m1;h.exportDefaultDeclaration=y1;h.exportDefaultSpecifier=AC;h.exportNamedDeclaration=T1;h.exportNamespaceSpecifier=M1;h.exportSpecifier=S1;h.expressionStatement=OA;h.file=_A;h.forInStatement=kA;h.forOfStatement=x1;h.forStatement=DA;h.functionDeclaration=LA;h.functionExpression=MA;h.functionTypeAnnotation=uv;h.functionTypeParam=cv;h.genericTypeAnnotation=pv;h.identifier=BA;h.ifStatement=FA;h.import=L1;h.importAttribute=Y1;h.importDeclaration=g1;h.importDefaultSpecifier=b1;h.importExpression=A1;h.importNamespaceSpecifier=E1;h.importSpecifier=P1;h.indexedAccessType=eC;h.inferredPredicate=fv;h.interfaceDeclaration=dv;h.interfaceExtends=hv;h.interfaceTypeAnnotation=mv;h.interpreterDirective=SA;h.intersectionTypeAnnotation=yv;h.jSXAttribute=h.jsxAttribute=rC;h.jSXClosingElement=h.jsxClosingElement=iC;h.jSXClosingFragment=h.jsxClosingFragment=yC;h.jSXElement=h.jsxElement=sC;h.jSXEmptyExpression=h.jsxEmptyExpression=nC;h.jSXExpressionContainer=h.jsxExpressionContainer=aC;h.jSXFragment=h.jsxFragment=dC;h.jSXIdentifier=h.jsxIdentifier=lC;h.jSXMemberExpression=h.jsxMemberExpression=uC;h.jSXNamespacedName=h.jsxNamespacedName=cC;h.jSXOpeningElement=h.jsxOpeningElement=pC;h.jSXOpeningFragment=h.jsxOpeningFragment=mC;h.jSXSpreadAttribute=h.jsxSpreadAttribute=fC;h.jSXSpreadChild=h.jsxSpreadChild=oC;h.jSXText=h.jsxText=hC;h.labeledStatement=RA;h.logicalExpression=KA;h.memberExpression=VA;h.metaProperty=v1;h.mixedTypeAnnotation=Tv;h.moduleExpression=wC;h.newExpression=YA;h.noop=TC;h.nullLiteral=qA;h.nullLiteralTypeAnnotation=H1;h.nullableTypeAnnotation=xv;h.numberLiteral=WI;h.numberLiteralTypeAnnotation=gv;h.numberTypeAnnotation=bv;h.numericLiteral=gf;h.objectExpression=XA;h.objectMethod=WA;h.objectPattern=I1;h.objectProperty=$A;h.objectTypeAnnotation=Ev;h.objectTypeCallProperty=Av;h.objectTypeIndexer=vv;h.objectTypeInternalSlot=Pv;h.objectTypeProperty=Cv;h.objectTypeSpreadProperty=Iv;h.opaqueType=wv;h.optionalCallExpression=F1;h.optionalIndexedAccessType=tC;h.optionalMemberExpression=B1;h.parenthesizedExpression=GA;h.pipelineBareFunction=_C;h.pipelinePrimaryTopicReference=kC;h.pipelineTopicExpression=OC;h.placeholder=SC;h.privateName=K1;h.program=JA;h.qualifiedTypeIdentifier=Nv;h.recordExpression=vC;h.regExpLiteral=bf;h.regexLiteral=$I;h.restElement=Ef;h.restProperty=HI;h.returnStatement=HA;h.sequenceExpression=zA;h.spreadElement=Pf;h.spreadProperty=zI;h.staticBlock=V1;h.stringLiteral=jA;h.stringLiteralTypeAnnotation=Ov;h.stringTypeAnnotation=_v;h.super=w1;h.switchCase=QA;h.switchStatement=ZA;h.symbolTypeAnnotation=kv;h.taggedTemplateExpression=N1;h.templateElement=O1;h.templateLiteral=_1;h.thisExpression=e1;h.thisTypeAnnotation=Dv;h.throwStatement=t1;h.topicReference=NC;h.tryStatement=r1;h.tSAnyKeyword=h.tsAnyKeyword=VC;h.tSArrayType=h.tsArrayType=uI;h.tSAsExpression=h.tsAsExpression=NI;h.tSBigIntKeyword=h.tsBigIntKeyword=JC;h.tSBooleanKeyword=h.tsBooleanKeyword=YC;h.tSCallSignatureDeclaration=h.tsCallSignatureDeclaration=RC;h.tSConditionalType=h.tsConditionalType=yI;h.tSConstructSignatureDeclaration=h.tsConstructSignatureDeclaration=jC;h.tSConstructorType=h.tsConstructorType=sI;h.tSDeclareFunction=h.tsDeclareFunction=MC;h.tSDeclareMethod=h.tsDeclareMethod=BC;h.tSEnumBody=h.tsEnumBody=kI;h.tSEnumDeclaration=h.tsEnumDeclaration=DI;h.tSEnumMember=h.tsEnumMember=LI;h.tSExportAssignment=h.tsExportAssignment=UI;h.tSExpressionWithTypeArguments=h.tsExpressionWithTypeArguments=AI;h.tSExternalModuleReference=h.tsExternalModuleReference=jI;h.tSFunctionType=h.tsFunctionType=iI;h.tSImportEqualsDeclaration=h.tsImportEqualsDeclaration=RI;h.tSImportType=h.tsImportType=FI;h.tSIndexSignature=h.tsIndexSignature=KC;h.tSIndexedAccessType=h.tsIndexedAccessType=gI;h.tSInferType=h.tsInferType=TI;h.tSInstantiationExpression=h.tsInstantiationExpression=wI;h.tSInterfaceBody=h.tsInterfaceBody=CI;h.tSInterfaceDeclaration=h.tsInterfaceDeclaration=vI;h.tSIntersectionType=h.tsIntersectionType=mI;h.tSIntrinsicKeyword=h.tsIntrinsicKeyword=XC;h.tSLiteralType=h.tsLiteralType=PI;h.tSMappedType=h.tsMappedType=bI;h.tSMethodSignature=h.tsMethodSignature=UC;h.tSModuleBlock=h.tsModuleBlock=BI;h.tSModuleDeclaration=h.tsModuleDeclaration=MI;h.tSNamedTupleMember=h.tsNamedTupleMember=hI;h.tSNamespaceExportDeclaration=h.tsNamespaceExportDeclaration=KI;h.tSNeverKeyword=h.tsNeverKeyword=WC;h.tSNonNullExpression=h.tsNonNullExpression=qI;h.tSNullKeyword=h.tsNullKeyword=$C;h.tSNumberKeyword=h.tsNumberKeyword=HC;h.tSObjectKeyword=h.tsObjectKeyword=zC;h.tSOptionalType=h.tsOptionalType=pI;h.tSParameterProperty=h.tsParameterProperty=LC;h.tSParenthesizedType=h.tsParenthesizedType=SI;h.tSPropertySignature=h.tsPropertySignature=qC;h.tSQualifiedName=h.tsQualifiedName=FC;h.tSRestType=h.tsRestType=fI;h.tSSatisfiesExpression=h.tsSatisfiesExpression=OI;h.tSStringKeyword=h.tsStringKeyword=GC;h.tSSymbolKeyword=h.tsSymbolKeyword=QC;h.tSTemplateLiteralType=h.tsTemplateLiteralType=EI;h.tSThisType=h.tsThisType=rI;h.tSTupleType=h.tsTupleType=cI;h.tSTypeAliasDeclaration=h.tsTypeAliasDeclaration=II;h.tSTypeAnnotation=h.tsTypeAnnotation=VI;h.tSTypeAssertion=h.tsTypeAssertion=_I;h.tSTypeLiteral=h.tsTypeLiteral=lI;h.tSTypeOperator=h.tsTypeOperator=xI;h.tSTypeParameter=h.tsTypeParameter=XI;h.tSTypeParameterDeclaration=h.tsTypeParameterDeclaration=JI;h.tSTypeParameterInstantiation=h.tsTypeParameterInstantiation=YI;h.tSTypePredicate=h.tsTypePredicate=aI;h.tSTypeQuery=h.tsTypeQuery=oI;h.tSTypeReference=h.tsTypeReference=nI;h.tSUndefinedKeyword=h.tsUndefinedKeyword=ZC;h.tSUnionType=h.tsUnionType=dI;h.tSUnknownKeyword=h.tsUnknownKeyword=eI;h.tSVoidKeyword=h.tsVoidKeyword=tI;h.tupleExpression=CC;h.tupleTypeAnnotation=Lv;h.typeAlias=Bv;h.typeAnnotation=Fv;h.typeCastExpression=Rv;h.typeParameter=jv;h.typeParameterDeclaration=qv;h.typeParameterInstantiation=Uv;h.typeofTypeAnnotation=Mv;h.unaryExpression=i1;h.unionTypeAnnotation=Kv;h.updateExpression=s1;h.v8IntrinsicIdentifier=xC;h.variableDeclaration=n1;h.variableDeclarator=a1;h.variance=Vv;h.voidPattern=DC;h.voidTypeAnnotation=Yv;h.whileStatement=o1;h.withStatement=l1;h.yieldExpression=k1;var fA=Qs(),nn=Si(),hA=sr(),{validateInternal:p}=fA,{NODE_FIELDS:E}=hA;function dA(e){typeof e=="bigint"&&(e=e.toString());let t={type:"BigIntLiteral",value:e},r=E.BigIntLiteral;return p(r.value,t,"value",e),t}function mA(e=[]){let t={type:"ArrayExpression",elements:e},r=E.ArrayExpression;return p(r.elements,t,"elements",e,1),t}function yA(e,t,r){let i={type:"AssignmentExpression",operator:e,left:t,right:r},s=E.AssignmentExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function TA(e,t,r){let i={type:"BinaryExpression",operator:e,left:t,right:r},s=E.BinaryExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function SA(e){let t={type:"InterpreterDirective",value:e},r=E.InterpreterDirective;return p(r.value,t,"value",e),t}function xA(e){let t={type:"Directive",value:e},r=E.Directive;return p(r.value,t,"value",e,1),t}function gA(e){let t={type:"DirectiveLiteral",value:e},r=E.DirectiveLiteral;return p(r.value,t,"value",e),t}function bA(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},i=E.BlockStatement;return p(i.body,r,"body",e,1),p(i.directives,r,"directives",t,1),r}function EA(e=null){let t={type:"BreakStatement",label:e},r=E.BreakStatement;return p(r.label,t,"label",e,1),t}function PA(e,t){let r={type:"CallExpression",callee:e,arguments:t},i=E.CallExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function AA(e=null,t){let r={type:"CatchClause",param:e,body:t},i=E.CatchClause;return p(i.param,r,"param",e,1),p(i.body,r,"body",t,1),r}function vA(e,t,r){let i={type:"ConditionalExpression",test:e,consequent:t,alternate:r},s=E.ConditionalExpression;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function CA(e=null){let t={type:"ContinueStatement",label:e},r=E.ContinueStatement;return p(r.label,t,"label",e,1),t}function IA(){return{type:"DebuggerStatement"}}function wA(e,t){let r={type:"DoWhileStatement",test:e,body:t},i=E.DoWhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function NA(){return{type:"EmptyStatement"}}function OA(e){let t={type:"ExpressionStatement",expression:e},r=E.ExpressionStatement;return p(r.expression,t,"expression",e,1),t}function _A(e,t=null,r=null){let i={type:"File",program:e,comments:t,tokens:r},s=E.File;return p(s.program,i,"program",e,1),p(s.comments,i,"comments",t,1),p(s.tokens,i,"tokens",r),i}function kA(e,t,r){let i={type:"ForInStatement",left:e,right:t,body:r},s=E.ForInStatement;return p(s.left,i,"left",e,1),p(s.right,i,"right",t,1),p(s.body,i,"body",r,1),i}function DA(e=null,t=null,r=null,i){let s={type:"ForStatement",init:e,test:t,update:r,body:i},n=E.ForStatement;return p(n.init,s,"init",e,1),p(n.test,s,"test",t,1),p(n.update,s,"update",r,1),p(n.body,s,"body",i,1),s}function LA(e=null,t,r,i=!1,s=!1){let n={type:"FunctionDeclaration",id:e,params:t,body:r,generator:i,async:s},a=E.FunctionDeclaration;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function MA(e=null,t,r,i=!1,s=!1){let n={type:"FunctionExpression",id:e,params:t,body:r,generator:i,async:s},a=E.FunctionExpression;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function BA(e){let t={type:"Identifier",name:e},r=E.Identifier;return p(r.name,t,"name",e),t}function FA(e,t,r=null){let i={type:"IfStatement",test:e,consequent:t,alternate:r},s=E.IfStatement;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function RA(e,t){let r={type:"LabeledStatement",label:e,body:t},i=E.LabeledStatement;return p(i.label,r,"label",e,1),p(i.body,r,"body",t,1),r}function jA(e){let t={type:"StringLiteral",value:e},r=E.StringLiteral;return p(r.value,t,"value",e),t}function gf(e){let t={type:"NumericLiteral",value:e},r=E.NumericLiteral;return p(r.value,t,"value",e),t}function qA(){return{type:"NullLiteral"}}function UA(e){let t={type:"BooleanLiteral",value:e},r=E.BooleanLiteral;return p(r.value,t,"value",e),t}function bf(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},i=E.RegExpLiteral;return p(i.pattern,r,"pattern",e),p(i.flags,r,"flags",t),r}function KA(e,t,r){let i={type:"LogicalExpression",operator:e,left:t,right:r},s=E.LogicalExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function VA(e,t,r=!1,i=null){let s={type:"MemberExpression",object:e,property:t,computed:r,optional:i},n=E.MemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function YA(e,t){let r={type:"NewExpression",callee:e,arguments:t},i=E.NewExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function JA(e,t=[],r="script",i=null){let s={type:"Program",body:e,directives:t,sourceType:r,interpreter:i},n=E.Program;return p(n.body,s,"body",e,1),p(n.directives,s,"directives",t,1),p(n.sourceType,s,"sourceType",r),p(n.interpreter,s,"interpreter",i,1),s}function XA(e){let t={type:"ObjectExpression",properties:e},r=E.ObjectExpression;return p(r.properties,t,"properties",e,1),t}function WA(e="method",t,r,i,s=!1,n=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:i,computed:s,generator:n,async:a},l=E.ObjectMethod;return p(l.kind,o,"kind",e),p(l.key,o,"key",t,1),p(l.params,o,"params",r,1),p(l.body,o,"body",i,1),p(l.computed,o,"computed",s),p(l.generator,o,"generator",n),p(l.async,o,"async",a),o}function $A(e,t,r=!1,i=!1,s=null){let n={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:i,decorators:s},a=E.ObjectProperty;return p(a.key,n,"key",e,1),p(a.value,n,"value",t,1),p(a.computed,n,"computed",r),p(a.shorthand,n,"shorthand",i),p(a.decorators,n,"decorators",s,1),n}function Ef(e){let t={type:"RestElement",argument:e},r=E.RestElement;return p(r.argument,t,"argument",e,1),t}function HA(e=null){let t={type:"ReturnStatement",argument:e},r=E.ReturnStatement;return p(r.argument,t,"argument",e,1),t}function zA(e){let t={type:"SequenceExpression",expressions:e},r=E.SequenceExpression;return p(r.expressions,t,"expressions",e,1),t}function GA(e){let t={type:"ParenthesizedExpression",expression:e},r=E.ParenthesizedExpression;return p(r.expression,t,"expression",e,1),t}function QA(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},i=E.SwitchCase;return p(i.test,r,"test",e,1),p(i.consequent,r,"consequent",t,1),r}function ZA(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},i=E.SwitchStatement;return p(i.discriminant,r,"discriminant",e,1),p(i.cases,r,"cases",t,1),r}function e1(){return{type:"ThisExpression"}}function t1(e){let t={type:"ThrowStatement",argument:e},r=E.ThrowStatement;return p(r.argument,t,"argument",e,1),t}function r1(e,t=null,r=null){let i={type:"TryStatement",block:e,handler:t,finalizer:r},s=E.TryStatement;return p(s.block,i,"block",e,1),p(s.handler,i,"handler",t,1),p(s.finalizer,i,"finalizer",r,1),i}function i1(e,t,r=!0){let i={type:"UnaryExpression",operator:e,argument:t,prefix:r},s=E.UnaryExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function s1(e,t,r=!1){let i={type:"UpdateExpression",operator:e,argument:t,prefix:r},s=E.UpdateExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function n1(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},i=E.VariableDeclaration;return p(i.kind,r,"kind",e),p(i.declarations,r,"declarations",t,1),r}function a1(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},i=E.VariableDeclarator;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function o1(e,t){let r={type:"WhileStatement",test:e,body:t},i=E.WhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function l1(e,t){let r={type:"WithStatement",object:e,body:t},i=E.WithStatement;return p(i.object,r,"object",e,1),p(i.body,r,"body",t,1),r}function u1(e,t){let r={type:"AssignmentPattern",left:e,right:t},i=E.AssignmentPattern;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function c1(e){let t={type:"ArrayPattern",elements:e},r=E.ArrayPattern;return p(r.elements,t,"elements",e,1),t}function p1(e,t,r=!1){let i={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},s=E.ArrowFunctionExpression;return p(s.params,i,"params",e,1),p(s.body,i,"body",t,1),p(s.async,i,"async",r),i}function f1(e){let t={type:"ClassBody",body:e},r=E.ClassBody;return p(r.body,t,"body",e,1),t}function h1(e=null,t=null,r,i=null){let s={type:"ClassExpression",id:e,superClass:t,body:r,decorators:i},n=E.ClassExpression;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function d1(e=null,t=null,r,i=null){let s={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:i},n=E.ClassDeclaration;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function m1(e,t=null){let r={type:"ExportAllDeclaration",source:e,attributes:t},i=E.ExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function y1(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=E.ExportDefaultDeclaration;return p(r.declaration,t,"declaration",e,1),t}function T1(e=null,t=[],r=null,i=null){let s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=E.ExportNamedDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function S1(e,t){let r={type:"ExportSpecifier",local:e,exported:t},i=E.ExportSpecifier;return p(i.local,r,"local",e,1),p(i.exported,r,"exported",t,1),r}function x1(e,t,r,i=!1){let s={type:"ForOfStatement",left:e,right:t,body:r,await:i},n=E.ForOfStatement;return p(n.left,s,"left",e,1),p(n.right,s,"right",t,1),p(n.body,s,"body",r,1),p(n.await,s,"await",i),s}function g1(e,t,r=null){let i={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},s=E.ImportDeclaration;return p(s.specifiers,i,"specifiers",e,1),p(s.source,i,"source",t,1),p(s.attributes,i,"attributes",r,1),i}function b1(e){let t={type:"ImportDefaultSpecifier",local:e},r=E.ImportDefaultSpecifier;return p(r.local,t,"local",e,1),t}function E1(e){let t={type:"ImportNamespaceSpecifier",local:e},r=E.ImportNamespaceSpecifier;return p(r.local,t,"local",e,1),t}function P1(e,t){let r={type:"ImportSpecifier",local:e,imported:t},i=E.ImportSpecifier;return p(i.local,r,"local",e,1),p(i.imported,r,"imported",t,1),r}function A1(e,t=null){let r={type:"ImportExpression",source:e,options:t},i=E.ImportExpression;return p(i.source,r,"source",e,1),p(i.options,r,"options",t,1),r}function v1(e,t){let r={type:"MetaProperty",meta:e,property:t},i=E.MetaProperty;return p(i.meta,r,"meta",e,1),p(i.property,r,"property",t,1),r}function C1(e="method",t,r,i,s=!1,n=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:i,computed:s,static:n,generator:a,async:o},c=E.ClassMethod;return p(c.kind,l,"kind",e),p(c.key,l,"key",t,1),p(c.params,l,"params",r,1),p(c.body,l,"body",i,1),p(c.computed,l,"computed",s),p(c.static,l,"static",n),p(c.generator,l,"generator",a),p(c.async,l,"async",o),l}function I1(e){let t={type:"ObjectPattern",properties:e},r=E.ObjectPattern;return p(r.properties,t,"properties",e,1),t}function Pf(e){let t={type:"SpreadElement",argument:e},r=E.SpreadElement;return p(r.argument,t,"argument",e,1),t}function w1(){return{type:"Super"}}function N1(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},i=E.TaggedTemplateExpression;return p(i.tag,r,"tag",e,1),p(i.quasi,r,"quasi",t,1),r}function O1(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},i=E.TemplateElement;return p(i.value,r,"value",e),p(i.tail,r,"tail",t),r}function _1(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},i=E.TemplateLiteral;return p(i.quasis,r,"quasis",e,1),p(i.expressions,r,"expressions",t,1),r}function k1(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},i=E.YieldExpression;return p(i.argument,r,"argument",e,1),p(i.delegate,r,"delegate",t),r}function D1(e){let t={type:"AwaitExpression",argument:e},r=E.AwaitExpression;return p(r.argument,t,"argument",e,1),t}function L1(){return{type:"Import"}}function M1(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=E.ExportNamespaceSpecifier;return p(r.exported,t,"exported",e,1),t}function B1(e,t,r=!1,i){let s={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:i},n=E.OptionalMemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function F1(e,t,r){let i={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},s=E.OptionalCallExpression;return p(s.callee,i,"callee",e,1),p(s.arguments,i,"arguments",t,1),p(s.optional,i,"optional",r),i}function R1(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=E.ClassProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function j1(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=E.ClassAccessorProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function q1(e,t=null,r=null,i=!1){let s={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:i},n=E.ClassPrivateProperty;return p(n.key,s,"key",e,1),p(n.value,s,"value",t,1),p(n.decorators,s,"decorators",r,1),p(n.static,s,"static",i),s}function U1(e="method",t,r,i,s=!1){let n={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:i,static:s},a=E.ClassPrivateMethod;return p(a.kind,n,"kind",e),p(a.key,n,"key",t,1),p(a.params,n,"params",r,1),p(a.body,n,"body",i,1),p(a.static,n,"static",s),n}function K1(e){let t={type:"PrivateName",id:e},r=E.PrivateName;return p(r.id,t,"id",e,1),t}function V1(e){let t={type:"StaticBlock",body:e},r=E.StaticBlock;return p(r.body,t,"body",e,1),t}function Y1(e,t){let r={type:"ImportAttribute",key:e,value:t},i=E.ImportAttribute;return p(i.key,r,"key",e,1),p(i.value,r,"value",t,1),r}function J1(){return{type:"AnyTypeAnnotation"}}function X1(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=E.ArrayTypeAnnotation;return p(r.elementType,t,"elementType",e,1),t}function W1(){return{type:"BooleanTypeAnnotation"}}function $1(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=E.BooleanLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function H1(){return{type:"NullLiteralTypeAnnotation"}}function z1(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},i=E.ClassImplements;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function G1(e,t=null,r=null,i){let s={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:i},n=E.DeclareClass;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function Q1(e){let t={type:"DeclareFunction",id:e},r=E.DeclareFunction;return p(r.id,t,"id",e,1),t}function Z1(e,t=null,r=null,i){let s={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:i},n=E.DeclareInterface;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function ev(e,t,r=null){let i={type:"DeclareModule",id:e,body:t,kind:r},s=E.DeclareModule;return p(s.id,i,"id",e,1),p(s.body,i,"body",t,1),p(s.kind,i,"kind",r),i}function tv(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=E.DeclareModuleExports;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function rv(e,t=null,r){let i={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},s=E.DeclareTypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function iv(e,t=null,r=null){let i={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},s=E.DeclareOpaqueType;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.supertype,i,"supertype",r,1),i}function sv(e){let t={type:"DeclareVariable",id:e},r=E.DeclareVariable;return p(r.id,t,"id",e,1),t}function nv(e=null,t=null,r=null,i=null){let s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=E.DeclareExportDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function av(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},i=E.DeclareExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function ov(e){let t={type:"DeclaredPredicate",value:e},r=E.DeclaredPredicate;return p(r.value,t,"value",e,1),t}function lv(){return{type:"ExistsTypeAnnotation"}}function uv(e=null,t,r=null,i){let s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:i},n=E.FunctionTypeAnnotation;return p(n.typeParameters,s,"typeParameters",e,1),p(n.params,s,"params",t,1),p(n.rest,s,"rest",r,1),p(n.returnType,s,"returnType",i,1),s}function cv(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},i=E.FunctionTypeParam;return p(i.name,r,"name",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function pv(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},i=E.GenericTypeAnnotation;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function fv(){return{type:"InferredPredicate"}}function hv(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},i=E.InterfaceExtends;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function dv(e,t=null,r=null,i){let s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=E.InterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function mv(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},i=E.InterfaceTypeAnnotation;return p(i.extends,r,"extends",e,1),p(i.body,r,"body",t,1),r}function yv(e){let t={type:"IntersectionTypeAnnotation",types:e},r=E.IntersectionTypeAnnotation;return p(r.types,t,"types",e,1),t}function Tv(){return{type:"MixedTypeAnnotation"}}function Sv(){return{type:"EmptyTypeAnnotation"}}function xv(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=E.NullableTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function gv(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=E.NumberLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function bv(){return{type:"NumberTypeAnnotation"}}function Ev(e,t=[],r=[],i=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:i,exact:s},a=E.ObjectTypeAnnotation;return p(a.properties,n,"properties",e,1),p(a.indexers,n,"indexers",t,1),p(a.callProperties,n,"callProperties",r,1),p(a.internalSlots,n,"internalSlots",i,1),p(a.exact,n,"exact",s),n}function Pv(e,t,r,i,s){let n={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:i,method:s},a=E.ObjectTypeInternalSlot;return p(a.id,n,"id",e,1),p(a.value,n,"value",t,1),p(a.optional,n,"optional",r),p(a.static,n,"static",i),p(a.method,n,"method",s),n}function Av(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=E.ObjectTypeCallProperty;return p(r.value,t,"value",e,1),t}function vv(e=null,t,r,i=null){let s={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:i,static:null},n=E.ObjectTypeIndexer;return p(n.id,s,"id",e,1),p(n.key,s,"key",t,1),p(n.value,s,"value",r,1),p(n.variance,s,"variance",i,1),s}function Cv(e,t,r=null){let i={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=E.ObjectTypeProperty;return p(s.key,i,"key",e,1),p(s.value,i,"value",t,1),p(s.variance,i,"variance",r,1),i}function Iv(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=E.ObjectTypeSpreadProperty;return p(r.argument,t,"argument",e,1),t}function wv(e,t=null,r=null,i){let s={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:i},n=E.OpaqueType;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.supertype,s,"supertype",r,1),p(n.impltype,s,"impltype",i,1),s}function Nv(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},i=E.QualifiedTypeIdentifier;return p(i.id,r,"id",e,1),p(i.qualification,r,"qualification",t,1),r}function Ov(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=E.StringLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function _v(){return{type:"StringTypeAnnotation"}}function kv(){return{type:"SymbolTypeAnnotation"}}function Dv(){return{type:"ThisTypeAnnotation"}}function Lv(e){let t={type:"TupleTypeAnnotation",types:e},r=E.TupleTypeAnnotation;return p(r.types,t,"types",e,1),t}function Mv(e){let t={type:"TypeofTypeAnnotation",argument:e},r=E.TypeofTypeAnnotation;return p(r.argument,t,"argument",e,1),t}function Bv(e,t=null,r){let i={type:"TypeAlias",id:e,typeParameters:t,right:r},s=E.TypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function Fv(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=E.TypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function Rv(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},i=E.TypeCastExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function jv(e=null,t=null,r=null){let i={type:"TypeParameter",bound:e,default:t,variance:r,name:null},s=E.TypeParameter;return p(s.bound,i,"bound",e,1),p(s.default,i,"default",t,1),p(s.variance,i,"variance",r,1),i}function qv(e){let t={type:"TypeParameterDeclaration",params:e},r=E.TypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function Uv(e){let t={type:"TypeParameterInstantiation",params:e},r=E.TypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function Kv(e){let t={type:"UnionTypeAnnotation",types:e},r=E.UnionTypeAnnotation;return p(r.types,t,"types",e,1),t}function Vv(e){let t={type:"Variance",kind:e},r=E.Variance;return p(r.kind,t,"kind",e),t}function Yv(){return{type:"VoidTypeAnnotation"}}function Jv(e,t){let r={type:"EnumDeclaration",id:e,body:t},i=E.EnumDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function Xv(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=E.EnumBooleanBody;return p(r.members,t,"members",e,1),t}function Wv(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=E.EnumNumberBody;return p(r.members,t,"members",e,1),t}function $v(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=E.EnumStringBody;return p(r.members,t,"members",e,1),t}function Hv(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=E.EnumSymbolBody;return p(r.members,t,"members",e,1),t}function zv(e){let t={type:"EnumBooleanMember",id:e,init:null},r=E.EnumBooleanMember;return p(r.id,t,"id",e,1),t}function Gv(e,t){let r={type:"EnumNumberMember",id:e,init:t},i=E.EnumNumberMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function Qv(e,t){let r={type:"EnumStringMember",id:e,init:t},i=E.EnumStringMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function Zv(e){let t={type:"EnumDefaultedMember",id:e},r=E.EnumDefaultedMember;return p(r.id,t,"id",e,1),t}function eC(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},i=E.IndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function tC(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},i=E.OptionalIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function rC(e,t=null){let r={type:"JSXAttribute",name:e,value:t},i=E.JSXAttribute;return p(i.name,r,"name",e,1),p(i.value,r,"value",t,1),r}function iC(e){let t={type:"JSXClosingElement",name:e},r=E.JSXClosingElement;return p(r.name,t,"name",e,1),t}function sC(e,t=null,r,i=null){let s={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:i},n=E.JSXElement;return p(n.openingElement,s,"openingElement",e,1),p(n.closingElement,s,"closingElement",t,1),p(n.children,s,"children",r,1),p(n.selfClosing,s,"selfClosing",i),s}function nC(){return{type:"JSXEmptyExpression"}}function aC(e){let t={type:"JSXExpressionContainer",expression:e},r=E.JSXExpressionContainer;return p(r.expression,t,"expression",e,1),t}function oC(e){let t={type:"JSXSpreadChild",expression:e},r=E.JSXSpreadChild;return p(r.expression,t,"expression",e,1),t}function lC(e){let t={type:"JSXIdentifier",name:e},r=E.JSXIdentifier;return p(r.name,t,"name",e),t}function uC(e,t){let r={type:"JSXMemberExpression",object:e,property:t},i=E.JSXMemberExpression;return p(i.object,r,"object",e,1),p(i.property,r,"property",t,1),r}function cC(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},i=E.JSXNamespacedName;return p(i.namespace,r,"namespace",e,1),p(i.name,r,"name",t,1),r}function pC(e,t,r=!1){let i={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},s=E.JSXOpeningElement;return p(s.name,i,"name",e,1),p(s.attributes,i,"attributes",t,1),p(s.selfClosing,i,"selfClosing",r),i}function fC(e){let t={type:"JSXSpreadAttribute",argument:e},r=E.JSXSpreadAttribute;return p(r.argument,t,"argument",e,1),t}function hC(e){let t={type:"JSXText",value:e},r=E.JSXText;return p(r.value,t,"value",e),t}function dC(e,t,r){let i={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},s=E.JSXFragment;return p(s.openingFragment,i,"openingFragment",e,1),p(s.closingFragment,i,"closingFragment",t,1),p(s.children,i,"children",r,1),i}function mC(){return{type:"JSXOpeningFragment"}}function yC(){return{type:"JSXClosingFragment"}}function TC(){return{type:"Noop"}}function SC(e,t){let r={type:"Placeholder",expectedNode:e,name:t},i=E.Placeholder;return p(i.expectedNode,r,"expectedNode",e),p(i.name,r,"name",t,1),r}function xC(e){let t={type:"V8IntrinsicIdentifier",name:e},r=E.V8IntrinsicIdentifier;return p(r.name,t,"name",e),t}function gC(){return{type:"ArgumentPlaceholder"}}function bC(e,t){let r={type:"BindExpression",object:e,callee:t},i=E.BindExpression;return p(i.object,r,"object",e,1),p(i.callee,r,"callee",t,1),r}function EC(e){let t={type:"Decorator",expression:e},r=E.Decorator;return p(r.expression,t,"expression",e,1),t}function PC(e,t=!1){let r={type:"DoExpression",body:e,async:t},i=E.DoExpression;return p(i.body,r,"body",e,1),p(i.async,r,"async",t),r}function AC(e){let t={type:"ExportDefaultSpecifier",exported:e},r=E.ExportDefaultSpecifier;return p(r.exported,t,"exported",e,1),t}function vC(e){let t={type:"RecordExpression",properties:e},r=E.RecordExpression;return p(r.properties,t,"properties",e,1),t}function CC(e=[]){let t={type:"TupleExpression",elements:e},r=E.TupleExpression;return p(r.elements,t,"elements",e,1),t}function IC(e){let t={type:"DecimalLiteral",value:e},r=E.DecimalLiteral;return p(r.value,t,"value",e),t}function wC(e){let t={type:"ModuleExpression",body:e},r=E.ModuleExpression;return p(r.body,t,"body",e,1),t}function NC(){return{type:"TopicReference"}}function OC(e){let t={type:"PipelineTopicExpression",expression:e},r=E.PipelineTopicExpression;return p(r.expression,t,"expression",e,1),t}function _C(e){let t={type:"PipelineBareFunction",callee:e},r=E.PipelineBareFunction;return p(r.callee,t,"callee",e,1),t}function kC(){return{type:"PipelinePrimaryTopicReference"}}function DC(){return{type:"VoidPattern"}}function LC(e){let t={type:"TSParameterProperty",parameter:e},r=E.TSParameterProperty;return p(r.parameter,t,"parameter",e,1),t}function MC(e=null,t=null,r,i=null){let s={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:i},n=E.TSDeclareFunction;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.params,s,"params",r,1),p(n.returnType,s,"returnType",i,1),s}function BC(e=null,t,r=null,i,s=null){let n={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:i,returnType:s},a=E.TSDeclareMethod;return p(a.decorators,n,"decorators",e,1),p(a.key,n,"key",t,1),p(a.typeParameters,n,"typeParameters",r,1),p(a.params,n,"params",i,1),p(a.returnType,n,"returnType",s,1),n}function FC(e,t){let r={type:"TSQualifiedName",left:e,right:t},i=E.TSQualifiedName;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function RC(e=null,t,r=null){let i={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=E.TSCallSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function jC(e=null,t,r=null){let i={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=E.TSConstructSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function qC(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},i=E.TSPropertySignature;return p(i.key,r,"key",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function UC(e,t=null,r,i=null){let s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:i,kind:null},n=E.TSMethodSignature;return p(n.key,s,"key",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.parameters,s,"parameters",r,1),p(n.typeAnnotation,s,"typeAnnotation",i,1),s}function KC(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},i=E.TSIndexSignature;return p(i.parameters,r,"parameters",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function VC(){return{type:"TSAnyKeyword"}}function YC(){return{type:"TSBooleanKeyword"}}function JC(){return{type:"TSBigIntKeyword"}}function XC(){return{type:"TSIntrinsicKeyword"}}function WC(){return{type:"TSNeverKeyword"}}function $C(){return{type:"TSNullKeyword"}}function HC(){return{type:"TSNumberKeyword"}}function zC(){return{type:"TSObjectKeyword"}}function GC(){return{type:"TSStringKeyword"}}function QC(){return{type:"TSSymbolKeyword"}}function ZC(){return{type:"TSUndefinedKeyword"}}function eI(){return{type:"TSUnknownKeyword"}}function tI(){return{type:"TSVoidKeyword"}}function rI(){return{type:"TSThisType"}}function iI(e=null,t,r=null){let i={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},s=E.TSFunctionType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function sI(e=null,t,r=null){let i={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},s=E.TSConstructorType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function nI(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},i=E.TSTypeReference;return p(i.typeName,r,"typeName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function aI(e,t=null,r=null){let i={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},s=E.TSTypePredicate;return p(s.parameterName,i,"parameterName",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.asserts,i,"asserts",r),i}function oI(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},i=E.TSTypeQuery;return p(i.exprName,r,"exprName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function lI(e){let t={type:"TSTypeLiteral",members:e},r=E.TSTypeLiteral;return p(r.members,t,"members",e,1),t}function uI(e){let t={type:"TSArrayType",elementType:e},r=E.TSArrayType;return p(r.elementType,t,"elementType",e,1),t}function cI(e){let t={type:"TSTupleType",elementTypes:e},r=E.TSTupleType;return p(r.elementTypes,t,"elementTypes",e,1),t}function pI(e){let t={type:"TSOptionalType",typeAnnotation:e},r=E.TSOptionalType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function fI(e){let t={type:"TSRestType",typeAnnotation:e},r=E.TSRestType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function hI(e,t,r=!1){let i={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},s=E.TSNamedTupleMember;return p(s.label,i,"label",e,1),p(s.elementType,i,"elementType",t,1),p(s.optional,i,"optional",r),i}function dI(e){let t={type:"TSUnionType",types:e},r=E.TSUnionType;return p(r.types,t,"types",e,1),t}function mI(e){let t={type:"TSIntersectionType",types:e},r=E.TSIntersectionType;return p(r.types,t,"types",e,1),t}function yI(e,t,r,i){let s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:i},n=E.TSConditionalType;return p(n.checkType,s,"checkType",e,1),p(n.extendsType,s,"extendsType",t,1),p(n.trueType,s,"trueType",r,1),p(n.falseType,s,"falseType",i,1),s}function TI(e){let t={type:"TSInferType",typeParameter:e},r=E.TSInferType;return p(r.typeParameter,t,"typeParameter",e,1),t}function SI(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=E.TSParenthesizedType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function xI(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},i=E.TSTypeOperator;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.operator,r,"operator",t),r}function gI(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},i=E.TSIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function bI(e,t=null,r=null){let i={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},s=E.TSMappedType;return p(s.typeParameter,i,"typeParameter",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.nameType,i,"nameType",r,1),i}function EI(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},i=E.TSTemplateLiteralType;return p(i.quasis,r,"quasis",e,1),p(i.types,r,"types",t,1),r}function PI(e){let t={type:"TSLiteralType",literal:e},r=E.TSLiteralType;return p(r.literal,t,"literal",e,1),t}function AI(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},i=E.TSExpressionWithTypeArguments;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function vI(e,t=null,r=null,i){let s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=E.TSInterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function CI(e){let t={type:"TSInterfaceBody",body:e},r=E.TSInterfaceBody;return p(r.body,t,"body",e,1),t}function II(e,t=null,r){let i={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},s=E.TSTypeAliasDeclaration;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function wI(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},i=E.TSInstantiationExpression;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function NI(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},i=E.TSAsExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function OI(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},i=E.TSSatisfiesExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function _I(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},i=E.TSTypeAssertion;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.expression,r,"expression",t,1),r}function kI(e){let t={type:"TSEnumBody",members:e},r=E.TSEnumBody;return p(r.members,t,"members",e,1),t}function DI(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},i=E.TSEnumDeclaration;return p(i.id,r,"id",e,1),p(i.members,r,"members",t,1),r}function LI(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},i=E.TSEnumMember;return p(i.id,r,"id",e,1),p(i.initializer,r,"initializer",t,1),r}function MI(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},i=E.TSModuleDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function BI(e){let t={type:"TSModuleBlock",body:e},r=E.TSModuleBlock;return p(r.body,t,"body",e,1),t}function FI(e,t=null,r=null){let i={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},s=E.TSImportType;return p(s.argument,i,"argument",e,1),p(s.qualifier,i,"qualifier",t,1),p(s.typeParameters,i,"typeParameters",r,1),i}function RI(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},i=E.TSImportEqualsDeclaration;return p(i.id,r,"id",e,1),p(i.moduleReference,r,"moduleReference",t,1),r}function jI(e){let t={type:"TSExternalModuleReference",expression:e},r=E.TSExternalModuleReference;return p(r.expression,t,"expression",e,1),t}function qI(e){let t={type:"TSNonNullExpression",expression:e},r=E.TSNonNullExpression;return p(r.expression,t,"expression",e,1),t}function UI(e){let t={type:"TSExportAssignment",expression:e},r=E.TSExportAssignment;return p(r.expression,t,"expression",e,1),t}function KI(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=E.TSNamespaceExportDeclaration;return p(r.id,t,"id",e,1),t}function VI(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=E.TSTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function YI(e){let t={type:"TSTypeParameterInstantiation",params:e},r=E.TSTypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function JI(e){let t={type:"TSTypeParameterDeclaration",params:e},r=E.TSTypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function XI(e=null,t=null,r){let i={type:"TSTypeParameter",constraint:e,default:t,name:r},s=E.TSTypeParameter;return p(s.constraint,i,"constraint",e,1),p(s.default,i,"default",t,1),p(s.name,i,"name",r),i}function WI(e){return(0,nn.default)("NumberLiteral","NumericLiteral","The node type "),gf(e)}function $I(e,t=""){return(0,nn.default)("RegexLiteral","RegExpLiteral","The node type "),bf(e,t)}function HI(e){return(0,nn.default)("RestProperty","RestElement","The node type "),Ef(e)}function zI(e){return(0,nn.default)("SpreadProperty","SpreadElement","The node type "),Pf(e)}});var Af=I(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.JSXIdentifier=u.JSXFragment=u.JSXExpressionContainer=u.JSXEmptyExpression=u.JSXElement=u.JSXClosingFragment=u.JSXClosingElement=u.JSXAttribute=u.IntersectionTypeAnnotation=u.InterpreterDirective=u.InterfaceTypeAnnotation=u.InterfaceExtends=u.InterfaceDeclaration=u.InferredPredicate=u.IndexedAccessType=u.ImportSpecifier=u.ImportNamespaceSpecifier=u.ImportExpression=u.ImportDefaultSpecifier=u.ImportDeclaration=u.ImportAttribute=u.Import=u.IfStatement=u.Identifier=u.GenericTypeAnnotation=u.FunctionTypeParam=u.FunctionTypeAnnotation=u.FunctionExpression=u.FunctionDeclaration=u.ForStatement=u.ForOfStatement=u.ForInStatement=u.File=u.ExpressionStatement=u.ExportSpecifier=u.ExportNamespaceSpecifier=u.ExportNamedDeclaration=u.ExportDefaultSpecifier=u.ExportDefaultDeclaration=u.ExportAllDeclaration=u.ExistsTypeAnnotation=u.EnumSymbolBody=u.EnumStringMember=u.EnumStringBody=u.EnumNumberMember=u.EnumNumberBody=u.EnumDefaultedMember=u.EnumDeclaration=u.EnumBooleanMember=u.EnumBooleanBody=u.EmptyTypeAnnotation=u.EmptyStatement=u.DoWhileStatement=u.DoExpression=u.DirectiveLiteral=u.Directive=u.Decorator=u.DeclaredPredicate=u.DeclareVariable=u.DeclareTypeAlias=u.DeclareOpaqueType=u.DeclareModuleExports=u.DeclareModule=u.DeclareInterface=u.DeclareFunction=u.DeclareExportDeclaration=u.DeclareExportAllDeclaration=u.DeclareClass=u.DecimalLiteral=u.DebuggerStatement=u.ContinueStatement=u.ConditionalExpression=u.ClassProperty=u.ClassPrivateProperty=u.ClassPrivateMethod=u.ClassMethod=u.ClassImplements=u.ClassExpression=u.ClassDeclaration=u.ClassBody=u.ClassAccessorProperty=u.CatchClause=u.CallExpression=u.BreakStatement=u.BooleanTypeAnnotation=u.BooleanLiteralTypeAnnotation=u.BooleanLiteral=u.BlockStatement=u.BindExpression=u.BinaryExpression=u.BigIntLiteral=u.AwaitExpression=u.AssignmentPattern=u.AssignmentExpression=u.ArrowFunctionExpression=u.ArrayTypeAnnotation=u.ArrayPattern=u.ArrayExpression=u.ArgumentPlaceholder=u.AnyTypeAnnotation=void 0;u.TSNumberKeyword=u.TSNullKeyword=u.TSNonNullExpression=u.TSNeverKeyword=u.TSNamespaceExportDeclaration=u.TSNamedTupleMember=u.TSModuleDeclaration=u.TSModuleBlock=u.TSMethodSignature=u.TSMappedType=u.TSLiteralType=u.TSIntrinsicKeyword=u.TSIntersectionType=u.TSInterfaceDeclaration=u.TSInterfaceBody=u.TSInstantiationExpression=u.TSInferType=u.TSIndexedAccessType=u.TSIndexSignature=u.TSImportType=u.TSImportEqualsDeclaration=u.TSFunctionType=u.TSExternalModuleReference=u.TSExpressionWithTypeArguments=u.TSExportAssignment=u.TSEnumMember=u.TSEnumDeclaration=u.TSEnumBody=u.TSDeclareMethod=u.TSDeclareFunction=u.TSConstructorType=u.TSConstructSignatureDeclaration=u.TSConditionalType=u.TSCallSignatureDeclaration=u.TSBooleanKeyword=u.TSBigIntKeyword=u.TSAsExpression=u.TSArrayType=u.TSAnyKeyword=u.SymbolTypeAnnotation=u.SwitchStatement=u.SwitchCase=u.Super=u.StringTypeAnnotation=u.StringLiteralTypeAnnotation=u.StringLiteral=u.StaticBlock=u.SpreadProperty=u.SpreadElement=u.SequenceExpression=u.ReturnStatement=u.RestProperty=u.RestElement=u.RegexLiteral=u.RegExpLiteral=u.RecordExpression=u.QualifiedTypeIdentifier=u.Program=u.PrivateName=u.Placeholder=u.PipelineTopicExpression=u.PipelinePrimaryTopicReference=u.PipelineBareFunction=u.ParenthesizedExpression=u.OptionalMemberExpression=u.OptionalIndexedAccessType=u.OptionalCallExpression=u.OpaqueType=u.ObjectTypeSpreadProperty=u.ObjectTypeProperty=u.ObjectTypeInternalSlot=u.ObjectTypeIndexer=u.ObjectTypeCallProperty=u.ObjectTypeAnnotation=u.ObjectProperty=u.ObjectPattern=u.ObjectMethod=u.ObjectExpression=u.NumericLiteral=u.NumberTypeAnnotation=u.NumberLiteralTypeAnnotation=u.NumberLiteral=u.NullableTypeAnnotation=u.NullLiteralTypeAnnotation=u.NullLiteral=u.Noop=u.NewExpression=u.ModuleExpression=u.MixedTypeAnnotation=u.MetaProperty=u.MemberExpression=u.LogicalExpression=u.LabeledStatement=u.JSXText=u.JSXSpreadChild=u.JSXSpreadAttribute=u.JSXOpeningFragment=u.JSXOpeningElement=u.JSXNamespacedName=u.JSXMemberExpression=void 0;u.YieldExpression=u.WithStatement=u.WhileStatement=u.VoidTypeAnnotation=u.VoidPattern=u.Variance=u.VariableDeclarator=u.VariableDeclaration=u.V8IntrinsicIdentifier=u.UpdateExpression=u.UnionTypeAnnotation=u.UnaryExpression=u.TypeofTypeAnnotation=u.TypeParameterInstantiation=u.TypeParameterDeclaration=u.TypeParameter=u.TypeCastExpression=u.TypeAnnotation=u.TypeAlias=u.TupleTypeAnnotation=u.TupleExpression=u.TryStatement=u.TopicReference=u.ThrowStatement=u.ThisTypeAnnotation=u.ThisExpression=u.TemplateLiteral=u.TemplateElement=u.TaggedTemplateExpression=u.TSVoidKeyword=u.TSUnknownKeyword=u.TSUnionType=u.TSUndefinedKeyword=u.TSTypeReference=u.TSTypeQuery=u.TSTypePredicate=u.TSTypeParameterInstantiation=u.TSTypeParameterDeclaration=u.TSTypeParameter=u.TSTypeOperator=u.TSTypeLiteral=u.TSTypeAssertion=u.TSTypeAnnotation=u.TSTypeAliasDeclaration=u.TSTupleType=u.TSThisType=u.TSTemplateLiteralType=u.TSSymbolKeyword=u.TSStringKeyword=u.TSSatisfiesExpression=u.TSRestType=u.TSQualifiedName=u.TSPropertySignature=u.TSParenthesizedType=u.TSParameterProperty=u.TSOptionalType=u.TSObjectKeyword=void 0;var ls=So(),WX=Si();function g(e){return ls[e]}var $X=u.ArrayExpression=g("arrayExpression"),HX=u.AssignmentExpression=g("assignmentExpression"),zX=u.BinaryExpression=g("binaryExpression"),GX=u.InterpreterDirective=g("interpreterDirective"),QX=u.Directive=g("directive"),ZX=u.DirectiveLiteral=g("directiveLiteral"),eW=u.BlockStatement=g("blockStatement"),tW=u.BreakStatement=g("breakStatement"),rW=u.CallExpression=g("callExpression"),iW=u.CatchClause=g("catchClause"),sW=u.ConditionalExpression=g("conditionalExpression"),nW=u.ContinueStatement=g("continueStatement"),aW=u.DebuggerStatement=g("debuggerStatement"),oW=u.DoWhileStatement=g("doWhileStatement"),lW=u.EmptyStatement=g("emptyStatement"),uW=u.ExpressionStatement=g("expressionStatement"),cW=u.File=g("file"),pW=u.ForInStatement=g("forInStatement"),fW=u.ForStatement=g("forStatement"),hW=u.FunctionDeclaration=g("functionDeclaration"),dW=u.FunctionExpression=g("functionExpression"),mW=u.Identifier=g("identifier"),yW=u.IfStatement=g("ifStatement"),TW=u.LabeledStatement=g("labeledStatement"),SW=u.StringLiteral=g("stringLiteral"),xW=u.NumericLiteral=g("numericLiteral"),gW=u.NullLiteral=g("nullLiteral"),bW=u.BooleanLiteral=g("booleanLiteral"),EW=u.RegExpLiteral=g("regExpLiteral"),PW=u.LogicalExpression=g("logicalExpression"),AW=u.MemberExpression=g("memberExpression"),vW=u.NewExpression=g("newExpression"),CW=u.Program=g("program"),IW=u.ObjectExpression=g("objectExpression"),wW=u.ObjectMethod=g("objectMethod"),NW=u.ObjectProperty=g("objectProperty"),OW=u.RestElement=g("restElement"),_W=u.ReturnStatement=g("returnStatement"),kW=u.SequenceExpression=g("sequenceExpression"),DW=u.ParenthesizedExpression=g("parenthesizedExpression"),LW=u.SwitchCase=g("switchCase"),MW=u.SwitchStatement=g("switchStatement"),BW=u.ThisExpression=g("thisExpression"),FW=u.ThrowStatement=g("throwStatement"),RW=u.TryStatement=g("tryStatement"),jW=u.UnaryExpression=g("unaryExpression"),qW=u.UpdateExpression=g("updateExpression"),UW=u.VariableDeclaration=g("variableDeclaration"),KW=u.VariableDeclarator=g("variableDeclarator"),VW=u.WhileStatement=g("whileStatement"),YW=u.WithStatement=g("withStatement"),JW=u.AssignmentPattern=g("assignmentPattern"),XW=u.ArrayPattern=g("arrayPattern"),WW=u.ArrowFunctionExpression=g("arrowFunctionExpression"),$W=u.ClassBody=g("classBody"),HW=u.ClassExpression=g("classExpression"),zW=u.ClassDeclaration=g("classDeclaration"),GW=u.ExportAllDeclaration=g("exportAllDeclaration"),QW=u.ExportDefaultDeclaration=g("exportDefaultDeclaration"),ZW=u.ExportNamedDeclaration=g("exportNamedDeclaration"),e$=u.ExportSpecifier=g("exportSpecifier"),t$=u.ForOfStatement=g("forOfStatement"),r$=u.ImportDeclaration=g("importDeclaration"),i$=u.ImportDefaultSpecifier=g("importDefaultSpecifier"),s$=u.ImportNamespaceSpecifier=g("importNamespaceSpecifier"),n$=u.ImportSpecifier=g("importSpecifier"),a$=u.ImportExpression=g("importExpression"),o$=u.MetaProperty=g("metaProperty"),l$=u.ClassMethod=g("classMethod"),u$=u.ObjectPattern=g("objectPattern"),c$=u.SpreadElement=g("spreadElement"),p$=u.Super=g("super"),f$=u.TaggedTemplateExpression=g("taggedTemplateExpression"),h$=u.TemplateElement=g("templateElement"),d$=u.TemplateLiteral=g("templateLiteral"),m$=u.YieldExpression=g("yieldExpression"),y$=u.AwaitExpression=g("awaitExpression"),T$=u.Import=g("import"),S$=u.BigIntLiteral=g("bigIntLiteral"),x$=u.ExportNamespaceSpecifier=g("exportNamespaceSpecifier"),g$=u.OptionalMemberExpression=g("optionalMemberExpression"),b$=u.OptionalCallExpression=g("optionalCallExpression"),E$=u.ClassProperty=g("classProperty"),P$=u.ClassAccessorProperty=g("classAccessorProperty"),A$=u.ClassPrivateProperty=g("classPrivateProperty"),v$=u.ClassPrivateMethod=g("classPrivateMethod"),C$=u.PrivateName=g("privateName"),I$=u.StaticBlock=g("staticBlock"),w$=u.ImportAttribute=g("importAttribute"),N$=u.AnyTypeAnnotation=g("anyTypeAnnotation"),O$=u.ArrayTypeAnnotation=g("arrayTypeAnnotation"),_$=u.BooleanTypeAnnotation=g("booleanTypeAnnotation"),k$=u.BooleanLiteralTypeAnnotation=g("booleanLiteralTypeAnnotation"),D$=u.NullLiteralTypeAnnotation=g("nullLiteralTypeAnnotation"),L$=u.ClassImplements=g("classImplements"),M$=u.DeclareClass=g("declareClass"),B$=u.DeclareFunction=g("declareFunction"),F$=u.DeclareInterface=g("declareInterface"),R$=u.DeclareModule=g("declareModule"),j$=u.DeclareModuleExports=g("declareModuleExports"),q$=u.DeclareTypeAlias=g("declareTypeAlias"),U$=u.DeclareOpaqueType=g("declareOpaqueType"),K$=u.DeclareVariable=g("declareVariable"),V$=u.DeclareExportDeclaration=g("declareExportDeclaration"),Y$=u.DeclareExportAllDeclaration=g("declareExportAllDeclaration"),J$=u.DeclaredPredicate=g("declaredPredicate"),X$=u.ExistsTypeAnnotation=g("existsTypeAnnotation"),W$=u.FunctionTypeAnnotation=g("functionTypeAnnotation"),$$=u.FunctionTypeParam=g("functionTypeParam"),H$=u.GenericTypeAnnotation=g("genericTypeAnnotation"),z$=u.InferredPredicate=g("inferredPredicate"),G$=u.InterfaceExtends=g("interfaceExtends"),Q$=u.InterfaceDeclaration=g("interfaceDeclaration"),Z$=u.InterfaceTypeAnnotation=g("interfaceTypeAnnotation"),eH=u.IntersectionTypeAnnotation=g("intersectionTypeAnnotation"),tH=u.MixedTypeAnnotation=g("mixedTypeAnnotation"),rH=u.EmptyTypeAnnotation=g("emptyTypeAnnotation"),iH=u.NullableTypeAnnotation=g("nullableTypeAnnotation"),sH=u.NumberLiteralTypeAnnotation=g("numberLiteralTypeAnnotation"),nH=u.NumberTypeAnnotation=g("numberTypeAnnotation"),aH=u.ObjectTypeAnnotation=g("objectTypeAnnotation"),oH=u.ObjectTypeInternalSlot=g("objectTypeInternalSlot"),lH=u.ObjectTypeCallProperty=g("objectTypeCallProperty"),uH=u.ObjectTypeIndexer=g("objectTypeIndexer"),cH=u.ObjectTypeProperty=g("objectTypeProperty"),pH=u.ObjectTypeSpreadProperty=g("objectTypeSpreadProperty"),fH=u.OpaqueType=g("opaqueType"),hH=u.QualifiedTypeIdentifier=g("qualifiedTypeIdentifier"),dH=u.StringLiteralTypeAnnotation=g("stringLiteralTypeAnnotation"),mH=u.StringTypeAnnotation=g("stringTypeAnnotation"),yH=u.SymbolTypeAnnotation=g("symbolTypeAnnotation"),TH=u.ThisTypeAnnotation=g("thisTypeAnnotation"),SH=u.TupleTypeAnnotation=g("tupleTypeAnnotation"),xH=u.TypeofTypeAnnotation=g("typeofTypeAnnotation"),gH=u.TypeAlias=g("typeAlias"),bH=u.TypeAnnotation=g("typeAnnotation"),EH=u.TypeCastExpression=g("typeCastExpression"),PH=u.TypeParameter=g("typeParameter"),AH=u.TypeParameterDeclaration=g("typeParameterDeclaration"),vH=u.TypeParameterInstantiation=g("typeParameterInstantiation"),CH=u.UnionTypeAnnotation=g("unionTypeAnnotation"),IH=u.Variance=g("variance"),wH=u.VoidTypeAnnotation=g("voidTypeAnnotation"),NH=u.EnumDeclaration=g("enumDeclaration"),OH=u.EnumBooleanBody=g("enumBooleanBody"),_H=u.EnumNumberBody=g("enumNumberBody"),kH=u.EnumStringBody=g("enumStringBody"),DH=u.EnumSymbolBody=g("enumSymbolBody"),LH=u.EnumBooleanMember=g("enumBooleanMember"),MH=u.EnumNumberMember=g("enumNumberMember"),BH=u.EnumStringMember=g("enumStringMember"),FH=u.EnumDefaultedMember=g("enumDefaultedMember"),RH=u.IndexedAccessType=g("indexedAccessType"),jH=u.OptionalIndexedAccessType=g("optionalIndexedAccessType"),qH=u.JSXAttribute=g("jsxAttribute"),UH=u.JSXClosingElement=g("jsxClosingElement"),KH=u.JSXElement=g("jsxElement"),VH=u.JSXEmptyExpression=g("jsxEmptyExpression"),YH=u.JSXExpressionContainer=g("jsxExpressionContainer"),JH=u.JSXSpreadChild=g("jsxSpreadChild"),XH=u.JSXIdentifier=g("jsxIdentifier"),WH=u.JSXMemberExpression=g("jsxMemberExpression"),$H=u.JSXNamespacedName=g("jsxNamespacedName"),HH=u.JSXOpeningElement=g("jsxOpeningElement"),zH=u.JSXSpreadAttribute=g("jsxSpreadAttribute"),GH=u.JSXText=g("jsxText"),QH=u.JSXFragment=g("jsxFragment"),ZH=u.JSXOpeningFragment=g("jsxOpeningFragment"),ez=u.JSXClosingFragment=g("jsxClosingFragment"),tz=u.Noop=g("noop"),rz=u.Placeholder=g("placeholder"),iz=u.V8IntrinsicIdentifier=g("v8IntrinsicIdentifier"),sz=u.ArgumentPlaceholder=g("argumentPlaceholder"),nz=u.BindExpression=g("bindExpression"),az=u.Decorator=g("decorator"),oz=u.DoExpression=g("doExpression"),lz=u.ExportDefaultSpecifier=g("exportDefaultSpecifier"),uz=u.RecordExpression=g("recordExpression"),cz=u.TupleExpression=g("tupleExpression"),pz=u.DecimalLiteral=g("decimalLiteral"),fz=u.ModuleExpression=g("moduleExpression"),hz=u.TopicReference=g("topicReference"),dz=u.PipelineTopicExpression=g("pipelineTopicExpression"),mz=u.PipelineBareFunction=g("pipelineBareFunction"),yz=u.PipelinePrimaryTopicReference=g("pipelinePrimaryTopicReference"),Tz=u.VoidPattern=g("voidPattern"),Sz=u.TSParameterProperty=g("tsParameterProperty"),xz=u.TSDeclareFunction=g("tsDeclareFunction"),gz=u.TSDeclareMethod=g("tsDeclareMethod"),bz=u.TSQualifiedName=g("tsQualifiedName"),Ez=u.TSCallSignatureDeclaration=g("tsCallSignatureDeclaration"),Pz=u.TSConstructSignatureDeclaration=g("tsConstructSignatureDeclaration"),Az=u.TSPropertySignature=g("tsPropertySignature"),vz=u.TSMethodSignature=g("tsMethodSignature"),Cz=u.TSIndexSignature=g("tsIndexSignature"),Iz=u.TSAnyKeyword=g("tsAnyKeyword"),wz=u.TSBooleanKeyword=g("tsBooleanKeyword"),Nz=u.TSBigIntKeyword=g("tsBigIntKeyword"),Oz=u.TSIntrinsicKeyword=g("tsIntrinsicKeyword"),_z=u.TSNeverKeyword=g("tsNeverKeyword"),kz=u.TSNullKeyword=g("tsNullKeyword"),Dz=u.TSNumberKeyword=g("tsNumberKeyword"),Lz=u.TSObjectKeyword=g("tsObjectKeyword"),Mz=u.TSStringKeyword=g("tsStringKeyword"),Bz=u.TSSymbolKeyword=g("tsSymbolKeyword"),Fz=u.TSUndefinedKeyword=g("tsUndefinedKeyword"),Rz=u.TSUnknownKeyword=g("tsUnknownKeyword"),jz=u.TSVoidKeyword=g("tsVoidKeyword"),qz=u.TSThisType=g("tsThisType"),Uz=u.TSFunctionType=g("tsFunctionType"),Kz=u.TSConstructorType=g("tsConstructorType"),Vz=u.TSTypeReference=g("tsTypeReference"),Yz=u.TSTypePredicate=g("tsTypePredicate"),Jz=u.TSTypeQuery=g("tsTypeQuery"),Xz=u.TSTypeLiteral=g("tsTypeLiteral"),Wz=u.TSArrayType=g("tsArrayType"),$z=u.TSTupleType=g("tsTupleType"),Hz=u.TSOptionalType=g("tsOptionalType"),zz=u.TSRestType=g("tsRestType"),Gz=u.TSNamedTupleMember=g("tsNamedTupleMember"),Qz=u.TSUnionType=g("tsUnionType"),Zz=u.TSIntersectionType=g("tsIntersectionType"),eG=u.TSConditionalType=g("tsConditionalType"),tG=u.TSInferType=g("tsInferType"),rG=u.TSParenthesizedType=g("tsParenthesizedType"),iG=u.TSTypeOperator=g("tsTypeOperator"),sG=u.TSIndexedAccessType=g("tsIndexedAccessType"),nG=u.TSMappedType=g("tsMappedType"),aG=u.TSTemplateLiteralType=g("tsTemplateLiteralType"),oG=u.TSLiteralType=g("tsLiteralType"),lG=u.TSExpressionWithTypeArguments=g("tsExpressionWithTypeArguments"),uG=u.TSInterfaceDeclaration=g("tsInterfaceDeclaration"),cG=u.TSInterfaceBody=g("tsInterfaceBody"),pG=u.TSTypeAliasDeclaration=g("tsTypeAliasDeclaration"),fG=u.TSInstantiationExpression=g("tsInstantiationExpression"),hG=u.TSAsExpression=g("tsAsExpression"),dG=u.TSSatisfiesExpression=g("tsSatisfiesExpression"),mG=u.TSTypeAssertion=g("tsTypeAssertion"),yG=u.TSEnumBody=g("tsEnumBody"),TG=u.TSEnumDeclaration=g("tsEnumDeclaration"),SG=u.TSEnumMember=g("tsEnumMember"),xG=u.TSModuleDeclaration=g("tsModuleDeclaration"),gG=u.TSModuleBlock=g("tsModuleBlock"),bG=u.TSImportType=g("tsImportType"),EG=u.TSImportEqualsDeclaration=g("tsImportEqualsDeclaration"),PG=u.TSExternalModuleReference=g("tsExternalModuleReference"),AG=u.TSNonNullExpression=g("tsNonNullExpression"),vG=u.TSExportAssignment=g("tsExportAssignment"),CG=u.TSNamespaceExportDeclaration=g("tsNamespaceExportDeclaration"),IG=u.TSTypeAnnotation=g("tsTypeAnnotation"),wG=u.TSTypeParameterInstantiation=g("tsTypeParameterInstantiation"),NG=u.TSTypeParameterDeclaration=g("tsTypeParameterDeclaration"),OG=u.TSTypeParameter=g("tsTypeParameter"),_G=u.NumberLiteral=ls.numberLiteral,kG=u.RegexLiteral=ls.regexLiteral,DG=u.RestProperty=ls.restProperty,LG=u.SpreadProperty=ls.spreadProperty});var It=I(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var xo=So();Object.keys(xo).forEach(function(e){e==="default"||e==="__esModule"||e in Nr&&Nr[e]===xo[e]||Object.defineProperty(Nr,e,{enumerable:!0,get:function(){return xo[e]}})});var go=Af();Object.keys(go).forEach(function(e){e==="default"||e==="__esModule"||e in Nr&&Nr[e]===go[e]||Object.defineProperty(Nr,e,{enumerable:!0,get:function(){return go[e]}})})});var vf=I(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.default=ZI;var GI=It(),QI=fe();function ZI(e,t){let r=e.value.split(/\r\n|\n|\r/),i=0;for(let n=0;n<r.length;n++)/[^ \t]/.exec(r[n])&&(i=n);let s="";for(let n=0;n<r.length;n++){let a=r[n],o=n===0,l=n===r.length-1,c=n===i,f=a.replace(/\t/g," ");o||(f=f.replace(/^ +/,"")),l||(f=f.replace(/ +$/,"")),f&&(c||(f+=" "),s+=f)}s&&t.push((0,QI.inherits)((0,GI.stringLiteral)(s),e))}});var Cf=I(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.default=tw;var Eo=He(),ew=vf();function tw(e){let t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0,Eo.isJSXText)(i)){(0,ew.default)(i,t);continue}(0,Eo.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,Eo.isJSXEmptyExpression)(i)&&t.push(i)}return t}});var vo=I(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.default=iw;var rw=Ft();function iw(e){return!!(e&&rw.VISITOR_KEYS[e.type])}});var If=I(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.default=nw;var sw=vo();function nw(e){if(!(0,sw.default)(e)){var t;let r=(t=e?.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var wf=I(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.assertAccessor=vD;m.assertAnyTypeAnnotation=KN;m.assertArgumentPlaceholder=T_;m.assertArrayExpression=ow;m.assertArrayPattern=nN;m.assertArrayTypeAnnotation=VN;m.assertArrowFunctionExpression=aN;m.assertAssignmentExpression=lw;m.assertAssignmentPattern=sN;m.assertAwaitExpression=NN;m.assertBigIntLiteral=_N;m.assertBinary=Xk;m.assertBinaryExpression=uw;m.assertBindExpression=S_;m.assertBlock=Hk;m.assertBlockParent=$k;m.assertBlockStatement=hw;m.assertBooleanLiteral=Lw;m.assertBooleanLiteralTypeAnnotation=JN;m.assertBooleanTypeAnnotation=YN;m.assertBreakStatement=dw;m.assertCallExpression=mw;m.assertCatchClause=yw;m.assertClass=bD;m.assertClassAccessorProperty=BN;m.assertClassBody=oN;m.assertClassDeclaration=uN;m.assertClassExpression=lN;m.assertClassImplements=WN;m.assertClassMethod=bN;m.assertClassPrivateMethod=RN;m.assertClassPrivateProperty=FN;m.assertClassProperty=MN;m.assertCompletionStatement=Qk;m.assertConditional=Zk;m.assertConditionalExpression=Tw;m.assertContinueStatement=Sw;m.assertDebuggerStatement=xw;m.assertDecimalLiteral=A_;m.assertDeclaration=lD;m.assertDeclareClass=$N;m.assertDeclareExportAllDeclaration=iO;m.assertDeclareExportDeclaration=rO;m.assertDeclareFunction=HN;m.assertDeclareInterface=zN;m.assertDeclareModule=GN;m.assertDeclareModuleExports=QN;m.assertDeclareOpaqueType=eO;m.assertDeclareTypeAlias=ZN;m.assertDeclareVariable=tO;m.assertDeclaredPredicate=sO;m.assertDecorator=x_;m.assertDirective=pw;m.assertDirectiveLiteral=fw;m.assertDoExpression=g_;m.assertDoWhileStatement=gw;m.assertEmptyStatement=bw;m.assertEmptyTypeAnnotation=mO;m.assertEnumBody=kD;m.assertEnumBooleanBody=VO;m.assertEnumBooleanMember=WO;m.assertEnumDeclaration=KO;m.assertEnumDefaultedMember=zO;m.assertEnumMember=DD;m.assertEnumNumberBody=YO;m.assertEnumNumberMember=$O;m.assertEnumStringBody=JO;m.assertEnumStringMember=HO;m.assertEnumSymbolBody=XO;m.assertExistsTypeAnnotation=nO;m.assertExportAllDeclaration=cN;m.assertExportDeclaration=PD;m.assertExportDefaultDeclaration=pN;m.assertExportDefaultSpecifier=b_;m.assertExportNamedDeclaration=fN;m.assertExportNamespaceSpecifier=kN;m.assertExportSpecifier=hN;m.assertExpression=Jk;m.assertExpressionStatement=Ew;m.assertExpressionWrapper=rD;m.assertFile=Pw;m.assertFlow=ID;m.assertFlowBaseAnnotation=ND;m.assertFlowDeclaration=OD;m.assertFlowPredicate=_D;m.assertFlowType=wD;m.assertFor=iD;m.assertForInStatement=Aw;m.assertForOfStatement=dN;m.assertForStatement=vw;m.assertForXStatement=sD;m.assertFunction=nD;m.assertFunctionDeclaration=Cw;m.assertFunctionExpression=Iw;m.assertFunctionParameter=uD;m.assertFunctionParent=aD;m.assertFunctionTypeAnnotation=aO;m.assertFunctionTypeParam=oO;m.assertGenericTypeAnnotation=lO;m.assertIdentifier=ww;m.assertIfStatement=Nw;m.assertImmutable=dD;m.assertImport=ON;m.assertImportAttribute=UN;m.assertImportDeclaration=mN;m.assertImportDefaultSpecifier=yN;m.assertImportExpression=xN;m.assertImportNamespaceSpecifier=TN;m.assertImportOrExportDeclaration=ED;m.assertImportSpecifier=SN;m.assertIndexedAccessType=GO;m.assertInferredPredicate=uO;m.assertInterfaceDeclaration=pO;m.assertInterfaceExtends=cO;m.assertInterfaceTypeAnnotation=fO;m.assertInterpreterDirective=cw;m.assertIntersectionTypeAnnotation=hO;m.assertJSX=LD;m.assertJSXAttribute=ZO;m.assertJSXClosingElement=e_;m.assertJSXClosingFragment=h_;m.assertJSXElement=t_;m.assertJSXEmptyExpression=r_;m.assertJSXExpressionContainer=i_;m.assertJSXFragment=p_;m.assertJSXIdentifier=n_;m.assertJSXMemberExpression=a_;m.assertJSXNamespacedName=o_;m.assertJSXOpeningElement=l_;m.assertJSXOpeningFragment=f_;m.assertJSXSpreadAttribute=u_;m.assertJSXSpreadChild=s_;m.assertJSXText=c_;m.assertLVal=pD;m.assertLabeledStatement=Ow;m.assertLiteral=hD;m.assertLogicalExpression=Bw;m.assertLoop=eD;m.assertMemberExpression=Fw;m.assertMetaProperty=gN;m.assertMethod=yD;m.assertMiscellaneous=MD;m.assertMixedTypeAnnotation=dO;m.assertModuleDeclaration=YD;m.assertModuleExpression=v_;m.assertModuleSpecifier=AD;m.assertNewExpression=Rw;m.assertNoop=d_;m.assertNullLiteral=Dw;m.assertNullLiteralTypeAnnotation=XN;m.assertNullableTypeAnnotation=yO;m.assertNumberLiteral=qD;m.assertNumberLiteralTypeAnnotation=TO;m.assertNumberTypeAnnotation=SO;m.assertNumericLiteral=kw;m.assertObjectExpression=qw;m.assertObjectMember=TD;m.assertObjectMethod=Uw;m.assertObjectPattern=EN;m.assertObjectProperty=Kw;m.assertObjectTypeAnnotation=xO;m.assertObjectTypeCallProperty=bO;m.assertObjectTypeIndexer=EO;m.assertObjectTypeInternalSlot=gO;m.assertObjectTypeProperty=PO;m.assertObjectTypeSpreadProperty=AO;m.assertOpaqueType=vO;m.assertOptionalCallExpression=LN;m.assertOptionalIndexedAccessType=QO;m.assertOptionalMemberExpression=DN;m.assertParenthesizedExpression=Xw;m.assertPattern=gD;m.assertPatternLike=cD;m.assertPipelineBareFunction=w_;m.assertPipelinePrimaryTopicReference=N_;m.assertPipelineTopicExpression=I_;m.assertPlaceholder=m_;m.assertPrivate=CD;m.assertPrivateName=jN;m.assertProgram=jw;m.assertProperty=SD;m.assertPureish=oD;m.assertQualifiedTypeIdentifier=CO;m.assertRecordExpression=E_;m.assertRegExpLiteral=Mw;m.assertRegexLiteral=UD;m.assertRestElement=Vw;m.assertRestProperty=KD;m.assertReturnStatement=Yw;m.assertScopable=Wk;m.assertSequenceExpression=Jw;m.assertSpreadElement=PN;m.assertSpreadProperty=VD;m.assertStandardized=Yk;m.assertStatement=zk;m.assertStaticBlock=qN;m.assertStringLiteral=_w;m.assertStringLiteralTypeAnnotation=IO;m.assertStringTypeAnnotation=wO;m.assertSuper=AN;m.assertSwitchCase=Ww;m.assertSwitchStatement=$w;m.assertSymbolTypeAnnotation=NO;m.assertTSAnyKeyword=q_;m.assertTSArrayType=ak;m.assertTSAsExpression=Ck;m.assertTSBaseType=jD;m.assertTSBigIntKeyword=K_;m.assertTSBooleanKeyword=U_;m.assertTSCallSignatureDeclaration=M_;m.assertTSConditionalType=hk;m.assertTSConstructSignatureDeclaration=B_;m.assertTSConstructorType=tk;m.assertTSDeclareFunction=k_;m.assertTSDeclareMethod=D_;m.assertTSEntityName=fD;m.assertTSEnumBody=Nk;m.assertTSEnumDeclaration=Ok;m.assertTSEnumMember=_k;m.assertTSExportAssignment=Rk;m.assertTSExpressionWithTypeArguments=bk;m.assertTSExternalModuleReference=Bk;m.assertTSFunctionType=ek;m.assertTSImportEqualsDeclaration=Mk;m.assertTSImportType=Lk;m.assertTSIndexSignature=j_;m.assertTSIndexedAccessType=Tk;m.assertTSInferType=dk;m.assertTSInstantiationExpression=vk;m.assertTSInterfaceBody=Pk;m.assertTSInterfaceDeclaration=Ek;m.assertTSIntersectionType=fk;m.assertTSIntrinsicKeyword=V_;m.assertTSLiteralType=gk;m.assertTSMappedType=Sk;m.assertTSMethodSignature=R_;m.assertTSModuleBlock=Dk;m.assertTSModuleDeclaration=kk;m.assertTSNamedTupleMember=ck;m.assertTSNamespaceExportDeclaration=jk;m.assertTSNeverKeyword=Y_;m.assertTSNonNullExpression=Fk;m.assertTSNullKeyword=J_;m.assertTSNumberKeyword=X_;m.assertTSObjectKeyword=W_;m.assertTSOptionalType=lk;m.assertTSParameterProperty=__;m.assertTSParenthesizedType=mk;m.assertTSPropertySignature=F_;m.assertTSQualifiedName=L_;m.assertTSRestType=uk;m.assertTSSatisfiesExpression=Ik;m.assertTSStringKeyword=$_;m.assertTSSymbolKeyword=H_;m.assertTSTemplateLiteralType=xk;m.assertTSThisType=Z_;m.assertTSTupleType=ok;m.assertTSType=RD;m.assertTSTypeAliasDeclaration=Ak;m.assertTSTypeAnnotation=qk;m.assertTSTypeAssertion=wk;m.assertTSTypeElement=FD;m.assertTSTypeLiteral=nk;m.assertTSTypeOperator=yk;m.assertTSTypeParameter=Vk;m.assertTSTypeParameterDeclaration=Kk;m.assertTSTypeParameterInstantiation=Uk;m.assertTSTypePredicate=ik;m.assertTSTypeQuery=sk;m.assertTSTypeReference=rk;m.assertTSUndefinedKeyword=z_;m.assertTSUnionType=pk;m.assertTSUnknownKeyword=G_;m.assertTSVoidKeyword=Q_;m.assertTaggedTemplateExpression=vN;m.assertTemplateElement=CN;m.assertTemplateLiteral=IN;m.assertTerminatorless=Gk;m.assertThisExpression=Hw;m.assertThisTypeAnnotation=OO;m.assertThrowStatement=zw;m.assertTopicReference=C_;m.assertTryStatement=Gw;m.assertTupleExpression=P_;m.assertTupleTypeAnnotation=_O;m.assertTypeAlias=DO;m.assertTypeAnnotation=LO;m.assertTypeCastExpression=MO;m.assertTypeParameter=BO;m.assertTypeParameterDeclaration=FO;m.assertTypeParameterInstantiation=RO;m.assertTypeScript=BD;m.assertTypeofTypeAnnotation=kO;m.assertUnaryExpression=Qw;m.assertUnaryLike=xD;m.assertUnionTypeAnnotation=jO;m.assertUpdateExpression=Zw;m.assertUserWhitespacable=mD;m.assertV8IntrinsicIdentifier=y_;m.assertVariableDeclaration=eN;m.assertVariableDeclarator=tN;m.assertVariance=qO;m.assertVoidPattern=O_;m.assertVoidTypeAnnotation=UO;m.assertWhile=tD;m.assertWhileStatement=rN;m.assertWithStatement=iN;m.assertYieldExpression=wN;var aw=xi(),us=Si();function y(e,t,r){if(!(0,aw.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function ow(e,t){y("ArrayExpression",e,t)}function lw(e,t){y("AssignmentExpression",e,t)}function uw(e,t){y("BinaryExpression",e,t)}function cw(e,t){y("InterpreterDirective",e,t)}function pw(e,t){y("Directive",e,t)}function fw(e,t){y("DirectiveLiteral",e,t)}function hw(e,t){y("BlockStatement",e,t)}function dw(e,t){y("BreakStatement",e,t)}function mw(e,t){y("CallExpression",e,t)}function yw(e,t){y("CatchClause",e,t)}function Tw(e,t){y("ConditionalExpression",e,t)}function Sw(e,t){y("ContinueStatement",e,t)}function xw(e,t){y("DebuggerStatement",e,t)}function gw(e,t){y("DoWhileStatement",e,t)}function bw(e,t){y("EmptyStatement",e,t)}function Ew(e,t){y("ExpressionStatement",e,t)}function Pw(e,t){y("File",e,t)}function Aw(e,t){y("ForInStatement",e,t)}function vw(e,t){y("ForStatement",e,t)}function Cw(e,t){y("FunctionDeclaration",e,t)}function Iw(e,t){y("FunctionExpression",e,t)}function ww(e,t){y("Identifier",e,t)}function Nw(e,t){y("IfStatement",e,t)}function Ow(e,t){y("LabeledStatement",e,t)}function _w(e,t){y("StringLiteral",e,t)}function kw(e,t){y("NumericLiteral",e,t)}function Dw(e,t){y("NullLiteral",e,t)}function Lw(e,t){y("BooleanLiteral",e,t)}function Mw(e,t){y("RegExpLiteral",e,t)}function Bw(e,t){y("LogicalExpression",e,t)}function Fw(e,t){y("MemberExpression",e,t)}function Rw(e,t){y("NewExpression",e,t)}function jw(e,t){y("Program",e,t)}function qw(e,t){y("ObjectExpression",e,t)}function Uw(e,t){y("ObjectMethod",e,t)}function Kw(e,t){y("ObjectProperty",e,t)}function Vw(e,t){y("RestElement",e,t)}function Yw(e,t){y("ReturnStatement",e,t)}function Jw(e,t){y("SequenceExpression",e,t)}function Xw(e,t){y("ParenthesizedExpression",e,t)}function Ww(e,t){y("SwitchCase",e,t)}function $w(e,t){y("SwitchStatement",e,t)}function Hw(e,t){y("ThisExpression",e,t)}function zw(e,t){y("ThrowStatement",e,t)}function Gw(e,t){y("TryStatement",e,t)}function Qw(e,t){y("UnaryExpression",e,t)}function Zw(e,t){y("UpdateExpression",e,t)}function eN(e,t){y("VariableDeclaration",e,t)}function tN(e,t){y("VariableDeclarator",e,t)}function rN(e,t){y("WhileStatement",e,t)}function iN(e,t){y("WithStatement",e,t)}function sN(e,t){y("AssignmentPattern",e,t)}function nN(e,t){y("ArrayPattern",e,t)}function aN(e,t){y("ArrowFunctionExpression",e,t)}function oN(e,t){y("ClassBody",e,t)}function lN(e,t){y("ClassExpression",e,t)}function uN(e,t){y("ClassDeclaration",e,t)}function cN(e,t){y("ExportAllDeclaration",e,t)}function pN(e,t){y("ExportDefaultDeclaration",e,t)}function fN(e,t){y("ExportNamedDeclaration",e,t)}function hN(e,t){y("ExportSpecifier",e,t)}function dN(e,t){y("ForOfStatement",e,t)}function mN(e,t){y("ImportDeclaration",e,t)}function yN(e,t){y("ImportDefaultSpecifier",e,t)}function TN(e,t){y("ImportNamespaceSpecifier",e,t)}function SN(e,t){y("ImportSpecifier",e,t)}function xN(e,t){y("ImportExpression",e,t)}function gN(e,t){y("MetaProperty",e,t)}function bN(e,t){y("ClassMethod",e,t)}function EN(e,t){y("ObjectPattern",e,t)}function PN(e,t){y("SpreadElement",e,t)}function AN(e,t){y("Super",e,t)}function vN(e,t){y("TaggedTemplateExpression",e,t)}function CN(e,t){y("TemplateElement",e,t)}function IN(e,t){y("TemplateLiteral",e,t)}function wN(e,t){y("YieldExpression",e,t)}function NN(e,t){y("AwaitExpression",e,t)}function ON(e,t){y("Import",e,t)}function _N(e,t){y("BigIntLiteral",e,t)}function kN(e,t){y("ExportNamespaceSpecifier",e,t)}function DN(e,t){y("OptionalMemberExpression",e,t)}function LN(e,t){y("OptionalCallExpression",e,t)}function MN(e,t){y("ClassProperty",e,t)}function BN(e,t){y("ClassAccessorProperty",e,t)}function FN(e,t){y("ClassPrivateProperty",e,t)}function RN(e,t){y("ClassPrivateMethod",e,t)}function jN(e,t){y("PrivateName",e,t)}function qN(e,t){y("StaticBlock",e,t)}function UN(e,t){y("ImportAttribute",e,t)}function KN(e,t){y("AnyTypeAnnotation",e,t)}function VN(e,t){y("ArrayTypeAnnotation",e,t)}function YN(e,t){y("BooleanTypeAnnotation",e,t)}function JN(e,t){y("BooleanLiteralTypeAnnotation",e,t)}function XN(e,t){y("NullLiteralTypeAnnotation",e,t)}function WN(e,t){y("ClassImplements",e,t)}function $N(e,t){y("DeclareClass",e,t)}function HN(e,t){y("DeclareFunction",e,t)}function zN(e,t){y("DeclareInterface",e,t)}function GN(e,t){y("DeclareModule",e,t)}function QN(e,t){y("DeclareModuleExports",e,t)}function ZN(e,t){y("DeclareTypeAlias",e,t)}function eO(e,t){y("DeclareOpaqueType",e,t)}function tO(e,t){y("DeclareVariable",e,t)}function rO(e,t){y("DeclareExportDeclaration",e,t)}function iO(e,t){y("DeclareExportAllDeclaration",e,t)}function sO(e,t){y("DeclaredPredicate",e,t)}function nO(e,t){y("ExistsTypeAnnotation",e,t)}function aO(e,t){y("FunctionTypeAnnotation",e,t)}function oO(e,t){y("FunctionTypeParam",e,t)}function lO(e,t){y("GenericTypeAnnotation",e,t)}function uO(e,t){y("InferredPredicate",e,t)}function cO(e,t){y("InterfaceExtends",e,t)}function pO(e,t){y("InterfaceDeclaration",e,t)}function fO(e,t){y("InterfaceTypeAnnotation",e,t)}function hO(e,t){y("IntersectionTypeAnnotation",e,t)}function dO(e,t){y("MixedTypeAnnotation",e,t)}function mO(e,t){y("EmptyTypeAnnotation",e,t)}function yO(e,t){y("NullableTypeAnnotation",e,t)}function TO(e,t){y("NumberLiteralTypeAnnotation",e,t)}function SO(e,t){y("NumberTypeAnnotation",e,t)}function xO(e,t){y("ObjectTypeAnnotation",e,t)}function gO(e,t){y("ObjectTypeInternalSlot",e,t)}function bO(e,t){y("ObjectTypeCallProperty",e,t)}function EO(e,t){y("ObjectTypeIndexer",e,t)}function PO(e,t){y("ObjectTypeProperty",e,t)}function AO(e,t){y("ObjectTypeSpreadProperty",e,t)}function vO(e,t){y("OpaqueType",e,t)}function CO(e,t){y("QualifiedTypeIdentifier",e,t)}function IO(e,t){y("StringLiteralTypeAnnotation",e,t)}function wO(e,t){y("StringTypeAnnotation",e,t)}function NO(e,t){y("SymbolTypeAnnotation",e,t)}function OO(e,t){y("ThisTypeAnnotation",e,t)}function _O(e,t){y("TupleTypeAnnotation",e,t)}function kO(e,t){y("TypeofTypeAnnotation",e,t)}function DO(e,t){y("TypeAlias",e,t)}function LO(e,t){y("TypeAnnotation",e,t)}function MO(e,t){y("TypeCastExpression",e,t)}function BO(e,t){y("TypeParameter",e,t)}function FO(e,t){y("TypeParameterDeclaration",e,t)}function RO(e,t){y("TypeParameterInstantiation",e,t)}function jO(e,t){y("UnionTypeAnnotation",e,t)}function qO(e,t){y("Variance",e,t)}function UO(e,t){y("VoidTypeAnnotation",e,t)}function KO(e,t){y("EnumDeclaration",e,t)}function VO(e,t){y("EnumBooleanBody",e,t)}function YO(e,t){y("EnumNumberBody",e,t)}function JO(e,t){y("EnumStringBody",e,t)}function XO(e,t){y("EnumSymbolBody",e,t)}function WO(e,t){y("EnumBooleanMember",e,t)}function $O(e,t){y("EnumNumberMember",e,t)}function HO(e,t){y("EnumStringMember",e,t)}function zO(e,t){y("EnumDefaultedMember",e,t)}function GO(e,t){y("IndexedAccessType",e,t)}function QO(e,t){y("OptionalIndexedAccessType",e,t)}function ZO(e,t){y("JSXAttribute",e,t)}function e_(e,t){y("JSXClosingElement",e,t)}function t_(e,t){y("JSXElement",e,t)}function r_(e,t){y("JSXEmptyExpression",e,t)}function i_(e,t){y("JSXExpressionContainer",e,t)}function s_(e,t){y("JSXSpreadChild",e,t)}function n_(e,t){y("JSXIdentifier",e,t)}function a_(e,t){y("JSXMemberExpression",e,t)}function o_(e,t){y("JSXNamespacedName",e,t)}function l_(e,t){y("JSXOpeningElement",e,t)}function u_(e,t){y("JSXSpreadAttribute",e,t)}function c_(e,t){y("JSXText",e,t)}function p_(e,t){y("JSXFragment",e,t)}function f_(e,t){y("JSXOpeningFragment",e,t)}function h_(e,t){y("JSXClosingFragment",e,t)}function d_(e,t){y("Noop",e,t)}function m_(e,t){y("Placeholder",e,t)}function y_(e,t){y("V8IntrinsicIdentifier",e,t)}function T_(e,t){y("ArgumentPlaceholder",e,t)}function S_(e,t){y("BindExpression",e,t)}function x_(e,t){y("Decorator",e,t)}function g_(e,t){y("DoExpression",e,t)}function b_(e,t){y("ExportDefaultSpecifier",e,t)}function E_(e,t){y("RecordExpression",e,t)}function P_(e,t){y("TupleExpression",e,t)}function A_(e,t){y("DecimalLiteral",e,t)}function v_(e,t){y("ModuleExpression",e,t)}function C_(e,t){y("TopicReference",e,t)}function I_(e,t){y("PipelineTopicExpression",e,t)}function w_(e,t){y("PipelineBareFunction",e,t)}function N_(e,t){y("PipelinePrimaryTopicReference",e,t)}function O_(e,t){y("VoidPattern",e,t)}function __(e,t){y("TSParameterProperty",e,t)}function k_(e,t){y("TSDeclareFunction",e,t)}function D_(e,t){y("TSDeclareMethod",e,t)}function L_(e,t){y("TSQualifiedName",e,t)}function M_(e,t){y("TSCallSignatureDeclaration",e,t)}function B_(e,t){y("TSConstructSignatureDeclaration",e,t)}function F_(e,t){y("TSPropertySignature",e,t)}function R_(e,t){y("TSMethodSignature",e,t)}function j_(e,t){y("TSIndexSignature",e,t)}function q_(e,t){y("TSAnyKeyword",e,t)}function U_(e,t){y("TSBooleanKeyword",e,t)}function K_(e,t){y("TSBigIntKeyword",e,t)}function V_(e,t){y("TSIntrinsicKeyword",e,t)}function Y_(e,t){y("TSNeverKeyword",e,t)}function J_(e,t){y("TSNullKeyword",e,t)}function X_(e,t){y("TSNumberKeyword",e,t)}function W_(e,t){y("TSObjectKeyword",e,t)}function $_(e,t){y("TSStringKeyword",e,t)}function H_(e,t){y("TSSymbolKeyword",e,t)}function z_(e,t){y("TSUndefinedKeyword",e,t)}function G_(e,t){y("TSUnknownKeyword",e,t)}function Q_(e,t){y("TSVoidKeyword",e,t)}function Z_(e,t){y("TSThisType",e,t)}function ek(e,t){y("TSFunctionType",e,t)}function tk(e,t){y("TSConstructorType",e,t)}function rk(e,t){y("TSTypeReference",e,t)}function ik(e,t){y("TSTypePredicate",e,t)}function sk(e,t){y("TSTypeQuery",e,t)}function nk(e,t){y("TSTypeLiteral",e,t)}function ak(e,t){y("TSArrayType",e,t)}function ok(e,t){y("TSTupleType",e,t)}function lk(e,t){y("TSOptionalType",e,t)}function uk(e,t){y("TSRestType",e,t)}function ck(e,t){y("TSNamedTupleMember",e,t)}function pk(e,t){y("TSUnionType",e,t)}function fk(e,t){y("TSIntersectionType",e,t)}function hk(e,t){y("TSConditionalType",e,t)}function dk(e,t){y("TSInferType",e,t)}function mk(e,t){y("TSParenthesizedType",e,t)}function yk(e,t){y("TSTypeOperator",e,t)}function Tk(e,t){y("TSIndexedAccessType",e,t)}function Sk(e,t){y("TSMappedType",e,t)}function xk(e,t){y("TSTemplateLiteralType",e,t)}function gk(e,t){y("TSLiteralType",e,t)}function bk(e,t){y("TSExpressionWithTypeArguments",e,t)}function Ek(e,t){y("TSInterfaceDeclaration",e,t)}function Pk(e,t){y("TSInterfaceBody",e,t)}function Ak(e,t){y("TSTypeAliasDeclaration",e,t)}function vk(e,t){y("TSInstantiationExpression",e,t)}function Ck(e,t){y("TSAsExpression",e,t)}function Ik(e,t){y("TSSatisfiesExpression",e,t)}function wk(e,t){y("TSTypeAssertion",e,t)}function Nk(e,t){y("TSEnumBody",e,t)}function Ok(e,t){y("TSEnumDeclaration",e,t)}function _k(e,t){y("TSEnumMember",e,t)}function kk(e,t){y("TSModuleDeclaration",e,t)}function Dk(e,t){y("TSModuleBlock",e,t)}function Lk(e,t){y("TSImportType",e,t)}function Mk(e,t){y("TSImportEqualsDeclaration",e,t)}function Bk(e,t){y("TSExternalModuleReference",e,t)}function Fk(e,t){y("TSNonNullExpression",e,t)}function Rk(e,t){y("TSExportAssignment",e,t)}function jk(e,t){y("TSNamespaceExportDeclaration",e,t)}function qk(e,t){y("TSTypeAnnotation",e,t)}function Uk(e,t){y("TSTypeParameterInstantiation",e,t)}function Kk(e,t){y("TSTypeParameterDeclaration",e,t)}function Vk(e,t){y("TSTypeParameter",e,t)}function Yk(e,t){y("Standardized",e,t)}function Jk(e,t){y("Expression",e,t)}function Xk(e,t){y("Binary",e,t)}function Wk(e,t){y("Scopable",e,t)}function $k(e,t){y("BlockParent",e,t)}function Hk(e,t){y("Block",e,t)}function zk(e,t){y("Statement",e,t)}function Gk(e,t){y("Terminatorless",e,t)}function Qk(e,t){y("CompletionStatement",e,t)}function Zk(e,t){y("Conditional",e,t)}function eD(e,t){y("Loop",e,t)}function tD(e,t){y("While",e,t)}function rD(e,t){y("ExpressionWrapper",e,t)}function iD(e,t){y("For",e,t)}function sD(e,t){y("ForXStatement",e,t)}function nD(e,t){y("Function",e,t)}function aD(e,t){y("FunctionParent",e,t)}function oD(e,t){y("Pureish",e,t)}function lD(e,t){y("Declaration",e,t)}function uD(e,t){y("FunctionParameter",e,t)}function cD(e,t){y("PatternLike",e,t)}function pD(e,t){y("LVal",e,t)}function fD(e,t){y("TSEntityName",e,t)}function hD(e,t){y("Literal",e,t)}function dD(e,t){y("Immutable",e,t)}function mD(e,t){y("UserWhitespacable",e,t)}function yD(e,t){y("Method",e,t)}function TD(e,t){y("ObjectMember",e,t)}function SD(e,t){y("Property",e,t)}function xD(e,t){y("UnaryLike",e,t)}function gD(e,t){y("Pattern",e,t)}function bD(e,t){y("Class",e,t)}function ED(e,t){y("ImportOrExportDeclaration",e,t)}function PD(e,t){y("ExportDeclaration",e,t)}function AD(e,t){y("ModuleSpecifier",e,t)}function vD(e,t){y("Accessor",e,t)}function CD(e,t){y("Private",e,t)}function ID(e,t){y("Flow",e,t)}function wD(e,t){y("FlowType",e,t)}function ND(e,t){y("FlowBaseAnnotation",e,t)}function OD(e,t){y("FlowDeclaration",e,t)}function _D(e,t){y("FlowPredicate",e,t)}function kD(e,t){y("EnumBody",e,t)}function DD(e,t){y("EnumMember",e,t)}function LD(e,t){y("JSX",e,t)}function MD(e,t){y("Miscellaneous",e,t)}function BD(e,t){y("TypeScript",e,t)}function FD(e,t){y("TSTypeElement",e,t)}function RD(e,t){y("TSType",e,t)}function jD(e,t){y("TSBaseType",e,t)}function qD(e,t){(0,us.default)("assertNumberLiteral","assertNumericLiteral"),y("NumberLiteral",e,t)}function UD(e,t){(0,us.default)("assertRegexLiteral","assertRegExpLiteral"),y("RegexLiteral",e,t)}function KD(e,t){(0,us.default)("assertRestProperty","assertRestElement"),y("RestProperty",e,t)}function VD(e,t){(0,us.default)("assertSpreadProperty","assertSpreadElement"),y("SpreadProperty",e,t)}function YD(e,t){(0,us.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),y("ModuleDeclaration",e,t)}});var Nf=I(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=void 0;var $t=It(),KG=an.default=JD;function JD(e){switch(e){case"string":return(0,$t.stringTypeAnnotation)();case"number":return(0,$t.numberTypeAnnotation)();case"undefined":return(0,$t.voidTypeAnnotation)();case"boolean":return(0,$t.booleanTypeAnnotation)();case"function":return(0,$t.genericTypeAnnotation)((0,$t.identifier)("Function"));case"object":return(0,$t.genericTypeAnnotation)((0,$t.identifier)("Object"));case"symbol":return(0,$t.genericTypeAnnotation)((0,$t.identifier)("Symbol"));case"bigint":return(0,$t.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var wo=I(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.default=_f;var cs=He();function Of(e){return(0,cs.isIdentifier)(e)?e.name:`${e.id.name}.${Of(e.qualification)}`}function _f(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!n.includes(o)){if((0,cs.isAnyTypeAnnotation)(o))return[o];if((0,cs.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,cs.isUnionTypeAnnotation)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}if((0,cs.isGenericTypeAnnotation)(o)){let l=Of(o.id);if(r.has(l)){let c=r.get(l);c.typeParameters?o.typeParameters&&(c.typeParameters.params.push(...o.typeParameters.params),c.typeParameters.params=_f(c.typeParameters.params)):c=o.typeParameters}else r.set(l,o);continue}n.push(o)}}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var kf=I(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.default=$D;var XD=It(),WD=wo();function $D(e){let t=(0,WD.default)(e);return t.length===1?t[0]:(0,XD.unionTypeAnnotation)(t)}});var Mf=I(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=Lf;var Ci=He();function Df(e){return(0,Ci.isIdentifier)(e)?e.name:(0,Ci.isThisExpression)(e)?"this":`${e.right.name}.${Df(e.left)}`}function Lf(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o||n.includes(o))continue;if((0,Ci.isTSAnyKeyword)(o))return[o];if((0,Ci.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,Ci.isTSUnionType)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}let l="typeParameters";if((0,Ci.isTSTypeReference)(o)&&o[l]){let c=o[l],f=Df(o.typeName);if(r.has(f)){let x=r.get(f),P=x[l];P?(P.params.push(...c.params),P.params=Lf(P.params)):x=c}else r.set(f,o);continue}n.push(o)}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var Bf=I(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.default=QD;var HD=It(),zD=Mf(),GD=He();function QD(e){let t=e.map(i=>(0,GD.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,zD.default)(t);return r.length===1?r[0]:(0,HD.tsUnionType)(r)}});var Do=I(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.buildUndefinedNode=ZD;var Ff=It();function ZD(){return(0,Ff.unaryExpression)("void",(0,Ff.numericLiteral)(0),!0)}});var Or=I(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=eL;var Rf=Ft(),jf=He(),{hasOwn:nr}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function qf(e,t,r,i){return e&&typeof e.type=="string"?Uf(e,t,r,i):e}function Lo(e,t,r,i){return Array.isArray(e)?e.map(s=>qf(s,t,r,i)):qf(e,t,r,i)}function eL(e,t=!0,r=!1){return Uf(e,t,r,new Map)}function Uf(e,t=!0,r=!1,i){if(!e)return e;let{type:s}=e,n={type:e.type};if((0,jf.isIdentifier)(e))n.name=e.name,nr(e,"optional")&&typeof e.optional=="boolean"&&(n.optional=e.optional),nr(e,"typeAnnotation")&&(n.typeAnnotation=t?Lo(e.typeAnnotation,!0,r,i):e.typeAnnotation),nr(e,"decorators")&&(n.decorators=t?Lo(e.decorators,!0,r,i):e.decorators);else if(nr(Rf.NODE_FIELDS,s))for(let a of Object.keys(Rf.NODE_FIELDS[s]))nr(e,a)&&(t?n[a]=(0,jf.isFile)(e)&&a==="comments"?on(e.comments,t,r,i):Lo(e[a],!0,r,i):n[a]=e[a]);else throw new Error(`Unknown node type: "${s}"`);return nr(e,"loc")&&(r?n.loc=null:n.loc=e.loc),nr(e,"leadingComments")&&(n.leadingComments=on(e.leadingComments,t,r,i)),nr(e,"innerComments")&&(n.innerComments=on(e.innerComments,t,r,i)),nr(e,"trailingComments")&&(n.trailingComments=on(e.trailingComments,t,r,i)),nr(e,"extra")&&(n.extra=Object.assign({},e.extra)),n}function on(e,t,r,i){return!e||!t?e:e.map(s=>{let n=i.get(s);if(n)return n;let{type:a,value:o,loc:l}=s,c={type:a,value:o,loc:l};return r&&(c.loc=null),i.set(s,c),c})}});var Kf=I(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=rL;var tL=Or();function rL(e){return(0,tL.default)(e,!1)}});var Vf=I(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.default=sL;var iL=Or();function sL(e){return(0,iL.default)(e)}});var Yf=I(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=aL;var nL=Or();function aL(e){return(0,nL.default)(e,!0,!0)}});var Jf=I(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.default=lL;var oL=Or();function lL(e){return(0,oL.default)(e,!1,!0)}});var Uo=I(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.default=uL;function uL(e,t,r){if(!r||!e)return e;let i=`${t}Comments`;return e[i]?t==="leading"?e[i]=r.concat(e[i]):e[i].push(...r):e[i]=r,e}});var Xf=I(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=pL;var cL=Uo();function pL(e,t,r,i){return(0,cL.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var ln=I(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=fL;function fL(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var Jo=I(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.default=dL;var hL=ln();function dL(e,t){(0,hL.default)("innerComments",e,t)}});var Wo=I(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=yL;var mL=ln();function yL(e,t){(0,mL.default)("leadingComments",e,t)}});var Ho=I($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.default=SL;var TL=ln();function SL(e,t){(0,TL.default)("trailingComments",e,t)}});var Go=I(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.default=EL;var xL=Ho(),gL=Wo(),bL=Jo();function EL(e,t){return(0,xL.default)(e,t),(0,gL.default)(e,t),(0,bL.default)(e,t),e}});var Wf=I(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=AL;var PL=bi();function AL(e){return PL.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var $f=I(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.WHILE_TYPES=F.USERWHITESPACABLE_TYPES=F.UNARYLIKE_TYPES=F.TYPESCRIPT_TYPES=F.TSTYPE_TYPES=F.TSTYPEELEMENT_TYPES=F.TSENTITYNAME_TYPES=F.TSBASETYPE_TYPES=F.TERMINATORLESS_TYPES=F.STATEMENT_TYPES=F.STANDARDIZED_TYPES=F.SCOPABLE_TYPES=F.PUREISH_TYPES=F.PROPERTY_TYPES=F.PRIVATE_TYPES=F.PATTERN_TYPES=F.PATTERNLIKE_TYPES=F.OBJECTMEMBER_TYPES=F.MODULESPECIFIER_TYPES=F.MODULEDECLARATION_TYPES=F.MISCELLANEOUS_TYPES=F.METHOD_TYPES=F.LVAL_TYPES=F.LOOP_TYPES=F.LITERAL_TYPES=F.JSX_TYPES=F.IMPORTOREXPORTDECLARATION_TYPES=F.IMMUTABLE_TYPES=F.FUNCTION_TYPES=F.FUNCTIONPARENT_TYPES=F.FUNCTIONPARAMETER_TYPES=F.FOR_TYPES=F.FORXSTATEMENT_TYPES=F.FLOW_TYPES=F.FLOWTYPE_TYPES=F.FLOWPREDICATE_TYPES=F.FLOWDECLARATION_TYPES=F.FLOWBASEANNOTATION_TYPES=F.EXPRESSION_TYPES=F.EXPRESSIONWRAPPER_TYPES=F.EXPORTDECLARATION_TYPES=F.ENUMMEMBER_TYPES=F.ENUMBODY_TYPES=F.DECLARATION_TYPES=F.CONDITIONAL_TYPES=F.COMPLETIONSTATEMENT_TYPES=F.CLASS_TYPES=F.BLOCK_TYPES=F.BLOCKPARENT_TYPES=F.BINARY_TYPES=F.ACCESSOR_TYPES=void 0;var le=Ft(),lQ=F.STANDARDIZED_TYPES=le.FLIPPED_ALIAS_KEYS.Standardized,uQ=F.EXPRESSION_TYPES=le.FLIPPED_ALIAS_KEYS.Expression,cQ=F.BINARY_TYPES=le.FLIPPED_ALIAS_KEYS.Binary,pQ=F.SCOPABLE_TYPES=le.FLIPPED_ALIAS_KEYS.Scopable,fQ=F.BLOCKPARENT_TYPES=le.FLIPPED_ALIAS_KEYS.BlockParent,hQ=F.BLOCK_TYPES=le.FLIPPED_ALIAS_KEYS.Block,dQ=F.STATEMENT_TYPES=le.FLIPPED_ALIAS_KEYS.Statement,mQ=F.TERMINATORLESS_TYPES=le.FLIPPED_ALIAS_KEYS.Terminatorless,yQ=F.COMPLETIONSTATEMENT_TYPES=le.FLIPPED_ALIAS_KEYS.CompletionStatement,TQ=F.CONDITIONAL_TYPES=le.FLIPPED_ALIAS_KEYS.Conditional,SQ=F.LOOP_TYPES=le.FLIPPED_ALIAS_KEYS.Loop,xQ=F.WHILE_TYPES=le.FLIPPED_ALIAS_KEYS.While,gQ=F.EXPRESSIONWRAPPER_TYPES=le.FLIPPED_ALIAS_KEYS.ExpressionWrapper,bQ=F.FOR_TYPES=le.FLIPPED_ALIAS_KEYS.For,EQ=F.FORXSTATEMENT_TYPES=le.FLIPPED_ALIAS_KEYS.ForXStatement,PQ=F.FUNCTION_TYPES=le.FLIPPED_ALIAS_KEYS.Function,AQ=F.FUNCTIONPARENT_TYPES=le.FLIPPED_ALIAS_KEYS.FunctionParent,vQ=F.PUREISH_TYPES=le.FLIPPED_ALIAS_KEYS.Pureish,CQ=F.DECLARATION_TYPES=le.FLIPPED_ALIAS_KEYS.Declaration,IQ=F.FUNCTIONPARAMETER_TYPES=le.FLIPPED_ALIAS_KEYS.FunctionParameter,wQ=F.PATTERNLIKE_TYPES=le.FLIPPED_ALIAS_KEYS.PatternLike,NQ=F.LVAL_TYPES=le.FLIPPED_ALIAS_KEYS.LVal,OQ=F.TSENTITYNAME_TYPES=le.FLIPPED_ALIAS_KEYS.TSEntityName,_Q=F.LITERAL_TYPES=le.FLIPPED_ALIAS_KEYS.Literal,kQ=F.IMMUTABLE_TYPES=le.FLIPPED_ALIAS_KEYS.Immutable,DQ=F.USERWHITESPACABLE_TYPES=le.FLIPPED_ALIAS_KEYS.UserWhitespacable,LQ=F.METHOD_TYPES=le.FLIPPED_ALIAS_KEYS.Method,MQ=F.OBJECTMEMBER_TYPES=le.FLIPPED_ALIAS_KEYS.ObjectMember,BQ=F.PROPERTY_TYPES=le.FLIPPED_ALIAS_KEYS.Property,FQ=F.UNARYLIKE_TYPES=le.FLIPPED_ALIAS_KEYS.UnaryLike,RQ=F.PATTERN_TYPES=le.FLIPPED_ALIAS_KEYS.Pattern,jQ=F.CLASS_TYPES=le.FLIPPED_ALIAS_KEYS.Class,vL=F.IMPORTOREXPORTDECLARATION_TYPES=le.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,qQ=F.EXPORTDECLARATION_TYPES=le.FLIPPED_ALIAS_KEYS.ExportDeclaration,UQ=F.MODULESPECIFIER_TYPES=le.FLIPPED_ALIAS_KEYS.ModuleSpecifier,KQ=F.ACCESSOR_TYPES=le.FLIPPED_ALIAS_KEYS.Accessor,VQ=F.PRIVATE_TYPES=le.FLIPPED_ALIAS_KEYS.Private,YQ=F.FLOW_TYPES=le.FLIPPED_ALIAS_KEYS.Flow,JQ=F.FLOWTYPE_TYPES=le.FLIPPED_ALIAS_KEYS.FlowType,XQ=F.FLOWBASEANNOTATION_TYPES=le.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,WQ=F.FLOWDECLARATION_TYPES=le.FLIPPED_ALIAS_KEYS.FlowDeclaration,$Q=F.FLOWPREDICATE_TYPES=le.FLIPPED_ALIAS_KEYS.FlowPredicate,HQ=F.ENUMBODY_TYPES=le.FLIPPED_ALIAS_KEYS.EnumBody,zQ=F.ENUMMEMBER_TYPES=le.FLIPPED_ALIAS_KEYS.EnumMember,GQ=F.JSX_TYPES=le.FLIPPED_ALIAS_KEYS.JSX,QQ=F.MISCELLANEOUS_TYPES=le.FLIPPED_ALIAS_KEYS.Miscellaneous,ZQ=F.TYPESCRIPT_TYPES=le.FLIPPED_ALIAS_KEYS.TypeScript,eZ=F.TSTYPEELEMENT_TYPES=le.FLIPPED_ALIAS_KEYS.TSTypeElement,tZ=F.TSTYPE_TYPES=le.FLIPPED_ALIAS_KEYS.TSType,rZ=F.TSBASETYPE_TYPES=le.FLIPPED_ALIAS_KEYS.TSBaseType,iZ=F.MODULEDECLARATION_TYPES=vL});var tl=I(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.default=CL;var un=He(),Zo=It();function CL(e,t){if((0,un.isBlockStatement)(e))return e;let r=[];return(0,un.isEmptyStatement)(e)?r=[]:((0,un.isStatement)(e)||((0,un.isFunction)(t)?e=(0,Zo.returnStatement)(e):e=(0,Zo.expressionStatement)(e)),r=[e]),(0,Zo.blockStatement)(r)}});var Hf=I(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.default=wL;var IL=tl();function wL(e,t="body"){let r=(0,IL.default)(e[t],e);return e[t]=r,r}});var sl=I(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.default=_L;var NL=gi(),OL=rs();function _L(e){e=e+"";let t="";for(let r of e)t+=(0,OL.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,NL.default)(t)||(t=`_${t}`),t||"_"}});var zf=I(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.default=DL;var kL=sl();function DL(e){return e=(0,kL.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var Gf=I(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.default=BL;var LL=He(),ML=It();function BL(e,t=e.key||e.property){return!e.computed&&(0,LL.isIdentifier)(t)&&(t=(0,ML.stringLiteral)(t.name)),t}});var Qf=I(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=void 0;var ps=He(),cZ=cn.default=FL;function FL(e){if((0,ps.isExpressionStatement)(e)&&(e=e.expression),(0,ps.isExpression)(e))return e;if((0,ps.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,ps.isFunction)(e)&&(e.type="FunctionExpression"),!(0,ps.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var ll=I(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.default=fs;var RL=Ft(),Zf=Symbol(),eh=Symbol();function fs(e,t,r){if(!e)return!1;let i=RL.VISITOR_KEYS[e.type];if(!i)return!1;r=r||{};let s=t(e,r);if(s!==void 0)switch(s){case Zf:return!1;case eh:return!0}for(let n of i){let a=e[n];if(a){if(Array.isArray(a)){for(let o of a)if(fs(o,t,r))return!0}else if(fs(a,t,r))return!0}}return!1}fs.skip=Zf;fs.stop=eh});var cl=I(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.default=UL;var jL=bi(),th=["tokens","start","end","loc","raw","rawValue"],qL=[...jL.COMMENT_KEYS,"comments",...th];function UL(e,t={}){let r=t.preserveComments?th:qL;for(let s of r)e[s]!=null&&(e[s]=void 0);for(let s of Object.keys(e))s.startsWith("_")&&e[s]!=null&&(e[s]=void 0);let i=Object.getOwnPropertySymbols(e);for(let s of i)e[s]=null}});var fl=I(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=YL;var KL=ll(),VL=cl();function YL(e,t){return(0,KL.default)(e,VL.default,t),e}});var ih=I(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.default=zr;var rh=He(),JL=Or(),XL=fl();function zr(e,t=e.key){let r;return e.kind==="method"?zr.increment()+"":((0,rh.isIdentifier)(t)?r=t.name:(0,rh.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,XL.default)((0,JL.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}zr.uid=0;zr.increment=function(){return zr.uid>=Number.MAX_SAFE_INTEGER?zr.uid=0:zr.uid++}});var sh=I(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.default=void 0;var pn=He(),WL=It(),yZ=fn.default=$L;function $L(e,t){if((0,pn.isStatement)(e))return e;let r=!1,i;if((0,pn.isClass)(e))r=!0,i="ClassDeclaration";else if((0,pn.isFunction)(e))r=!0,i="FunctionDeclaration";else if((0,pn.isAssignmentExpression)(e))return(0,WL.expressionStatement)(e);if(r&&!e.id&&(i=!1),!i){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e}});var nh=I(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.default=void 0;var HL=gi(),rt=It(),SZ=hn.default=dl,zL=Function.call.bind(Object.prototype.toString);function GL(e){return zL(e)==="[object RegExp]"}function QL(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function dl(e){if(e===void 0)return(0,rt.identifier)("undefined");if(e===!0||e===!1)return(0,rt.booleanLiteral)(e);if(e===null)return(0,rt.nullLiteral)();if(typeof e=="string")return(0,rt.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,rt.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,rt.numericLiteral)(0):r=(0,rt.numericLiteral)(1),t=(0,rt.binaryExpression)("/",r,(0,rt.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,rt.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0,rt.unaryExpression)("-",(0,rt.bigIntLiteral)(-e)):(0,rt.bigIntLiteral)(e);if(GL(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,rt.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,rt.arrayExpression)(e.map(dl));if(QL(e)){let t=[];for(let r of Object.keys(e)){let i,s=!1;(0,HL.default)(r)?r==="__proto__"?(s=!0,i=(0,rt.stringLiteral)(r)):i=(0,rt.identifier)(r):i=(0,rt.stringLiteral)(r),t.push((0,rt.objectProperty)(i,dl(e[r]),s))}return(0,rt.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var ah=I(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.default=e2;var ZL=It();function e2(e,t,r=!1){return e.object=(0,ZL.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var lh=I(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.default=r2;var oh=bi(),t2=Go();function r2(e,t){if(!e||!t)return e;for(let r of oh.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r.startsWith("_")&&r!=="__clone"&&(e[r]=t[r]);for(let r of oh.INHERIT_KEYS.force)e[r]=t[r];return(0,t2.default)(e,t),e}});var uh=I(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=n2;var i2=It(),s2=fe();function n2(e,t){if((0,s2.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,i2.memberExpression)(t,e.object),e}});var ch=I(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=a2;function a2(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let i=t.pop();if(i)switch(i.type){case"ArrayPattern":t.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(i.left);break;case"ObjectPattern":t.push(...i.properties);break;case"ObjectProperty":t.push(i.value);break;case"RestElement":case"UpdateExpression":t.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&t.push(i.argument);break;case"Identifier":r[i.name]=i;break;default:break}}return r}});var hs=I(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.default=xl;var xr=He();function xl(e,t,r,i){let s=[].concat(e),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||i&&((0,xr.isAssignmentExpression)(a)||(0,xr.isUnaryExpression)(a)||(0,xr.isUpdateExpression)(a)))continue;if((0,xr.isIdentifier)(a)){t?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,xr.isExportDeclaration)(a)&&!(0,xr.isExportAllDeclaration)(a)){(0,xr.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0,xr.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,xr.isFunctionExpression)(a))continue}let o=xl.keys[a.type];if(o)for(let l=0;l<o.length;l++){let c=o[l],f=a[c];f&&(Array.isArray(f)?s.push(...f):s.push(f))}}return n}var o2={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};xl.keys=o2});var ph=I(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.default=void 0;var l2=hs(),vZ=dn.default=u2;function u2(e,t){return(0,l2.default)(e,t,!0)}});var hh=I(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.default=p2;var Rt=He();function c2(e){return(0,Rt.isNullLiteral)(e)?"null":(0,Rt.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,Rt.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function fh(e){if(!e.computed||(0,Rt.isLiteral)(e.key))return e.key}function p2(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",i;if((0,Rt.isObjectProperty)(t,{value:e})?i=fh(t):(0,Rt.isObjectMethod)(e)||(0,Rt.isClassMethod)(e)?(i=fh(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,Rt.isVariableDeclarator)(t,{init:e})?i=t.id:(0,Rt.isAssignmentExpression)(t,{operator:"=",right:e})&&(i=t.left),!i)return null;let s=(0,Rt.isLiteral)(i)?c2(i):(0,Rt.isIdentifier)(i)?i.name:(0,Rt.isPrivateName)(i)?i.id.name:null;return s==null?null:{name:r+s,originalNode:i}}});var dh=I(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.default=h2;var f2=Ft();function h2(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:i,exit:s}=t;El(e,i,s,r,[])}function El(e,t,r,i,s){let n=f2.VISITOR_KEYS[e.type];if(n){t&&t(e,s,i);for(let a of n){let o=e[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let c=o[l];c&&(s.push({node:e,key:a,index:l}),El(c,t,r,i,s),s.pop())}else o&&(s.push({node:e,key:a}),El(o,t,r,i,s),s.pop())}r&&r(e,s,i)}}});var mh=I(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=m2;var d2=hs();function m2(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=d2.default.keys[t.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],a=t[n];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}});var Cl=I(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.default=S2;var y2=He(),T2=Symbol.for("var used to be block scoped");function S2(e){return(0,y2.isVariableDeclaration)(e)&&(e.kind!=="var"||e[T2])}});var Th=I(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.default=g2;var yh=He(),x2=Cl();function g2(e){return(0,yh.isFunctionDeclaration)(e)||(0,yh.isClassDeclaration)(e)||(0,x2.default)(e)}});var Sh=I(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.default=P2;var b2=$s(),E2=He();function P2(e){return(0,b2.default)(e.type,"Immutable")?!0:(0,E2.isIdentifier)(e)?e.name==="undefined":!1}});var gh=I(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=Nl;var xh=Ft();function Nl(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(xh.NODE_FIELDS[e.type]||e.type),i=xh.VISITOR_KEYS[e.type];for(let s of r){let n=e[s],a=t[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!Nl(n[o],a[o]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!Nl(n,a))return!1}}return!0}});var bh=I(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.default=A2;function A2(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:r?.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var Eh=I(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.default=v2;var Gr=He();function v2(e,t){return(0,Gr.isBlockStatement)(e)&&((0,Gr.isFunction)(t)||(0,Gr.isCatchClause)(t))?!1:(0,Gr.isPattern)(e)&&((0,Gr.isFunction)(t)||(0,Gr.isCatchClause)(t))?!0:(0,Gr.isScopable)(e)}});var Ah=I(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=C2;var Ph=He();function C2(e){return(0,Ph.isImportDefaultSpecifier)(e)||(0,Ph.isIdentifier)(e.imported||e.exported,{name:"default"})}});var vh=I(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.default=N2;var I2=gi(),w2=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function N2(e){return(0,I2.default)(e)&&!w2.has(e)}});var Ch=I(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.default=k2;var O2=He(),_2=Symbol.for("var used to be block scoped");function k2(e){return(0,O2.isVariableDeclaration)(e,{kind:"var"})&&!e[_2]}});var Ih=I(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=mn;var D2=hs(),Qr=He(),Bl=It(),Fl=Do(),L2=Or();function mn(e,t){let r=[],i=!0;for(let s of e)if((0,Qr.isEmptyStatement)(s)||(i=!1),(0,Qr.isExpression)(s))r.push(s);else if((0,Qr.isExpressionStatement)(s))r.push(s.expression);else if((0,Qr.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,D2.default)(n);for(let o of Object.keys(a))t.push({kind:s.kind,id:(0,L2.default)(a[o])});n.init&&r.push((0,Bl.assignmentExpression)("=",n.id,n.init))}i=!0}else if((0,Qr.isIfStatement)(s)){let n=s.consequent?mn([s.consequent],t):(0,Fl.buildUndefinedNode)(),a=s.alternate?mn([s.alternate],t):(0,Fl.buildUndefinedNode)();if(!n||!a)return;r.push((0,Bl.conditionalExpression)(s.test,n,a))}else if((0,Qr.isBlockStatement)(s)){let n=mn(s.body,t);if(!n)return;r.push(n)}else if((0,Qr.isEmptyStatement)(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push((0,Fl.buildUndefinedNode)()),r.length===1?r[0]:(0,Bl.sequenceExpression)(r)}});var wh=I(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.default=B2;var M2=Ih();function B2(e,t){if(!(e!=null&&e.length))return;let r=[],i=(0,M2.default)(e,r);if(i){for(let s of r)t.push(s);return i}}});var fe=I(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var _r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(K,"__internal__deprecationWarning",{enumerable:!0,get:function(){return qM.default}});Object.defineProperty(K,"addComment",{enumerable:!0,get:function(){return $2.default}});Object.defineProperty(K,"addComments",{enumerable:!0,get:function(){return H2.default}});Object.defineProperty(K,"appendToMemberExpression",{enumerable:!0,get:function(){return cM.default}});Object.defineProperty(K,"assertNode",{enumerable:!0,get:function(){return q2.default}});Object.defineProperty(K,"buildMatchMemberExpression",{enumerable:!0,get:function(){return jM.default}});Object.defineProperty(K,"clone",{enumerable:!0,get:function(){return Y2.default}});Object.defineProperty(K,"cloneDeep",{enumerable:!0,get:function(){return J2.default}});Object.defineProperty(K,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return X2.default}});Object.defineProperty(K,"cloneNode",{enumerable:!0,get:function(){return V2.default}});Object.defineProperty(K,"cloneWithoutLoc",{enumerable:!0,get:function(){return W2.default}});Object.defineProperty(K,"createFlowUnionType",{enumerable:!0,get:function(){return Nh.default}});Object.defineProperty(K,"createTSUnionType",{enumerable:!0,get:function(){return K2.default}});Object.defineProperty(K,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return U2.default}});Object.defineProperty(K,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return Nh.default}});Object.defineProperty(K,"ensureBlock",{enumerable:!0,get:function(){return tM.default}});Object.defineProperty(K,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return yM.default}});Object.defineProperty(K,"getBindingIdentifiers",{enumerable:!0,get:function(){return TM.default}});Object.defineProperty(K,"getFunctionName",{enumerable:!0,get:function(){return xM.default}});Object.defineProperty(K,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return SM.default}});Object.defineProperty(K,"inheritInnerComments",{enumerable:!0,get:function(){return z2.default}});Object.defineProperty(K,"inheritLeadingComments",{enumerable:!0,get:function(){return G2.default}});Object.defineProperty(K,"inheritTrailingComments",{enumerable:!0,get:function(){return Z2.default}});Object.defineProperty(K,"inherits",{enumerable:!0,get:function(){return pM.default}});Object.defineProperty(K,"inheritsComments",{enumerable:!0,get:function(){return Q2.default}});Object.defineProperty(K,"is",{enumerable:!0,get:function(){return EM.default}});Object.defineProperty(K,"isBinding",{enumerable:!0,get:function(){return PM.default}});Object.defineProperty(K,"isBlockScoped",{enumerable:!0,get:function(){return AM.default}});Object.defineProperty(K,"isImmutable",{enumerable:!0,get:function(){return vM.default}});Object.defineProperty(K,"isLet",{enumerable:!0,get:function(){return CM.default}});Object.defineProperty(K,"isNode",{enumerable:!0,get:function(){return IM.default}});Object.defineProperty(K,"isNodesEquivalent",{enumerable:!0,get:function(){return wM.default}});Object.defineProperty(K,"isPlaceholderType",{enumerable:!0,get:function(){return NM.default}});Object.defineProperty(K,"isReferenced",{enumerable:!0,get:function(){return OM.default}});Object.defineProperty(K,"isScope",{enumerable:!0,get:function(){return _M.default}});Object.defineProperty(K,"isSpecifierDefault",{enumerable:!0,get:function(){return kM.default}});Object.defineProperty(K,"isType",{enumerable:!0,get:function(){return DM.default}});Object.defineProperty(K,"isValidES3Identifier",{enumerable:!0,get:function(){return LM.default}});Object.defineProperty(K,"isValidIdentifier",{enumerable:!0,get:function(){return MM.default}});Object.defineProperty(K,"isVar",{enumerable:!0,get:function(){return BM.default}});Object.defineProperty(K,"matchesPattern",{enumerable:!0,get:function(){return FM.default}});Object.defineProperty(K,"prependToMemberExpression",{enumerable:!0,get:function(){return fM.default}});K.react=void 0;Object.defineProperty(K,"removeComments",{enumerable:!0,get:function(){return eM.default}});Object.defineProperty(K,"removeProperties",{enumerable:!0,get:function(){return hM.default}});Object.defineProperty(K,"removePropertiesDeep",{enumerable:!0,get:function(){return dM.default}});Object.defineProperty(K,"removeTypeDuplicates",{enumerable:!0,get:function(){return mM.default}});Object.defineProperty(K,"shallowEqual",{enumerable:!0,get:function(){return bM.default}});Object.defineProperty(K,"toBindingIdentifierName",{enumerable:!0,get:function(){return rM.default}});Object.defineProperty(K,"toBlock",{enumerable:!0,get:function(){return iM.default}});Object.defineProperty(K,"toComputedKey",{enumerable:!0,get:function(){return sM.default}});Object.defineProperty(K,"toExpression",{enumerable:!0,get:function(){return nM.default}});Object.defineProperty(K,"toIdentifier",{enumerable:!0,get:function(){return aM.default}});Object.defineProperty(K,"toKeyAlias",{enumerable:!0,get:function(){return oM.default}});Object.defineProperty(K,"toStatement",{enumerable:!0,get:function(){return lM.default}});Object.defineProperty(K,"traverse",{enumerable:!0,get:function(){return yn.default}});Object.defineProperty(K,"traverseFast",{enumerable:!0,get:function(){return gM.default}});Object.defineProperty(K,"validate",{enumerable:!0,get:function(){return RM.default}});Object.defineProperty(K,"valueToNode",{enumerable:!0,get:function(){return uM.default}});var F2=Dp(),R2=Lp(),j2=Cf(),q2=If(),ql=wf();Object.keys(ql).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===ql[e]||Object.defineProperty(K,e,{enumerable:!0,get:function(){return ql[e]}})});var U2=Nf(),Nh=kf(),K2=Bf(),Ul=Do();Object.keys(Ul).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Ul[e]||Object.defineProperty(K,e,{enumerable:!0,get:function(){return Ul[e]}})});var Kl=It();Object.keys(Kl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Kl[e]||Object.defineProperty(K,e,{enumerable:!0,get:function(){return Kl[e]}})});var V2=Or(),Y2=Kf(),J2=Vf(),X2=Yf(),W2=Jf(),$2=Xf(),H2=Uo(),z2=Jo(),G2=Wo(),Q2=Go(),Z2=Ho(),eM=Wf(),Vl=$f();Object.keys(Vl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Vl[e]||Object.defineProperty(K,e,{enumerable:!0,get:function(){return Vl[e]}})});var Yl=bi();Object.keys(Yl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Yl[e]||Object.defineProperty(K,e,{enumerable:!0,get:function(){return Yl[e]}})});var tM=Hf(),rM=zf(),iM=tl(),sM=Gf(),nM=Qf(),aM=sl(),oM=ih(),lM=sh(),uM=nh(),Jl=Ft();Object.keys(Jl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Jl[e]||Object.defineProperty(K,e,{enumerable:!0,get:function(){return Jl[e]}})});var cM=ah(),pM=lh(),fM=uh(),hM=cl(),dM=fl(),mM=wo(),yM=ch(),TM=hs(),SM=ph(),xM=hh(),yn=dh();Object.keys(yn).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===yn[e]||Object.defineProperty(K,e,{enumerable:!0,get:function(){return yn[e]}})});var gM=ll(),bM=Xs(),EM=xi(),PM=mh(),AM=Th(),vM=Sh(),CM=Cl(),IM=vo(),wM=gh(),NM=Ha(),OM=bh(),_M=Eh(),kM=Ah(),DM=$s(),LM=vh(),MM=gi(),BM=Ch(),FM=Va(),RM=Qs(),jM=Ja(),Xl=He();Object.keys(Xl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Xl[e]||Object.defineProperty(K,e,{enumerable:!0,get:function(){return Xl[e]}})});var qM=Si(),UM=wh(),UZ=K.react={isReactComponent:F2.default,isCompatTag:R2.default,buildChildren:j2.default};K.toSequenceExpression=UM.default;process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var Bh=I(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.AssignmentExpression=hB;Ee.BinaryExpression=aB;Ee.ClassExpression=cB;Ee.ArrowFunctionExpression=Ee.ConditionalExpression=Mh;Ee.DoExpression=GM;Ee.FunctionExpression=pB;Ee.FunctionTypeAnnotation=$M;Ee.Identifier=dB;Ee.LogicalExpression=oB;Ee.NullableTypeAnnotation=WM;Ee.ObjectExpression=zM;Ee.OptionalIndexedAccessType=ZM;Ee.OptionalCallExpression=Ee.OptionalMemberExpression=fB;Ee.SequenceExpression=lB;Ee.TSSatisfiesExpression=Ee.TSAsExpression=eB;Ee.TSConditionalType=tB;Ee.TSConstructorType=Ee.TSFunctionType=nB;Ee.TSInferType=iB;Ee.TSInstantiationExpression=sB;Ee.TSIntersectionType=rB;Ee.SpreadElement=Ee.UnaryExpression=Ee.TSTypeAssertion=Lh;Ee.TSTypeOperator=$l;Ee.TSUnionType=Dh;Ee.IntersectionTypeAnnotation=Ee.UnionTypeAnnotation=QM;Ee.UpdateExpression=HM;Ee.AwaitExpression=Ee.YieldExpression=uB;var KM=fe(),ut=kr(),{isMemberExpression:VM,isOptionalMemberExpression:YM,isYieldExpression:JM,isStatement:XM}=KM,Oh=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function _h(e){return e===156||e===201||e===209}var Tn=(e,t,r)=>(r===21||r===22)&&t.superClass===e,Sn=(e,t,r)=>{switch(r){case 108:case 132:return t.object===e;case 17:case 130:case 112:return t.callee===e;case 222:return t.tag===e;case 191:return!0}return!1};function WM(e,t,r){return r===4}function $M(e,t,r,i){return r===239||r===90||r===4||(i&ut.TokenContext.arrowFlowReturnType)>0}function HM(e,t,r){return Sn(e,t,r)||Tn(e,t,r)}function kh(e){return(e&(ut.TokenContext.expressionStatement|ut.TokenContext.arrowBody))>0}function zM(e,t,r,i){return kh(i)}function GM(e,t,r,i){return(i&ut.TokenContext.expressionStatement)>0&&!e.async}function Wl(e,t,r,i){if(Tn(e,t,r)||Sn(e,t,r)||r===238||r===145||r===8)return!0;let s;switch(r){case 10:case 107:s=Oh.get(t.operator);break;case 156:case 201:s=7}if(s!==void 0){let n=i===2?7:Oh.get(e.operator);if(s>n||s===n&&r===10&&(n===11?t.left===e:t.right===e)||i===1&&r===107&&(n===1&&s!==1||s===1&&n!==1))return!0}return!1}function QM(e,t,r){switch(r){case 4:case 115:case 90:case 239:return!0}return!1}function ZM(e,t,r){return r===84&&t.objectType===e}function eB(e,t,r){return(r===6||r===7)&&t.left===e||r===10&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:Wl(e,t,r,2)}function tB(e,t,r){switch(r){case 155:case 195:case 211:case 212:return!0;case 175:return t.objectType===e;case 181:case 219:return t.types[0]===e;case 161:return t.checkType===e||t.extendsType===e}return!1}function Dh(e,t,r){switch(r){case 181:case 211:case 155:case 195:return!0;case 175:return t.objectType===e}return!1}function rB(e,t,r){return r===211||$l(e,t,r)}function iB(e,t,r){return!!($l(e,t,r)||(r===181||r===219)&&e.typeParameter.constraint&&t.types[0]===e)}function $l(e,t,r){switch(r){case 155:case 195:return!0;case 175:if(t.objectType===e)return!0}return!1}function sB(e,t,r){switch(r){case 17:case 130:case 112:case 177:return t.typeParameters!=null}return!1}function nB(e,t,r){return Dh(e,t,r)?!0:r===219||r===161&&(t.checkType===e||t.extendsType===e)}function aB(e,t,r,i){return Wl(e,t,r,0)?!0:(i&ut.TokenContext.forInOrInitHeadAccumulate)>0&&e.operator==="in"}function oB(e,t,r){return Wl(e,t,r,1)}function lB(e,t,r){return r===144||r===133||r===108&&t.property===e||r===132&&t.property===e||r===224?!1:r===21?!0:r===68?t.right===e:r===60?!0:!XM(t)}function uB(e,t,r){return r===10||r===107||r===238||r===145||Sn(e,t,r)||r===8&&JM(e)||r===28&&e===t.test||Tn(e,t,r)||_h(r)}function cB(e,t,r,i){return(i&(ut.TokenContext.expressionStatement|ut.TokenContext.exportDefault))>0}function Lh(e,t,r){return Sn(e,t,r)||r===10&&t.operator==="**"&&t.left===e||Tn(e,t,r)}function pB(e,t,r,i){return(i&(ut.TokenContext.expressionStatement|ut.TokenContext.exportDefault))>0}function Mh(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(t.test===e)return!0}return _h(r)?!0:Lh(e,t,r)}function fB(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return!1}function hB(e,t,r,i){return kh(i)&&e.left.type==="ObjectPattern"?!0:Mh(e,t,r)}function dB(e,t,r,i,s){var n;if(s&&s(e)!==e.name)return!1;if(r===6&&(n=e.extra)!=null&&n.parenthesized&&t.left===e){let a=t.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&t.right.id==null)return!0}return(i&ut.TokenContext.forOfHead||(r===108||r===132)&&i&(ut.TokenContext.expressionStatement|ut.TokenContext.forInitHead|ut.TokenContext.forInHead))&&e.name==="let"?(VM(t,{object:e,computed:!0})||YM(t,{object:e,computed:!0,optional:!1}))&&i&(ut.TokenContext.expressionStatement|ut.TokenContext.forInitHead|ut.TokenContext.forInHead)?!0:(i&ut.TokenContext.forOfHead)>0:r===68&&t.left===e&&e.name==="async"&&!t.await}});var Hl=I(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.TaggedTemplateExpression=mB;Ii.TemplateElement=yB;Ii.TemplateLiteral=TB;Ii._printTemplate=Fh;function mB(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function yB(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function Fh(e,t){let r=e.quasis,i="`";for(let s=0;s<r.length-1;s++)if(i+=r[s].value.raw,this.token(i+"${",!0),this.print(t[s]),i="}",this.tokenMap){let n=this.tokenMap.findMatching(e,"}",s);n&&this._catchUpTo(n.loc.start)}i+=r[r.length-1].value.raw,this.token(i+"`",!0)}function TB(e){Fh.call(this,e,e.expressions)}});var xn=I(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.LogicalExpression=_e.AssignmentExpression=VB;_e.AssignmentPattern=KB;_e.AwaitExpression=RB;_e.BinaryExpression=YB;_e.BindExpression=JB;_e.CallExpression=BB;_e.ConditionalExpression=IB;_e.Decorator=DB;_e.DoExpression=AB;_e.EmptyStatement=qB;_e.ExpressionStatement=UB;_e.Import=FB;_e.MemberExpression=XB;_e.MetaProperty=WB;_e.ModuleExpression=zB;_e.NewExpression=wB;_e.OptionalCallExpression=MB;_e.OptionalMemberExpression=LB;_e.ParenthesizedExpression=vB;_e.PrivateName=$B;_e.SequenceExpression=NB;_e.Super=_B;_e.ThisExpression=OB;_e.UnaryExpression=PB;_e.UpdateExpression=CB;_e.V8IntrinsicIdentifier=HB;_e.YieldExpression=jB;_e._shouldPrintDecoratorsBeforeExport=kB;var SB=fe(),xB=kr(),{isCallExpression:gB,isLiteral:Rh,isMemberExpression:zl,isNewExpression:bB,isPattern:EB}=SB;function PB(e){let{operator:t}=e,r=t.charCodeAt(0);r>=97&&r<=122?(this.word(t),this.space()):this.tokenChar(r),this.print(e.argument)}function AB(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function vB(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function CB(e){e.prefix?(this.token(e.operator,!1,0,!0),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator,!1,0,!0))}function IB(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function wB(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!gB(t,{callee:e})&&!zl(t)&&!bB(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=r,this.rightParens(e)}function NB(e){this.printList(e.expressions)}function OB(){this.word("this")}function _B(){this.word("super")}function kB(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function DB(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()}function LB(e){let{computed:t}=e,{optional:r,property:i}=e;if(this.print(e.object),!t&&zl(i))throw new TypeError("Got a MemberExpression for MemberExpression property");Rh(i)&&typeof i.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i))}function MB(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function BB(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function FB(){this.word("import")}function RB(e){this.word("await"),this.space(),this.print(e.argument)}function jB(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")}function qB(){this.semicolon(!0)}function UB(e){this.tokenContext|=xB.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function KB(e){this.print(e.left),(e.left.type==="Identifier"||EB(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function VB(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}function YB(e){this.print(e.left),this.space();let{operator:t}=e;t.charCodeAt(0)===105?this.word(t):(this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1))),this.space(),this.print(e.right)}function JB(e){this.print(e.object),this.token("::"),this.print(e.callee)}function XB(e){if(this.print(e.object),!e.computed&&zl(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(Rh(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=r}else this.tokenChar(46),this.print(e.property)}function WB(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function $B(e){this.tokenChar(35),this.print(e.id)}function HB(e){this.tokenChar(37),this.word(e.name)}function zB(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var qh=I(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.BreakStatement=lF;Qe.CatchClause=dF;Qe.ContinueStatement=uF;Qe.DebuggerStatement=TF;Qe.DoWhileStatement=oF;Qe.ForInStatement=nF;Qe.ForOfStatement=aF;Qe.ForStatement=iF;Qe.IfStatement=rF;Qe.LabeledStatement=fF;Qe.ReturnStatement=cF;Qe.SwitchCase=yF;Qe.SwitchStatement=mF;Qe.ThrowStatement=pF;Qe.TryStatement=hF;Qe.VariableDeclaration=xF;Qe.VariableDeclarator=gF;Qe.WhileStatement=sF;Qe.WithStatement=tF;var GB=fe(),Zr=kr(),{isFor:QB,isIfStatement:ZB,isStatement:eF}=GB;function tF(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)}function rF(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&ZB(jh(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))}function jh(e){let{body:t}=e;return eF(t)===!1?e:jh(t)}function iF(e){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=Zr.TokenContext.forInitHead|Zr.TokenContext.forInOrInitHeadAccumulate,this.print(e.init),this.tokenContext=Zr.TokenContext.normal,this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e.body)}function sF(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)}function nF(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=Zr.TokenContext.forInHead|Zr.TokenContext.forInOrInitHeadAccumulate,this.print(e.left),this.tokenContext=Zr.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function aF(e){this.word("for"),this.space(),e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=Zr.TokenContext.forOfHead,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function oF(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function gn(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function lF(e){this.word("break"),gn(this,e.label)}function uF(e){this.word("continue"),gn(this,e.label)}function cF(e){this.word("return"),gn(this,e.argument)}function pF(e){this.word("throw"),gn(this,e.argument)}function fF(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function hF(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))}function dF(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)}function mF(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)}function yF(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))}function TF(){this.word("debugger"),this.semicolon()}function SF(e){this.tokenChar(44,e),this.newline()}function xF(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let i=!1;if(!QB(t)){for(let s of e.declarations)if(s.init){i=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,i?SF:void 0),t!=null)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()}function gF(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}});var ds=I(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.ArrowFunctionExpression=CF;jt.FunctionDeclaration=jt.FunctionExpression=vF;jt._functionHead=Vh;jt._methodHead=AF;jt._param=Kh;jt._parameters=Uh;jt._params=wi;jt._predicate=Gl;jt._shouldPrintArrowParamsParens=Yh;var bF=fe(),EF=kr(),{isIdentifier:PF}=bF;function wi(e,t,r,i){if(this.print(e.typeParameters),r!==void 0||i!==void 0){let s=IF.call(this,r,i);s&&this.sourceIdentifierName(s.name,s.pos)}this.tokenChar(40),Uh.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function Uh(e,t){let r=this.enterDelimited(),i=this.shouldPrintTrailingComma(t),s=e.length;for(let n=0;n<s;n++)Kh.call(this,e[n]),(i||n<s-1)&&(this.tokenChar(44,n),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=r}function Kh(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,!0)}function AF(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._buf._map?wi.call(this,e,!1,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key):wi.call(this,e,!1)}function Gl(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function Vh(e,t,r){e.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._buf._map?wi.call(this,e,!1,e.id,t):wi.call(this,e,!1),r&&Gl.call(this,e)}function vF(e,t){Vh.call(this,e,t,!0),this.space(),this.print(e.body)}function CF(e,t){e.async&&(this.word("async",!0),this.space()),Yh.call(this,e)?wi.call(this,e,!0,void 0,this._buf._map?t:void 0):this.print(e.params[0],!0),Gl.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=EF.TokenContext.arrowBody,this.print(e.body)}function Yh(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return!0;let i=e.params[0];if(!PF(i)||i.typeAnnotation||i.optional||(t=i.leadingComments)!=null&&t.length||(r=i.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return!0;let s=this.tokenMap.findMatching(e,"=>");return s?.loc==null?!0:s.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function IF(e,t){let r=e;if(!r&&t){let l=t.type;l==="VariableDeclarator"?r=t.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=t.left:l==="ObjectProperty"||l==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let i;if(r.type==="Identifier"){var s,n;i={pos:(s=r.loc)==null?void 0:s.start,name:((n=r.loc)==null?void 0:n.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;i={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;i={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return i}});var Zl=I(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.TSAnyKeyword=KF;z.TSArrayType=l3;z.TSAsExpression=I3;z.TSBigIntKeyword=VF;z.TSBooleanKeyword=WF;z.TSCallSignatureDeclaration=FF;z.TSInterfaceHeritage=z.TSClassImplements=P3;z.TSConditionalType=m3;z.TSConstructSignatureDeclaration=RF;z.TSConstructorType=i3;z.TSDeclareFunction=LF;z.TSDeclareMethod=MF;z.TSEnumBody=zh;z.TSEnumDeclaration=_3;z.TSEnumMember=k3;z.TSExportAssignment=j3;z.TSExternalModuleReference=F3;z.TSFunctionType=r3;z.TSImportEqualsDeclaration=B3;z.TSImportType=M3;z.TSIndexSignature=UF;z.TSIndexedAccessType=x3;z.TSInferType=y3;z.TSInstantiationExpression=O3;z.TSInterfaceBody=v3;z.TSInterfaceDeclaration=A3;z.TSIntersectionType=d3;z.TSIntrinsicKeyword=e3;z.TSLiteralType=E3;z.TSMappedType=g3;z.TSMethodSignature=qF;z.TSModuleBlock=L3;z.TSModuleDeclaration=D3;z.TSNamedTupleMember=f3;z.TSNamespaceExportDeclaration=q3;z.TSNeverKeyword=ZF;z.TSNonNullExpression=R3;z.TSNullKeyword=QF;z.TSNumberKeyword=JF;z.TSObjectKeyword=XF;z.TSOptionalType=c3;z.TSParameterProperty=DF;z.TSParenthesizedType=T3;z.TSPropertySignature=jF;z.TSQualifiedName=BF;z.TSRestType=p3;z.TSSatisfiesExpression=w3;z.TSStringKeyword=$F;z.TSSymbolKeyword=HF;z.TSTemplateLiteralType=b3;z.TSThisType=t3;z.TSTupleType=u3;z.TSTypeAliasDeclaration=C3;z.TSTypeAnnotation=OF;z.TSTypeAssertion=N3;z.TSTypeLiteral=o3;z.TSTypeOperator=S3;z.TSTypeParameter=kF;z.TSTypeParameterDeclaration=z.TSTypeParameterInstantiation=_F;z.TSTypePredicate=n3;z.TSTypeQuery=a3;z.TSTypeReference=s3;z.TSUndefinedKeyword=GF;z.TSUnionType=h3;z.TSUnknownKeyword=YF;z.TSVoidKeyword=zF;z._tsPrintClassMemberModifiers=U3;var ms=ds(),wF=eu(),NF=Hl();function OF(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function _F(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;this.tokenMap&&e.start!=null&&e.end!=null&&(r&&(r=!!this.tokenMap.find(e,i=>this.tokenMap.matchesOriginal(i,","))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(e.params,r),this.tokenChar(62)}function kF(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function DF(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),ms._param.call(this,e.parameter)}function LF(e,t){e.declare&&(this.word("declare"),this.space()),ms._functionHead.call(this,e,t,!1),this.semicolon()}function MF(e){wF._classMethodHead.call(this,e),this.semicolon()}function BF(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function FF(e){Ql.call(this,e),ys(this,e)}function ys(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon()}function RF(e){this.word("new"),this.space(),Ql.call(this,e),ys(this,e)}function jF(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),Wh.call(this,e),this.print(e.typeAnnotation),ys(this,e)}function Wh(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function qF(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),Wh.call(this,e),Ql.call(this,e),ys(this,e)}function UF(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),ms._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),ys(this,e)}function KF(){this.word("any")}function VF(){this.word("bigint")}function YF(){this.word("unknown")}function JF(){this.word("number")}function XF(){this.word("object")}function WF(){this.word("boolean")}function $F(){this.word("string")}function HF(){this.word("symbol")}function zF(){this.word("void")}function GF(){this.word("undefined")}function QF(){this.word("null")}function ZF(){this.word("never")}function e3(){this.word("intrinsic")}function t3(){this.word("this")}function r3(e){$h.call(this,e)}function i3(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),$h.call(this,e)}function $h(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),ms._parameters.call(this,r,41),this.space();let i=e.typeAnnotation;this.print(i)}function s3(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)}function n3(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function a3(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;t&&this.print(t)}function o3(e){bn(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))}function l3(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function u3(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function c3(e){this.print(e.typeAnnotation),this.tokenChar(63)}function p3(e){this.token("..."),this.print(e.typeAnnotation)}function f3(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)}function h3(e){Hh(this,e,"|")}function d3(e){Hh(this,e,"&")}function Hh(e,t,r){var i;let s=0;(i=e.tokenMap)!=null&&i.startMatches(t,r)&&(s=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(n){this.space(),this.token(r,void 0,n+s),this.space()})}function m3(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function y3(e){this.word("infer"),this.print(e.typeParameter)}function T3(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function S3(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function x3(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function g3(e){let{nameType:t,optional:r,readonly:i,typeAnnotation:s}=e;this.tokenChar(123);let n=this.enterDelimited();this.space(),i&&(Jh(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint,void 0,!0),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,!0)),this.tokenChar(93),r&&(Jh(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=n,this.tokenChar(125)}function Jh(e,t){t!==!0&&e.token(t)}function b3(e){NF._printTemplate.call(this,e,e.types)}function E3(e){this.print(e.literal)}function P3(e){this.print(e.expression),this.print(e.typeArguments)}function A3(e){let{declare:t,id:r,typeParameters:i,extends:s,body:n}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(i),s!=null&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s)),this.space(),this.print(n)}function v3(e){bn(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))}function C3(e){let{declare:t,id:r,typeParameters:i,typeAnnotation:s}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(i),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()}function I3(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)}function w3(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)}function N3(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function O3(e){this.print(e.expression),this.print(e.typeParameters)}function _3(e){let{declare:t,const:r,id:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),zh.call(this,e)}function zh(e){bn(this,e,()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:!0,!0,!0,void 0,!0)})}function k3(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))}function D3(e){let{declare:t,id:r,kind:i}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(i??(r.type==="Identifier"?"namespace":"module")),this.space()),this.print(r),!e.body){this.semicolon();return}let s=e.body;for(;s.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(s.id),s=s.body;this.space(),this.print(s)}function L3(e){bn(this,e,()=>this.printSequence(e.body,!0,!0))}function M3(e){let{qualifier:t,options:r}=e;this.word("import"),this.tokenChar(40),this.print(e.argument),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),t&&(this.tokenChar(46),this.print(t));let i=e.typeParameters;i&&this.print(i)}function B3(e){let{id:t,moduleReference:r}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function F3(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function R3(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)}function j3(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function q3(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function Ql(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),ms._parameters.call(this,r,41);let i=e.typeAnnotation;this.print(i)}function U3(e){let t=e.type==="ClassPrivateProperty",r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";Xh(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),Xh(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function bn(e,t,r){e.token("{");let i=e.enterDelimited();r(),e._noLineTerminatorAfterNode=i,e.rightBrace(t)}function Xh(e,t,r){var i;let s=new Set;for(let n of r)n&&s.add(n);(i=e.tokenMap)==null||i.find(t,n=>s.has(n.value)?(e.token(n.value),e.space(),s.delete(n.value),s.size===0):!1);for(let n of s)e.word(n),e.space()}});var tu=I(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.ExportAllDeclaration=t4;xt.ExportDefaultDeclaration=i4;xt.ExportDefaultSpecifier=Q3;xt.ExportNamedDeclaration=r4;xt.ExportNamespaceSpecifier=e4;xt.ExportSpecifier=Z3;xt.ImportAttribute=n4;xt.ImportDeclaration=s4;xt.ImportDefaultSpecifier=G3;xt.ImportExpression=o4;xt.ImportNamespaceSpecifier=a4;xt.ImportSpecifier=z3;xt._printAttributes=En;var K3=fe(),V3=kr(),Y3=xn(),{isClassDeclaration:J3,isExportDefaultSpecifier:X3,isExportNamespaceSpecifier:W3,isImportDefaultSpecifier:$3,isImportNamespaceSpecifier:H3,isStatement:Qh}=K3;function z3(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function G3(e){this.print(e.local)}function Q3(e){this.print(e.exported)}function Z3(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function e4(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var Gh=!1;function En(e,t){var r;let{attributes:i}=e;var{assertions:s}=e;let{importAttributesKeyword:n}=this.format;i&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!Gh&&(Gh=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=n==="assert"||!n&&s;if(this.word(a?"assert":"with"),this.space(),!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(i||s);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(i||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function t4(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),En.call(this,e,!1)):this.print(e.source),this.semicolon()}function Zh(e,t){J3(t.declaration)&&Y3._shouldPrintDecoratorsBeforeExport.call(e,t)&&e.printJoin(t.declaration.decorators)}function r4(e){if(Zh(this,e),this.word("export"),this.space(),e.declaration){let i=e.declaration;this.print(i),Qh(i)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let i=e.specifiers.slice(0),s=!1;for(;;){let a=i[0];if(X3(a)||W3(a))s=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}let n=!1;if((i.length||!i.length&&!s)&&(n=!0,this.tokenChar(123),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),En.call(this,e,n)):this.print(e.source)}this.semicolon()}}function i4(e){Zh(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=V3.TokenContext.exportDefault;let t=e.declaration;this.print(t),Qh(t)||this.semicolon()}function s4(e){var t,r;this.word("import"),this.space();let i=e.importKind==="type"||e.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let s=e.specifiers.slice(0),n=!!s.length;for(;n;){let o=s[0];if($3(o)||H3(o))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!n&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(n||i)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),En.call(this,e,a)):this.print(e.source),this.semicolon()}function n4(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function a4(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function o4(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)}});var id=I((zZ,rd)=>{"use strict";var ed={},l4=ed.hasOwnProperty,td=(e,t)=>{for(let r in e)l4.call(e,r)&&t(r,e[r])},u4=(e,t)=>(t&&td(t,(r,i)=>{e[r]=i}),e),c4=(e,t)=>{let r=e.length,i=-1;for(;++i<r;)t(e[i])},Pn=e=>"\\u"+("0000"+e).slice(-4),Ts=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},Ss=ed.toString,p4=Array.isArray,f4=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),h4=e=>Ss.call(e)=="[object Object]",d4=e=>typeof e=="string"||Ss.call(e)=="[object String]",m4=e=>typeof e=="number"||Ss.call(e)=="[object Number]",ru=e=>typeof e=="bigint",y4=e=>typeof e=="function",T4=e=>Ss.call(e)=="[object Map]",S4=e=>Ss.call(e)=="[object Set]",x4={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},g4=/[\\\b\f\n\r\t]/,b4=/[0-9]/,E4=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,P4=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,A4=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,Dr=(e,t)=>{let r=()=>{c=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=t&&t.json;s&&(i.quotes="double",i.wrap=!0),t=u4(i,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let n=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),c="",f=t.__inline1__,x=t.__inline2__,P=a?"":`
|
|
12
|
+
`,A,v=!0,_=t.numbers=="binary",w=t.numbers=="octal",O=t.numbers=="decimal",L=t.numbers=="hexadecimal";if(s&&e&&y4(e.toJSON)&&(e=e.toJSON()),!d4(e)){if(T4(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Dr(Array.from(e),t)+")");if(S4(e))return e.size==0?"new Set()":"new Set("+Dr(Array.from(e),t)+")";if(f4(e))return e.length==0?"Buffer.from([])":"Buffer.from("+Dr(Array.from(e),t)+")";if(p4(e))return A=[],t.wrap=!0,f&&(t.__inline1__=!1,t.__inline2__=!0),x||r(),c4(e,X=>{v=!1,x&&(t.__inline2__=!1),A.push((a||x?"":l)+Dr(X,t))}),v?"[]":x?"["+A.join(", ")+"]":"["+P+A.join(","+P)+P+(a?"":c)+"]";if(m4(e)||ru(e)){if(s)return JSON.stringify(Number(e));let X;if(O)X=String(e);else if(L){let J=e.toString(16);o||(J=J.toUpperCase()),X="0x"+J}else _?X="0b"+e.toString(2):w&&(X="0o"+e.toString(8));return ru(e)?X+"n":X}else return ru(e)?s?JSON.stringify(Number(e)):e+"n":h4(e)?(A=[],t.wrap=!0,r(),td(e,(X,J)=>{v=!1,A.push((a?"":l)+Dr(X,t)+":"+(a?"":" ")+Dr(J,t))}),v?"{}":"{"+P+A.join(","+P)+P+(a?"":c)+"}"):s?JSON.stringify(e)||"null":String(e)}let ee=t.escapeEverything?P4:A4;return A=e.replace(ee,(X,J,ue,Ce,Be,et)=>{if(J){if(t.minimal)return J;let vt=J.charCodeAt(0),Ot=J.charCodeAt(1);if(t.es6){let Dt=(vt-55296)*1024+Ot-56320+65536;return"\\u{"+Ts(Dt,o)+"}"}return Pn(Ts(vt,o))+Pn(Ts(Ot,o))}if(ue)return Pn(Ts(ue.charCodeAt(0),o));if(X=="\0"&&!s&&!b4.test(et.charAt(Be+1)))return"\\0";if(Ce)return Ce==n||t.escapeEverything?"\\"+Ce:Ce;if(g4.test(X))return x4[X];if(t.minimal&&!E4.test(X))return X;let At=Ts(X.charCodeAt(0),o);return s||At.length>2?Pn(At):"\\x"+("00"+At).slice(-2)}),n=="`"&&(A=A.replace(/\$\{/g,"\\${")),t.isScriptContext&&(A=A.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),t.wrap&&(A=n+A+n),A};Dr.version="3.0.2";rd.exports=Dr});var vn=I(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.ArgumentPlaceholder=O4;Xe.ArrayPattern=Xe.ArrayExpression=M4;Xe.BigIntLiteral=U4;Xe.BooleanLiteral=F4;Xe.Identifier=N4;Xe.NullLiteral=R4;Xe.NumericLiteral=j4;Xe.ObjectPattern=Xe.ObjectExpression=k4;Xe.ObjectMethod=D4;Xe.ObjectProperty=L4;Xe.PipelineBareFunction=Y4;Xe.PipelinePrimaryTopicReference=J4;Xe.PipelineTopicExpression=V4;Xe.RegExpLiteral=B4;Xe.SpreadElement=Xe.RestElement=_4;Xe.StringLiteral=q4;Xe.TopicReference=K4;Xe.VoidPattern=X4;Xe._getRawIdentifier=w4;var v4=fe(),nd=id(),C4=ds(),{isAssignmentPattern:I4,isIdentifier:iu}=v4,An="";function w4(e){let{name:t}=e,r=this.tokenMap.find(e,i=>i.value===t);return r?(An=this._originalCode.slice(r.start,r.end),An):An=e.name}function N4(e){if(this._buf._map){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name)}this.word(this.tokenMap?An:e.name)}function O4(){this.tokenChar(63)}function _4(e){this.token("..."),this.print(e.argument)}function k4(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=r}this.rightBrace(e)}function D4(e){this.printJoin(e.decorators),C4._methodHead.call(this,e),this.space(),this.print(e.body)}function L4(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(I4(e.value)&&iu(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&iu(e.key)&&iu(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function M4(e){let t=e.elements,r=t.length;this.tokenChar(91);let i=this.enterDelimited();for(let s=0;s<t.length;s++){let n=t[s];n?(s>0&&this.space(),this.print(n,void 0,!0),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,s)):this.tokenChar(44,s)}this._noLineTerminatorAfterNode=i,this.tokenChar(93)}function B4(e){this.word(`/${e.pattern}/${e.flags}`,!1)}function F4(e){this.word(e.value?"true":"false")}function R4(){this.word("null")}function j4(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value,s=i+"";r.numbers?this.number(nd(i,r),i):t==null?this.number(s,i):this.format.minified?this.number(t.length<s.length?t:s,i):this.number(t,i)}function q4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=nd(e.value,this.format.jsescOption);this.token(r)}function U4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}var sd=new Set(["^^","@@","^","%","#"]);function K4(){let{topicToken:e}=this.format;if(sd.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(sd,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function V4(e){this.print(e.expression)}function Y4(e){this.print(e.callee)}function J4(){this.tokenChar(35)}function X4(){this.word("void")}});var au=I(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.AnyTypeAnnotation=G4;G.ArrayTypeAnnotation=Q4;G.BooleanLiteralTypeAnnotation=eR;G.BooleanTypeAnnotation=Z4;G.DeclareClass=rR;G.DeclareExportAllDeclaration=hR;G.DeclareExportDeclaration=fR;G.DeclareFunction=iR;G.DeclareInterface=aR;G.DeclareModule=oR;G.DeclareModuleExports=lR;G.DeclareOpaqueType=cR;G.DeclareTypeAlias=uR;G.DeclareVariable=pR;G.DeclaredPredicate=nR;G.EmptyTypeAnnotation=kR;G.EnumBooleanBody=mR;G.EnumBooleanMember=gR;G.EnumDeclaration=dR;G.EnumDefaultedMember=xR;G.EnumNumberBody=yR;G.EnumNumberMember=bR;G.EnumStringBody=TR;G.EnumStringMember=ER;G.EnumSymbolBody=SR;G.ExistsTypeAnnotation=AR;G.FunctionTypeAnnotation=vR;G.FunctionTypeParam=CR;G.IndexedAccessType=tj;G.InferredPredicate=sR;G.InterfaceDeclaration=od;G.GenericTypeAnnotation=G.ClassImplements=G.InterfaceExtends=IR;G.InterfaceTypeAnnotation=NR;G.IntersectionTypeAnnotation=OR;G.MixedTypeAnnotation=_R;G.NullLiteralTypeAnnotation=tR;G.NullableTypeAnnotation=DR;Object.defineProperty(G,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return ad.NumericLiteral}});G.NumberTypeAnnotation=LR;G.ObjectTypeAnnotation=KR;G.ObjectTypeCallProperty=YR;G.ObjectTypeIndexer=JR;G.ObjectTypeInternalSlot=VR;G.ObjectTypeProperty=XR;G.ObjectTypeSpreadProperty=WR;G.OpaqueType=ud;G.OptionalIndexedAccessType=rj;G.QualifiedTypeIdentifier=$R;Object.defineProperty(G,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return ad.StringLiteral}});G.StringTypeAnnotation=MR;G.SymbolTypeAnnotation=HR;G.ThisTypeAnnotation=BR;G.TupleTypeAnnotation=FR;G.TypeAlias=ld;G.TypeAnnotation=jR;G.TypeCastExpression=QR;G.TypeParameter=UR;G.TypeParameterDeclaration=G.TypeParameterInstantiation=qR;G.TypeofTypeAnnotation=RR;G.UnionTypeAnnotation=GR;G.Variance=ZR;G.VoidTypeAnnotation=ej;G._interfaceish=nu;G._variance=Nn;var W4=fe(),$4=tu(),H4=kr(),ad=vn(),{isDeclareExportDeclaration:Cn,isStatement:z4}=W4;function G4(){this.word("any")}function Q4(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function Z4(){this.word("boolean")}function eR(e){this.word(e.value?"true":"false")}function tR(){this.word("null")}function rR(e,t){Cn(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),nu.call(this,e)}function iR(e,t){Cn(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()}function sR(){this.tokenChar(37),this.word("checks")}function nR(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function aR(e){this.word("declare"),this.space(),od.call(this,e)}function oR(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function lR(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function uR(e){this.word("declare"),this.space(),ld.call(this,e)}function cR(e,t){Cn(t)||(this.word("declare"),this.space()),ud.call(this,e)}function pR(e,t){Cn(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function fR(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),PR.call(this,e)}function hR(e){this.word("declare"),this.space(),$4.ExportAllDeclaration.call(this,e)}function dR(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function In(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function wn(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let i of r)e.print(i),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function mR(e){let{explicitType:t}=e;In(this,"boolean",t),wn(this,e)}function yR(e){let{explicitType:t}=e;In(this,"number",t),wn(this,e)}function TR(e){let{explicitType:t}=e;In(this,"string",t),wn(this,e)}function SR(e){In(this,"symbol",!0),wn(this,e)}function xR(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function su(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function gR(e){su(this,e)}function bR(e){su(this,e)}function ER(e){su(this,e)}function PR(e){if(e.declaration){let t=e.declaration;this.print(t),z4(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function AR(){this.tokenChar(42)}function vR(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)}function CR(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)}function IR(e){this.print(e.id),this.print(e.typeParameters,!0)}function nu(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),e.type==="DeclareClass"){var r,i;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(i=e.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)}function Nn(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function od(e){this.word("interface"),this.space(),nu.call(this,e)}function wR(e){this.space(),this.token("&",!1,e),this.space()}function NR(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)}function OR(e){this.printJoin(e.types,void 0,void 0,wR)}function _R(){this.word("mixed")}function kR(){this.word("empty")}function DR(e){this.tokenChar(63),this.print(e.typeAnnotation)}function LR(){this.word("number")}function MR(){this.word("string")}function BR(){this.word("this")}function FR(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function RR(e){this.word("typeof"),this.space(),this.print(e.argument)}function ld(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function jR(e,t){this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression"?this.tokenContext|=H4.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function qR(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function UR(e){Nn.call(this,e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function ud(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function KR(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)}function VR(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function YR(e){e.static&&(this.word("static"),this.space()),this.print(e.value)}function JR(e){e.static&&(this.word("static"),this.space()),Nn.call(this,e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function XR(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),Nn.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function WR(e){this.token("..."),this.print(e.argument)}function $R(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function HR(){this.word("symbol")}function zR(e){this.space(),this.token("|",!1,e),this.space()}function GR(e){this.printJoin(e.types,void 0,void 0,zR)}function QR(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function ZR(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function ej(){this.word("void")}function tj(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function rj(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var eu=I(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.ClassAccessorProperty=fj;qt.ClassBody=uj;qt.ClassExpression=qt.ClassDeclaration=lj;qt.ClassMethod=dj;qt.ClassPrivateMethod=mj;qt.ClassPrivateProperty=hj;qt.ClassProperty=pj;qt.StaticBlock=yj;qt._classMethodHead=ou;var ij=fe(),sj=xn(),On=Zl(),cd=au(),nj=ds(),{isExportDefaultDeclaration:aj,isExportNamedDeclaration:oj}=ij;function lj(e,t){(!(aj(t)||oj(t))||!sj._shouldPrintDecoratorsBeforeExport.call(this,t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function uj(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{let t=cj(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,this.endsWith(10)||this.newline(),this.rightBrace(e)}}function cj(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let i=1,s=0,n=0,a=()=>{for(;n<t.body.length&&t.body[n].start==null;)n++};return a(),o=>{n<=o&&(n=o+1,a());let l=n===t.body.length?t.end:t.body[n].start,c;for(;i<r.length&&e.tokenMap.matchesOriginal(c=e._tokens[r[i]],";")&&c.start<l;)e.tokenChar(59,s++),i++}}function pj(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}On._tsPrintClassMemberModifiers.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(cd._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function fj(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),On._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(cd._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function hj(e){this.printJoin(e.decorators),On._tsPrintClassMemberModifiers.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function dj(e){ou.call(this,e),this.space(),this.print(e.body)}function mj(e){ou.call(this,e),this.space(),this.print(e.body)}function ou(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}On._tsPrintClassMemberModifiers.call(this,e),nj._methodHead.call(this,e)}function yj(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))}});var pd=I(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.BlockStatement=xj;gr.Directive=gj;gr.DirectiveLiteral=Pj;gr.File=Tj;gr.InterpreterDirective=Aj;gr.Placeholder=vj;gr.Program=Sj;function Tj(e){e.program&&this.print(e.program.interpreter),this.print(e.program)}function Sj(e){var t;this.printInnerComments(!1);let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let s=e.body.length?2:1;this.printSequence(e.directives,void 0,void 0,s),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(e.body)}function xj(e){var t;this.tokenChar(123);let r=this.enterDelimited(),i=(t=e.directives)==null?void 0:t.length;if(i){var s;let n=e.body.length?2:1;this.printSequence(e.directives,!0,!0,n),(s=e.directives[i-1].trailingComments)!=null&&s.length||this.newline(n)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=r,this.rightBrace(e)}function gj(e){this.print(e.value),this.semicolon()}var bj=/(?:^|[^\\])(?:\\\\)*'/,Ej=/(?:^|[^\\])(?:\\\\)*"/;function Pj(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!Ej.test(r))this.token(`"${r}"`);else if(!bj.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function Aj(e){this.token(`#!${e.value}`),this._newline()}function vj(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}});var fd=I(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.JSXAttribute=Cj;ct.JSXClosingElement=Fj;ct.JSXClosingFragment=Uj;ct.JSXElement=Lj;ct.JSXEmptyExpression=Rj;ct.JSXExpressionContainer=_j;ct.JSXFragment=jj;ct.JSXIdentifier=Ij;ct.JSXMemberExpression=Nj;ct.JSXNamespacedName=wj;ct.JSXOpeningElement=Bj;ct.JSXOpeningFragment=qj;ct.JSXSpreadAttribute=Oj;ct.JSXSpreadChild=kj;ct.JSXText=Dj;function Cj(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))}function Ij(e){this.word(e.name)}function wj(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function Nj(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function Oj(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function _j(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function kj(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function Dj(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function Lj(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}}function Mj(){this.space()}function Bj(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,Mj)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function Fj(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)}function Rj(){this.printInnerComments()}function jj(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function qj(){this.tokenChar(60),this.tokenChar(62)}function Uj(){this.token("</"),this.tokenChar(62)}});var hd=I(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});var lu=Hl();Object.keys(lu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===lu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return lu[e]}})});var uu=xn();Object.keys(uu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===uu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return uu[e]}})});var cu=qh();Object.keys(cu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===cu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return cu[e]}})});var pu=eu();Object.keys(pu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===pu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return pu[e]}})});var fu=ds();Object.keys(fu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===fu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return fu[e]}})});var hu=tu();Object.keys(hu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===hu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return hu[e]}})});var du=vn();Object.keys(du).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===du[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return du[e]}})});var mu=au();Object.keys(mu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===mu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return mu[e]}})});var yu=pd();Object.keys(yu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===yu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return yu[e]}})});var Tu=fd();Object.keys(Tu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Tu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Tu[e]}})});var Su=Zl();Object.keys(Su).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Su[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Su[e]}})})});var dd=I(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.DecimalLiteral=Yj;ei.Noop=Kj;ei.RecordExpression=Jj;ei.TSExpressionWithTypeArguments=Vj;ei.TupleExpression=Xj;function Kj(){}function Vj(e){this.print(e.expression),this.print(e.typeParameters)}function Yj(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}function Jj(e){let t=e.properties,r,i;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",i="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)}function Xj(e){let t=e.elements,r=t.length,i,s;if(this.format.recordAndTupleSyntaxType==="bar")i="[|",s="|]";else if(this.format.recordAndTupleSyntaxType==="hash")i="#[",s="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(i);for(let n=0;n<t.length;n++){let a=t[n];a&&(n>0&&this.space(),this.print(a),(n<r-1||this.shouldPrintTrailingComma(s))&&this.token(",",!1,n))}this.token(s)}});var xu=I(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.generatorInfosMap=void 0;var md=hd(),yd=dd(),Td=_n.generatorInfosMap=new Map,Sd=0;for(let e of Object.keys(md).sort())e.startsWith("_")||Td.set(e,[md[e],Sd++,void 0]);for(let e of Object.keys(yd))Td.set(e,[yd[e],Sd++,void 0])});var kr=I(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.TokenContext=void 0;Ni.isLastChild=zj;Ni.parentNeedsParens=Hj;var xd=Bh(),Wj=fe(),gd=xu(),{VISITOR_KEYS:$j}=Wj,nee=Ni.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(let e of Object.keys(xd)){let t=xd[e];gd.generatorInfosMap.has(e)&&(gd.generatorInfosMap.get(e)[2]=t)}function bd(e){switch(e.type){case"CallExpression":return!0;case"MemberExpression":return bd(e.object)}return!1}function Hj(e,t,r){switch(r){case 112:if(t.callee===e&&bd(e))return!0;break;case 42:return!gu(e)&&!(e.type==="CallExpression"&&gu(e.callee))&&e.type!=="ParenthesizedExpression"}return!1}function gu(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&gu(e.object);default:return!1}}function zj(e,t){let r=$j[e.type];for(let i=r.length-1;i>=0;i--){let s=e[r[i]];if(s===t)return!0;if(Array.isArray(s)){let n=s.length-1;for(;n>=0&&s[n]===null;)n--;return n>=0&&s[n]===t}else if(s)return!1}return!1}});var Ed=I(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.TokenMap=void 0;var Gj=fe(),{traverseFast:Qj,VISITOR_KEYS:Zj}=Gj,bu=class{constructor(t,r,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=i,Qj(t,s=>{let n=this._getTokensIndexesOfNode(s);n.length>0&&this._nodesToTokenIndexes.set(s,n)}),this._tokensCache.clear()}has(t){return this._nodesToTokenIndexes.has(t)}getIndexes(t){return this._nodesToTokenIndexes.get(t)}find(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=0;s<i.length;s++){let n=i[s],a=this._tokens[n];if(r(a,n))return a}return null}findLastIndex(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=i.length-1;s>=0;s--){let n=i[s],a=this._tokens[n];if(r(a,n))return n}return-1}findMatching(t,r,i=0){let s=this._nodesToTokenIndexes.get(t);if(s){typeof r=="number"&&(r=String.fromCharCode(r));let n=0,a=i;if(a>1){let o=this._nodesOccurrencesCountCache.get(t);o?.test===r&&o.count<a&&(n=o.i+1,i-=o.count+1)}for(;n<s.length;n++){let o=this._tokens[s[n]];if(this.matchesOriginal(o,r)){if(i===0)return a>0&&this._nodesOccurrencesCountCache.set(t,{test:r,count:a,i:n}),o;i--}}}return null}matchesOriginal(t,r){return t.end-t.start!==r.length?!1:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[0]];return s.start!==t.start?!1:this.matchesOriginal(s,r)}endMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[i.length-1]];return s.end!==t.end?!1:this.matchesOriginal(s,r)}_getTokensIndexesOfNode(t){var r;if(t.start==null||t.end==null)return[];let{first:i,last:s}=this._findTokensOfNode(t,0,this._tokens.length-1),n=i,a=e8(t);(t.type==="ExportNamedDeclaration"||t.type==="ExportDefaultDeclaration")&&((r=t.declaration)==null?void 0:r.type)==="ClassDeclaration"&&a.next();let o=[];for(let l of a){if(l==null||l.start==null||l.end==null)continue;let c=this._findTokensOfNode(l,n,s),f=c.first;for(let x=n;x<f;x++)o.push(x);n=c.last+1}for(let l=n;l<=s;l++)o.push(l);return o}_findTokensOfNode(t,r,i){let s=this._tokensCache.get(t);if(s)return s;let n=this._findFirstTokenOfNode(t.start,r,i),a=this._findLastTokenOfNode(t.end,n,i);return this._tokensCache.set(t,{first:n,last:a}),{first:n,last:a}}_findFirstTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].start)i=s-1;else if(t>this._tokens[s].start)r=s+1;else return s}return r}_findLastTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].end)i=s-1;else if(t>this._tokens[s].end)r=s+1;else return s}return i}};kn.TokenMap=bu;function*e8(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r<e.quasis.length;r++)yield e.expressions[r-1],yield e.quasis[r];return}let t=Zj[e.type];for(let r of t){let i=e[r];i&&(Array.isArray(i)?yield*i:yield i)}}});var vd=I(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.default=void 0;var t8=Np(),Lr=kr(),r8=xu(),i8=fe(),s8=Ed(),n8=vn(),{isExpression:a8,isFunction:o8,isStatement:l8,isClassBody:u8,isTSInterfaceBody:c8,isTSEnumMember:p8}=i8,f8=/e/i,h8=/\.0+$/,Ad=/[\n\r\u2028\u2029]/,d8=/[\n\r\u2028\u2029]|\*\//;function Pd(e){return e.type==="CommentLine"||Ad.test(e.value)}var Eu=class{constructor(t,r,i=null,s=null){this.tokenContext=Lr.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=t,this._tokens=i,this._originalCode=s,this._indentRepeat=t.indent.style.length,this._inputMap=r?._inputMap||null,this._buf=new t8.default(r,t.indent.style[0]);let{preserveFormat:n,compact:a,concise:o,retainLines:l,retainFunctionParens:c}=t;n&&(this._flags|=1),a&&(this._flags|=2),o&&(this._flags|=4),l&&(this._flags|=8),c&&(this._flags|=16),(t.auxiliaryCommentBefore||t.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){let t=this._noLineTerminatorAfterNode;return t!==null&&(this._noLineTerminatorAfterNode=null),t}generate(t){return this.format.preserveFormat&&(this.tokenMap=new s8.TokenMap(t,this._tokens,this._originalCode),this._boundGetRawIdentifier=n8._getRawIdentifier.bind(this)),this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(t=this._flags){t&7||(this._indent+=this._indentRepeat)}dedent(t=this._flags){t&7||(this._indent-=this._indentRepeat)}semicolon(t=!1){let r=this._flags;if(r&32&&this._maybeAddAuxComment(),r&1){let i=this._currentNode;if(i.start!=null&&i.end!=null){if(!this.tokenMap.endMatches(i,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let s=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[s[s.length-1]].loc.start)}}t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!(this._flags&3))if(t)this._space();else{let r=this.getLastChar(!0);r!==0&&r!==32&&r!==10&&this._space()}}word(t,r=!1){this.tokenContext&=Lr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t);let s=this.getLastChar();(s===-2||s===-3||s===47&&t.charCodeAt(0)===47)&&this._space(),this._append(t,!1),this.setLastChar(-3),this._noLineTerminator=r}number(t,r){function i(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(t),Number.isInteger(r)&&!i(t)&&!f8.test(t)&&!h8.test(t)&&t.charCodeAt(t.length-1)!==46&&this.setLastChar(-2)}token(t,r=!1,i=0,s=!1){this.tokenContext&=Lr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,i);let n=this._flags;if(n&32&&this._maybeAddAuxComment(),n&1&&this._catchUpToCurrentToken(t,i),s){let a=t.charCodeAt(0);((a===45&&t==="--"||a===61)&&this.getLastChar()===33||a===43&&this.getLastChar()===43||a===45&&this.getLastChar()===45||a===46&&this.getLastChar()===-2)&&this._space()}this._append(t,r),this._noLineTerminator=!1}tokenChar(t,r=0){this.tokenContext&=Lr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,r);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t,r),(t===43&&this.getLastChar()===43||t===45&&this.getLastChar()===45||t===46&&this.getLastChar()===-2)&&this._space(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r=this._flags){if(!(t<=0)&&!(r&10)){if(r&4){this.space();return}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let i=0;i<t;i++)this._newline()}}endsWith(t){return this.getLastChar(!0)===t}getLastChar(t){return this._buf.getLastChar(t)}setLastChar(t){this._buf._last=t}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,i){!r||this.format.preserveFormat||(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,i))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=t}_space(){this._queue(32)}_newline(){this._buf._queuedChar===32&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(t,r=0){let i=this.tokenMap.findMatching(this._currentNode,t,r);i&&this._catchUpTo(i.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(t,r){this._maybeIndent(),this._buf.append(t,r)}_appendChar(t,r){r||this._maybeIndent(),this._buf.appendChar(t)}_queue(t){this._buf.queue(t),this.setLastChar(-1)}_maybeIndent(){let t=this._shouldIndent();t>0&&this._buf._appendChar(-1,t,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(t,r){let i=this._flags;if((i&1)===0){i&8&&r!=null&&r[t]&&this.catchUp(r[t].line);return}let s=r?.[t];s!=null&&this._catchUpTo(s)}_catchUpTo({line:t,column:r,index:i}){let s=t-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let a=0;a<s;a++)this._newline();let n=s>0?r:r-this._buf.getCurrentColumn();if(n>0){let a=this._originalCode?this._originalCode.slice(i-n,i).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(n);this._append(a,!1),this.setLastChar(32)}}printTerminatorless(t){this._noLineTerminator=!0,this.print(t)}print(t,r=!1,i=!1,s){var n,a;if(!t)return;this._innerCommentsState=0;let{type:o,loc:l,extra:c}=t,f=this._flags,x=!1;t._compact&&(this._flags|=4,x=!0);let P=r8.generatorInfosMap.get(o);if(P===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(t.constructor.name)}`);let[A,v,_]=P,w=this._currentNode,O=this._currentTypeId;this._currentNode=t,this._currentTypeId=v,f&1&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let L;f&32&&(L=this._insideAux,this._insideAux=l==null,this._maybeAddAuxComment(this._insideAux&&!L));let ee=0;i&&(ee=this.tokenContext,ee&Lr.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:ee=0);let X=c!=null&&c.parenthesized,J=X&&f&1||X&&f&16&&v===71||w&&((0,Lr.parentNeedsParens)(t,w,O)||_!=null&&_(t,w,O,this.tokenContext,f&1?this._boundGetRawIdentifier:void 0));if(!J&&X&&(n=t.leadingComments)!=null&&n.length&&t.leadingComments[0].type==="CommentBlock")switch(O){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(w.callee!==t)break;default:J=!0}let ue=!1;!J&&this._noLineTerminator&&((a=t.leadingComments)!=null&&a.some(Pd)||f&8&&l&&l.start.line>this._buf.getCurrentLine())&&(J=!0,ue=!0);let Ce;if(!J&&(r||(r=!!w&&this._noLineTerminatorAfterNode===w&&(0,Lr.isLastChild)(w,t)),r)){var Be;(Be=t.trailingComments)!=null&&Be.some(Pd)?a8(t)&&(J=!0):(Ce=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=t)}J&&(this.tokenChar(40),ue&&this.indent(),this._innerCommentsState=0,i||(ee=this.tokenContext),ee&Lr.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),Ce=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(t,w),this.exactSource(v===139||v===66?null:l,A.bind(this,t,w)),J?(this._printTrailingComments(t,w),ue&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,w)):this._printTrailingComments(t,w,s),ee&&(this.tokenContext=ee),this._currentNode=w,this._currentTypeId=O,x&&(this._flags=f),f&32&&(this._insideAux=L),Ce!=null&&(this._noLineTerminatorAfterNode=Ce),this._innerCommentsState=0}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){let r=t.extra;if(r?.raw!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r,i,s,n,a,o){if(!(t!=null&&t.length))return;let l=this._flags;if(i==null&&l&8){var c;let P=(c=t[0].loc)==null?void 0:c.start.line;P!=null&&P!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent(l);let f=t.length;for(let P=0;P<f;P++){let A=t[P];if(A&&(r&&P===0&&this._buf.hasContent()&&this.newline(1,l),this.print(A,!1,a,o||0),s!=null&&(P<f-1?s.call(this,P,!1):n&&s.call(this,P,!0)),r))if(P+1===f)this.newline(1,l);else{let v=this._lastCommentLine;if(v>0){var x;let _=(((x=t[P+1].loc)==null?void 0:x.start.line)||0)-v;if(_>=0){this.newline(_||1,l);continue}}this.newline(1,l)}}i&&this.dedent(l)}printAndIndentOnComments(t){let r=t.leadingComments&&t.leadingComments.length>0;r&&this.indent(),this.print(t),r&&this.dedent()}printBlock(t){t.type!=="EmptyStatement"&&this.space(),this.print(t)}_printTrailingComments(t,r,i){let{innerComments:s,trailingComments:n}=t;s!=null&&s.length&&this._printComments(2,s,t,r,i),n!=null&&n.length?this._printComments(2,n,t,r,i):this._lastCommentLine=0}_printLeadingComments(t,r){let i=t.leadingComments;i!=null&&i.length&&this._printComments(0,i,t,r)}_maybePrintInnerComments(t,r){var i;let s=this._innerCommentsState;switch(s&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((s&4)>0,(i=this.tokenMap)==null?void 0:i.findMatching(this._currentNode,t,r))}}printInnerComments(t=!0,r){let i=this._currentNode,s=i.innerComments;if(!(s!=null&&s.length)){this._innerCommentsState=2;return}let n=this.endsWith(32);switch(t&&this.indent(),this._printComments(1,s,i,void 0,void 0,r)){case 2:this._innerCommentsState=2;case 1:n&&this.space()}t&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(t,r,i,s){this.printJoin(t,!0,r??!1,void 0,void 0,i,s)}printList(t,r,i,s,n,a){this.printJoin(t,i,s,n??m8,r,a)}shouldPrintTrailingComma(t){if(!this.tokenMap)return null;let r=this.tokenMap.findLastIndex(this._currentNode,i=>this.tokenMap.matchesOriginal(i,typeof t=="number"?String.fromCharCode(t):t));return r<=0?null:this.tokenMap.matchesOriginal(this._tokens[r-1],",")}_shouldPrintComment(t,r){if(t.ignore||this._printedComments.has(t))return 0;if(this._noLineTerminator&&d8.test(t.value))return 2;if(r&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,s=>s.value===t.value);if(i&&i.start>r.start)return 2}return this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0}_printComment(t,r){let i=this._noLineTerminator,s=t.type==="CommentBlock",n=s&&r!==1&&!i;switch(n&&this._buf.hasContent()&&r!==2&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let a;if(s){if(a=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var o;let l=(o=t.loc)==null?void 0:o.start.column;if(l){let c=new RegExp("\\n\\s{1,"+l+"}","g");a=a.replace(c,`
|
|
13
|
+
`)}if(this._flags&4)a=a.replace(/\n(?!$)/g,`
|
|
14
|
+
`);else{let c=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent()||this.format.retainLines)&&(c+=this._indent),a=a.replace(/\n(?!$)/g,`
|
|
15
|
+
${" ".repeat(c)}`)}}}else i?a=`/*${t.value}*/`:a=`//${t.value}`;this.source("start",t.loc),this._append(a,s),!s&&!i&&this._newline(),n&&r!==3&&this.newline(1)}_printComments(t,r,i,s,n=0,a){let o=i.loc,l=r.length,c=!!o,f=c?o.start.line:0,x=c?o.end.line:0,P=0,A=0,{_noLineTerminator:v,_flags:_}=this;for(let w=0;w<l;w++){let O=r[w],L=this._shouldPrintComment(O,a);if(L===2)return w===0?0:1;if(c&&O.loc&&L===1){let ee=O.loc.start.line,X=O.loc.end.line;if(t===0){let J=0;if(w===0?this._buf.hasContent()&&(O.type==="CommentLine"||ee!==X)&&(J=A=1):J=ee-P,P=X,J>0&&!v&&this.newline(J,_),this._printComment(O,1),w+1===l){let ue=Math.max(f-P,A);ue>0&&!v&&this.newline(ue,_),P=f}}else if(t===1){let J=ee-(w===0?f:P);if(P=X,J>0&&!v&&this.newline(J,_),this._printComment(O,1),w+1===l){let ue=Math.min(1,x-P);ue>0&&!v&&this.newline(ue,_),P=x}}else{let J=ee-(w===0?x-n:P);P=X,J>0&&!v&&this.newline(J,_),this._printComment(O,1)}}else{if(c=!1,L!==1)continue;if(l===1){let ee=O.loc?O.loc.start.line===O.loc.end.line:!Ad.test(O.value),X=ee&&!l8(i)&&!u8(s)&&!c8(s)&&!p8(i);t===0?this._printComment(O,X&&i.type!=="ObjectExpression"||ee&&o8(s)&&s.body===i?1:0):X&&t===2?this._printComment(O,1):this._printComment(O,0)}else t===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(O,w===0?2:w===l-1?3:0):this._printComment(O,0)}}return t===2&&c&&P&&(this._lastCommentLine=P),2}},lee=Dn.default=Eu;function m8(e,t){this.tokenChar(44,e),t||this.space()}});var Pu=I(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.default=void 0;Oi.generate=Nd;var Cd=Ip(),Id=vd();function wd(e,t,r){var i;if(t.experimental_preserveFormat){if(typeof e!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&t.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let s={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken};s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.recordAndTupleSyntaxType=(i=t.recordAndTupleSyntaxType)!=null?i:"hash",s.importAttributesKeyword=t.importAttributesKeyword,s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(l=>s.comments||l.includes("@license")||l.includes("@preserve")),s.compact==="auto"&&(s.compact=typeof e=="string"&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(s.compact||s.preserveFormat)&&(s.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:n,auxiliaryCommentAfter:a,shouldPrintComment:o}=s;return n&&!o(n)&&(s.auxiliaryCommentBefore=void 0),a&&!o(a)&&(s.auxiliaryCommentAfter=void 0),s}Oi.CodeGenerator=class{constructor(t,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=wd(i,r,t),this._map=r.sourceMaps?new Cd.default(r,i):null}generate(){return new Id.default(this._format,this._map).generate(this._ast)}};function Nd(e,t={},r){let i=wd(r,t,e),s=t.sourceMaps?new Cd.default(t,r):null;return new Id.default(i,s,e.tokens,typeof r=="string"?r:null).generate(e)}var pee=Oi.default=Nd});var Vn=I(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});function y8(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var ur=class{constructor(t,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=i}},Li=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function bt(e,t){let{line:r,column:i,index:s}=e;return new ur(r,i+t,s+t)}var Od="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",T8={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Od},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Od}},_d={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Bn=e=>e.type==="UpdateExpression"?_d.UpdateExpression[`${e.prefix}`]:_d[e.type],S8={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
16
|
+
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
|
|
17
|
+
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Bn(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Bn(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Bn(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},x8={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},g8={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},b8=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),E8=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Bn({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),P8=["message"];function kd(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function A8({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins",n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return n[r]&&(r=n[r]),function a(o,l){let c=new SyntaxError;return c.code=t,c.reasonCode=r,c.loc=o,c.pos=o.index,c.syntaxPlugin=i,s&&(c.missingPlugin=l.missingPlugin),kd(c,"clone",function(x={}){var P;let{line:A,column:v,index:_}=(P=x.loc)!=null?P:o;return a(new ur(A,v,_),Object.assign({},l,x.details))}),kd(c,"details",l),Object.defineProperty(c,"message",{configurable:!0,get(){let f=`${e(l)} (${o.line}:${o.column})`;return this.message=f,f},set(f){Object.defineProperty(this,"message",{value:f,writable:!0})}}),c}}function or(e,t){if(Array.isArray(e))return i=>or(i,e[0]);let r={};for(let i of Object.keys(e)){let s=e[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,o=y8(n,P8),l=typeof a=="string"?()=>a:a;r[i]=A8(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var b=Object.assign({},or(T8),or(S8),or(x8),or(g8),or`pipelineOperator`(E8));function v8(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function C8(e){let t=v8();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:I8}=Object,Dd=(e,t)=>{e&&I8(e,t,{enumerable:!1,value:e[t]})};function xs(e){return Dd(e.loc.start,"index"),Dd(e.loc.end,"index"),e}var w8=e=>class extends e{parse(){let r=xs(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(xs)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:r,flags:i},n}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||r),s}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,i){let s=this.startNodeAtNode(r);return s.expression=r,this.finishNodeAt(s,"ChainExpression",i)}directiveToStmt(r){let i=r.value;delete r.value,this.castNodeTo(i,"Literal"),i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=this.castNodeTo(r,"ExpressionStatement");return s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:i,end:s,loc:n,range:a,raw:o,value:l}=r,c=Object.create(r.constructor.prototype);return c.type="Literal",c.start=i,c.end=s,c.loc=n,c.range=a,c.raw=o,c.value=l,c}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,a){super.parseBlockBody(r,i,s,n,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,a,o,l=!1){let c=this.startNode();c.kind=r.kind,c=super.parseMethod(c,i,s,n,a,o,l),delete c.kind;let{typeParameters:f}=r;f&&(delete r.typeParameters,c.typeParameters=f,this.resetStartLocationFromNode(c,f));let x=this.castNodeTo(c,"FunctionExpression");return r.value=x,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(i,"PropertyDefinition"),i.computed=!1),i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty")),i}parseObjectProperty(r,i,s,n){let a=super.parseObjectProperty(r,i,s,n);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,s,n){return r==="Property"?"value":super.isValidLVal(r,i,s,n)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(b.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(b.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){var n,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(r,i){let s=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,i,s,n,a){let o=super.parseMember(r,i,s,n,a);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let s=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,s){return xs(super.finishNodeAt(r,i,s))}finishNode(r,i){let s=super.finishNode(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(r,i){super.resetStartLocation(r,i),xs(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),xs(r)}},ri=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},we={brace:new ri("{"),j_oTag:new ri("<tag"),j_cTag:new ri("</tag"),j_expr:new ri("<tag>...</tag>",!0)};we.template=new ri("`",!0);var de=!0,Y=!0,Au=!0,gs=!0,Mr=!0,N8=!0,jn=class{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},Gu=new Map;function Ae(e,t={}){t.keyword=e;let r=ie(e,t);return Gu.set(e,r),r}function gt(e,t){return ie(e,{beforeExpr:de,binop:t})}var As=-1,Er=[],Qu=[],Zu=[],ec=[],tc=[],rc=[];function ie(e,t={}){var r,i,s,n;return++As,Qu.push(e),Zu.push((r=t.binop)!=null?r:-1),ec.push((i=t.beforeExpr)!=null?i:!1),tc.push((s=t.startsExpr)!=null?s:!1),rc.push((n=t.prefix)!=null?n:!1),Er.push(new jn(e,t)),As}function me(e,t={}){var r,i,s,n;return++As,Gu.set(e,As),Qu.push(e),Zu.push((r=t.binop)!=null?r:-1),ec.push((i=t.beforeExpr)!=null?i:!1),tc.push((s=t.startsExpr)!=null?s:!1),rc.push((n=t.prefix)!=null?n:!1),Er.push(new jn("name",t)),As}var O8={bracketL:ie("[",{beforeExpr:de,startsExpr:Y}),bracketHashL:ie("#[",{beforeExpr:de,startsExpr:Y}),bracketBarL:ie("[|",{beforeExpr:de,startsExpr:Y}),bracketR:ie("]"),bracketBarR:ie("|]"),braceL:ie("{",{beforeExpr:de,startsExpr:Y}),braceBarL:ie("{|",{beforeExpr:de,startsExpr:Y}),braceHashL:ie("#{",{beforeExpr:de,startsExpr:Y}),braceR:ie("}"),braceBarR:ie("|}"),parenL:ie("(",{beforeExpr:de,startsExpr:Y}),parenR:ie(")"),comma:ie(",",{beforeExpr:de}),semi:ie(";",{beforeExpr:de}),colon:ie(":",{beforeExpr:de}),doubleColon:ie("::",{beforeExpr:de}),dot:ie("."),question:ie("?",{beforeExpr:de}),questionDot:ie("?."),arrow:ie("=>",{beforeExpr:de}),template:ie("template"),ellipsis:ie("...",{beforeExpr:de}),backQuote:ie("`",{startsExpr:Y}),dollarBraceL:ie("${",{beforeExpr:de,startsExpr:Y}),templateTail:ie("...`",{startsExpr:Y}),templateNonTail:ie("...${",{beforeExpr:de,startsExpr:Y}),at:ie("@"),hash:ie("#",{startsExpr:Y}),interpreterDirective:ie("#!..."),eq:ie("=",{beforeExpr:de,isAssign:gs}),assign:ie("_=",{beforeExpr:de,isAssign:gs}),slashAssign:ie("_=",{beforeExpr:de,isAssign:gs}),xorAssign:ie("_=",{beforeExpr:de,isAssign:gs}),moduloAssign:ie("_=",{beforeExpr:de,isAssign:gs}),incDec:ie("++/--",{prefix:Mr,postfix:N8,startsExpr:Y}),bang:ie("!",{beforeExpr:de,prefix:Mr,startsExpr:Y}),tilde:ie("~",{beforeExpr:de,prefix:Mr,startsExpr:Y}),doubleCaret:ie("^^",{startsExpr:Y}),doubleAt:ie("@@",{startsExpr:Y}),pipeline:gt("|>",0),nullishCoalescing:gt("??",1),logicalOR:gt("||",1),logicalAND:gt("&&",2),bitwiseOR:gt("|",3),bitwiseXOR:gt("^",4),bitwiseAND:gt("&",5),equality:gt("==/!=/===/!==",6),lt:gt("</>/<=/>=",7),gt:gt("</>/<=/>=",7),relational:gt("</>/<=/>=",7),bitShift:gt("<</>>/>>>",8),bitShiftL:gt("<</>>/>>>",8),bitShiftR:gt("<</>>/>>>",8),plusMin:ie("+/-",{beforeExpr:de,binop:9,prefix:Mr,startsExpr:Y}),modulo:ie("%",{binop:10,startsExpr:Y}),star:ie("*",{binop:10}),slash:gt("/",10),exponent:ie("**",{beforeExpr:de,binop:11,rightAssociative:!0}),_in:Ae("in",{beforeExpr:de,binop:7}),_instanceof:Ae("instanceof",{beforeExpr:de,binop:7}),_break:Ae("break"),_case:Ae("case",{beforeExpr:de}),_catch:Ae("catch"),_continue:Ae("continue"),_debugger:Ae("debugger"),_default:Ae("default",{beforeExpr:de}),_else:Ae("else",{beforeExpr:de}),_finally:Ae("finally"),_function:Ae("function",{startsExpr:Y}),_if:Ae("if"),_return:Ae("return",{beforeExpr:de}),_switch:Ae("switch"),_throw:Ae("throw",{beforeExpr:de,prefix:Mr,startsExpr:Y}),_try:Ae("try"),_var:Ae("var"),_const:Ae("const"),_with:Ae("with"),_new:Ae("new",{beforeExpr:de,startsExpr:Y}),_this:Ae("this",{startsExpr:Y}),_super:Ae("super",{startsExpr:Y}),_class:Ae("class",{startsExpr:Y}),_extends:Ae("extends",{beforeExpr:de}),_export:Ae("export"),_import:Ae("import",{startsExpr:Y}),_null:Ae("null",{startsExpr:Y}),_true:Ae("true",{startsExpr:Y}),_false:Ae("false",{startsExpr:Y}),_typeof:Ae("typeof",{beforeExpr:de,prefix:Mr,startsExpr:Y}),_void:Ae("void",{beforeExpr:de,prefix:Mr,startsExpr:Y}),_delete:Ae("delete",{beforeExpr:de,prefix:Mr,startsExpr:Y}),_do:Ae("do",{isLoop:Au,beforeExpr:de}),_for:Ae("for",{isLoop:Au}),_while:Ae("while",{isLoop:Au}),_as:me("as",{startsExpr:Y}),_assert:me("assert",{startsExpr:Y}),_async:me("async",{startsExpr:Y}),_await:me("await",{startsExpr:Y}),_defer:me("defer",{startsExpr:Y}),_from:me("from",{startsExpr:Y}),_get:me("get",{startsExpr:Y}),_let:me("let",{startsExpr:Y}),_meta:me("meta",{startsExpr:Y}),_of:me("of",{startsExpr:Y}),_sent:me("sent",{startsExpr:Y}),_set:me("set",{startsExpr:Y}),_source:me("source",{startsExpr:Y}),_static:me("static",{startsExpr:Y}),_using:me("using",{startsExpr:Y}),_yield:me("yield",{startsExpr:Y}),_asserts:me("asserts",{startsExpr:Y}),_checks:me("checks",{startsExpr:Y}),_exports:me("exports",{startsExpr:Y}),_global:me("global",{startsExpr:Y}),_implements:me("implements",{startsExpr:Y}),_intrinsic:me("intrinsic",{startsExpr:Y}),_infer:me("infer",{startsExpr:Y}),_is:me("is",{startsExpr:Y}),_mixins:me("mixins",{startsExpr:Y}),_proto:me("proto",{startsExpr:Y}),_require:me("require",{startsExpr:Y}),_satisfies:me("satisfies",{startsExpr:Y}),_keyof:me("keyof",{startsExpr:Y}),_readonly:me("readonly",{startsExpr:Y}),_unique:me("unique",{startsExpr:Y}),_abstract:me("abstract",{startsExpr:Y}),_declare:me("declare",{startsExpr:Y}),_enum:me("enum",{startsExpr:Y}),_module:me("module",{startsExpr:Y}),_namespace:me("namespace",{startsExpr:Y}),_interface:me("interface",{startsExpr:Y}),_type:me("type",{startsExpr:Y}),_opaque:me("opaque",{startsExpr:Y}),name:ie("name",{startsExpr:Y}),placeholder:ie("%%",{startsExpr:Y}),string:ie("string",{startsExpr:Y}),num:ie("num",{startsExpr:Y}),bigint:ie("bigint",{startsExpr:Y}),decimal:ie("decimal",{startsExpr:Y}),regexp:ie("regexp",{startsExpr:Y}),privateName:ie("#name",{startsExpr:Y}),eof:ie("eof"),jsxName:ie("jsxName"),jsxText:ie("jsxText",{beforeExpr:de}),jsxTagStart:ie("jsxTagStart",{startsExpr:Y}),jsxTagEnd:ie("jsxTagEnd")};function ke(e){return e>=93&&e<=133}function _8(e){return e<=92}function zt(e){return e>=58&&e<=133}function Jd(e){return e>=58&&e<=137}function k8(e){return ec[e]}function Es(e){return tc[e]}function D8(e){return e>=29&&e<=33}function Ld(e){return e>=129&&e<=131}function L8(e){return e>=90&&e<=92}function ic(e){return e>=58&&e<=92}function M8(e){return e>=39&&e<=59}function B8(e){return e===34}function F8(e){return rc[e]}function R8(e){return e>=121&&e<=123}function j8(e){return e>=124&&e<=130}function Fr(e){return Qu[e]}function Fn(e){return Zu[e]}function q8(e){return e===57}function qn(e){return e>=24&&e<=25}function br(e){return Er[e]}Er[8].updateContext=e=>{e.pop()};Er[5].updateContext=Er[7].updateContext=Er[23].updateContext=e=>{e.push(we.brace)};Er[22].updateContext=e=>{e[e.length-1]===we.template?e.pop():e.push(we.template)};Er[143].updateContext=e=>{e.push(we.j_expr,we.j_oTag)};var sc="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Xd="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",U8=new RegExp("["+sc+"]"),K8=new RegExp("["+sc+Xd+"]");sc=Xd=null;var Wd=[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],V8=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Ou(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function lr(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&U8.test(String.fromCharCode(e)):Ou(e,Wd)}function ii(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&K8.test(String.fromCharCode(e)):Ou(e,Wd)||Ou(e,V8)}var nc={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Y8=new Set(nc.keyword),J8=new Set(nc.strict),X8=new Set(nc.strictBind);function $d(e,t){return t&&e==="await"||e==="enum"}function Hd(e,t){return $d(e,t)||J8.has(e)}function zd(e){return X8.has(e)}function Gd(e,t){return Hd(e,t)||zd(e)}function W8(e){return Y8.has(e)}function $8(e,t,r){return e===64&&t===64&&lr(r)}var H8=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function z8(e){return H8.has(e)}var vs=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},Cs=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new vs(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,t,r,i);let n=s.names.get(t)||0;r&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=t),n=n|2),s.names.set(t,n),r&8&&this.maybeExportDefined(s,t)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,t,r,i),s.names.set(t,(s.names.get(t)||0)|1),this.maybeExportDefined(s,t),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,i,s){this.isRedeclaredInScope(t,r,i)&&this.parser.raise(b.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(t,r,i){if(!(i&1))return!1;if(i&8)return t.names.has(r);let s=t.names.get(r)||0;return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(t)&&(s&1)>0:(s&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(s&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},_u=class extends vs{constructor(...t){super(...t),this.declareFunctions=new Set}},ku=class extends Cs{createScope(t){return new _u(t)}declareName(t,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t),s.declareFunctions.add(t);return}super.declareName(t,r,i)}isRedeclaredInScope(t,r,i){if(super.isRedeclaredInScope(t,r,i))return!0;if(i&2048&&!t.declareFunctions.has(r)){let s=t.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},G8=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ne=or`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Q8(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Md(e){return e.importKind==="type"||e.importKind==="typeof"}var Z8={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function e6(e,t){let r=[],i=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?r:i).push(e[s]);return[r,i]}var t6=/\*?\s*@((?:no)?flow)\b/,r6=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return ku}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,i){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=t6.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(ne.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(ne.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ne.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(o))):(this.expectContextual(125,ne.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=!1;return s.forEach(o=>{Q8(o)?(n==="CommonJS"&&this.raise(ne.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(ne.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(ne.AmbiguousDeclareModuleKind,o),n="CommonJS",a=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(ne.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:Z8[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(ne.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){G8.has(r)&&this.raise(s?ne.AssignReservedType:ne.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifierName(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifierName(r)}flowParseRestrictedIdentifier(r,i){let s=this.startNode(),n=this.flowParseRestrictedIdentifierName(r,i);return this.createIdentifier(s,n)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let r=this.startNode();return this.next(),r.typeAnnotation=this.flowParseType(),this.finishNode(r,"TypeAnnotation")}}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance();return s.name=this.flowParseRestrictedIdentifierName(),s.variance=n,s.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(ne.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==we.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=i,!this.state.inType&&this.curContext()===we.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let c,f,x=!1;for(i&&this.match(6)?(this.expect(6),c=9,f=!0):(this.expect(5),c=8,f=!1),l.exact=f;!this.match(c);){let A=!1,v=null,_=null,w=this.startNode();if(n&&this.isContextual(118)){let L=this.lookahead();L.type!==14&&L.type!==17&&(this.next(),v=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let L=this.lookahead();L.type!==14&&L.type!==17&&(this.next(),A=!0)}let O=this.flowParseVariance();if(this.eat(0))v!=null&&this.unexpected(v),this.eat(0)?(O&&this.unexpected(O.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(w,A))):l.indexers.push(this.flowParseObjectTypeIndexer(w,A,O));else if(this.match(10)||this.match(47))v!=null&&this.unexpected(v),O&&this.unexpected(O.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(w,A));else{let L="init";if(this.isContextual(99)||this.isContextual(104)){let X=this.lookahead();Jd(X.type)&&(L=this.state.value,this.next())}let ee=this.flowParseObjectTypeProperty(w,A,v,O,L,s,a??!f);ee===null?(x=!0,_=this.state.lastTokStartLoc):l.properties.push(ee)}this.flowObjectTypeSemicolon(),_&&!this.match(8)&&!this.match(9)&&this.raise(ne.UnexpectedExplicitInexactInObject,_)}this.expect(c),s&&(l.inexact=x);let P=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,P}flowParseObjectTypeProperty(r,i,s,n,a,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(ne.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ne.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(ne.InexactVariance,n),null):(o||this.raise(ne.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(ne.SpreadVariance,n),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=a;let c=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(ne.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(c=!0),r.value=this.flowParseTypeInitialiser(),r.variance=n),r.optional=c,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?ne.GetterMayNotHaveThisParam:ne.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?b.BadGetterArity:b.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(b.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let s=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(r);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(ne.ThisParamMustBeFirst,a),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(ne.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=i,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(ke(this.state.type)||this.match(78)){let c=this.lookahead().type;a=c!==17&&c!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(ne.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(ic(this.state.type)){let l=Fr(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(ke(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let r=this.startNode(),i=this.parseIdentifierName();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(r,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,i,s=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(zt(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||ke(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(ke(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Ld(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Ld(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let P=this.lookaheadCharCode();if(P===44||P===61||P===58||P===41)return this.setOptionalParametersError(s),r}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:l,failed:c}=this.tryParseConditionalConsequent(),[f,x]=this.getArrowLikeExpressions(l);if(c||x.length>0){let P=[...a];if(x.length>0){this.state=n,this.state.noArrowAt=P;for(let A=0;A<x.length;A++)P.push(x[A].start);({consequent:l,failed:c}=this.tryParseConditionalConsequent()),[f,x]=this.getArrowLikeExpressions(l)}c&&f.length>1&&this.raise(ne.AmbiguousConditionalArrow,n.startLoc),c&&f.length===1&&(this.state=n,P.push(f[0].start),this.state.noArrowAt=P,{consequent:l,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return i?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):e6(n,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(ne.DeclareClassElement,n):i.value&&this.raise(ne.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(b.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):$8(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];a?.type==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let a=r[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(ne.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return s!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(r,i,s,n){return r==="TypeCastExpression"||super.isValidLVal(r,i,s,n)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,n,a,o){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,n,a,o),i.params&&a){let l=i.params;l.length>0&&this.isThisParam(l[0])&&this.raise(ne.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&a&&i.value.params){let l=i.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(ne.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(ne.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(ne.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,n,a,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(r,i,s,n,a,o,l);return c&&((f.value||f).typeParameters=c),f}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(ne.PatternIsOptional,r),this.isThisParam(r)&&this.raise(ne.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(ne.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(ne.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ne.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ne.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,s){i.local=Md(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,a){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let c=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let x=this.parseIdentifier(!0);l!==null&&!zt(this.state.type)?(r.imported=x,r.importKind=l,r.local=this.cloneIdentifier(x)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(l!==null&&zt(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(i)throw this.raise(b.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(c=!0,r.local=this.cloneIdentifier(r.imported))}let f=Md(r);return s&&f&&this.raise(ne.ImportTypeShorthandOnlyInPureImport,r),(s||f)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),c&&!s&&!f&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!a.error)return a.node;let{context:c}=this.state,f=c[c.length-1];(f===we.j_oTag||f===we.j_expr)&&c.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let c,f=this.tryParse(P=>{var A;c=this.flowParseTypeParameterDeclaration();let v=this.forwardNoArrowParamsConversionAt(c,()=>{let w=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(w,c),w});(A=v.extra)!=null&&A.parenthesized&&P();let _=this.maybeUnwrapTypeCastExpression(v);return _.type!=="ArrowFunctionExpression"&&P(),_.typeParameters=c,this.resetStartLocationFromNode(_,c),v},n),x=null;if(f.node&&this.maybeUnwrapTypeCastExpression(f.node).type==="ArrowFunctionExpression"){if(!f.error&&!f.aborted)return f.node.async&&this.raise(ne.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),f.node;x=f.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(x)return this.state=f.failState,x;throw(l=a)!=null&&l.thrown?a.error:f.thrown?f.error:this.raise(ne.UnexpectedTokenAfterTypeParameter,c)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(ne.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(ne.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ne.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(b.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(ne.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?ne.EnumInvalidMemberInitializerSymbolType:ne.EnumInvalidMemberInitializerPrimaryType:ne.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(ne.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(ne.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:c}=this.flowEnumMemberRaw(),f=l.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(ne.EnumInvalidMemberName,l,{memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:r}),s.has(f)&&this.raise(ne.EnumDuplicateMemberName,l,{memberName:f,enumName:r}),s.add(f);let x={enumName:r,explicitType:i,memberName:f};switch(o.id=l,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,x,"boolean"),o.init=c.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,x,"number"),o.init=c.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,x,"string"),o.init=c.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,x);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,x);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,x);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return i}else{for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!ke(this.state.type))throw this.raise(ne.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(ne.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let c=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let f=o.booleanMembers.length,x=o.numberMembers.length,P=o.stringMembers.length,A=o.defaultedMembers.length;if(!f&&!x&&!P&&!A)return c();if(!f&&!x)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!x&&!P&&f>=A){for(let v of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(v.loc.start,{enumName:s,memberName:v.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!f&&!P&&x>=A){for(let v of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(v.loc.start,{enumName:s,memberName:v.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(ne.EnumInconsistentMemberValues,n,{enumName:s}),c()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},i6={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},s6=/\r\n|[\r\n\u2028\u2029]/,Ln=new RegExp(s6.source,"g");function ki(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Bd(e,t,r){for(let i=t;i<r;i++)if(ki(e.charCodeAt(i)))return!0;return!1}var vu=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Cu=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function n6(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var ti=or`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Br(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function _i(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return _i(e.object)+"."+_i(e.property);throw new Error("Node had unexpected type: "+e.type)}var a6=e=>class extends e{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ti.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;case 62:case 125:default:ki(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
|
|
18
|
+
`:`\r
|
|
19
|
+
`):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(b.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===r)break;n===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):ki(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),a=i6[n];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(ii(r)||r===45);this.finishToken(141,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(141)?r.name=this.state.value:ic(this.state.type)?r.name=Fr(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let s=this.startNodeAt(r);return s.namespace=i,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=i,s.property=this.jsxParseIdentifier(),i=this.finishNode(s,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(we.brace),this.next(),r=this.jsxParseExpressionContainer(r,we.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(ti.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ti.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(we.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(we.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(we.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(144);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(144),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(we.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,we.j_expr));break}default:this.unexpected()}Br(n)&&!Br(a)&&a!==null?this.raise(ti.MissingClosingTagFragment,a):!Br(n)&&Br(a)?this.raise(ti.MissingClosingTagElement,a,{openingTagName:_i(n.name)}):!Br(n)&&!Br(a)&&_i(a.name)!==_i(n.name)&&this.raise(ti.MissingClosingTagElement,a,{openingTagName:_i(n.name)})}if(Br(n)?(i.openingFragment=n,i.closingFragment=a):(i.openingElement=n,i.closingElement=a),i.children=s,this.match(47))throw this.raise(ti.UnwrappedAdjacentJSXElements,this.state.startLoc);return Br(n)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:i}=this.state;i[i.length-1]=r}parseExprAtom(r){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){let i=this.curContext();if(i===we.j_expr){this.jsxReadToken();return}if(i===we.j_oTag||i===we.j_cTag){if(lr(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&i===we.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(r)}updateContext(r){let{context:i,type:s}=this.state;if(s===56&&r===143)i.splice(-2,2,we.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)i.push(we.j_oTag);else if(s===144){let n=i[i.length-1];n===we.j_oTag&&r===56||n===we.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===we.j_expr):(this.setContext(we.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=k8(s)}},Du=class extends vs{constructor(...t){super(...t),this.tsNames=new Map}},Lu=class extends Cs{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new Du(t)}enter(t){t===1024&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return t===1024&&this.importsStack.pop(),t}hasImport(t,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(t))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(t))return!0}return!1}declareName(t,r,i){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(b.VarRedeclaration,i,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let s=this.currentScope(),n=s.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(s,t),s.tsNames.set(t,n|16);return}super.declareName(t,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&s.tsNames.set(t,n)}isRedeclaredInScope(t,r,i){let s=t.tsNames.get(r);if((s&2)>0){if(i&256){let n=!!(i&512),a=(s&4)>0;return n!==a}return!0}return i&128&&(s&8)>0?t.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(t,r,i)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}},Mu=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Rn(e,t){return(e?2:0)|(t?1:0)}var Bu=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,i]=t;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return!1;return!0}}getPluginOption(t,r){var i;return(i=this.plugins.get(t))==null?void 0:i[r]}};function Qd(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function o6(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Is(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Ht(e,t,r){let i=null,s=t.length;for(;i===null&&s>0;)i=t[--s];i===null||i.start>r.start?Is(e,r.comments):Qd(i,r.comments)}var Fu=class extends Bu{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===t.end&&(n.leadingNode=t,s--);let{start:a}=t;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=t,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=t);break}}}finalizeComment(t){var r;let{comments:i}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&Qd(t.leadingNode,i),t.trailingNode!==null&&o6(t.trailingNode,i);else{let s=t.containingNode,n=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":Ht(s,s.properties,t);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Ht(s,s.arguments,t);break;case"ImportExpression":Ht(s,[s.source,(r=s.options)!=null?r:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Ht(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":Ht(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ht(s,s.specifiers,t);break;case"TSEnumDeclaration":Ht(s,s.members,t);break;case"TSEnumBody":Ht(s,s.members,t);break;case"TSInterfaceBody":Ht(s,s.body,t);break;default:{if(s.type==="RecordExpression"){Ht(s,s.properties,t);break}if(s.type==="TupleExpression"){Ht(s,s.elements,t);break}Is(s,i)}}else Is(s,i)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===t&&(s.leadingNode=null)}takeSurroundingComments(t,r,i){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let a=n-1;for(;a>=0;a--){let o=s[a],l=o.end;if(o.start===i)o.leadingNode=t;else if(l===r)o.trailingNode=t;else if(l<r)break}}},Ru=class e{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[we.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:i,startLine:s,startColumn:n}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=i,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new ur(s,n,i)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new ur(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},l6=function(t){return t>=48&&t<=57},Fd={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Mn={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Rd(e,t,r,i,s,n){let a=r,o=i,l=s,c="",f=null,x=r,{length:P}=t;for(;;){if(r>=P){n.unterminated(a,o,l),c+=t.slice(x,r);break}let A=t.charCodeAt(r);if(u6(e,A,t,r)){c+=t.slice(x,r);break}if(A===92){c+=t.slice(x,r);let v=c6(t,r,i,s,e==="template",n);v.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:c+=v.ch,{pos:r,lineStart:i,curLine:s}=v,x=r}else A===8232||A===8233?(++r,++s,i=r):A===10||A===13?e==="template"?(c+=t.slice(x,r)+`
|
|
20
|
+
`,++r,A===13&&t.charCodeAt(r)===10&&++r,++s,x=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:c,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function u6(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function c6(e,t,r,i,s,n){let a=!s;t++;let o=c=>({pos:t,ch:c,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
|
|
21
|
+
`);case 114:return o("\r");case 120:{let c;return{code:c,pos:t}=ju(e,t,r,i,2,!1,a,n),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=em(e,t,r,i,a,n),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let c=t-1,x=/^[0-7]+/.exec(e.slice(c,t+2))[0],P=parseInt(x,8);P>255&&(x=x.slice(0,-1),P=parseInt(x,8)),t+=x.length-1;let A=e.charCodeAt(t);if(x!=="0"||A===56||A===57){if(s)return o(null);n.strictNumericEscape(c,r,i)}return o(String.fromCharCode(P))}return o(String.fromCharCode(l))}}function ju(e,t,r,i,s,n,a,o){let l=t,c;return{n:c,pos:t}=Zd(e,t,r,i,16,s,n,!1,o,!a),c===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:c,pos:t}}function Zd(e,t,r,i,s,n,a,o,l,c){let f=t,x=s===16?Fd.hex:Fd.decBinOct,P=s===16?Mn.hex:s===10?Mn.dec:s===8?Mn.oct:Mn.bin,A=!1,v=0;for(let _=0,w=n??1/0;_<w;++_){let O=e.charCodeAt(t),L;if(O===95&&o!=="bail"){let ee=e.charCodeAt(t-1),X=e.charCodeAt(t+1);if(o){if(Number.isNaN(X)||!P(X)||x.has(ee)||x.has(X)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(O>=97?L=O-97+10:O>=65?L=O-65+10:l6(O)?L=O-48:L=1/0,L>=s){if(L<=9&&c)return{n:null,pos:t};if(L<=9&&l.invalidDigit(t,r,i,s))L=0;else if(a)L=0,A=!0;else break}++t,v=v*s+L}return t===f||n!=null&&t-f!==n||A?{n:null,pos:t}:{n:v,pos:t}}function em(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=ju(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=ju(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}function bs(e,t,r){return new ur(r,e-t,e)}var p6=new Set([103,109,115,105,121,117,100,118]),ar=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Li(t.startLoc,t.endLoc)}},qu=class extends Fu{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,a)=>this.optionFlags&2048?(this.raise(b.InvalidDigit,bs(i,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(b.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(b.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(b.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(b.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(b.StrictNumericEscape,bs(i,s,n))},unterminated:(i,s,n)=>{throw this.raise(b.UnterminatedString,bs(i-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(b.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(b.UnterminatedTemplate,bs(i,s,n))}}),this.state=new Ru,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new ar(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return vu.lastIndex=t,vu.test(this.input)?vu.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Cu.lastIndex=t,Cu.test(this.input)?Cu.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let i=this.input.charCodeAt(t);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(t,i+2);if(s===-1)throw this.raise(b.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+t.length,Ln.lastIndex=i+2;Ln.test(this.input)&&Ln.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Ln.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+t.length),loc:new Li(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(t){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!ki(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n),loc:new Li(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let t=this.state.pos,r=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),r?.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),r?.push(s));break}default:break e}break;default:if(n6(i))++this.state.pos;else if(i===45&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(t===0||this.state.lineStart>t)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else break e}}if(r?.length>0){let i=this.state.pos,s={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(b.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?b.RecordExpressionHashIncorrectStartSyntaxType:b.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else lr(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!ki(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(t){let r=t===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);t===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=t===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(b.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(b.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let i=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(b.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(b.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(lr(t)){this.readWord(t);return}}throw this.raise(b.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,i)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(b.UnterminatedRegExp,bt(t,1));let c=this.input.charCodeAt(n);if(ki(c))throw this.raise(b.UnterminatedRegExp,bt(t,1));if(i)i=!1;else{if(c===91)s=!0;else if(c===93&&s)s=!1;else if(c===47&&!s)break;i=c===92}}let a=this.input.slice(r,n);++n;let o="",l=()=>bt(t,n+2-r);for(;n<this.length;){let c=this.codePointAtPos(n),f=String.fromCharCode(c);if(p6.has(c))c===118?o.includes("u")&&this.raise(b.IncompatibleRegExpUVFlags,l()):c===117&&o.includes("v")&&this.raise(b.IncompatibleRegExpUVFlags,l()),o.includes(f)&&this.raise(b.DuplicateRegExpFlags,l());else if(ii(c)||c===92)this.raise(b.MalformedRegExpFlags,l());else break;++n,o+=f}this.state.pos=n,this.finishToken(138,{pattern:a,flags:o})}readInt(t,r,i=!1,s=!0){let{n,pos:a}=Zd(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1;this.state.pos+=2;let n=this.readInt(t);n==null&&this.raise(b.InvalidDigit,bt(i,2),{radix:t});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,s=!0;else if(a===109)throw this.raise(b.InvalidDecimal,i);if(lr(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());if(s){let o=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,n)}readNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,a=!1,o=!1;!t&&this.readInt(10)===null&&this.raise(b.InvalidNumber,this.state.curPosition());let l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){let A=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(b.StrictOctalLiteral,i),!this.state.strict){let v=A.indexOf("_");v>0&&this.raise(b.ZeroDigitNumericSeparator,bt(i,v))}o=l&&!/[89]/.test(A)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!o&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(b.InvalidOrMissingExponent,i),s=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((s||l)&&this.raise(b.InvalidBigIntLiteral,i),++this.state.pos,n=!0),c===109){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(b.InvalidDecimal,i),++this.state.pos;var f=!0}if(lr(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());let x=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,x);return}if(f){this.finishToken(137,x);return}let P=o?parseInt(x,8):parseFloat(x);this.finishToken(135,P)}readCodePoint(t){let{code:r,pos:i}=em(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(t){let{str:r,pos:i,curLine:s,lineStart:n}=Rd(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:a}=Rd("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,i&&(this.state.firstInvalidTemplateEscapePos=new ur(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:t+r+"`"):(this.state.pos++,this.finishToken(25,i?null:t+r+"${"))}recordStrictModeErrors(t,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(t,r):this.state.strictErrors.set(i,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(ii(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?lr:ii;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(b.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(b.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(l)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(t){let r=this.readWord1(t),i=Gu.get(r);i!==void 0?this.finishToken(i,Fr(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:t}=this.state;ic(t)&&this.state.containsEsc&&this.raise(b.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Fr(t)})}raise(t,r,i={}){let s=r instanceof ur?r:r.loc.start,n=t(s,i);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(t,r,i={}){let s=r instanceof ur?r:r.loc.start,n=s.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let l=a[o];if(l.loc.index===n)return a[o]=t(s,i);if(l.loc.index<n)break}return this.raise(t,r,i)}updateContext(t){}unexpected(t,r){throw this.raise(b.UnexpectedToken,t??this.state.startLoc,{expected:r?Fr(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(b.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(b.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,i,s)=>{this.raise(t,bs(r,i,s))}}},Uu=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Ku=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Uu)}exit(){let t=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(b.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(t,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),o=s.has(t);if(r&3){let l=o&&n.get(t);if(l){let c=l&4,f=r&4,x=l&3,P=r&3;o=x===P||c!==f,o||n.delete(t)}else o||n.set(t,r)}o&&this.parser.raise(b.PrivateNameRedeclaration,i,{identifierName:t}),s.add(t),a.delete(t)}usePrivateName(t,r){let i;for(i of this.stack)if(i.privateNames.has(t))return;i?i.undefinedPrivateNames.set(t,r):this.parser.raise(b.InvalidPrivateFieldResolution,r,{identifierName:t})}},Mi=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Un=class extends Mi{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let i=r.index;this.declarationErrors.set(i,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},Vu=class{constructor(t){this.parser=void 0,this.stack=[new Mi],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let i=r.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,i);else return;a=s[--n]}this.parser.raise(t,i)}recordArrowParameterBindingError(t,r){let{stack:i}=this,s=i[i.length-1],n=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,n);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(b.AwaitBindingIdentifier,t),s=r[--i]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let n=t.length-2,a=t[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=t[--n]})}};function f6(){return new Mi(3)}function h6(){return new Un(1)}function d6(){return new Un(2)}function tm(){return new Mi}var Yu=class extends qu{addExtra(t,r,i,s=!0){if(!t)return;let{extra:n}=t;n==null&&(n={},t.extra=n),s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let i=this.input.charCodeAt(t+r.length);return!(ii(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Bd(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Bd(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(b.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let i={node:null};try{let s=t((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:o}=t,l=!!i||!!s||!!a||!!n||!!o;if(!r)return l;i!=null&&this.raise(b.InvalidCoverInitializedName,i),s!=null&&this.raise(b.DuplicateProto,s),n!=null&&this.raise(b.UnexpectedPrivateField,n),a!=null&&this.unexpected(a),o!=null&&this.raise(b.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return Jd(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=t;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new Mu;let l=this.classScope;this.classScope=new Ku(this);let c=this.expressionScope;return this.expressionScope=new Vu(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=n,this.prodParam=o,this.classScope=l,this.expressionScope=c}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let i=r?514:1;this.optionFlags&4&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},Di=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},Bi=class{constructor(t,r,i){this.type="",this.start=r,this.end=0,this.loc=new Li(i),t?.optionFlags&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Ju=Bi.prototype;Ju.__clone=function(){let e=new Bi(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){let s=t[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(e[s]=this[s])}return e};var Xu=class extends Yu{startNode(){let t=this.state.startLoc;return new Bi(this,t.index,t)}startNodeAt(t){return new Bi(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,i){return t.type=r,t.end=i.index,t.loc.end=i,this.optionFlags&128&&(t.range[1]=i.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.optionFlags&128&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}castNodeTo(t,r){return t.type=r,t}cloneIdentifier(t){let{type:r,start:i,end:s,loc:n,range:a,name:o}=t,l=Object.create(Ju);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.name=o,t.extra&&(l.extra=t.extra),l}cloneStringLiteral(t){let{type:r,start:i,end:s,loc:n,range:a,extra:o}=t,l=Object.create(Ju);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.extra=o,l.value=t.value,l}},Wu=e=>e.type==="ParenthesizedExpression"?Wu(e.expression):e,$u=class extends Xu{toAssignable(t,r=!1){var i,s;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=Wu(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(b.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(b.InvalidParenthesizedAssignment,t):this.raise(b.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,l=t.properties.length,c=l-1;o<l;o++){var a;let f=t.properties[o],x=o===c;this.toAssignableObjectExpressionProp(f,x,r),x&&f.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(b.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:l}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(l,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,(s=t.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(b.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,t.left.type==="VoidPattern"&&this.raise(b.VoidPatternInitializer,t.left),this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(t,r,i){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?b.PatternHasAccessor:b.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){this.castNodeTo(t,"RestElement");let s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(b.RestTrailingComma,t)}else this.toAssignable(t,i)}toAssignableList(t,r,i){let s=t.length-1;for(let n=0;n<=s;n++){let a=t[n];a&&(this.toAssignableListItem(t,n,i),a.type==="RestElement"&&(n<s?this.raise(b.RestTrailingComma,a):r&&this.raise(b.RestTrailingComma,r)))}}toAssignableListItem(t,r,i){let s=t[r];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,i)}else this.toAssignable(s,i)}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let i=t.properties.length-1;return t.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let i of t)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(b.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,i){let s=i&1,n=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||i&2)&&(o=this.parseFunctionParamType(o)),n.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(b.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());n.push(this.parseBindingElement(i,o))}}return n}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(b.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(t,r){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(b.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(t,r,i,s){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,i=64,s=!1,n=!1,a=!1,o=!1){var l;let c=t.type;if(this.isObjectMethod(t))return;let f=this.isOptionalMemberExpression(t);if(f||c==="MemberExpression"){f&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(b.InvalidLhsOptionalChaining,t,{ancestor:r})),i!==64&&this.raise(b.InvalidPropertyBindingPattern,t);return}if(c==="Identifier"){this.checkIdentifier(t,i,n);let{name:O}=t;s&&(s.has(O)?this.raise(b.ParamDupe,t):s.add(O));return}else c==="VoidPattern"&&r.type==="CatchClause"&&this.raise(b.VoidPatternCatchClauseParam,t);let x=Wu(t);o||(o=x.type==="CallExpression"&&(x.callee.type==="Import"||x.callee.type==="Super"));let P=this.isValidLVal(c,o,!(a||(l=t.extra)!=null&&l.parenthesized)&&r.type==="AssignmentExpression",i);if(P===!0)return;if(P===!1){let O=i===64?b.InvalidLhs:b.InvalidLhsBinding;this.raise(O,t,{ancestor:r});return}let A,v;typeof P=="string"?(A=P,v=c==="ParenthesizedExpression"):[A,v]=P;let _=c==="ArrayPattern"||c==="ObjectPattern"?{type:c}:r,w=t[A];if(Array.isArray(w))for(let O of w)O&&this.checkLVal(O,_,i,s,n,v,!0);else w&&this.checkLVal(w,_,i,s,n,v,o)}checkIdentifier(t,r,i=!1){this.state.strict&&(i?Gd(t.name,this.inModule):zd(t.name))&&(r===64?this.raise(b.StrictEvalArguments,t,{referenceName:t.name}):this.raise(b.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(b.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(b.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?b.RestTrailingComma:b.ElementAfterRest,this.state.startLoc),!0):!1}},Iu=/in(?:stanceof)?|as|satisfies/y;function m6(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function jd(e){if(!e)throw new Error("Assert fail")}var Q=or`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function y6(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function qd(e){return e==="private"||e==="public"||e==="protected"}function T6(e){return e==="in"||e==="out"}var S6=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Q.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Q.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Q.InvalidModifierOnTypeParameter})}getScopeHandler(){return Lu}tsIsIdentifier(){return ke(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!ke(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(r.includes(n)){if(s&&this.match(106)||i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:n=Q.InvalidModifierOnTypeMember},a){let o=(c,f,x,P)=>{f===x&&a[P]&&this.raise(Q.InvalidModifiersOrder,c,{orderedModifiers:[x,P]})},l=(c,f,x,P)=>{(a[x]&&f===P||a[P]&&f===x)&&this.raise(Q.IncompatibleModifiers,c,{modifiers:[x,P]})};for(;;){let{startLoc:c}=this.state,f=this.tsParseModifier(r.concat(i??[]),s,a.static);if(!f)break;qd(f)?a.accessibility?this.raise(Q.DuplicateAccessibilityModifier,c,{modifier:f}):(o(c,f,f,"override"),o(c,f,f,"static"),o(c,f,f,"readonly"),a.accessibility=f):T6(f)?(a[f]&&this.raise(Q.DuplicateModifier,c,{modifier:f}),a[f]=!0,o(c,f,"in","out")):(hasOwnProperty.call(a,f)?this.raise(Q.DuplicateModifier,c,{modifier:f}):(o(c,f,"static","readonly"),o(c,f,"static","override"),o(c,f,"override","readonly"),o(c,f,"abstract","override"),l(c,f,"declare","override"),l(c,f,"static","abstract")),a[f]=!0),i!=null&&i.includes(f)&&this.raise(n,c,{modifier:f})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return m6(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=o),a}tsParseBracketedList(r,i,s,n,a){n||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(Q.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let s=this.state.type;ke(s)||s===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),i=this.finishNode(s,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(Q.EmptyTypeParameters,i),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,n="parameters",a="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[n]=this.tsParseBindingListForSignature(),s?i[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(Q.UnsupportedSignatureParameterKind,i,{type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),ke(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(Q.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(Q.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let n="parameters",a="typeAnnotation";if(s.kind==="get")s[n].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(Q.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[n].length!==1)this.raise(b.BadSetterArity,this.state.curPosition());else{let o=s[n][0];this.isThisParam(o)&&this.raise(Q.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(Q.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(Q.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(Q.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;i&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(i,"TSTypeParameter"),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(Q.OptionalTypeBeforeRequired,s),i||(i=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,i=this.eat(21),{startLoc:s}=this.state,n,a,o,l,f=zt(this.state.type)?this.lookaheadCharCode():null;if(f===58)n=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(f===63){o=!0;let x=this.state.value,P=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,a=this.createIdentifier(this.startNodeAt(s),x),this.expect(17),this.expect(14),l=this.tsParseType()):(n=!1,l=P,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let x;a?(x=this.startNodeAt(s),x.optional=o,x.label=a,x.elementType=l,this.eat(17)&&(x.optional=!0,this.raise(Q.TupleOptionalAfterType,this.state.lastTokStartLoc))):(x=this.startNodeAt(s),x.optional=o,this.raise(Q.InvalidTupleMemberLabel,l),x.label=l,x.elementType=this.tsParseType()),l=this.finishNode(x,"TSNamedTupleMember")}else if(o){let x=this.startNodeAt(s);x.typeAnnotation=l,l=this.finishNode(x,"TSOptionalType")}if(i){let x=this.startNodeAt(r);x.typeAnnotation=l,l=this.finishNode(x,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(ke(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":y6(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(r);s.elementType=i,this.expect(3),i=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(r);s.objectType=i,s.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(s,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Q.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return R8(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),a=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!a?o[0]:(n.types=o,this.finishNode(n,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(ke(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),i.typeAnnotation=l,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!ke(this.state.type)&&!this.match(78)?!1:(r&&this.raise(b.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){jd(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Q.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();return n.expression=this.tsParseEntityName(3),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")});return s.length||this.raise(Q.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),ke(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(Q.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==we.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(Q.ImportAliasHasImportType,n),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(Q.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(Q.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(ke(i))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,i,s,n){switch(i){case 124:if(this.tsCheckLineTerminator(s)&&(this.match(80)||ke(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(ke(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(s)&&ke(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(s)&&ke(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(Q.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===we.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return j8(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let s=i.length?i[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,o=n.override,l=n.readonly;!(r&4)&&(a||l||o)&&this.raise(Q.UnexpectedParameterModifier,s);let c=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(c);let f=this.parseMaybeDefault(c.loc.start,c);if(a||l||o){let x=this.startNodeAt(s);return i.length&&(x.decorators=i),a&&(x.accessibility=a),l&&(x.readonly=l),o&&(x.override=o),f.type!=="Identifier"&&f.type!=="AssignmentPattern"&&this.raise(Q.UnsupportedParameterPropertyKind,x),x.parameter=f,this.finishNode(x,"TSParameterProperty")}return i.length&&(c.decorators=i),f}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(Q.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Q.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,n,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(Q.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let P=this.tsTryParseGenericAsyncArrowFunction(i);if(P)return n.stop=!0,P}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(qn(this.state.type)){let P=super.parseTaggedTemplateExpression(r,i,n);return P.typeParameters=c,P}if(!s&&this.eat(10)){let P=this.startNodeAt(i);return P.callee=r,P.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(P.arguments),P.typeParameters=c,n.optionalChainMember&&(P.optional=a),this.finishCallExpression(P,n.optionalChainMember)}let f=this.state.type;if(f===48||f===52||f!==10&&f!==93&&f!==120&&Es(f)&&!this.hasPrecedingLineBreak())return;let x=this.startNodeAt(i);return x.expression=r,x.typeParameters=c,this.finishNode(x,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Q.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(r,n))),l}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!((i=s.extra)!=null&&i.parenthesized)&&(r.typeParameters=s.typeParameters,r.callee=s.expression)}parseExprOp(r,i,s){let n;if(Fn(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(i);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,n){this.state.isAmbientContext||super.checkReservedWord(r,i,s,n)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(Q.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(ke(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Q.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=r;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,i,s||n);if(!n)return a;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(Q.UsingDeclarationInAmbientContext,r,i),a;for(let{id:o,init:l}of a.declarations)l&&(i==="var"||i==="let"||o.typeAnnotation?this.raise(Q.InitializerNotAllowedInAmbientContext,l):g6(l,this.hasPlugin("estree"))||this.raise(Q.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return a}parseStatementContent(r,i){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let s=this.state.type,n=this.startNode();this.next();let a=s===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,i);return a?(s===125&&(a.declare=!0),a):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),s===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,127,!1,i)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,128,!1,i)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(s)}break}}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>qd(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Q.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(Q.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,i,s,n){let a=this.tsTryParseIndexSignature(i);if(a){r.body.push(a),i.abstract&&this.raise(Q.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(Q.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(Q.IndexSignatureHasDeclare,i),i.override&&this.raise(Q.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(Q.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(Q.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(Q.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(Q.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,i,s)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Q.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=ke(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(Q.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(Q.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(Q.PrivateElementHasAbstract,r),r.accessibility&&this.raise(Q.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(Q.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(Q.ConstructorHasTypeParameters,l);let{declare:c=!1,kind:f}=i;c&&(f==="get"||f==="set")&&this.raise(Q.DeclareAccessor,i,{kind:f}),l&&(i.typeParameters=l),super.pushClassMethod(r,i,s,n,a,o)}pushClassPrivateMethod(r,i,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(i.typeParameters=a),super.pushClassPrivateMethod(r,i,s,n)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass)if(r.superClass.type==="TSInstantiationExpression"){let i=r.superClass,s=i.expression;this.takeSurroundingComments(s,s.start,s.end);let n=i.typeParameters;this.takeSurroundingComments(n,n.start,n.end),r.superClass=s,r.superTypeParameters=n}else(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,n,a,o,l){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(r.typeParameters=c),super.parseObjPropValue(r,i,s,n,a,o,l)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,a,o,l;let c,f,x;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),f=this.tryParse(()=>super.parseMaybeAssign(r,i),c),!f.error)return f.node;let{context:v}=this.state,_=v[v.length-1];(_===we.j_oTag||_===we.j_expr)&&v.pop()}if(!((s=f)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!c||c===this.state)&&(c=this.state.clone());let P,A=this.tryParse(v=>{var _,w;P=this.tsParseTypeParameters(this.tsParseConstModifier);let O=super.parseMaybeAssign(r,i);return(O.type!=="ArrowFunctionExpression"||(_=O.extra)!=null&&_.parenthesized)&&v(),((w=P)==null?void 0:w.params.length)!==0&&this.resetStartLocationFromNode(O,P),O.typeParameters=P,O},c);if(!A.error&&!A.aborted)return P&&this.reportReservedArrowTypeParam(P),A.node;if(!f&&(jd(!this.hasPlugin("jsx")),x=this.tryParse(()=>super.parseMaybeAssign(r,i),c),!x.error))return x.node;if((n=f)!=null&&n.node)return this.state=f.failState,f.node;if(A.node)return this.state=A.failState,P&&this.reportReservedArrowTypeParam(P),A.node;if((a=x)!=null&&a.node)return this.state=x.failState,x.node;throw((o=f)==null?void 0:o.error)||A.error||((l=x)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var i;r.params.length===1&&!r.params[0].constraint&&!((i=r.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Q.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(Q.UnexpectedTypeCastInParameter,r):this.raise(Q.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s,n){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(n!==64||!s)&&["expression",!0];default:return super.isValidLVal(r,i,s,n)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(r,i);return n.typeParameters=s,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(Q.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableListItem(r,i,s){let n=r[i];n.type==="TSTypeCastExpression"&&(r[i]=this.typeCastToParameter(n)),super.toAssignableListItem(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(Q.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,i,s,n,a,o,l){let c=super.parseMethod(r,i,s,n,a,o,l);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:P}=c;this.raise(Q.AbstractMethodHasImplementation,c,{methodName:P.type==="Identifier"&&!c.computed?P.name:`[${this.input.slice(this.offsetToSourcePos(P.start),this.offsetToSourcePos(P.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,a){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",a=i?"local":"exported",o=r[n],l,c=!1,f=!0,x=o.loc.start;if(this.isContextual(93)){let A=this.parseIdentifier();if(this.isContextual(93)){let v=this.parseIdentifier();zt(this.state.type)?(c=!0,o=A,l=i?this.parseIdentifier():this.parseModuleExportName(),f=!1):(l=v,f=!1)}else zt(this.state.type)?(f=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=A)}else zt(this.state.type)&&(c=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&s&&this.raise(i?Q.TypeModifierIsUsedInTypeImports:Q.TypeModifierIsUsedInTypeExports,x),r[n]=o,r[a]=l;let P=i?"importKind":"exportKind";r[P]=c?"type":"value",f&&this.eatContextual(93)&&(r[a]=i?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=this.cloneIdentifier(r[n])),i&&this.checkIdentifier(r[a],c?4098:4096)}fillOptionalPropertiesForTSESLint(r){var i,s,n,a,o,l,c,f,x,P,A,v,_,w,O,L,ee,X,J,ue,Ce,Be,et,At,vt,Ot,Dt,er,Kr,dr,W,j,D,$,oe,Te,De,ve,Fe,Oe,Le,Re,Ve,ge,qe,$e,dt,mt;switch(r.type){case"ExpressionStatement":(i=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(s=r.decorators)!=null||(r.decorators=[]),(n=r.optional)!=null||(r.optional=!1),(a=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(o=r.accessibility)!=null||(r.accessibility=void 0),(l=r.decorators)!=null||(r.decorators=[]),(c=r.override)!=null||(r.override=!1),(f=r.readonly)!=null||(r.readonly=!1),(x=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(P=r.declare)!=null||(r.declare=!1),(A=r.returnType)!=null||(r.returnType=void 0),(v=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(_=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(w=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(O=r.accessibility)!=null||(r.accessibility=void 0),(L=r.readonly)!=null||(r.readonly=!1),(ee=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(X=r.declare)!=null||(r.declare=!1),(J=r.definite)!=null||(r.definite=!1),(ue=r.readonly)!=null||(r.readonly=!1),(Ce=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(Be=r.accessibility)!=null||(r.accessibility=void 0),(et=r.decorators)!=null||(r.decorators=[]),(At=r.override)!=null||(r.override=!1),(vt=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(Ot=r.id)!=null||(r.id=null);case"ClassDeclaration":(Dt=r.abstract)!=null||(r.abstract=!1),(er=r.declare)!=null||(r.declare=!1),(Kr=r.decorators)!=null||(r.decorators=[]),(dr=r.implements)!=null||(r.implements=[]),(W=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(j=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(D=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":($=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(oe=r.const)!=null||(r.const=!1),(Te=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(De=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(ve=r.qualifier)!=null||(r.qualifier=null),(Fe=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(Oe=r.declare)!=null||(r.declare=!1),(Le=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(Re=r.optional)!=null||(r.optional=!1),(Ve=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(ge=r.declare)!=null||(r.declare=!1),(qe=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":($e=r.const)!=null||(r.const=!1),(dt=r.in)!=null||(r.in=!1),(mt=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,i){if(lr(r)){if(Iu.lastIndex=i,Iu.test(this.input)){let s=this.codePointAtPos(Iu.lastIndex);if(!ii(s)&&s!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(i,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifier(i,r)||i===34||i===39}};function x6(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:im(e.object)}function g6(e,t){var r;let{type:i}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(i==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(rm(e,t)||b6(e,t)||i==="TemplateLiteral"&&e.expressions.length===0||x6(e))}function rm(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function b6(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:i}=e;if(r==="-"&&rm(i,t))return!0}return!1}function im(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:im(e.object)}var Ud=or`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),E6=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s,n){return r==="Placeholder"||super.isValidLVal(r,i,s,n)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(r,i){var s;((s=r.label)==null?void 0:s.type)!=="Placeholder"&&super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){var s;if(i.type!=="Placeholder"||(s=i.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(i,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=r;return n.name=i.name,this.finishPlaceholder(n,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let n=i?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,n);throw this.raise(Ud.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,n)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);let n=r;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(Fr(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Ud.UnexpectedSpace,this.state.lastTokEndLoc)}},P6=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),ke(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(i,s);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},Kd=["minimal","fsharp","hack","smart"],Vd=["^^","@@","^","%","#"];function A6(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let i=e.get("decorators").decoratorsBeforeExport;if(i!=null&&typeof i!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=e.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let i=e.get("pipelineOperator").proposal;if(!Kd.includes(i)){let s=Kd.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(i==="hack"){var r;if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=e.get("pipelineOperator").topicToken;if(!Vd.includes(s)){let n=Vd.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}if(s==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(i==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(e.has("deprecatedImportAssert")||e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){let i=e.get("recordAndTuple").syntaxType;if(i!=null){let s=["hash","bar"];if(!s.includes(i))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(n=>`'${n}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let i=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw i.missingPlugins="doExpressions",i}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var sm={estree:w8,jsx:a6,flow:r6,typescript:S6,v8intrinsic:P6,placeholders:E6},v6=Object.keys(sm),Hu=class extends $u{checkProto(t,r,i,s){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return i;let n=t.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?r?(this.raise(b.RecordNoProto,n),!0):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(b.DuplicateProto,n)),!0):i}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(b.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(b.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,i=this.parseMaybeAssign(t);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let i=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let l=this.parseYield(i);return r&&(l=r.call(this,l,i)),l}let n;t?n=!1:(t=new Di,n=!0);let{type:a}=this.state;(a===10||ke(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,i)),D8(this.state.type)){let l=this.startNodeAt(i),c=this.state.value;if(l.operator=c,this.match(29)){this.toAssignable(o,!0),l.left=o;let f=i.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=f&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=f&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=f&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=f&&(t.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression"),void 0,void 0,void 0,void 0,c==="||="||c==="&&="||c==="??="),l}else n&&this.checkExpressionErrors(t,!0);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Es(l):Es(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(b.YieldNotInGeneratorFunction,i),this.parseYield(i)}return o}parseMaybeConditional(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,t)}parseConditional(t,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(t,r,i){if(this.isPrivateName(t)){let n=this.getPrivateNameSV(t);(i>=Fn(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(b.PrivateInExpectedIn,t,{identifierName:n}),this.classScope.usePrivateName(n,t.loc.start)}let s=this.state.type;if(M8(s)&&(this.prodParam.hasIn||!this.match(58))){let n=Fn(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(n=Fn(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(b.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let c=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),f=this.state.type;if(l&&(f===41||f===42)||o&&f===40)throw this.raise(b.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,r,i)}}return t}parseExprOpRightExpr(t,r){let i=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(b.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),i)});default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,q8(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return b8.has(i.type)&&!((t=i.extra)!=null&&t.parenthesized)&&this.raise(b.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipeTopicUnused,r),i}checkExponentialAfterUnary(t){this.match(57)&&this.raise(b.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let l=this.parseAwait(i);return r||this.checkExponentialAfterUnary(l),l}let n=this.match(34),a=this.startNode();if(F8(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&l){let c=a.argument;c.type==="Identifier"?this.raise(b.StrictDelete,a):this.hasPropertyAsPrivateName(c)&&this.raise(b.DeletePrivateField,a)}if(!n)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,n,t);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Es(l):Es(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(b.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(t,r,i){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;B8(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(t,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return t}parseSubscript(t,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(t,r,i,s);if(qn(n))return this.parseTaggedTemplateExpression(t,r,s);let a=!1;if(n===18){if(i&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,s);s.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,s,o,a):this.stopParseSubscript(t,s)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,i,s,n){let a=this.startNodeAt(r);return a.object=t,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(b.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,i,s){let n=this.startNodeAt(r);return n.object=t,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(t,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:c}=i;l&&(this.expressionScope.enter(d6()),a=new Di),c&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,a);let f=this.finishCallExpression(o,c);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),f)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(f)),this.state.maybeInArrowParameters=n,f}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,i){let s=this.startNodeAt(r);return s.tag=t,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(b.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(b.ImportCallArity,t);else for(let i of t.arguments)i.type==="SpreadElement"&&this.raise(b.ImportCallSpreadArgument,i);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,i){let s=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,i,t))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&Is(t,r.innerComments),r.callee.trailingComments&&Is(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(b.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(b.UnsupportedBind,n)}case 139:return this.raise(b.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);throw this.unexpected()}case 47:{let n=this.input.codePointAt(this.nextTokenStart());throw lr(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(ke(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(ke(l))return n&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=bt(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,t,s)}finishTopicReference(t,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s))return i==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(b.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(b.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(b.PipeTopicUnconfiguredToken,r,{token:Fr(s)})}testTopicReferenceConfiguration(t,r,i){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Fr(i)}]);case"smart":return i===27;default:throw this.raise(b.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Rn(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(b.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=i,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(b.SuperNotAllowed,t):this.scope.allowSuper||this.optionFlags&16||this.raise(b.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(b.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(bt(this.state.startLoc,1)),i=this.state.value;return this.next(),t.id=this.createIdentifier(r,i),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,i){t.meta=r;let s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==i||s)&&this.raise(b.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(b.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,i){return this.addExtra(i,"rawValue",t),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=t,this.next(),this.finishNode(i,r)}parseLiteral(t,r){let i=this.startNode();return this.parseLiteralAtNode(t,r,i)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(h6());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new Di,c=!0,f,x;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){x=this.state.startLoc;break}if(this.match(21)){let v=this.state.startLoc;if(f=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),v)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,l,this.parseParenItem))}let P=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let A=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(A=this.parseArrow(A))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(A,o,!1),A):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),x&&this.unexpected(x),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,P)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(t);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let i=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(b.UnexpectedNewTarget,i),i}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),i=this.parseNoCallExpr();t.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(b.ImportCallNotNewExpression,i)}parseTemplateElement(t){let{start:r,startLoc:i,end:s,value:n}=this.state,a=r+1,o=this.startNodeAt(bt(i,1));n===null&&(t||this.raise(b.InvalidEscapeSequenceTemplate,bt(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),c=l?-1:-2,f=s+c;o.value={raw:this.input.slice(a,f).replace(/\r\n?/g,`
|
|
22
|
+
`),cooked:n===null?null:n.slice(1,c)},o.tail=l,this.next();let x=this.finishNode(o,"TemplateElement");return this.resetEndLocation(x,bt(this.state.lastTokEndLoc,c)),x}parseTemplate(t){let r=this.startNode(),i=this.parseTemplateElement(t),s=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(t));return r.expressions=n,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let f;r?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(s),a=this.checkProto(f,i,a,s)),i&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(b.InvalidRecordProperty,f),f.shorthand&&this.addExtra(f,"shorthand",!0),l.properties.push(f)}this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return r?c="ObjectPattern":i&&(c="RecordExpression"),this.finishNode(l,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(b.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc;if(this.parsePropertyName(i,t),!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let{key:c}=i,f=c.name;f==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(i)),(f==="get"||f==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(c),i.kind=f,this.match(55)&&(o=!0,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:f}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,s,!1,n,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let i=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==i&&this.raise(t.kind==="get"?b.BadGetterArity:b.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(b.BadSetterRestParameter,t)}parseObjectMethod(t,r,i,s,n){if(n){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,i,s){if(t.shorthand=!1,this.eat(14))return t.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),i)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(b.InvalidCoverInitializedName,n),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,i,s,n,a,o){let l=this.parseObjectMethod(t,i,s,n,a)||this.parseObjectProperty(t,r,n,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if(zt(i))n=this.parseIdentifier(!0);else switch(i){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(b.UnexpectedPrivateField,a),n=this.parsePrivateName();break}default:if(i===137){n=this.parseDecimalLiteral(s);break}this.unexpected()}t.key=n,i!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,i,s,n,a,o=!1){this.initFunction(t,i),t.generator=r,this.scope.enter(530|(o?576:0)|(n?32:0)),this.prodParam.enter(Rn(i,t.generator)),this.parseFunctionParams(t,s);let l=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,i){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!r,i,n),this.state.inFSharpPipelineDirectBody=s,this.finishNode(n,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,i,s){this.scope.enter(518);let n=Rn(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(t,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,i){this.toAssignableList(r,i,!1),t.params=r}parseFunctionBodyAndFinish(t,r,i=!1){return this.parseFunctionBody(t,!1,i),this.finishNode(t,r)}parseFunctionBody(t,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(tm()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(t.params);o&&l&&this.raise(b.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let c=!n&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!i&&!l,r,c),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,c)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,i=t.length;r<i;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,i,s=!0){let n=!r&&new Set,a={type:"FormalParameters"};for(let o of t.params)this.checkLVal(o,a,5,n,s)}parseExprList(t,r,i,s){let n=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(t,r,i))}return n}parseExprListItem(t,r,i,s){let n;if(this.match(12))r||this.raise(b.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let a=this.state.startLoc;n=this.parseParenItem(this.parseSpread(i),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(b.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),n=this.finishNode(a,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(t,i,this.parseParenItem);return n}parseIdentifier(t){let r=this.startNode(),i=this.parseIdentifierName(t);return this.createIdentifier(r,i)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}createIdentifierAt(t,r,i){return t.name=r,t.loc.identifierName=r,this.finishNodeAt(t,"Identifier",i)}parseIdentifierName(t){let r,{startLoc:i,type:s}=this.state;zt(s)?r=this.state.value:this.unexpected();let n=_8(s);return t?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(t,r,i,s){if(t.length>10||!z8(t))return;if(i&&W8(t)){this.raise(b.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?s?Gd:Hd:$d)(t,this.inModule)){this.raise(b.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(b.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(b.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(b.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(b.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(b.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(b.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||qn(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(b.YieldInParameter,r);let i=!1,s=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:s=this.parseMaybeAssign()}return r.delegate=i,r.argument=s,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(b.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(b.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let i=this.startNodeAt(r);return i.callee=t,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=t,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(b.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,i){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(t===3?93:t===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(t){}},wu={kind:1},C6={kind:2},I6=/[\uD800-\uDFFF]/u,Nu=/in(?:stanceof)?/y;function w6(e,t,r){for(let i=0;i<e.length;i++){let s=e[i],{type:n}=s;if(typeof n=="number"){if(n===139){let{loc:a,start:o,value:l,end:c}=s,f=o+1,x=bt(a.start,1);e.splice(i,1,new ar({type:br(27),value:"#",start:o,end:f,startLoc:a.start,endLoc:x}),new ar({type:br(132),value:l,start:f,end:c,startLoc:x,endLoc:a.end})),i++;continue}if(qn(n)){let{loc:a,start:o,value:l,end:c}=s,f=o+1,x=bt(a.start,1),P;t.charCodeAt(o-r)===96?P=new ar({type:br(22),value:"`",start:o,end:f,startLoc:a.start,endLoc:x}):P=new ar({type:br(8),value:"}",start:o,end:f,startLoc:a.start,endLoc:x});let A,v,_,w;n===24?(v=c-1,_=bt(a.end,-1),A=l===null?null:l.slice(1,-1),w=new ar({type:br(22),value:"`",start:v,end:c,startLoc:_,endLoc:a.end})):(v=c-2,_=bt(a.end,-2),A=l===null?null:l.slice(1,-2),w=new ar({type:br(23),value:"${",start:v,end:c,startLoc:_,endLoc:a.end})),e.splice(i,1,P,new ar({type:br(20),value:A,start:f,end:v,startLoc:x,endLoc:_}),w),i+=2;continue}s.type=br(n)}}return e}var zu=class extends Hu{parseTopLevel(t,r){return t.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),t.comments=this.comments,this.optionFlags&256&&(t.tokens=w6(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,r,i){if(t.sourceType=i,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(b.ModuleExportUndefined,a,{localName:n});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(t,"Program"):s=this.finishNodeAt(t,"Program",bt(this.state.startLoc,-1)),s}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),i=this.castNodeTo(t.expression,"DirectiveLiteral"),s=i.value,n=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),a=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",a),this.addExtra(i,"expressionValue",s),r.value=i,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let i=this.lookaheadCharCodeSince(t+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(lr(t)){if(Nu.lastIndex=r,Nu.test(this.input)){let i=this.codePointAtPos(Nu.lastIndex);if(!ii(i)&&i!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let i=this.state.type,s=this.startNode(),n=!!(t&2),a=!!(t&4),o=t&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?b.StrictFunction:this.options.annexB?b.SloppyFunctionAnnexB:b.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,s):this.raise(b.UnexpectedLexicalDeclaration,s):this.raise(b.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(b.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let f=this.nextTokenStart(),x=this.codePointAtPos(f);if(x!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(x,f)&&x!==123))break}case 75:n||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let f=this.state.value;return this.parseVarStatement(s,f)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let f=this.lookaheadCharCode();if(f===40||f===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(b.UnexpectedImportExport,this.state.startLoc),this.next();let f;return i===83?f=this.parseImport(s):f=this.parseExport(s,r),this.assertModuleNodeAllowed(f),f}default:if(this.isAsyncFunction())return n||this.raise(b.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let l=this.state.value,c=this.parseExpression();return ke(i)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,c,t):this.parseExpressionStatement(s,c,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(b.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,i){if(t){var s;(s=r.decorators)!=null&&s.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(b.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),i&&this.resetStartLocationFromNode(i,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(b.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(b.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let n=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(i,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==i&&this.raise(b.DecoratorArgumentsOutsideParentheses,n)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(i,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=t,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((t.label==null||s.name===t.label.name)&&(s.kind!=null&&(r||s.kind===1)||t.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(b.IllegalBreakContinue,t,{type:s})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(wu),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(wu);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let i=this.isContextual(100);{let l=this.isAwaitUsing(),c=l||this.isForUsing(),f=i&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||f){let x=this.startNode(),P;l?(P="await using",this.recordAwaitIfAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):P=this.state.value,this.next(),this.parseVar(x,!0,P);let A=this.finishNode(x,"VariableDeclaration"),v=this.match(58);return v&&c&&this.raise(b.ForInUsing,A),(v||this.isContextual(102))&&A.declarations.length===1?this.parseForIn(t,A,r):(r!==null&&this.unexpected(r),this.parseFor(t,A))}}let s=this.isContextual(95),n=new Di,a=this.parseExpression(!0,n),o=this.isContextual(102);if(o&&(i&&this.raise(b.ForOfLet,a),r===null&&s&&a.type==="Identifier"&&this.raise(b.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:l}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,i){return this.next(),this.parseFunction(t,1|(i?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(b.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(C6),this.scope.enter(256);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),n?i.test=this.parseExpression():(s&&this.raise(b.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(b.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(b.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,i=!1){return this.next(),this.parseVar(t,!1,r,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(wu),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(b.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,i,s){for(let a of this.state.labels)a.name===r&&this.raise(b.LabelRedeclaration,i,{labelName:r});let n=L8(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=n;else break}return this.state.labels.push({name:r,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,i){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,i){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,i,s,n){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,s,n)}parseBlockOrModuleBlockBody(t,r,i,s,n){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let c=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(c)){let f=this.stmtToDirective(c);r.push(f),!o&&f.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}t.push(c)}n?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):t.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(b.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(b.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,r,i,s=!1){let n=t.declarations=[];for(t.kind=i;;){let a=this.startNode();if(this.parseVarId(a,i),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!s&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(b.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(b.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=i}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(i&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Rn(a,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||ke(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(f6()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,i),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:t},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(b.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let a=this.startNode();s.length&&(a.decorators=s,this.resetStartLocationFromNode(a,s[0]),s=[]),this.parseClassMember(n,a,i),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(b.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),s.length)throw this.raise(b.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(t,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(t,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,i,s)}parseClassMemberWithIsStatic(t,r,i,s){let n=r,a=r,o=r,l=r,c=r,f=n,x=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){f.kind="method";let O=this.match(139);if(this.parseClassElementName(f),this.parsePostMemberNameModifiers(f),O){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsGenerator,n.key),this.pushClassMethod(t,n,!0,!1,!1,!1);return}let P=!this.state.containsEsc&&ke(this.state.type),A=this.parseClassElementName(r),v=P?A.name:null,_=this.isPrivateName(A),w=this.state.startLoc;if(this.parsePostMemberNameModifiers(x),this.isClassMethod()){if(f.kind="method",_){this.pushClassPrivateMethod(t,a,!1,!1);return}let O=this.isNonstaticConstructor(n),L=!1;O&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(b.DuplicateConstructor,A),O&&this.hasPlugin("typescript")&&r.override&&this.raise(b.OverrideOnConstructor,A),i.hadConstructor=!0,L=i.hadSuperClass),this.pushClassMethod(t,n,!1,!1,O,L)}else if(this.isClassProperty())_?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(v==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(A);let O=this.eat(55);x.optional&&this.unexpected(w),f.kind="method";let L=this.match(139);this.parseClassElementName(f),this.parsePostMemberNameModifiers(x),L?this.pushClassPrivateMethod(t,a,O,!0):(this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsAsync,n.key),this.pushClassMethod(t,n,O,!0,!1,!1))}else if((v==="get"||v==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(A),f.kind=v;let O=this.match(139);this.parseClassElementName(n),O?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsAccessor,n.key),this.pushClassMethod(t,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(v==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(A);let O=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,c,O)}else this.isLineTerminator()?_?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:i}=this.state;if((r===132||r===134)&&t.static&&i==="prototype"&&this.raise(b.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(b.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return t.key=s,s}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var i;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(b.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(b.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let i=this.parseClassPrivateProperty(r);t.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(t,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(b.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);t.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,r,i,s,n,a){t.body.push(this.parseMethod(r,i,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(n);let a=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(tm()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,i,s=8331){if(ke(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,s);else if(i||!r)t.id=null;else throw this.raise(b.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let i=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,i),n=!s||this.eat(12),a=n&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),l=n&&(!o||this.eat(12)),c=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(b.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let f=this.maybeParseExportNamedSpecifiers(t);s&&n&&!a&&!f&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let x;if(c||f){if(x=!1,r)throw this.raise(b.UnsupportedDecoratorExport,t);this.parseExportFrom(t,c)}else x=this.maybeParseExportDeclaration(t);if(c||f||x){var P;let A=t;if(this.checkExport(A,!0,!1,!!A.source),((P=A.declaration)==null?void 0:P.type)==="ClassDeclaration")this.maybeTakeDecorators(r,A.declaration,A);else if(r)throw this.raise(b.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(A,"ExportNamedDeclaration")}if(this.eat(65)){let A=t,v=this.parseExportDefaultExpression();if(A.declaration=v,v.type==="ClassDeclaration")this.maybeTakeDecorators(r,v,A);else if(r)throw this.raise(b.UnsupportedDecoratorExport,t);return this.checkExport(A,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(A,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,i;(i=(r=t).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(b.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(ke(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),n=this.input.charCodeAt(s);if(n===123||this.chStartsBindingIdentifier(n,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||ke(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(b.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(b.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,i,s){if(r){var n;if(i){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(b.ExportDefaultFromAsIdentifier,o)}}else if((n=t.specifiers)!=null&&n.length)for(let o of t.specifiers){let{exported:l}=o,c=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,c),!s&&o.local){let{local:f}=o;f.type!=="Identifier"?this.raise(b.ExportBindingIsString,o,{localName:f.value,exportName:c}):(this.checkReservedWord(f.name,f.loc.start,!0,!1),this.scope.checkLocalExport(f))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(t,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(b.DuplicateDefaultExport,t):this.raise(b.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,n,t,s))}return r}parseExportSpecifier(t,r,i,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=I6.exec(t.value);return r&&this.raise(b.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,i=r.length===1?r[0].type:null;if(t.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(b.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(b.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(b.ImportReflectionNotBinding,r[0].loc.start),((s=t.assertions)==null?void 0:s.length)>0&&this.raise(b.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let i=r.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});i!==void 0&&this.raise(b.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let i=this.startNode(),s=this.parseIdentifierName(!0),{type:n}=this.state;return(zt(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(t,r,s,i.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(i,s))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return ke(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(t);return s&&!n&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,i){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(t,r,i=8201){return this.checkLVal(t.local,{type:r},i),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(b.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(b.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(b.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(b.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!i&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,t.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(zt(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(b.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(134),n=this.isContextual(130);i.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(i,s,t.importKind==="type"||t.importKind==="typeof",n,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,i,s,n){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(b.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(t,"ImportSpecifier",n)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Kn=class extends zu{constructor(t,r,i){let s=C8(t);super(s,r),this.options=s,this.initializeScopes(),this.plugins=i,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let n=0;s.allowAwaitOutsideFunction&&(n|=1),s.allowReturnOutsideFunction&&(n|=2),s.allowImportExportEverywhere&&(n|=8),s.allowSuperOutsideMethod&&(n|=16),s.allowUndeclaredExports&&(n|=64),s.allowNewTargetOutsideFunction&&(n|=4),s.allowYieldOutsideFunction&&(n|=32),s.ranges&&(n|=128),s.tokens&&(n|=256),s.createImportExpressions&&(n|=512),s.createParenthesizedExpressions&&(n|=1024),s.errorRecovery&&(n|=2048),s.attachComment&&(n|=4096),s.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return Cs}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let i=this.parseTopLevel(t,r);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}};function N6(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let i=Ps(t,e),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",Ps(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return t.sourceType="script",Ps(t,e).parse()}catch{}throw i}}else return Ps(t,e).parse()}function O6(e,t){let r=Ps(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function _6(e){let t={};for(let r of Object.keys(e))t[r]=br(e[r]);return t}var k6=_6(O8);function Ps(e,t){let r=Kn,i=new Map;if(e!=null&&e.plugins){for(let s of e.plugins){let n,a;typeof s=="string"?n=s:[n,a]=s,i.has(n)||i.set(n,a||{})}A6(i),r=D6(i)}return new r(e,t,i)}var Yd=new Map;function D6(e){let t=[];for(let s of v6)e.has(s)&&t.push(s);let r=t.join("|"),i=Yd.get(r);if(!i){i=Kn;for(let s of t)i=sm[s](i);Yd.set(r,i)}return i}ws.parse=N6;ws.parseExpression=O6;ws.tokTypes=k6});var ac=I(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.Var=ye.User=ye.Statement=ye.SpreadProperty=ye.Scope=ye.RestProperty=ye.ReferencedMemberExpression=ye.ReferencedIdentifier=ye.Referenced=ye.Pure=ye.NumericLiteralTypeAnnotation=ye.Generated=ye.ForAwaitStatement=ye.Flow=ye.Expression=ye.ExistentialTypeParam=ye.BlockScoped=ye.BindingIdentifier=void 0;var gee=ye.ReferencedIdentifier=["Identifier","JSXIdentifier"],bee=ye.ReferencedMemberExpression=["MemberExpression"],Eee=ye.BindingIdentifier=["Identifier"],Pee=ye.Statement=["Statement"],Aee=ye.Expression=["Expression"],vee=ye.Scope=["Scopable","Pattern"],Cee=ye.Referenced=null,Iee=ye.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],wee=ye.Var=["VariableDeclaration"],Nee=ye.User=null,Oee=ye.Generated=null,_ee=ye.Pure=null,kee=ye.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],Dee=ye.RestProperty=["RestElement"],Lee=ye.SpreadProperty=["RestElement"],Mee=ye.ExistentialTypeParam=["ExistsTypeAnnotation"],Bee=ye.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],Fee=ye.ForAwaitStatement=["ForOfStatement"]});var am=I((jee,nm)=>{var Fi=1e3,Ri=Fi*60,ji=Ri*60,si=ji*24,L6=si*7,M6=si*365.25;nm.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return B6(e);if(r==="number"&&isFinite(e))return t.long?R6(e):F6(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function B6(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*M6;case"weeks":case"week":case"w":return r*L6;case"days":case"day":case"d":return r*si;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ji;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ri;case"seconds":case"second":case"secs":case"sec":case"s":return r*Fi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function F6(e){var t=Math.abs(e);return t>=si?Math.round(e/si)+"d":t>=ji?Math.round(e/ji)+"h":t>=Ri?Math.round(e/Ri)+"m":t>=Fi?Math.round(e/Fi)+"s":e+"ms"}function R6(e){var t=Math.abs(e);return t>=si?Yn(e,t,si,"day"):t>=ji?Yn(e,t,ji,"hour"):t>=Ri?Yn(e,t,Ri,"minute"):t>=Fi?Yn(e,t,Fi,"second"):e+" ms"}function Yn(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}});var oc=I((qee,om)=>{function j6(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=am(),r.destroy=c,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let x=0;for(let P=0;P<f.length;P++)x=(x<<5)-x+f.charCodeAt(P),x|=0;return r.colors[Math.abs(x)%r.colors.length]}r.selectColor=t;function r(f){let x,P=null,A,v;function _(...w){if(!_.enabled)return;let O=_,L=Number(new Date),ee=L-(x||L);O.diff=ee,O.prev=x,O.curr=L,x=L,w[0]=r.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let X=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(ue,Ce)=>{if(ue==="%%")return"%";X++;let Be=r.formatters[Ce];if(typeof Be=="function"){let et=w[X];ue=Be.call(O,et),w.splice(X,1),X--}return ue}),r.formatArgs.call(O,w),(O.log||r.log).apply(O,w)}return _.namespace=f,_.useColors=r.useColors(),_.color=r.selectColor(f),_.extend=i,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>P!==null?P:(A!==r.namespaces&&(A=r.namespaces,v=r.enabled(f)),v),set:w=>{P=w}}),typeof r.init=="function"&&r.init(_),_}function i(f,x){let P=r(this.namespace+(typeof x>"u"?":":x)+f);return P.log=this.log,P}function s(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let x=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let P of x)P[0]==="-"?r.skips.push(P.slice(1)):r.names.push(P)}function n(f,x){let P=0,A=0,v=-1,_=0;for(;P<f.length;)if(A<x.length&&(x[A]===f[P]||x[A]==="*"))x[A]==="*"?(v=A,_=P,A++):(P++,A++);else if(v!==-1)A=v+1,_++,P=_;else return!1;for(;A<x.length&&x[A]==="*";)A++;return A===x.length}function a(){let f=[...r.names,...r.skips.map(x=>"-"+x)].join(",");return r.enable(""),f}function o(f){for(let x of r.skips)if(n(f,x))return!1;for(let x of r.names)if(n(f,x))return!0;return!1}function l(f){return f instanceof Error?f.stack||f.message:f}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}om.exports=j6});var lm=I((wt,Jn)=>{wt.formatArgs=U6;wt.save=K6;wt.load=V6;wt.useColors=q6;wt.storage=Y6();wt.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();wt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function q6(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function U6(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Jn.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),e.splice(i,0,t)}wt.log=console.debug||console.log||(()=>{});function K6(e){try{e?wt.storage.setItem("debug",e):wt.storage.removeItem("debug")}catch{}}function V6(){let e;try{e=wt.storage.getItem("debug")||wt.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Y6(){try{return localStorage}catch{}}Jn.exports=oc()(wt);var{formatters:J6}=Jn.exports;J6.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var cm={};hS(cm,{createSupportsColor:()=>uc,default:()=>z6});function Ut(e,t=globalThis.Deno?globalThis.Deno.args:Wn.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1||i<s)}function X6(){if(!("FORCE_COLOR"in We))return;if(We.FORCE_COLOR==="true")return 1;if(We.FORCE_COLOR==="false")return 0;if(We.FORCE_COLOR.length===0)return 1;let e=Math.min(Number.parseInt(We.FORCE_COLOR,10),3);if([0,1,2,3].includes(e))return e}function W6(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function $6(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let i=X6();i!==void 0&&(Xn=i);let s=r?Xn:i;if(s===0)return 0;if(r){if(Ut("color=16m")||Ut("color=full")||Ut("color=truecolor"))return 3;if(Ut("color=256"))return 2}if("TF_BUILD"in We&&"AGENT_NAME"in We)return 1;if(e&&!t&&s===void 0)return 0;let n=s||0;if(We.TERM==="dumb")return n;if(Wn.default.platform==="win32"){let a=um.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in We)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in We)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in We)||We.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in We)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(We.TEAMCITY_VERSION)?1:0;if(We.COLORTERM==="truecolor"||We.TERM==="xterm-kitty"||We.TERM==="xterm-ghostty"||We.TERM==="wezterm")return 3;if("TERM_PROGRAM"in We){let a=Number.parseInt((We.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(We.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(We.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(We.TERM)||"COLORTERM"in We?1:n}function uc(e,t={}){let r=$6(e,{streamIsTTY:e&&e.isTTY,...t});return W6(r)}var Wn,um,lc,We,Xn,H6,z6,pm=fS(()=>{Wn=Na(require("node:process"),1),um=Na(require("node:os"),1),lc=Na(require("node:tty"),1);({env:We}=Wn.default);Ut("no-color")||Ut("no-colors")||Ut("color=false")||Ut("color=never")?Xn=0:(Ut("color")||Ut("colors")||Ut("color=true")||Ut("color=always"))&&(Xn=1);H6={stdout:uc({isTTY:lc.default.isatty(1)}),stderr:uc({isTTY:lc.default.isatty(2)})},z6=H6});var hm=I((lt,Hn)=>{var G6=require("tty"),$n=require("util");lt.init=s9;lt.log=t9;lt.formatArgs=Z6;lt.save=r9;lt.load=i9;lt.useColors=Q6;lt.destroy=$n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");lt.colors=[6,2,3,4,5,1];try{let e=(pm(),dS(cm));e&&(e.stderr||e).level>=2&&(lt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}lt.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function Q6(){return"colors"in lt.inspectOpts?!!lt.inspectOpts.colors:G6.isatty(process.stderr.fd)}function Z6(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${s};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
|
|
23
|
+
`).join(`
|
|
24
|
+
`+n),e.push(s+"m+"+Hn.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=e9()+t+" "+e[0]}function e9(){return lt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function t9(...e){return process.stderr.write($n.formatWithOptions(lt.inspectOpts,...e)+`
|
|
25
|
+
`)}function r9(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function i9(){return process.env.DEBUG}function s9(e){e.inspectOpts={};let t=Object.keys(lt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=lt.inspectOpts[t[r]]}Hn.exports=oc()(lt);var{formatters:fm}=Hn.exports;fm.o=function(e){return this.inspectOpts.colors=this.useColors,$n.inspect(e,this.inspectOpts).split(`
|
|
26
|
+
`).map(t=>t.trim()).join(" ")};fm.O=function(e){return this.inspectOpts.colors=this.useColors,$n.inspect(e,this.inspectOpts)}});var dm=I((Uee,cc)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?cc.exports=lm():cc.exports=hm()});var pc=I(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.isBindingIdentifier=I9;it.isBlockScoped=k9;it.isExpression=N9;it.isFlow=F9;it.isForAwaitStatement=q9;it.isGenerated=M9;it.isPure=B9;it.isReferenced=_9;it.isReferencedIdentifier=v9;it.isReferencedMemberExpression=C9;it.isRestProperty=R9;it.isScope=O9;it.isSpreadProperty=j9;it.isStatement=w9;it.isUser=L9;it.isVar=D9;var n9=fe(),{isBinding:a9,isBlockScoped:o9,isExportDeclaration:l9,isExpression:u9,isFlow:c9,isForStatement:p9,isForXStatement:f9,isIdentifier:mm,isImportDeclaration:h9,isImportSpecifier:d9,isJSXIdentifier:m9,isJSXMemberExpression:y9,isMemberExpression:T9,isRestElement:ym,isReferenced:zn,isScope:S9,isStatement:x9,isVar:g9,isVariableDeclaration:b9,react:E9,isForOfStatement:P9}=n9,{isCompatTag:A9}=E9;function v9(e){let{node:t,parent:r}=this;return mm(t,e)?zn(t,r,this.parentPath.parent):m9(t,e)?!y9(r)&&A9(t.name)?!1:zn(t,r,this.parentPath.parent):!1}function C9(){let{node:e,parent:t}=this;return T9(e)&&zn(e,t)}function I9(){let{node:e,parent:t}=this,r=this.parentPath.parent;return mm(e)&&a9(e,t,r)}function w9(){let{node:e,parent:t}=this;return x9(e)?!(b9(e)&&(f9(t,{left:e})||p9(t,{init:e}))):!1}function N9(){return this.isIdentifier()?this.isReferencedIdentifier():u9(this.node)}function O9(){return S9(this.node,this.parent)}function _9(){return zn(this.node,this.parent)}function k9(){return o9(this.node)}function D9(){return g9(this.node)}function L9(){var e;return!!((e=this.node)!=null&&e.loc)}function M9(){return!this.isUser()}function B9(e){return this.scope.isPure(this.node,e)}function F9(){let{node:e}=this;return c9(e)?!0:h9(e)?e.importKind==="type"||e.importKind==="typeof":l9(e)?e.exportKind==="type":d9(e)?e.importKind==="type"||e.importKind==="typeof":!1}function R9(){var e;return ym(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function j9(){var e;return ym(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function q9(){return P9(this.node,{await:!0})}it.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};it.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var Os=I(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.environmentVisitor=$9;ai.explode=Im;ai.isExplodedVisitor=Cm;ai.merge=Nm;ai.verify=wm;var vm=ac(),U9=pc(),K9=fe(),Tm=Kt(),{DEPRECATED_KEYS:Sm,DEPRECATED_ALIASES:xm,FLIPPED_ALIAS_KEYS:gm,TYPES:V9,__internal__deprecationWarning:bm}=K9;function Y9(e){return e in vm}function Cm(e){return e?._exploded}function Im(e){if(Cm(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(ni(r))continue;let i=r.split("|");if(i.length===1)continue;let s=e[r];delete e[r];for(let n of i)e[n]=s}wm(e),delete e.__esModule,J9(e),Am(e);for(let r of Object.keys(e)){if(ni(r)||!Y9(r))continue;let i=e[r];for(let n of Object.keys(i))i[n]=X9(r,i[n]);delete e[r];let s=vm[r];if(s!==null)for(let n of s){var t;(t=e[n])!=null||(e[n]={}),Ns(e[n],i)}else Ns(e,i)}for(let r of Object.keys(e)){if(ni(r))continue;let i=gm[r];if(r in Sm){let n=Sm[r];bm(r,n,"Visitor "),i=[n]}else if(r in xm){let n=xm[r];bm(r,n,"Visitor "),i=gm[n]}if(!i)continue;let s=e[r];delete e[r];for(let n of i){let a=e[n];a?Ns(a,s):e[n]=Object.assign({},s)}}for(let r of Object.keys(e))ni(r)||Am(e[r]);return e}function wm(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&Em(t,e[t]),ni(t))continue;if(!V9.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.29.0`);let r=e[t];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")Em(`${t}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${i}`)}e._verified=!0}}function Em(e,t){let r=[].concat(t);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof i}`)}function Nm(e,t=[],r){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let s=0;s<e.length;s++){let n=Im(e[s]),a=t[s],o=n;(a||r)&&(o=Pm(o,a,r)),Ns(i,o);for(let l of Object.keys(n)){if(ni(l))continue;let c=n[l];(a||r)&&(c=Pm(c,a,r));let f=i[l]||(i[l]={});Ns(f,c)}}return i}function Pm(e,t,r){let i={};for(let s of["enter","exit"]){let n=e[s];Array.isArray(n)&&(n=n.map(function(a){let o=a;return t&&(o=function(l){a.call(t,l,t)}),r&&(o=r(t?.key,s,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[s]=n)}return i}function J9(e){for(let t of Object.keys(e)){if(ni(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function Am(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function X9(e,t){let r=`is${e}`,i=U9[r],s=function(n){if(i.call(n))return t.apply(this,arguments)};return s.toString=()=>t.toString(),s}function ni(e){return!!(e.startsWith("_")||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist")}function Ns(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var W9={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Tm.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Tm.requeueComputedKeyAndDecorators.call(e))}};function $9(e){return Nm([W9,e])}});var Om=I(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.default=void 0;var Gn=fe(),H9=Gn,z9=Zn(),G9=Os(),Q9=Kt(),{getAssignmentIdentifiers:Z9}=H9,e5={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Q9.requeueComputedKeyAndDecorators.call(e)),e.isSwitchStatement()&&e.context.maybeQueue(e.get("discriminant")))},ObjectProperty({node:e,scope:t},r){let{name:i}=e.key;if(e.shorthand&&(i===r.oldName||i===r.newName)&&t.getBindingIdentifier(i)===r.binding.identifier){var s;e.shorthand=!1,(s=e.extra)!=null&&s.shorthand&&(e.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?Z9(e.node):e.getOuterBindingIdentifiers();for(let i in r)i===t.oldName&&(r[i].name=t.newName)}},fc=class{constructor(t,r,i){this.newName=i,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if(Gn.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:i}=this,{scope:s,path:n}=t,a=n.find(c=>c.isDeclaration()||c.isFunctionExpression()||c.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:!0};Gn.isMethod(o)&&(o.computed&&(l.key=!0),Gn.isObjectMethod(o)||(l.decorators=!0)),(0,z9.traverseNode)(o,(0,G9.explode)(e5),s,this,s.path,l),arguments[0]||(s.removeOwnBinding(r),s.bindings[i]=t,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};Qn.default=fc});var _m=I(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.default=a5;var t5=fe(),r5=qi(),i5=Os(),s5=Kt(),{VISITOR_KEYS:n5}=t5;function a5(e,t,r){let i=(0,i5.explode)(t);if(i.enter||i.exit)throw new Error("Should not be used with enter/exit visitors.");s(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function s(n,a,o,l,c,f,x,P){if(!o)return;let A=P||r5.NodePath.get({hub:x,parentPath:n,parent:a,container:l,listKey:f,key:c});s5._forceSetScope.call(A);let v=i[o.type];if(v!=null&&v.enter)for(let w of v.enter)w.call(r,A,r);if(A.shouldSkip)return;let _=n5[o.type];if(_!=null&&_.length){for(let w of _){let O=o[w];if(O)if(Array.isArray(O))for(let L=0;L<O.length;L++){let ee=O[L];s(A,o,ee,O,L,w)}else s(A,o,O,o,w,null)}if(v!=null&&v.exit)for(let w of v.exit)w.call(r,A,r)}}}});var km=I(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.default=void 0;var dc=class{constructor({identifier:t,scope:r,path:i,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&o5(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};ea.default=dc;function o5(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:i}=e;r;{parentPath:r,key:i}=r){if(r.isFunctionParent())return!1;if(i==="left"&&r.isForXStatement()||t&&i==="body"&&r.isLoop())return!0}return!1}});var oi=I(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.clear=u5;kt.clearPath=Dm;kt.clearScope=Lm;kt.getCachedPaths=c5;kt.getOrCreateCachedPaths=p5;kt.scope=kt.path=void 0;var ta=kt.path=new WeakMap,l5=kt.scope=new WeakMap;function u5(){Dm(),Lm()}function Dm(){kt.path=ta=new WeakMap}function Lm(){kt.scope=l5=new WeakMap}function c5(e){let{parent:t,parentPath:r}=e;return ta.get(t)}function p5(e,t){let r=ta.get(e);return r||ta.set(e,r=new Map),r}});var Mm=I(($ee,f5)=>{f5.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var Bm=I((Hee,h5)=>{h5.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var Sc=I(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.default=void 0;var d5=Om(),Xm=qi(),zee=_m(),m5=km(),Wm=fe(),$m=Wm,Fm=oi(),y5=Mm(),T5=Bm(),{assignmentExpression:S5,callExpression:Rm,cloneNode:jm,getBindingIdentifiers:Hm,identifier:ui,isArrayExpression:zm,isBinary:x5,isCallExpression:qm,isClass:g5,isClassBody:b5,isClassDeclaration:E5,isExportAllDeclaration:Gm,isExportDefaultDeclaration:P5,isExportNamedDeclaration:mc,isFunctionDeclaration:A5,isIdentifier:li,isImportDeclaration:yc,isLiteral:v5,isMemberExpression:C5,isMethod:I5,isModuleSpecifier:w5,isNullLiteral:N5,isObjectExpression:O5,isProperty:_5,isPureish:k5,isRegExpLiteral:D5,isSuper:L5,isTaggedTemplateExpression:M5,isTemplateLiteral:Qm,isThisExpression:Um,isUnaryExpression:B5,isVariableDeclaration:F5,expressionStatement:R5,matchesPattern:Km,memberExpression:Tc,numericLiteral:j5,toIdentifier:q5,variableDeclaration:U5,variableDeclarator:K5,isObjectProperty:V5,isTopicReference:Vm,isMetaProperty:Y5,isPrivateName:J5,isExportDeclaration:X5,buildUndefinedNode:W5,sequenceExpression:$5}=Wm;function Ke(e,t){switch(e?.type){default:if(yc(e)||X5(e)){var r;if((Gm(e)||mc(e)||yc(e))&&e.source)Ke(e.source,t);else if((mc(e)||yc(e))&&(r=e.specifiers)!=null&&r.length)for(let i of e.specifiers)Ke(i,t);else(P5(e)||mc(e))&&e.declaration&&Ke(e.declaration,t)}else w5(e)?Ke(e.local,t):v5(e)&&!N5(e)&&!D5(e)&&!Qm(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Ke(e.object,t),Ke(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Ke(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let i of e.properties)Ke(i,t);break;case"SpreadElement":case"RestElement":Ke(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Ke(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),Ke(e.argument,t);break;case"AwaitExpression":t.push("await"),Ke(e.argument,t);break;case"AssignmentExpression":Ke(e.left,t);break;case"VariableDeclarator":Ke(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Ke(e.id,t);break;case"PrivateName":Ke(e.id,t);break;case"ParenthesizedExpression":Ke(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Ke(e.argument,t);break;case"MetaProperty":Ke(e.meta,t),Ke(e.property,t);break;case"JSXElement":Ke(e.openingElement,t);break;case"JSXOpeningElement":Ke(e.name,t);break;case"JSXFragment":Ke(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Ke(e.namespace,t),Ke(e.name,t);break}}function Ym(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function H5(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}var Jm=Symbol.for("should not be considered a local binding"),z5={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){$m.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:i}=e;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(Gm(t))return;let i=t.declaration;if(E5(i)||A5(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n?.reference(e)}else if(F5(i))for(let s of i.declarations)for(let n of Object.keys(Hm(s))){let a=r.getBinding(n);a?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let s=e.node.id.name;e.scope.bindings[s]=e.scope.parent.getBinding(s)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[Jm]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[Jm]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},ra,G5=0,Gt=class e{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,i=Fm.scope.get(r);if(i?.path===t)return i;Fm.scope.set(r,this),this.uid=G5++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var t;let r,i=this.path;do{var s;let n=i.key==="key"||i.listKey==="decorators";i=i.parentPath,n&&i.isMethod()&&(i=i.parentPath),(s=i)!=null&&s.isScope()&&(r=i)}while(i&&!r);return(t=r)==null?void 0:t.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),jm(r)}generateUidIdentifier(t){return ui(this.generateUid(t))}generateUid(t="temp"){t=q5(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,i=0;do r=`_${t}`,i>=11?r+=i-1:i>=9?r+=i-9:i>=1&&(r+=i+1),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}generateUidBasedOnNode(t,r){let i=[];Ke(t,i);let s=i.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return ui(this.generateUidBasedOnNode(t,r))}isStatic(t){if(Um(t)||L5(t)||Vm(t))return!0;if(li(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let i=this.generateUidIdentifierBasedOnNode(t);return r?i:(this.push({id:i}),jm(i))}}checkBlockScopedCollisions(t,r,i,s){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${i}"`,TypeError)}rename(t,r){let i=this.getBinding(t);i&&(r||(r=this.generateUidIdentifier(t).name),new d5.default(i,t,r).rename(arguments[2]))}dump(){let t="-".repeat(60);console.log(t);let r=this;do{console.log("#",r.block.type);for(let i of Object.keys(r.bindings)){let s=r.bindings[i];console.log(" -",i,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(r=r.parent);console.log(t)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:i}=t.node;for(let s of r)this.registerBinding(i==="using"||i==="await using"?"const":i,s)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",i=t.get("specifiers");for(let s of i){let n=r||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(n?"unknown":"module",s)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return W5()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let s of Object.keys(r)){var i;(i=this.getBinding(s))==null||i.reassign(t)}}registerBinding(t,r,i=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(t,o);return}let s=this.getProgramParent(),n=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let o of n[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,t,a,o)}l?l.reassign(i):this.bindings[a]=new m5.default({identifier:o,scope:this,path:i,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(li(t)){let a=this.getBinding(t.name);return a?r?a.constant:!0:!1}else{if(Um(t)||Y5(t)||Vm(t)||J5(t))return!0;if(g5(t)){var i;return t.superClass&&!this.isPure(t.superClass,r)||((i=t.decorators)==null?void 0:i.length)>0?!1:this.isPure(t.body,r)}else if(b5(t)){for(let a of t.body)if(!this.isPure(a,r))return!1;return!0}else{if(x5(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(zm(t)||t?.type==="TupleExpression"){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(O5(t)||t?.type==="RecordExpression"){for(let a of t.properties)if(!this.isPure(a,r))return!1;return!0}else if(I5(t)){var s;return!(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0)}else if(_5(t)){var n;return!(t.computed&&!this.isPure(t.key,r)||((n=t.decorators)==null?void 0:n.length)>0||(V5(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(B5(t))return this.isPure(t.argument,r);if(Qm(t)){for(let a of t.expressions)if(!this.isPure(a,r))return!1;return!0}else return M5(t)?Km(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):C5(t)?!t.computed&&li(t.object)&&t.object.name==="Symbol"&&li(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):qm(t)?Km(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&$m.isStringLiteral(t.arguments[0]):k5(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let i=r.data[t];if(i!=null)return i}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;Ym(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let i=r,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,ra||(ra=Xm.default.visitors.merge([{Scope(n){Ym(n.scope)}},z5])),t.type!=="Program"){let n=ra[t.type];if(n)for(let a of n.enter)a.call(s,t,s)}t.traverse(ra,s),this.crawling=!1;for(let n of s.assignments){let a=n.getAssignmentIdentifiers();for(let o of Object.keys(a))n.scope.getBinding(o)||i.addGlobal(a[o]);n.scope.registerConstantViolation(n)}for(let n of s.references){let a=n.scope.getBinding(n.node.name);a?a.reference(n):i.addGlobal(n.node)}for(let n of s.constantViolations)n.scope.registerConstantViolation(n)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:i,unique:s,kind:n="var",id:a}=t;if(!i&&!s&&(n==="var"||n==="let")&&H5(r)&&qm(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&li(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,l=`declaration:${n}:${o}`,c=!s&&r.getData(l);if(!c){let P=U5(n,[]);P._blockHoist=o,[c]=r.unshiftContainer("body",[P]),s||r.setData(l,c)}let f=K5(a,i),x=c.node.declarations.push(f);r.scope.registerBinding(n,c.get("declarations")[x-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in t||(t[i]=r.bindings[i]);r=r.parent}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,i;do{let n=r.getOwnBinding(t);if(n){var s;if(!((s=i)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r?.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let i,s,n;typeof r=="object"?(i=r.noGlobals,s=r.noUids,n=r.upToScope):typeof r=="boolean"&&(i=r);let a=this;do{if(n===a)break;if(a.hasOwnBinding(t))return!0}while(a=a.parent);return!!(!s&&this.hasUid(t)||!i&&e.globals.includes(t)||!i&&e.contextVariables.includes(t))}parentHasBinding(t,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(t,r)}moveBindingTo(t,r){let i=this.getBinding(t);i&&(i.scope.removeOwnBinding(t),i.scope=r,r.bindings[t]=i)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);let i=this;do i.uids[t]&&(i.uids[t]=!1);while(i=i.parent)}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let i of Object.keys(this.bindings)){let s=this.bindings[i];if(!s)continue;let{path:n}=s;if(!n.isVariableDeclarator())continue;let{parent:a,parentPath:o}=n;if(a.kind!=="var"||r.has(a))continue;r.add(n.parent);let l,c=[];for(let f of a.declarations){l??(l=f.id),f.init&&c.push(S5("=",f.id,f.init));let x=Object.keys(Hm(f,!1,!0,!0));for(let P of x)t(ui(P),f.init!=null)}if(o.parentPath.isForXStatement({left:a}))o.replaceWith(l);else if(c.length===0)o.remove();else{let f=c.length===1?c[0]:$5(c);o.parentPath.isForStatement({init:a})?o.replaceWith(f):o.replaceWith(R5(f))}}}};ia.default=Gt;Gt.globals=[...y5,...T5];Gt.contextVariables=["arguments","undefined","Infinity","NaN"];Gt.prototype._renameFromMap=function(t,r,i,s){t[r]&&(t[i]=s,t[r]=null)};Gt.prototype.traverse=function(e,t,r){(0,Xm.default)(e,t,this,r,this.path)};Gt.prototype._generateUid=function(t,r){let i=t;return r>1&&(i+=r),`_${i}`};Gt.prototype.toArray=function(t,r,i){if(li(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(zm(t))return t;if(li(t,{name:"arguments"}))return Rm(Tc(Tc(Tc(ui("Array"),ui("prototype")),ui("slice")),ui("call")),[t]);let s,n=[t];return r===!0?s="toConsumableArray":typeof r=="number"?(n.push(j5(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),Rm(this.path.hub.addHelper(s),n)};Gt.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let i of t){let s=this;do{for(let n of Object.keys(s.bindings)){let a=s.bindings[n];a.kind===i&&(r[n]=a)}s=s.parent}while(s)}return r};Object.defineProperties(Gt.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Zm=I(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.find=t7;Vt.findParent=e7;Vt.getAncestry=a7;Vt.getDeepestCommonAncestorFrom=n7;Vt.getEarliestCommonAncestorFrom=s7;Vt.getFunctionParent=r7;Vt.getStatementParent=i7;Vt.inType=u7;Vt.isAncestor=o7;Vt.isDescendant=l7;var Q5=fe(),{VISITOR_KEYS:Z5}=Q5;function e7(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function t7(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function r7(){return this.findParent(e=>e.isFunction())}function i7(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function s7(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let s,n=Z5[t.type];for(let a of i){let o=a[r+1];if(!s){s=o;continue}if(o.listKey&&s.listKey===o.listKey&&o.key<s.key){s=o;continue}let l=n.indexOf(s.parentKey),c=n.indexOf(o.parentKey);l>c&&(s=o)}return s})}function n7(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,i,s,n=e.map(o=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);return l.length<r&&(r=l.length),l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let c of n)if(c[o]!==l)break e;i=o,s=l}if(s)return t?t(s,i,n):s;throw new Error("Couldn't find intersection")}function a7(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function o7(e){return e.isDescendant(this)}function l7(e){return!!this.findParent(t=>t===e)}function u7(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1}});var gc=I(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.createUnionType=d7;var c7=fe(),{createFlowUnionType:ey,createTSUnionType:ty,createUnionTypeAnnotation:p7,isFlowType:f7,isTSType:h7}=c7;function d7(e){if(e.every(t=>f7(t)))return ey?ey(e):p7(e);if(e.every(t=>h7(t))&&ty)return ty(e)}});var ay=I(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.default=x7;var m7=fe(),iy=gc(),{BOOLEAN_NUMBER_BINARY_OPERATORS:y7,createTypeAnnotationBasedOnTypeof:T7,numberTypeAnnotation:sy,voidTypeAnnotation:S7}=m7;function x7(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:g7(t,this,e.name);if(e.name==="undefined")return S7();if(e.name==="NaN"||e.name==="Infinity")return sy();e.name}function g7(e,t,r){let i=[],s=[],n=ry(e,t,s),a=ny(e,t,r);if(a){let o=ry(e,a.ifStatement);n=n.filter(l=>!o.includes(l)),i.push(a.typeAnnotation)}if(n.length){n.push(...s);for(let o of n)i.push(o.getTypeAnnotation())}if(i.length)return(0,iy.createUnionType)(i)}function ry(e,t,r){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(t);return r&&n==="unknown"&&r.push(s),n==="before"})}function b7(e,t){let r=t.node.operator,i=t.get("right").resolve(),s=t.get("left").resolve(),n;if(s.isIdentifier({name:e})?n=i:i.isIdentifier({name:e})&&(n=s),n)return r==="==="?n.getTypeAnnotation():y7.includes(r)?sy():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(s.isUnaryExpression({operator:"typeof"})?(a=s,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=s),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return T7(l)}function E7(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return t.key==="test"?void 0:i;if(i.isFunction()&&(r==null||i.parentPath.scope.getBinding(r)!==e))return;t=i}}function ny(e,t,r){let i=E7(e,t,r);if(!i)return;let n=[i.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression())l.node.operator==="&&"&&(n.push(l.get("left")),n.push(l.get("right")));else if(l.isBinaryExpression()){let c=b7(r,l);c&&a.push(c)}}return a.length?{typeAnnotation:(0,iy.createUnionType)(a),ifStatement:i}:ny(e,i,r)}});var dy=I(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ArrayExpression=py;Ne.AssignmentExpression=J7;Ne.BinaryExpression=q7;Ne.BooleanLiteral=H7;Ne.CallExpression=sq;Ne.ConditionalExpression=K7;Ne.ClassDeclaration=Ne.ClassExpression=Ne.FunctionDeclaration=Ne.ArrowFunctionExpression=Ne.FunctionExpression=Z7;Object.defineProperty(Ne,"Identifier",{enumerable:!0,get:function(){return A7.default}});Ne.LogicalExpression=U7;Ne.NewExpression=F7;Ne.NullLiteral=z7;Ne.NumericLiteral=$7;Ne.ObjectExpression=Q7;Ne.ParenthesizedExpression=Y7;Ne.RegExpLiteral=G7;Ne.RestElement=fy;Ne.SequenceExpression=V7;Ne.StringLiteral=W7;Ne.TSAsExpression=cy;Ne.TSNonNullExpression=B7;Ne.TaggedTemplateExpression=nq;Ne.TemplateLiteral=R7;Ne.TypeCastExpression=uy;Ne.UnaryExpression=j7;Ne.UpdateExpression=X7;Ne.VariableDeclarator=M7;var P7=fe(),A7=ay(),ly=gc(),{BOOLEAN_BINARY_OPERATORS:v7,BOOLEAN_UNARY_OPERATORS:C7,NUMBER_BINARY_OPERATORS:I7,NUMBER_UNARY_OPERATORS:w7,STRING_UNARY_OPERATORS:N7,anyTypeAnnotation:oy,arrayTypeAnnotation:Ec,booleanTypeAnnotation:Pc,buildMatchMemberExpression:sa,genericTypeAnnotation:Rr,identifier:ci,nullLiteralTypeAnnotation:O7,numberTypeAnnotation:Ui,stringTypeAnnotation:pi,tupleTypeAnnotation:_7,unionTypeAnnotation:k7,voidTypeAnnotation:D7,isIdentifier:L7}=P7;function M7(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function uy(e){return e.typeAnnotation}uy.validParent=!0;function cy(e){return e.typeAnnotation}cy.validParent=!0;function B7(){return this.get("expression").getTypeAnnotation()}function F7(e){if(e.callee.type==="Identifier")return Rr(e.callee)}function R7(){return pi()}function j7(e){let t=e.operator;if(t==="void")return D7();if(w7.includes(t))return Ui();if(N7.includes(t))return pi();if(C7.includes(t))return Pc()}function q7(e){let t=e.operator;if(I7.includes(t))return Ui();if(v7.includes(t))return Pc();if(t==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?Ui():i.isBaseType("string")||r.isBaseType("string")?pi():k7([pi(),Ui()])}}function U7(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,ly.createUnionType)(e)}function K7(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,ly.createUnionType)(e)}function V7(){return this.get("expressions").pop().getTypeAnnotation()}function Y7(){return this.get("expression").getTypeAnnotation()}function J7(){return this.get("right").getTypeAnnotation()}function X7(e){let t=e.operator;if(t==="++"||t==="--")return Ui()}function W7(){return pi()}function $7(){return Ui()}function H7(){return Pc()}function z7(){return O7()}function G7(){return Rr(ci("RegExp"))}function Q7(){return Rr(ci("Object"))}function py(){return Rr(ci("Array"))}function fy(){return py()}fy.validParent=!0;function Z7(){return Rr(ci("Function"))}var eq=sa("Array.from"),tq=sa("Object.keys"),rq=sa("Object.values"),iq=sa("Object.entries");function sq(){let{callee:e}=this.node;return tq(e)?Ec(pi()):eq(e)||rq(e)||L7(e,{name:"Array"})?Ec(oy()):iq(e)?Ec(_7([pi(),oy()])):hy(this.get("callee"))}function nq(){return hy(this.get("tag"))}function hy(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Rr(ci("AsyncIterator")):Rr(ci("Promise"));if(t.generator)return Rr(ci("Iterator"));if(e.node.returnType)return e.node.returnType}}});var xy=I(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr._getTypeAnnotation=Sy;jr.baseTypeStrictlyMatches=Iq;jr.couldBeBaseType=Cq;jr.getTypeAnnotation=Aq;jr.isBaseType=vq;jr.isGenericType=wq;var my=dy(),aq=fe(),{anyTypeAnnotation:Ty,isAnyTypeAnnotation:na,isArrayTypeAnnotation:oq,isBooleanTypeAnnotation:lq,isEmptyTypeAnnotation:uq,isFlowBaseAnnotation:cq,isGenericTypeAnnotation:pq,isIdentifier:yy,isMixedTypeAnnotation:fq,isNumberTypeAnnotation:hq,isStringTypeAnnotation:dq,isTSArrayType:mq,isTSTypeAnnotation:yq,isTSTypeReference:Tq,isTupleTypeAnnotation:Sq,isTypeAnnotation:xq,isUnionTypeAnnotation:gq,isVoidTypeAnnotation:bq,stringTypeAnnotation:Eq,voidTypeAnnotation:Pq}=aq;function Aq(){let e=this.getData("typeAnnotation");return e!=null||(e=Sy.call(this)||Ty(),(xq(e)||yq(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var Ac=new WeakSet;function Sy(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?Eq():r.key==="left"&&i.isForOfStatement()?Ty():Pq()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!Ac.has(e)){Ac.add(e);try{var t;let r=my[e.type];if(r)return r.call(this,e);if(r=my[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{Ac.delete(e)}}}function vq(e,t){return vc(e,this.getTypeAnnotation(),t)}function vc(e,t,r){if(e==="string")return dq(t);if(e==="number")return hq(t);if(e==="boolean")return lq(t);if(e==="any")return na(t);if(e==="mixed")return fq(t);if(e==="empty")return uq(t);if(e==="void")return bq(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function Cq(e){let t=this.getTypeAnnotation();if(na(t))return!0;if(gq(t)){for(let r of t.types)if(na(r)||vc(e,r,!0))return!0;return!1}else return vc(e,t,!0)}function Iq(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!na(t)&&cq(t)?r.type===t.type:!1}function wq(e){let t=this.getTypeAnnotation();return e==="Array"&&(mq(t)||oq(t)||Sq(t))?!0:pq(t)&&yy(t.id,{name:e})||Tq(t)&&yy(t.typeName,{name:e})}});var Ey=I((ite,Cc)=>{var oa=process||{},gy=oa.argv||[],aa=oa.env||{},Nq=!(aa.NO_COLOR||gy.includes("--no-color"))&&(!!aa.FORCE_COLOR||gy.includes("--color")||oa.platform==="win32"||(oa.stdout||{}).isTTY&&aa.TERM!=="dumb"||!!aa.CI),Oq=(e,t,r=e)=>i=>{let s=""+i,n=s.indexOf(t,e.length);return~n?e+_q(s,t,r,n)+t:e+s+t},_q=(e,t,r,i)=>{let s="",n=0;do s+=e.substring(n,i)+r,n=i+t.length,i=e.indexOf(t,n);while(~i);return s+e.substring(n)},by=(e=Nq)=>{let t=e?Oq:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Cc.exports=by();Cc.exports.createColors=by});var Py=I(la=>{Object.defineProperty(la,"__esModule",{value:!0});la.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;la.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var wc=I(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var Ic=Ey(),Ay=Py(),vy=rs();function kq(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:Ic.isColorSupported}var ua=(e,t)=>r=>e(t(r));function wy(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:ua(ua(e.white,e.bgRed),e.bold),gutter:e.gray,marker:ua(e.red,e.bold),message:ua(e.red,e.bold),reset:e.reset}}var Dq=wy(Ic.createColors(!0)),Lq=wy(Ic.createColors(!1));function Ny(e){return e?Dq:Lq}var Mq=new Set(["as","async","from","get","of","set"]),Bq=/\r\n|[\n\r\u2028\u2029]/,Fq=/^[()[\]{}]$/,Oy,Rq=/^[a-z][\w-]*$/i,jq=function(e,t,r){if(e.type==="name"){let i=e.value;if(vy.isKeyword(i)||vy.isStrictReservedWord(i,!0)||Mq.has(i))return"keyword";if(Rq.test(i)&&(r[t-1]==="<"||r.slice(t-2,t)==="</"))return"jsxIdentifier";let s=String.fromCodePoint(i.codePointAt(0));if(s!==s.toLowerCase())return"capitalized"}return e.type==="punctuator"&&Fq.test(e.value)?"bracket":e.type==="invalid"&&(e.value==="@"||e.value==="#")?"punctuator":e.type};Oy=function*(e){let t;for(;t=Ay.default.exec(e);){let r=Ay.matchToToken(t);yield{type:jq(r,t.index,e),value:r.value}}};function _y(e){if(e==="")return"";let t=Ny(!0),r="";for(let{type:i,value:s}of Oy(e))i in t?r+=s.split(Bq).map(n=>t[i](n)).join(`
|
|
27
|
+
`):r+=s;return r}var Cy=!1,Iy=/\r\n|[\n\r\u2028\u2029]/;function qq(e,t,r,i){let s=Object.assign({column:0,line:-1},e.start),n=Object.assign({},s,e.end),{linesAbove:a=2,linesBelow:o=3}=r||{},l=s.line-i,c=s.column,f=n.line-i,x=n.column,P=Math.max(l-(a+1),0),A=Math.min(t.length,f+o);l===-1&&(P=0),f===-1&&(A=t.length);let v=f-l,_={};if(v)for(let w=0;w<=v;w++){let O=w+l;if(!c)_[O]=!0;else if(w===0){let L=t[O-1].length;_[O]=[c,L-c+1]}else if(w===v)_[O]=[0,x];else{let L=t[O-w].length;_[O]=[0,L]}}else c===x?c?_[l]=[c,0]:_[l]=!0:_[l]=[c,x-c];return{start:P,end:A,markerLines:_}}function ky(e,t,r={}){let i=r.forceColor||kq()&&r.highlightCode,s=(r.startLine||1)-1,n=Ny(i),a=e.split(Iy),{start:o,end:l,markerLines:c}=qq(t,a,r,s),f=t.start&&typeof t.start.column=="number",x=String(l+s).length,A=(i?_y(e):e).split(Iy,l).slice(o,l).map((v,_)=>{let w=o+1+_,L=` ${` ${w+s}`.slice(-x)} |`,ee=c[w],X=!c[w+1];if(ee){let J="";if(Array.isArray(ee)){let ue=v.slice(0,Math.max(ee[0]-1,0)).replace(/[^\t]/g," "),Ce=ee[1]||1;J=[`
|
|
28
|
+
`,n.gutter(L.replace(/\d/g," "))," ",ue,n.marker("^").repeat(Ce)].join(""),X&&r.message&&(J+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(L),v.length>0?` ${v}`:"",J].join("")}else return` ${n.gutter(L)}${v.length>0?` ${v}`:""}`}).join(`
|
|
29
|
+
`);return r.message&&!f&&(A=`${" ".repeat(x+1)}${r.message}
|
|
30
|
+
${A}`),i?n.reset(A):A}function Uq(e,t,r,i={}){if(!Cy){Cy=!0;let n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(n,"DeprecationWarning");else{let a=new Error(n);a.name="DeprecationWarning",console.warn(new Error(n))}}return r=Math.max(r,0),ky(e,{start:{column:r,line:t}},i)}_s.codeFrameColumns=ky;_s.default=Uq;_s.highlight=_y});var Dy=I(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.hooks=void 0;var ate=ca.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]});var pa=I(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr._assertUnremoved=Ry;qr._callRemovalHooks=By;qr._markRemoved=Nc;qr._remove=Fy;qr._removeFromScope=My;qr.remove=$q;var Kq=Dy(),Vq=oi(),Yq=Oc(),Ly=Pr(),Jq=fe(),Xq=fa(),Wq=Kt();function $q(){var e;if(Ry.call(this),Wq.resync.call(this),By.call(this)){Nc.call(this);return}(e=this.opts)!=null&&e.noScope||My.call(this),this.shareCommentsWithSiblings(),Fy.call(this),Nc.call(this)}function My(){let e=Jq.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach(t=>this.scope.removeBinding(t))}function By(){if(this.parentPath){for(let e of Kq.hooks)if(e(this,this.parentPath))return!0}}function Fy(){Array.isArray(this.container)?(this.container.splice(this.key,1),Xq.updateSiblingKeys.call(this,this.key,-1)):Yq._replaceWith.call(this,null)}function Nc(){if(this._traverseFlags|=Ly.SHOULD_SKIP|Ly.REMOVED,this.parent){var e;(e=(0,Vq.getCachedPaths)(this))==null||e.delete(this.node)}this.node=null}function Ry(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var qy=I(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.default=void 0;var jy=fe(),Hq=jy,{react:zq}=jy,{cloneNode:Gq,jsxExpressionContainer:Qq,variableDeclaration:Zq,variableDeclarator:eU}=Hq,tU={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&zq.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let i=e.scope;do if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;while(i=i.parent);i&&t.breakOnScopePaths.push(i.path)}let r=e.scope.getBinding(e.node.name);if(r){for(let i of r.constantViolations)if(i.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},_c=class{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let i=this.bindings[r];if(!t.bindingIdentifierEquals(r,i.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(let i of Object.keys(this.bindings)){if(!r.hasOwnBinding(i))continue;let s=this.bindings[i];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=t.key){this.attachAfter=!0,t=s.path;for(let a of s.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let i=r.path.get("body").get("body");for(let s=0;s<i.length;s++)if(!i[s].node._blockHoist)return i[s]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath);return t}hasOwnParamBindings(t){for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let i=this.bindings[r];if(i.kind==="param"&&i.constant)return!0}return!1}run(){if(this.path.traverse(tU,this),this.mutableBinding)return;this.getCompatibleScopes();let t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref"),i=eU(r,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[n]=t[s]([t.isVariableDeclarator()?i:Zq("var",[i])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=Qq(r)),this.path.replaceWith(Gq(r)),n.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}};ha.default=_c});var fa=I(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt._containerInsert=Bc;Yt._containerInsertAfter=Vy;Yt._containerInsertBefore=Fc;Yt._verifyNodeList=ks;Yt.insertAfter=SU;Yt.insertBefore=yU;Yt.pushContainer=gU;Yt.unshiftContainer=xU;Yt.updateSiblingKeys=Xy;var rU=oi(),Mc=Pr(),kc=Kt(),da=pa(),iU=fe(),sU=qy(),{arrowFunctionExpression:nU,assertExpression:aU,assignmentExpression:oU,blockStatement:Uy,callExpression:lU,cloneNode:Dc,expressionStatement:Lc,isAssignmentExpression:uU,isCallExpression:cU,isExportNamedDeclaration:Ky,isExpression:pU,isIdentifier:fU,isSequenceExpression:hU,isSuper:dU,thisExpression:mU}=iU;function yU(e){da._assertUnremoved.call(this);let t=ks.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||Ky(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return Fc.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(Uy(n?[s]:[]));return a.unshiftContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function Bc(e,t){Xy.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var i;let a=e+n,o=this.getSibling(a);r.push(o),(i=this.context)!=null&&i.queue&&kc.pushContext.call(o,this.context)}let s=kc._getQueueContexts.call(this);for(let n of r){kc.setScope.call(n),n.debug("Inserted.");for(let a of s)a.maybeQueue(n,!0)}return r}function Fc(e){return Bc.call(this,this.key,e)}function Vy(e){return Bc.call(this,this.key+1,e)}var Yy=e=>e[e.length-1];function Jy(e){return hU(e.parent)&&(Yy(e.parent.expressions)!==e.node||Jy(e.parentPath))}function TU(e,t){if(!uU(e)||!fU(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function SU(e){if(da._assertUnremoved.call(this),this.isSequenceExpression())return Yy(this.get("expressions")).insertAfter(e);let t=ks.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||Ky(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(s=>pU(s)?Lc(s):s));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let s=this;if(s.node){let n=s.node,{scope:a}=this;if(a.path.isPattern())return aU(n),s.replaceWith(lU(nU([],n),[])),s.get("callee.body").insertAfter(t),[s];if(Jy(s))t.unshift(n);else if(cU(n)&&dU(n.callee))t.unshift(n),t.push(mU());else if(TU(n,a))t.unshift(n),t.push(Dc(n.left));else if(a.isPure(n,!0))t.push(n);else{r.isMethod({computed:!0,key:n})&&(a=a.parent);let o=a.generateDeclaredUidIdentifier();t.unshift(Lc(oU("=",Dc(o),n))),t.push(Lc(Dc(o)))}}return this.replaceExpressionWithStatements(t)}else{if(Array.isArray(this.container))return Vy.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(Uy(n?[s]:[]));return a.pushContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function Xy(e,t){if(!this.parent)return;let r=(0,rU.getCachedPaths)(this);if(r)for(let[,i]of r)typeof i.key=="number"&&i.container===this.container&&i.key>=e&&(i.key+=t)}function ks(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let r=e[t],i;if(r?typeof r!="object"?i="contains a non-object node":r.type?r instanceof Mc.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){let s=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${t} and type of ${s}`)}}return e}function xU(e,t){da._assertUnremoved.call(this);let r=ks.call(this,t),i=this.node[e],s=Mc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:0}).setContext(this.context);return Fc.call(s,r)}function gU(e,t){da._assertUnremoved.call(this);let r=ks.call(this,t),i=this.node[e];return Mc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:i.length}).setContext(this.context).replaceWithMultiple(r)}Yt.hoist=function(t=this.scope){return new sU.default(this,t).run()}});var Oc=I(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur._replaceWith=eT;Ur.replaceExpressionWithStatements=$U;Ur.replaceInline=HU;Ur.replaceWith=WU;Ur.replaceWithMultiple=JU;Ur.replaceWithSourceString=XU;var bU=wc(),jc=qi(),EU=Pr(),Gy=oi(),qc=fa(),PU=Vn(),AU=fe(),Ki=Kt(),{FUNCTION_TYPES:Wy,arrowFunctionExpression:vU,assignmentExpression:Qy,awaitExpression:CU,blockStatement:IU,buildUndefinedNode:Rc,callExpression:wU,cloneNode:Uc,conditionalExpression:NU,expressionStatement:OU,getBindingIdentifiers:_U,identifier:kU,inheritLeadingComments:DU,inheritTrailingComments:LU,inheritsComments:MU,isBlockStatement:BU,isEmptyStatement:$y,isExpression:Zy,isExpressionStatement:FU,isIfStatement:RU,isProgram:jU,isStatement:qU,isVariableDeclaration:UU,removeComments:KU,returnStatement:Hy,sequenceExpression:VU,validate:zy,yieldExpression:YU}=AU;function JU(e){var t;Ki.resync.call(this);let r=qc._verifyNodeList.call(this,e);DU(r[0],this.node),LU(r[r.length-1],this.node),(t=(0,Gy.getCachedPaths)(this))==null||t.delete(this.node),this.node=this.container[this.key]=null;let i=this.insertAfter(e);return this.node?this.requeue():this.remove(),i}function XU(e){Ki.resync.call(this);let t;try{e=`(${e})`,t=(0,PU.parse)(e)}catch(i){let s=i.loc;throw s&&(i.message+=` - make sure this is an expression.
|
|
31
|
+
`+(0,bU.codeFrameColumns)(e,{start:{line:s.line,column:s.column+1}}),i.code="BABEL_REPLACE_SOURCE_ERROR"),i}let r=t.program.body[0].expression;return jc.default.removeProperties(r),this.replaceWith(r)}function WU(e){if(Ki.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof EU.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!jU(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&Zy(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=OU(t),r="expression"),this.isNodeType("Expression")&&qU(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let i=this.node;return i&&(MU(t,i),KU(i)),eT.call(this,t),this.type=t.type,Ki.setScope.call(this),this.requeue(),[r?this.get(r):this]}function eT(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?zy(this.parent,this.key,[e]):zy(this.parent,this.key,e),this.debug(`Replace with ${e?.type}`),(t=(0,Gy.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function $U(e){Ki.resync.call(this);let t=[],r=ma(e,t);if(r){for(let P of t)this.scope.push({id:P});return this.replaceWith(r)[0].get("expressions")}let i=this.getFunctionParent(),s=i?.node.async,n=i?.node.generator,a=vU([],IU(e));this.replaceWith(wU(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(P=>this.scope.push({id:P}));let l=o.getCompletionRecords();for(let P of l){if(!P.isExpressionStatement())continue;let A=P.findParent(v=>v.isLoop());if(A){let v=A.getData("expressionReplacementReturnUid");v?v=kU(v.name):(v=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",Hy(Uc(v))),A.setData("expressionReplacementReturnUid",v)),P.get("expression").replaceWith(Qy("=",Uc(v),P.node.expression))}else P.replaceWith(Hy(P.node.expression))}o.arrowFunctionToExpression();let c=o,f=s&&jc.default.hasType(c.node.body,"AwaitExpression",Wy),x=n&&jc.default.hasType(c.node.body,"YieldExpression",Wy);return f&&(c.set("async",!0),x||this.replaceWith(CU(this.node))),x&&(c.set("generator",!0),this.replaceWith(YU(this.node,!0))),c.get("body.body")}function ma(e,t){let r=[],i=!0;for(let s of e)if($y(s)||(i=!1),Zy(s))r.push(s);else if(FU(s))r.push(s.expression);else if(UU(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=_U(n);for(let o of Object.keys(a))t.push(Uc(a[o]));n.init&&r.push(Qy("=",n.id,n.init))}i=!0}else if(RU(s)){let n=s.consequent?ma([s.consequent],t):Rc(),a=s.alternate?ma([s.alternate],t):Rc();if(!n||!a)return;r.push(NU(s.test,n,a))}else if(BU(s)){let n=ma(s.body,t);if(!n)return;r.push(n)}else if($y(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push(Rc()),r.length===1?r[0]:VU(r)}function HU(e){if(Ki.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=qc._verifyNodeList.call(this,e);let t=qc._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var sT=I(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.evaluate=iK;ya.evaluateTruthy=tK;var zU=["Number","String","Math"],GU=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],QU=["random"];function tT(e){return zU.includes(e)}function ZU(e){return GU.includes(e)}function eK(e){return QU.includes(e)}function tK(){let e=this.evaluate();if(e.confident)return!!e.value}function Jt(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var rT=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function Et(e,t){let{node:r}=e,{seen:i}=t;if(i.has(r)){let s=i.get(r);if(s.resolved)return s.value;Jt(e,t);return}else{let s={resolved:!1};i.set(r,s);let n=rK(e,t);return t.confident&&(s.resolved=!0,s.value=n),n}}function rK(e,t){if(t.confident){if(e.isSequenceExpression()){let i=e.get("expressions");return Et(i[i.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return iT(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let i=e.get("tag.object"),{node:{name:s}}=i,n=e.get("tag.property");if(i.isIdentifier()&&s==="String"&&!e.scope.getBinding(s)&&n.isIdentifier()&&n.node.name==="raw")return iT(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let i=Et(e.get("test"),t);return t.confident?Et(i?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return Et(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let i=e.get("property"),s=e.get("object");if(s.isLiteral()){let n=s.node.value,a=typeof n,o=null;if(e.node.computed){if(o=Et(i,t),!t.confident)return}else i.isIdentifier()&&(o=i.node.name);if((a==="number"||a==="string")&&o!=null&&(typeof o=="number"||typeof o=="string"))return n[o]}}if(e.isReferencedIdentifier()){let i=e.scope.getBinding(e.node.name);if(i){if(i.constantViolations.length>0||e.node.start<i.path.node.end){Jt(i.path,t);return}let l=i.path.scope;if(i.kind==="var"&&l!==i.scope){let c=!l.path.parentPath.isBlockStatement();for(let f=l.parent;f;f=f.parent){var r;if(f===e.scope){if(c){Jt(i.path,t);return}break}(r=f.path.parentPath)!=null&&r.isBlockStatement()&&(c=!0)}}if(i.hasValue)return i.value}let s=e.node.name;if(rT.has(s)){if(!i)return rT.get(s);Jt(i.path,t);return}if(!i){Jt(e,t);return}let n=i.path;if(!n.isVariableDeclarator()){Jt(n,t);return}let a=n.get("init"),o=Et(a,t);if(typeof o=="object"&&o!==null&&i.references>1){Jt(a,t);return}return o}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;let i=e.get("argument");if(e.node.operator==="typeof"&&(i.isFunction()||i.isClass()))return"function";let s=Et(i,t);if(!t.confident)return;switch(e.node.operator){case"!":return!s;case"+":return+s;case"-":return-s;case"~":return~s;case"typeof":return typeof s}}if(e.isArrayExpression()){let i=[],s=e.get("elements");for(let n of s){let a=n.evaluate();if(a.confident)i.push(a.value);else{Jt(a.deopt,t);return}}return i}if(e.isObjectExpression()){let i={},s=e.get("properties");for(let n of s){if(n.isObjectMethod()||n.isSpreadElement()){Jt(n,t);return}let a=n.get("key"),o;if(n.node.computed){if(o=a.evaluate(),!o.confident){Jt(o.deopt,t);return}o=o.value}else a.isIdentifier()?o=a.node.name:o=a.node.value;let c=n.get("value").evaluate();if(!c.confident){Jt(c.deopt,t);return}c=c.value,i[o]=c}return i}if(e.isLogicalExpression()){let i=t.confident,s=Et(e.get("left"),t),n=t.confident;t.confident=i;let a=Et(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":return t.confident=n&&(!!s||o),t.confident?s||a:void 0;case"&&":return t.confident=n&&(!s||o),t.confident?s&&a:void 0;case"??":return t.confident=n&&(s!=null||o),t.confident?s??a:void 0}}if(e.isBinaryExpression()){let i=Et(e.get("left"),t);if(!t.confident)return;let s=Et(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return i-s;case"+":return i+s;case"/":return i/s;case"*":return i*s;case"%":return i%s;case"**":return Math.pow(i,s);case"<":return i<s;case">":return i>s;case"<=":return i<=s;case">=":return i>=s;case"==":return i==s;case"!=":return i!=s;case"===":return i===s;case"!==":return i!==s;case"|":return i|s;case"&":return i&s;case"^":return i^s;case"<<":return i<<s;case">>":return i>>s;case">>>":return i>>>s}}if(e.isCallExpression()){let i=e.get("callee"),s,n;if(i.isIdentifier()&&!e.scope.getBinding(i.node.name)&&(tT(i.node.name)||ZU(i.node.name))&&(n=global[i.node.name]),i.isMemberExpression()){let a=i.get("object"),o=i.get("property");if(a.isIdentifier()&&o.isIdentifier()&&tT(a.node.name)&&!eK(o.node.name)){s=global[a.node.name];let l=o.node.name;hasOwnProperty.call(s,l)&&(n=s[l])}if(a.isLiteral()&&o.isIdentifier()){let l=typeof a.node.value;(l==="string"||l==="number")&&(s=a.node.value,n=s[o.node.name])}}if(n){let a=e.get("arguments").map(o=>Et(o,t));return t.confident?n.apply(s,a):void 0}}Jt(e,t)}}function iT(e,t,r,i=!1){let s="",n=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;s+=i?o.value.raw:o.value.cooked;let l=a[n++];l&&(s+=String(Et(l,r)))}if(r.confident)return s}function iK(){let e={confident:!0,deoptPath:null,seen:new Map},t=Et(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});var nT=I(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.statements=Xt.statement=Xt.smart=Xt.program=Xt.expression=void 0;var sK=fe(),{assertExpressionStatement:nK}=sK;function Kc(e){return{code:t=>`/* @babel/template */;
|
|
32
|
+
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var hte=Xt.smart=Kc(e=>e.length>1?e:e[0]),dte=Xt.statements=Kc(e=>e),mte=Xt.statement=Kc(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}),aK=Xt.expression={code:e=>`(
|
|
33
|
+
${e}
|
|
34
|
+
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(aK.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return nK(t),t.expression}},yte=Xt.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var Ta=I(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.merge=uK;Ds.normalizeReplacements=pK;Ds.validate=cK;var oK=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function lK(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function uK(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:n=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}}function cK(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}=t,a=lK(t,oK);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(i!=null&&!(i instanceof RegExp)&&i!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(n!=null&&typeof n!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(n===!0&&(r!=null||i!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:i??void 0,preserveComments:s??void 0,syntacticPlaceholders:n??void 0}}function pK(e){if(Array.isArray(e))return e.reduce((t,r,i)=>(t["$"+i]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var Yc=I(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.default=vK;var fK=fe(),hK=Vn(),dK=wc(),{isCallExpression:mK,isExpressionStatement:yK,isFunction:TK,isIdentifier:SK,isJSXIdentifier:xK,isNewExpression:gK,isPlaceholder:Sa,isStatement:bK,isStringLiteral:aT,removePropertiesDeep:EK,traverse:PK}=fK,AK=/^[_$A-Z0-9]+$/;function vK(e,t,r){let{placeholderWhitelist:i,placeholderPattern:s,preserveComments:n,syntacticPlaceholders:a}=r,o=wK(t,r.parser,a);EK(o,{preserveComments:n}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:i,placeholderPattern:s,syntacticPlaceholders:a};return PK(o,CK,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function CK(e,t,r){var i;let s,n=r.syntactic.placeholders.length>0;if(Sa(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,n=!0}else{if(n||r.syntacticPlaceholders)return;if(SK(e)||xK(e))s=e.name;else if(aT(e))s=e.value;else return}if(n&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!n&&(r.placeholderPattern===!1||!(r.placeholderPattern||AK).test(s))&&!((i=r.placeholderWhitelist)!=null&&i.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;aT(e)||Sa(e,{expectedNode:"StringLiteral"})?l="string":gK(a)&&o==="arguments"||mK(a)&&o==="arguments"||TK(a)&&o==="params"?l="param":yK(a)&&!Sa(e)?(l="statement",t=t.slice(0,-1)):bK(e)&&Sa(e)?l="statement":l="other";let{placeholders:c,placeholderNames:f}=n?r.syntactic:r.legacy;c.push({name:s,type:l,resolve:x=>IK(x,t),isDuplicate:f.has(s)}),f.add(s)}function IK(e,t){let r=e;for(let n=0;n<t.length-1;n++){let{key:a,index:o}=t[n];o===void 0?r=r[a]:r=r[a][o]}let{key:i,index:s}=t[t.length-1];return{parent:r,key:i,index:s}}function wK(e,t,r){let i=(t.plugins||[]).slice();r!==!1&&i.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:i});try{return(0,hK.parse)(e,t)}catch(s){let n=s.loc;throw n&&(s.message+=`
|
|
35
|
+
`+(0,dK.codeFrameColumns)(e,{start:n}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var $c=I(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.default=LK;var NK=fe(),{blockStatement:OK,cloneNode:Xc,emptyStatement:_K,expressionStatement:Jc,identifier:xa,isStatement:oT,isStringLiteral:kK,stringLiteral:DK,validate:lT}=NK;function LK(e,t){let r=Xc(e.ast);return t&&(e.placeholders.forEach(i=>{if(!hasOwnProperty.call(t,i.name)){let s=i.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
|
|
36
|
+
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
37
|
+
- { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
|
|
38
|
+
- { placeholderPattern: /^${s}$/ }`)}}),Object.keys(t).forEach(i=>{if(!e.placeholderNames.has(i))throw new Error(`Unknown substitution "${i}" given`)})),e.placeholders.slice().reverse().forEach(i=>{try{var s;MK(i,r,(s=t&&t[i.name])!=null?s:null)}catch(n){throw n.message=`@babel/template placeholder "${i.name}": ${n.message}`,n}}),r}function MK(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>Xc(o)):typeof r=="object"&&(r=Xc(r)));let{parent:i,key:s,index:n}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=DK(r)),!r||!kK(r))throw new Error("Expected string substitution")}else if(e.type==="statement")n===void 0?r?Array.isArray(r)?r=OK(r):typeof r=="string"?r=Jc(xa(r)):oT(r)||(r=Jc(r)):r=_K():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=xa(r)),oT(r)||(r=Jc(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=xa(r)),n===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=xa(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,l,c){let f=o[l];o[l]=c,(f.type==="Identifier"||f.type==="Placeholder")&&(f.typeAnnotation&&(c.typeAnnotation=f.typeAnnotation),f.optional&&(c.optional=f.optional),f.decorators&&(c.decorators=f.decorators))}if(n===void 0)lT(i,s,r),a(i,s,r);else{let o=i[s].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(n,1):Array.isArray(r)?o.splice(n,1,...r):a(o,n,r):a(o,n,r),lT(i,s,o),i[s]=o}}});var uT=I(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.default=jK;var BK=Ta(),FK=Yc(),RK=$c();function jK(e,t,r){t=e.code(t);let i;return s=>{let n=(0,BK.normalizeReplacements)(s);return i||(i=(0,FK.default)(e,t,r)),e.unwrap((0,RK.default)(i,n))}}});var cT=I(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.default=VK;var qK=Ta(),UK=Yc(),KK=$c();function VK(e,t,r){let{metadata:i,names:s}=YK(e,t,r);return n=>{let a={};return n.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,qK.normalizeReplacements)(o);return l&&Object.keys(l).forEach(c=>{if(hasOwnProperty.call(a,c))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,KK.default)(i,l?Object.assign(l,a):a))}}}function YK(e,t,r){let i="BABEL_TPL$",s=t.join("");do i="$$"+i;while(s.includes(i));let{names:n,code:a}=JK(t,i);return{metadata:(0,UK.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(n.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:n}}function JK(e,t){let r=[],i=e[0];for(let s=1;s<e.length;s++){let n=`${t}${s-1}`;r.push(n),i+=n+e[s]}return{names:r,code:i}}});var yT=I(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.default=mT;var cr=Ta(),pT=uT(),fT=cT(),hT=(0,cr.validate)({placeholderPattern:!1});function mT(e,t){let r=new WeakMap,i=new WeakMap,s=t||(0,cr.validate)(null);return Object.assign((n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return dT((0,pT.default)(e,n,(0,cr.merge)(s,(0,cr.validate)(a[0]))))}else if(Array.isArray(n)){let o=r.get(n);return o||(o=(0,fT.default)(e,n,s),r.set(n,o)),dT(o(a))}else if(typeof n=="object"&&n){if(a.length>0)throw new Error("Unexpected extra params.");return mT(e,(0,cr.merge)(s,(0,cr.validate)(n)))}throw new Error(`Unexpected template param ${typeof n}`)},{ast:(n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,pT.default)(e,n,(0,cr.merge)((0,cr.merge)(s,(0,cr.validate)(a[0])),hT))()}else if(Array.isArray(n)){let o=i.get(n);return o||(o=(0,fT.default)(e,n,(0,cr.merge)(s,hT)),i.set(n,o)),o(a)()}throw new Error(`Unexpected template param ${typeof n}`)}})}function dT(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
|
|
39
|
+
`).slice(3).join(`
|
|
40
|
+
`))}return r=>{try{return e(r)}catch(i){throw i.stack+=`
|
|
41
|
+
=============
|
|
42
|
+
${t}`,i}}}});var TT=I(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.statements=Nt.statement=Nt.smart=Nt.program=Nt.expression=Nt.default=void 0;var Ls=nT(),Ms=yT(),Qc=Nt.smart=(0,Ms.default)(Ls.smart),XK=Nt.statement=(0,Ms.default)(Ls.statement),WK=Nt.statements=(0,Ms.default)(Ls.statements),$K=Nt.expression=(0,Ms.default)(Ls.expression),HK=Nt.program=(0,Ms.default)(Ls.program),Ate=Nt.default=Object.assign(Qc.bind(void 0),{smart:Qc,statement:XK,statements:WK,expression:$K,program:HK,ast:Qc.ast})});var vT=I(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.arrowFunctionToExpression=vV;Ar.ensureBlock=EV;Ar.ensureFunctionName=FV;Ar.splitExportDeclaration=MV;Ar.toComputedKey=bV;Ar.unwrapFunctionEnvironment=PV;var zK=fe(),GK=TT(),tp=Os(),QK=Kt(),{arrowFunctionExpression:rp,assignmentExpression:fi,binaryExpression:Zc,blockStatement:ZK,callExpression:Vi,conditionalExpression:eV,expressionStatement:gT,identifier:Me,isIdentifier:tV,jsxIdentifier:rV,logicalExpression:iV,LOGICAL_OPERATORS:sV,memberExpression:Qt,metaProperty:nV,numericLiteral:aV,objectExpression:oV,restElement:lV,returnStatement:uV,sequenceExpression:cV,spreadElement:pV,stringLiteral:bT,super:ep,thisExpression:Bs,toExpression:ET,unaryExpression:fV,toBindingIdentifierName:hV,isFunction:dV,isAssignmentPattern:mV,isRestElement:yV,getFunctionName:TV,cloneNode:hi,variableDeclaration:SV,variableDeclarator:xV,exportNamedDeclaration:ST,exportSpecifier:xT,inherits:gV}=zK;function bV(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||tV(e)&&(e=bT(e.name)),e}function EV(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],i="body",s,n;e.isStatement()?(n="body",s=0,r.push(e.node)):(i+=".body.0",this.isFunction()?(s="argument",r.push(uV(e.node))):(s="expression",r.push(gT(e.node)))),this.node.body=ZK(r);let a=this.get(i);return QK.setup.call(e,a,n?a.node[n]:a.node,n,s),this.node}Ar.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function PV(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");PT(this)}function AV(e,t){e.node.type=t}function vV({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(i=>(i=arguments[0])==null?void 0:i.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let i=this;if(!r){var s;i=(s=i.ensureFunctionName(!1))!=null?s:i}let{thisBinding:n,fnPath:a}=PT(i,r,e,t);if(a.ensureBlock(),AV(a,"FunctionExpression"),!r){let o=n?null:a.scope.generateUidIdentifier("arrowCheckId");return o&&a.parentPath.scope.push({id:o,init:oV([])}),a.get("body").unshiftContainer("body",gT(Vi(this.hub.addHelper("newArrowCheck"),[Bs(),Me(o?o.name:n)]))),a.replaceWith(Vi(Qt(a.node,Me("bind")),[o?Me(o.name):Bs()])),a.get("callee.object")}return a}var CV=(0,tp.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function PT(e,t=!0,r=!0,i=!0){let s,n=e.findParent(A=>A.isArrowFunctionExpression()?(s??(s=A),!1):A.isFunction()||A.isProgram()||A.isClassProperty({static:!1})||A.isClassPrivateProperty({static:!1})),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(s)n=s;else if(r)e.replaceWith(Vi(rp([],ET(e.node)),[])),n=e.get("callee"),e=n.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:c,superProps:f,superCalls:x}=LV(e);if(a&&x.length>0){if(!r)throw x[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!i)throw x[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let A=[];n.traverse(CV,{allSuperCalls:A});let v=_V(n);A.forEach(_=>{let w=Me(v);w.loc=_.node.callee.loc,_.get("callee").replaceWith(w)})}if(l.length>0){let A=Fs(n,"arguments",()=>{let v=()=>Me("arguments");return n.scope.path.isProgram()?eV(Zc("===",fV("typeof",v()),bT("undefined")),n.scope.buildUndefinedNode(),v()):v()});l.forEach(v=>{let _=Me(A);_.loc=v.node.loc,v.replaceWith(_)})}if(c.length>0){let A=Fs(n,"newtarget",()=>nV(Me("new"),Me("target")));c.forEach(v=>{let _=Me(A);_.loc=v.node.loc,v.replaceWith(_)})}if(f.length>0){if(!r)throw f[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");f.reduce((v,_)=>v.concat(wV(_)),[]).forEach(v=>{let _=v.node.computed?"":v.get("property").node.name,w=v.parentPath,O=w.isAssignmentExpression({left:v.node}),L=w.isCallExpression({callee:v.node}),ee=w.isTaggedTemplateExpression({tag:v.node}),X=kV(n,O,_),J=[];if(v.node.computed&&J.push(v.get("property").node),O){let Ce=w.node.right;J.push(Ce)}let ue=Vi(Me(X),J);L?(w.unshiftContainer("arguments",Bs()),v.replaceWith(Qt(ue,Me("call"))),o.push(w.get("arguments.0"))):O?w.replaceWith(ue):ee?(v.replaceWith(Vi(Qt(ue,Me("bind"),!1),[Bs()])),o.push(v.get("arguments.0"))):v.replaceWith(ue)})}let P;return(o.length>0||!t)&&(P=OV(n,a),(t||a&&AT(n))&&(o.forEach(A=>{let v=A.isJSX()?rV(P):Me(P);v.loc=A.node.loc,A.replaceWith(v)}),t||(P=null))),{thisBinding:P,fnPath:e}}function IV(e){return sV.includes(e)}function wV(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,i=r.node.operator.slice(0,-1),s=r.node.right,n=IV(i);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;r.get("left").replaceWith(Qt(o,fi("=",a,l),!0)),r.get("right").replaceWith(t(n?"=":i,Qt(o,Me(a.name),!0),s))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(Qt(a,o)),r.get("right").replaceWith(t(n?"=":i,Qt(a,Me(o.name)),s))}return n?r.replaceWith(iV(i,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,i=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,n=[fi("=",i,Qt(e.node.object,s?fi("=",s,e.node.property):e.node.property,e.node.computed)),fi("=",Qt(e.node.object,s?Me(s.name):e.node.property,e.node.computed),Zc(e.parentPath.node.operator[0],Me(i.name),aV(1)))];e.parentPath.node.prefix||n.push(Me(i.name)),r.replaceWith(cV(n));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,i,s){return r==="="?fi("=",i,s):Zc(r,i,s)}}function AT(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var NV=(0,tp.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,fi("=",Me(r),Me("this"))])))}});function OV(e,t){return Fs(e,"this",r=>{if(!t||!AT(e))return Bs();e.traverse(NV,{supers:new WeakSet,thisBinding:r})})}function _V(e){return Fs(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return rp([lV(t)],Vi(ep(),[pV(Me(t.name))]))})}function kV(e,t,r){return Fs(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let s=[],n;if(r)n=Qt(ep(),Me(r));else{let a=e.scope.generateUidIdentifier("prop");s.unshift(a),n=Qt(ep(),Me(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");s.push(a),n=fi("=",n,Me(a.name))}return rp(s,n)})}function Fs(e,t,r){let i="binding:"+t,s=e.getData(i);if(!s){let n=e.scope.generateUidIdentifier(t);s=n.name,e.setData(i,s),e.scope.push({id:n,init:r(s)})}return s}var DV=(0,tp.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){e.node.name==="this"&&(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})||t.push(e))},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}});function LV(e){let t=[],r=[],i=[],s=[],n=[];return e.traverse(DV,{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}}function MV(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let s=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,l=!1;o?n&&a.hasBinding(o.name)&&(l=!0,o=a.generateUidIdentifier(o.name)):(l=!0,o=a.generateUidIdentifier("default"),(s||n)&&(e.node.id=hi(o)));let c=s?e.node:SV("var",[xV(hi(o),e.node)]),f=ST(null,[xT(hi(o),Me("default"))]);return this.insertAfter(f),this.replaceWith(c),l&&a.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(s=>xT(Me(s),Me(s))),i=ST(null,r);return this.insertAfter(i),this.replaceWith(e.node),this}var BV={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}};function FV(e){if(this.node.id)return this;let t=TV(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)||r.startsWith("get ")||r.startsWith("set "))return null;r=hV(r.replace(/[/ ]/g,"_"));let i=Me(r);gV(i,t.originalNode);let s={needsRename:!1,name:r},{scope:n}=this,a=n.getOwnBinding(r);if(a?a.kind==="param"&&(s.needsRename=!0):(n.parent.hasBinding(r)||n.hasGlobal(r))&&this.traverse(BV,s),!s.needsRename)return this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(n.hasBinding(i.name)&&!n.hasGlobal(i.name))return n.rename(i.name),this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(!dV(this.node))return null;let o=n.generateUidIdentifier(i.name),l=[];for(let f=0,x=RV(this.node);f<x;f++)l.push(n.generateUidIdentifier("x"));let c=GK.default.expression.ast`
|
|
43
|
+
(function (${o}) {
|
|
44
|
+
function ${i}(${l}) {
|
|
45
|
+
return ${hi(o)}.apply(this, arguments);
|
|
108
46
|
}
|
|
109
47
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
const key = computeSiteEditSourceIdentityKey(
|
|
113
|
-
sourceFile,
|
|
114
|
-
componentName,
|
|
115
|
-
structuralPath,
|
|
116
|
-
);
|
|
117
|
-
const tag = getJsxElementName(name) ?? "unknown";
|
|
118
|
-
const sourceKind = isConcreteElement(name) ? "jsx" : "component-call";
|
|
119
|
-
if (
|
|
120
|
-
sourceKind === "component-call" &&
|
|
121
|
-
!hasStructuredChild(path.node.children)
|
|
122
|
-
) {
|
|
123
|
-
return;
|
|
48
|
+
${hi(i)}.toString = function () {
|
|
49
|
+
return ${hi(o)}.toString();
|
|
124
50
|
}
|
|
125
51
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
elements.push({
|
|
130
|
-
key,
|
|
131
|
-
tag,
|
|
132
|
-
component_name: componentName,
|
|
133
|
-
source_file: sourceFile,
|
|
134
|
-
source_kind: sourceKind,
|
|
135
|
-
});
|
|
136
|
-
},
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
return {
|
|
140
|
-
code: generate(ast, { jsescOption: { minimal: true } }).code,
|
|
141
|
-
elements,
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function mayContainJsx(source) {
|
|
146
|
-
return source.includes("<");
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function computeSiteEditSourceIdentityKey(file, component, structuralPath) {
|
|
150
|
-
return `${file}::${component}::${structuralPath}`;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function toProjectRelativeFile(filename, projectRoot) {
|
|
154
|
-
const normalized = filename.replace(/\\/g, "/").replace(/^\.\//, "");
|
|
155
|
-
const normalizedRoot = projectRoot?.replace(/\\/g, "/").replace(/\/+$/, "");
|
|
156
|
-
|
|
157
|
-
if (normalizedRoot && normalized.startsWith(`${normalizedRoot}/`)) {
|
|
158
|
-
return normalized.slice(normalizedRoot.length + 1);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
for (const [marker, offset] of [
|
|
162
|
-
["/src/app/", 1],
|
|
163
|
-
["/src/components/", 1],
|
|
164
|
-
["/app/", 1],
|
|
165
|
-
["/components/", 1],
|
|
166
|
-
]) {
|
|
167
|
-
const index = normalized.indexOf(marker);
|
|
168
|
-
if (index >= 0) {
|
|
169
|
-
return normalized.slice(index + offset);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
const fallback = normalized.match(
|
|
174
|
-
/(?:^|\/)((?:src\/app|src\/components|app|components)\/.+)$/,
|
|
175
|
-
);
|
|
176
|
-
return fallback?.[1] ?? normalized;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
function isConcreteElement(name) {
|
|
180
|
-
return t.isJSXIdentifier(name) && /^[a-z]/.test(name.name);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
function getJsxElementName(name) {
|
|
184
|
-
if (t.isJSXIdentifier(name)) {
|
|
185
|
-
return name.name;
|
|
186
|
-
}
|
|
187
|
-
if (t.isJSXMemberExpression(name)) {
|
|
188
|
-
return getJsxMemberExpressionName(name);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
return null;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function isSiteEditMarkableElement(name) {
|
|
195
|
-
const elementName = getJsxElementName(name);
|
|
196
|
-
if (
|
|
197
|
-
!elementName ||
|
|
198
|
-
elementName === "Fragment" ||
|
|
199
|
-
elementName.endsWith(".Fragment")
|
|
200
|
-
) {
|
|
201
|
-
return false;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
return !NON_EDITABLE_INTRINSIC_ELEMENTS.has(elementName);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
function hasAttribute(opening, name) {
|
|
208
|
-
return opening.attributes.some(
|
|
209
|
-
(attribute) =>
|
|
210
|
-
t.isJSXAttribute(attribute) &&
|
|
211
|
-
t.isJSXIdentifier(attribute.name, { name }),
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
function hasDirectTextChild(children) {
|
|
216
|
-
return children.some((child) => {
|
|
217
|
-
if (t.isJSXText(child)) {
|
|
218
|
-
return child.value.trim().length > 0;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
if (!t.isJSXExpressionContainer(child)) {
|
|
222
|
-
return false;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (t.isStringLiteral(child.expression)) {
|
|
226
|
-
return child.expression.value.trim().length > 0;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
if (t.isTemplateLiteral(child.expression)) {
|
|
230
|
-
return child.expression.quasis.some((quasi) =>
|
|
231
|
-
quasi.value.cooked?.trim(),
|
|
232
|
-
);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
return isPotentialDirectTextExpression(child.expression);
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
function isPotentialDirectTextExpression(expression) {
|
|
240
|
-
const unwrapped = unwrapTextExpression(expression);
|
|
241
|
-
|
|
242
|
-
return (
|
|
243
|
-
t.isIdentifier(unwrapped) ||
|
|
244
|
-
t.isMemberExpression(unwrapped) ||
|
|
245
|
-
t.isBinaryExpression(unwrapped) ||
|
|
246
|
-
t.isLogicalExpression(unwrapped) ||
|
|
247
|
-
t.isConditionalExpression(unwrapped)
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
function unwrapTextExpression(expression) {
|
|
252
|
-
let current = expression;
|
|
253
|
-
|
|
254
|
-
while (
|
|
255
|
-
t.isTSAsExpression(current) ||
|
|
256
|
-
t.isTSSatisfiesExpression(current) ||
|
|
257
|
-
t.isTSNonNullExpression(current) ||
|
|
258
|
-
t.isTypeCastExpression(current)
|
|
259
|
-
) {
|
|
260
|
-
current = current.expression;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
return current;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
function appendStringAttribute(opening, name, value) {
|
|
267
|
-
opening.attributes.push(
|
|
268
|
-
t.jsxAttribute(t.jsxIdentifier(name), t.stringLiteral(value)),
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
function appendOptionalStringAttribute(opening, name, value) {
|
|
273
|
-
if (value === undefined || hasAttribute(opening, name)) {
|
|
274
|
-
return;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
appendStringAttribute(opening, name, value);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function appendBooleanAttribute(opening, name) {
|
|
281
|
-
if (hasAttribute(opening, name)) {
|
|
282
|
-
return;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
opening.attributes.push(t.jsxAttribute(t.jsxIdentifier(name), null));
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
function getJsxMemberExpressionName(name) {
|
|
289
|
-
const objectName = t.isJSXIdentifier(name.object)
|
|
290
|
-
? name.object.name
|
|
291
|
-
: getJsxMemberExpressionName(name.object);
|
|
292
|
-
|
|
293
|
-
return `${objectName}.${name.property.name}`;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
function findOwningComponentName(path) {
|
|
297
|
-
let current = path;
|
|
298
|
-
|
|
299
|
-
while (current) {
|
|
300
|
-
if (current.isFunctionDeclaration() || current.isClassDeclaration()) {
|
|
301
|
-
return current.node.id?.name ?? null;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
if (current.isVariableDeclarator() && t.isIdentifier(current.node.id)) {
|
|
305
|
-
const init = current.get("init");
|
|
306
|
-
if (
|
|
307
|
-
!Array.isArray(init) &&
|
|
308
|
-
(init.isArrowFunctionExpression() || init.isFunctionExpression())
|
|
309
|
-
) {
|
|
310
|
-
return current.node.id.name;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
current = current.parentPath;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
return null;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
function findParentSiteEditElement(path) {
|
|
321
|
-
let current = path.parentPath;
|
|
322
|
-
|
|
323
|
-
while (current) {
|
|
324
|
-
if (
|
|
325
|
-
current.isJSXElement() &&
|
|
326
|
-
isSiteEditMarkableElement(current.node.openingElement.name)
|
|
327
|
-
) {
|
|
328
|
-
return current;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
current = current.parentPath;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
return null;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
function resolveParentKey(path, componentName, sourceFile, attributes) {
|
|
338
|
-
const parentElement = findParentSiteEditElement(path);
|
|
339
|
-
if (!parentElement) {
|
|
340
|
-
return undefined;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
const explicitParentKey = getStringAttributeValue(
|
|
344
|
-
parentElement.node.openingElement,
|
|
345
|
-
attributes.key,
|
|
346
|
-
);
|
|
347
|
-
if (explicitParentKey) {
|
|
348
|
-
return explicitParentKey;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
const parentStructuralPath = computeStructuralPathFromAst(parentElement);
|
|
352
|
-
return computeSiteEditSourceIdentityKey(
|
|
353
|
-
sourceFile,
|
|
354
|
-
componentName,
|
|
355
|
-
parentStructuralPath,
|
|
356
|
-
);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
function getStringAttributeValue(opening, name) {
|
|
360
|
-
const attribute = opening.attributes.find(
|
|
361
|
-
(item) => t.isJSXAttribute(item) && t.isJSXIdentifier(item.name, { name }),
|
|
362
|
-
);
|
|
363
|
-
if (
|
|
364
|
-
!attribute ||
|
|
365
|
-
!t.isJSXAttribute(attribute) ||
|
|
366
|
-
!t.isStringLiteral(attribute.value)
|
|
367
|
-
) {
|
|
368
|
-
return null;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
return attribute.value.value;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
function hasStructuredChild(children) {
|
|
375
|
-
return children.some(
|
|
376
|
-
(child) => t.isJSXElement(child) || t.isJSXFragment(child),
|
|
377
|
-
);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
const structuralPathCache = new WeakMap();
|
|
381
|
-
const structuralChildrenCache = new WeakMap();
|
|
382
|
-
const siblingOrdinalCache = new WeakMap();
|
|
383
|
-
|
|
384
|
-
function computeStructuralPathFromAst(path) {
|
|
385
|
-
const cached = structuralPathCache.get(path.node);
|
|
386
|
-
if (cached !== undefined) {
|
|
387
|
-
return cached;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
const segments = [];
|
|
391
|
-
let current = path;
|
|
392
|
-
|
|
393
|
-
while (current) {
|
|
394
|
-
if (current.isJSXElement()) {
|
|
395
|
-
const segment = getStructuralSegment(current);
|
|
396
|
-
if (segment) {
|
|
397
|
-
segments.unshift(segment);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
current = current.parentPath;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
const structuralPath = segments.join("/");
|
|
405
|
-
structuralPathCache.set(path.node, structuralPath);
|
|
406
|
-
return structuralPath;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
function getStructuralSegment(path) {
|
|
410
|
-
const tag = getJsxElementName(path.node.openingElement.name);
|
|
411
|
-
if (!tag || tag === "Fragment" || tag.endsWith(".Fragment")) {
|
|
412
|
-
return null;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
if (/^[A-Z]/.test(tag)) {
|
|
416
|
-
return `component:${tag}#${computeSiblingOrdinal(path, tag)}`;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
return `${tag}#${computeSiblingOrdinal(path, tag)}`;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
function computeSiblingOrdinal(path, tag) {
|
|
423
|
-
const owner = findStructuralParent(path);
|
|
424
|
-
if (!owner) {
|
|
425
|
-
return 0;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
const cached = siblingOrdinalCache.get(owner.node)?.get(tag)?.get(path.node);
|
|
429
|
-
if (cached !== undefined) {
|
|
430
|
-
return cached;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
let ownerCache = siblingOrdinalCache.get(owner.node);
|
|
434
|
-
if (!ownerCache) {
|
|
435
|
-
ownerCache = new Map();
|
|
436
|
-
siblingOrdinalCache.set(owner.node, ownerCache);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
let tagOrdinals = ownerCache.get(tag);
|
|
440
|
-
if (!tagOrdinals) {
|
|
441
|
-
tagOrdinals = new WeakMap();
|
|
442
|
-
ownerCache.set(tag, tagOrdinals);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
let ordinal = 0;
|
|
446
|
-
for (const sibling of collectStructuralChildren(owner)) {
|
|
447
|
-
const siblingTag = getJsxElementName(sibling.node.openingElement.name);
|
|
448
|
-
if (siblingTag === tag) {
|
|
449
|
-
tagOrdinals.set(sibling.node, ordinal);
|
|
450
|
-
if (sibling.node === path.node) {
|
|
451
|
-
return ordinal;
|
|
452
|
-
}
|
|
453
|
-
ordinal += 1;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
return tagOrdinals.get(path.node) ?? 0;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
function findStructuralParent(path) {
|
|
461
|
-
let current = path.parentPath;
|
|
462
|
-
let fragmentOwner = null;
|
|
463
|
-
|
|
464
|
-
while (current) {
|
|
465
|
-
if (current.isJSXFragment()) {
|
|
466
|
-
fragmentOwner = current;
|
|
467
|
-
current = current.parentPath;
|
|
468
|
-
continue;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
if (current.isJSXElement()) {
|
|
472
|
-
return current;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
current = current.parentPath;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
return fragmentOwner;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
function collectStructuralChildren(owner) {
|
|
482
|
-
const cached = structuralChildrenCache.get(owner.node);
|
|
483
|
-
if (cached) {
|
|
484
|
-
return cached;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
const structuralChildren = [];
|
|
488
|
-
|
|
489
|
-
const children = owner.get("children");
|
|
490
|
-
for (const child of children) {
|
|
491
|
-
if (Array.isArray(child)) {
|
|
492
|
-
continue;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
if (child.isJSXElement()) {
|
|
496
|
-
structuralChildren.push(child);
|
|
497
|
-
continue;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
if (child.isJSXFragment()) {
|
|
501
|
-
structuralChildren.push(...collectStructuralChildren(child));
|
|
502
|
-
continue;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
if (child.isJSXExpressionContainer()) {
|
|
506
|
-
structuralChildren.push(
|
|
507
|
-
...collectExpressionStructuralChildren(child.get("expression")),
|
|
508
|
-
);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
structuralChildrenCache.set(owner.node, structuralChildren);
|
|
513
|
-
return structuralChildren;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
function collectExpressionStructuralChildren(expression) {
|
|
517
|
-
if (expression.isJSXElement()) {
|
|
518
|
-
return [expression];
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
if (expression.isJSXFragment()) {
|
|
522
|
-
return collectStructuralChildren(expression);
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
if (expression.isParenthesizedExpression()) {
|
|
526
|
-
return collectExpressionStructuralChildren(expression.get("expression"));
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
if (expression.isLogicalExpression() && expression.node.operator === "&&") {
|
|
530
|
-
return collectExpressionStructuralChildren(expression.get("right"));
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
if (expression.isConditionalExpression()) {
|
|
534
|
-
return [
|
|
535
|
-
...collectExpressionStructuralChildren(expression.get("consequent")),
|
|
536
|
-
...collectExpressionStructuralChildren(expression.get("alternate")),
|
|
537
|
-
];
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
if (expression.isCallExpression() && isMapCallExpression(expression.node)) {
|
|
541
|
-
return collectFunctionReturnStructuralChildren(
|
|
542
|
-
expression.get("arguments")[0],
|
|
543
|
-
);
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
return [];
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
function collectFunctionReturnStructuralChildren(path) {
|
|
550
|
-
if (!path?.isArrowFunctionExpression() && !path?.isFunctionExpression()) {
|
|
551
|
-
return [];
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
const body = path.get("body");
|
|
555
|
-
if (body.isJSXElement()) {
|
|
556
|
-
return [body];
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
if (body.isJSXFragment()) {
|
|
560
|
-
return collectStructuralChildren(body);
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
if (body.isParenthesizedExpression()) {
|
|
564
|
-
return collectExpressionStructuralChildren(body.get("expression"));
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
if (!body.isBlockStatement()) {
|
|
568
|
-
return [];
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
for (const statement of body.get("body")) {
|
|
572
|
-
if (!statement.isReturnStatement()) {
|
|
573
|
-
continue;
|
|
574
|
-
}
|
|
575
|
-
const argument = statement.get("argument");
|
|
576
|
-
return argument.node ? collectExpressionStructuralChildren(argument) : [];
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
return [];
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
function isMapCallExpression(node) {
|
|
583
|
-
return (
|
|
584
|
-
t.isMemberExpression(node.callee) &&
|
|
585
|
-
t.isIdentifier(node.callee.property) &&
|
|
586
|
-
node.callee.property.name === "map"
|
|
587
|
-
);
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
module.exports = siteEditInstrumentationLoader;
|
|
591
|
-
module.exports.instrumentSiteEditRuntimeAttributes =
|
|
592
|
-
instrumentSiteEditRuntimeAttributes;
|
|
52
|
+
return ${hi(i)};
|
|
53
|
+
})(${ET(this.node)})
|
|
54
|
+
`;return this.replaceWith(c)[0].get("arguments.0")}function RV(e){let t=e.params.findIndex(r=>mV(r)||yV(r));return t===-1?e.params.length:t}});var _T=I(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze._guessExecutionStatusRelativeTo=nY;ze._resolve=OT;ze.canHaveVariableDeclarationOrExpression=GV;ze.canSwapBetweenExpressionAndStatement=QV;ze.getSource=rY;ze.isCompletionRecord=ZV;ze.isConstantExpression=uY;ze.isInStrictMode=cY;ze.isNodeType=zV;ze.isStatementOrBlock=eY;ze.isStatic=HV;ze.matchesPattern=$V;ze.referencesImport=tY;ze.resolve=lY;ze.willIMaybeExecuteBefore=iY;var jV=fe(),{STATEMENT_OR_BLOCK_KEYS:qV,VISITOR_KEYS:UV,isBlockStatement:NT,isExpression:KV,isIdentifier:VV,isLiteral:YV,isStringLiteral:JV,isType:XV,matchesPattern:WV}=jV;function $V(e,t){return WV(this.node,e,t)}ze.has=function(t){var r;let i=(r=this.node)==null?void 0:r[t];return i&&Array.isArray(i)?!!i.length:!!i};function HV(){return this.scope.isStatic(this.node)}ze.is=ze.has;ze.isnt=function(t){return!this.has(t)};ze.equals=function(t,r){return this.node[t]===r};function zV(e){return XV(this.type,e)}function GV(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function QV(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?NT(e):this.isBlockStatement()?KV(e):!1}function ZV(e){let t=this,r=!0;do{let{type:i,container:s}=t;if(!r&&(t.isFunction()||i==="StaticBlock"))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function eY(){return this.parentPath.isLabeledStatement()||NT(this.container)?!1:qV.includes(this.key)}function tY(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?JV(this.node.property,{value:t}):this.node.property.name===t)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(r?.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===e){if(!t)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&t==="default"||i.isImportNamespaceSpecifier()&&t==="*"||i.isImportSpecifier()&&VV(i.node.imported,{name:t}))}function rY(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function iY(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function CT(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function sY(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function IT(e,t){for(let r=0;r<t;r++){let i=e[r];if(sY(i.parent.type,i.parentKey))return!0}return!1}var wT=Symbol();function nY(e){return ip(this,e,new Map)}function ip(e,t,r){let i={this:CT(e),target:CT(t)};if(i.target.node!==i.this.node)return oY(e,i.target,r);let s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let f=s.this[a.this];a.target=s.target.indexOf(f),a.target>=0?n=f:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(IT(s.this,a.this-1)||IT(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=UV[n.type],c={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return c.target>c.this?"before":"after"}function aY(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return ip(e,t,r)==="before"?"before":"unknown";let i=t.scope.getBinding(t.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(c=>c.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=ip(e,a,r);if(n&&n!==l)return"unknown";n=l}return n}function oY(e,t,r){let i=r.get(e.node),s;if(!i)r.set(e.node,i=new Map);else if(s=i.get(t.node))return s===wT?"unknown":s;i.set(t.node,wT);let n=aY(e,t,r);return i.set(t.node,n),n}function lY(e,t){return OT.call(this,e,t)||this}function OT(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||i.kind==="module")return;if(i.path!==this){let s=i.path.resolve(e,t);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){let i=this.toComputedKey();if(!YV(i))return;let s=i.value,n=this.get("object").resolve(e,t);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),c=o.isnt("computed")&&l.isIdentifier({name:s});if(c=c||l.isLiteral({value:s}),c)return o.get("value").resolve(e,t)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(e,t)}}}}function uY(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function cY(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0;return!1})}});var BT=I(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt._getKey=LT;pt._getPattern=MT;pt.get=IY;pt.getAllNextSiblings=vY;pt.getAllPrevSiblings=CY;pt.getAssignmentIdentifiers=wY;pt.getBindingIdentifierPaths=_Y;pt.getBindingIdentifiers=NY;pt.getCompletionRecords=bY;pt.getNextSibling=AY;pt.getOpposite=SY;pt.getOuterBindingIdentifierPaths=kY;pt.getOuterBindingIdentifiers=OY;pt.getPrevSibling=PY;pt.getSibling=EY;var np=Pr(),pY=fe(),{getAssignmentIdentifiers:fY,getBindingIdentifiers:DT,getOuterBindingIdentifiers:hY,numericLiteral:dY,unaryExpression:mY}=pY,ap=0,Rs=1;function yY(e){return{type:ap,path:e}}function TY(e){return{type:Rs,path:e}}function SY(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Yi(e,t,r){return e&&t.push(...Ji(e,r)),t}function xY(e,t,r){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Ji(n,r),o=[],l=[];for(let c of a)c.type===ap&&o.push(c),c.type===Rs&&l.push(c);o.length&&(i=o),t.push(...l)}return t.push(...i),t}function gY(e){e.forEach(t=>{t.type=Rs})}function sp(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(mY("void",dY(0))):r.path.remove())})}function kT(e,t){let r=[];if(t.canHaveBreak){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Object.assign({},t,{inCaseClause:!1});n.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=Ji(n,a);if(o.length>0&&o.every(l=>l.type===Rs)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(gY(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),t.shouldPreserveBreak||sp(o,!0)),t.shouldPreserveBreak||sp(o,!1)):(r.push(...o),!t.shouldPopulateBreak&&!t.shouldPreserveBreak&&sp(o,!0));break}if(s===e.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let c=o[l];c.type===Rs&&r.push(c),c.type===ap&&i.push(c)}}}}else if(e.length)for(let i=e.length-1;i>=0;i--){let s=Ji(e[i],t);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function Ji(e,t){let r=[];if(e.isIfStatement())r=Yi(e.get("consequent"),r,t),r=Yi(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return Yi(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return kT(e.get("body"),t);if(e.isFunction())return Ji(e.get("body"),t);if(e.isTryStatement())r=Yi(e.get("block"),r,t),r=Yi(e.get("handler"),r,t);else{if(e.isCatchClause())return Yi(e.get("body"),r,t);if(e.isSwitchStatement())return xY(e.get("cases"),r,t);if(e.isSwitchCase())return kT(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(TY(e)):r.push(yY(e))}}return r}function bY(e=!1){return Ji(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(r=>r.path)}function EY(e){return np.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function PY(){return this.getSibling(this.key-1)}function AY(){return this.getSibling(this.key+1)}function vY(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function CY(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function IY(e,t=!0){t===!0&&(t=this.context);let r=e.split(".");return r.length===1?LT.call(this,e,t):MT.call(this,r,t)}function LT(e,t){let r=this.node,i=r[e];return Array.isArray(i)?i.map((s,n)=>np.default.get({listKey:e,parentPath:this,parent:r,container:i,key:n}).setContext(t)):np.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function MT(e,t){let r=this;for(let i of e)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,t);return r}function wY(){return fY(this.node)}function NY(e){return DT(this.node,e)}function OY(e){return hY(this.node,e)}function _Y(e=!1,t=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=DT.keys[n.node.type];if(n.isIdentifier()){e?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");o.isDeclaration()&&i.push(o);continue}if(t){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],c=n.get(l);Array.isArray(c)?i.push(...c):c.node&&i.push(c)}}return s}function kY(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var RT=I(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.addComment=FY;js.addComments=RY;js.shareCommentsWithSiblings=BY;var DY=fe(),{addComment:LY,addComments:MY}=DY;function BY(){if(typeof this.key=="string")return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!i.node,a=!!s.node;n&&(r&&i.addComments("trailing",FT(r,i.node.trailingComments)),t&&!a&&i.addComments("trailing",t)),a&&(t&&s.addComments("leading",FT(t,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function FT(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(i=>!r.has(i))}function FY(e,t,r){LY(this.node,e,t,r)}function RY(e,t){MY(this.node,e,t)}});var Pr=I(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=hr.SHOULD_STOP=hr.SHOULD_SKIP=hr.REMOVED=void 0;var jY=ac(),qY=dm(),UY=qi(),KY=Sc(),UT=fe(),ga=UT,VY=oi(),YY=Pu(),pr=Zm(),Xi=xy(),Wi=Oc(),jT=sT(),di=vT(),Ze=_T(),KT=Kt(),Ge=KT,$i=pa(),fr=fa(),Pt=BT(),op=RT(),JY=pc(),{validate:XY}=UT,qT=qY("babel"),Ote=hr.REMOVED=1,_te=hr.SHOULD_STOP=2,kte=hr.SHOULD_SKIP=4,vr=hr.default=class VT{constructor(t,r){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(t){t?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(t){t?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(t){t?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!t&&r&&(t=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=VY.getOrCreateCachedPaths(i,r),c=l.get(o);return c||(c=new VT(t,i),o&&l.set(o,c)),KT.setup.call(c,r,s,n,a),c}getScope(t){return this.isScope()?new KY.default(this):t}setData(t,r){return this.data==null&&(this.data=Object.create(null)),this.data[t]=r}getData(t,r){this.data==null&&(this.data=Object.create(null));let i=this.data[t];return i===void 0&&r!==void 0&&(i=this.data[t]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,UY.default)(this.node,t,this.scope,r,this)}set(t,r){XY(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),t.unshift(i)}while(r=r.parentPath);return t.join(".")}debug(t){qT.enabled&&qT(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,YY.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){t||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},WY={findParent:pr.findParent,find:pr.find,getFunctionParent:pr.getFunctionParent,getStatementParent:pr.getStatementParent,getEarliestCommonAncestorFrom:pr.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:pr.getDeepestCommonAncestorFrom,getAncestry:pr.getAncestry,isAncestor:pr.isAncestor,isDescendant:pr.isDescendant,inType:pr.inType,getTypeAnnotation:Xi.getTypeAnnotation,isBaseType:Xi.isBaseType,couldBeBaseType:Xi.couldBeBaseType,baseTypeStrictlyMatches:Xi.baseTypeStrictlyMatches,isGenericType:Xi.isGenericType,replaceWithMultiple:Wi.replaceWithMultiple,replaceWithSourceString:Wi.replaceWithSourceString,replaceWith:Wi.replaceWith,replaceExpressionWithStatements:Wi.replaceExpressionWithStatements,replaceInline:Wi.replaceInline,evaluateTruthy:jT.evaluateTruthy,evaluate:jT.evaluate,toComputedKey:di.toComputedKey,ensureBlock:di.ensureBlock,unwrapFunctionEnvironment:di.unwrapFunctionEnvironment,arrowFunctionToExpression:di.arrowFunctionToExpression,splitExportDeclaration:di.splitExportDeclaration,ensureFunctionName:di.ensureFunctionName,matchesPattern:Ze.matchesPattern,isStatic:Ze.isStatic,isNodeType:Ze.isNodeType,canHaveVariableDeclarationOrExpression:Ze.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:Ze.canSwapBetweenExpressionAndStatement,isCompletionRecord:Ze.isCompletionRecord,isStatementOrBlock:Ze.isStatementOrBlock,referencesImport:Ze.referencesImport,getSource:Ze.getSource,willIMaybeExecuteBefore:Ze.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:Ze._guessExecutionStatusRelativeTo,resolve:Ze.resolve,isConstantExpression:Ze.isConstantExpression,isInStrictMode:Ze.isInStrictMode,isDenylisted:Ge.isDenylisted,visit:Ge.visit,skip:Ge.skip,skipKey:Ge.skipKey,stop:Ge.stop,setContext:Ge.setContext,requeue:Ge.requeue,requeueComputedKeyAndDecorators:Ge.requeueComputedKeyAndDecorators,remove:$i.remove,insertBefore:fr.insertBefore,insertAfter:fr.insertAfter,unshiftContainer:fr.unshiftContainer,pushContainer:fr.pushContainer,getOpposite:Pt.getOpposite,getCompletionRecords:Pt.getCompletionRecords,getSibling:Pt.getSibling,getPrevSibling:Pt.getPrevSibling,getNextSibling:Pt.getNextSibling,getAllNextSiblings:Pt.getAllNextSiblings,getAllPrevSiblings:Pt.getAllPrevSiblings,get:Pt.get,getAssignmentIdentifiers:Pt.getAssignmentIdentifiers,getBindingIdentifiers:Pt.getBindingIdentifiers,getOuterBindingIdentifiers:Pt.getOuterBindingIdentifiers,getBindingIdentifierPaths:Pt.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Pt.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:op.shareCommentsWithSiblings,addComment:op.addComment,addComments:op.addComments};Object.assign(vr.prototype,WY);vr.prototype.arrowFunctionToShadowed=di.arrowFunctionToShadowed;Object.assign(vr.prototype,{has:Ze.has,is:Ze.is,isnt:Ze.isnt,equals:Ze.equals,hoist:fr.hoist,updateSiblingKeys:fr.updateSiblingKeys,call:Ge.call,isBlacklisted:Ge.isBlacklisted,setScope:Ge.setScope,resync:Ge.resync,popContext:Ge.popContext,pushContext:Ge.pushContext,setup:Ge.setup,setKey:Ge.setKey});vr.prototype._guessExecutionStatusRelativeToDifferentFunctions=Ze._guessExecutionStatusRelativeTo;vr.prototype._guessExecutionStatusRelativeToDifferentFunctions=Ze._guessExecutionStatusRelativeTo;Object.assign(vr.prototype,{_getTypeAnnotation:Xi._getTypeAnnotation,_replaceWith:Wi._replaceWith,_resolve:Ze._resolve,_call:Ge._call,_resyncParent:Ge._resyncParent,_resyncKey:Ge._resyncKey,_resyncList:Ge._resyncList,_resyncRemoved:Ge._resyncRemoved,_getQueueContexts:Ge._getQueueContexts,_removeFromScope:$i._removeFromScope,_callRemovalHooks:$i._callRemovalHooks,_remove:$i._remove,_markRemoved:$i._markRemoved,_assertUnremoved:$i._assertUnremoved,_containerInsert:fr._containerInsert,_containerInsertBefore:fr._containerInsertBefore,_containerInsertAfter:fr._containerInsertAfter,_verifyNodeList:fr._verifyNodeList,_getKey:Pt._getKey,_getPattern:Pt._getPattern});for(let e of ga.TYPES){let t=`is${e}`,r=ga[t];vr.prototype[t]=function(i){return r(this.node,i)},vr.prototype[`assert${e}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(vr.prototype,JY);for(let e of Object.keys(jY))e.startsWith("_")||ga.TYPES.includes(e)||ga.TYPES.push(e)});var up=I(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.default=void 0;var lp=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,i=TypeError){return new i(r)}};ba.default=lp});var YT=I(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.default=void 0;var $Y=Pr(),HY=fe(),cp=Kt(),zY=up(),{VISITOR_KEYS:GY}=HY,pp=class{constructor(t,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=t,this.state=i,this.opts=r}shouldVisit(t){let r=this.opts;if(r.enter||r.exit||r[t.type])return!0;let i=GY[t.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(t[s])return!0;return!1}create(t,r,i,s){let{parentPath:n}=this,a=n==null?t.type==="Program"||t.type==="File"?new zY.default:void 0:n.hub;return $Y.default.get({parentPath:n,parent:t,container:r,key:i,listKey:s,hub:a})}maybeQueue(t,r){this.queue&&(r?this.queue.push(t):this.priorityQueue.push(t))}visitMultiple(t,r,i){if(t.length===0)return!1;let s=[];for(let n=0;n<t.length;n++){let a=t[n];a&&this.shouldVisit(a)&&s.push(this.create(r,t,n,i))}return this.visitQueue(s)}visitSingle(t,r){return this.shouldVisit(t[r])?this.visitQueue([this.create(t,t,r)]):!1}visitQueue(t){this.queue=t,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<t.length;){let n=t[s];if(s++,cp.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&cp.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=t,i))break}}for(let n=0;n<s;n++)cp.popContext.call(t[n]);return this.queue=null,i}visit(t,r){let i=t[r];return i?Array.isArray(i)?this.visitMultiple(i,t,r):this.visitSingle(t,r):!1}};Ea.default=pp});var Zn=I(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.traverseNode=tJ;var QY=YT(),Bte=Pr(),ZY=fe(),Fte=Kt(),{VISITOR_KEYS:eJ}=ZY;function tJ(e,t,r,i,s,n,a){let o=eJ[e.type];if(!o)return!1;let l=new QY.default(r,t,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let c of o)if(!(n!=null&&n[c])&&l.visit(e,c))return!0;return!1}});var Kt=I(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye._call=dp;Ye._forceSetScope=uJ;Ye._getQueueContexts=SJ;Ye._resyncKey=zT;Ye._resyncList=GT;Ye._resyncParent=HT;Ye._resyncRemoved=fJ;Ye.call=hp;Ye.isDenylisted=WT;Ye.popContext=hJ;Ye.pushContext=dJ;Ye.requeue=yJ;Ye.requeueComputedKeyAndDecorators=TJ;Ye.resync=pJ;Ye.setContext=cJ;Ye.setKey=Pa;Ye.setScope=$T;Ye.setup=mJ;Ye.skip=aJ;Ye.skipKey=oJ;Ye.stop=lJ;Ye.visit=nJ;var rJ=Zn(),JT=Pr(),iJ=pa(),sJ=fe();function hp(e){let t=this.opts;if(this.debug(e),this.node&&dp.call(this,t[e]))return!0;if(this.node){var r;return dp.call(this,(r=t[this.node.type])==null?void 0:r[e])}return!1}function dp(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let i=t.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function WT(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t?.includes(this.node.type)}Ye.isBlacklisted=WT;function XT(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function nJ(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;return this.shouldSkip||hp.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(XT(this,r),this.debug("Recursing into..."),this.shouldStop=(0,rJ.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),XT(this,r),hp.call(this,"exit"),this.shouldStop)}function aJ(){this.shouldSkip=!0}function oJ(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=!0}function lJ(){this._traverseFlags|=JT.SHOULD_SKIP|JT.SHOULD_STOP}function uJ(){var e;let t=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&t.isMethod()||this.key==="discriminant"&&t.isSwitchStatement())&&(t=t.parentPath);let r;for(;t&&!r;)r=t.scope,t=t.parentPath;this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function $T(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var s;if((s=r.opts)!=null&&s.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(t=this.scope)==null||t.init()}function cJ(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),$T.call(this),this}function pJ(){this.removed||(HT.call(this),GT.call(this),zT.call(this))}function HT(){this.parentPath&&(this.parent=this.parentPath.node)}function zT(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){Pa.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){Pa.call(this,e);return}this.key=null}}function GT(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function fJ(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&iJ._markRemoved.call(this)}function hJ(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function dJ(e){this.contexts.push(e),this.setContext(e)}function mJ(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,Pa.call(this,i)}function Pa(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function yJ(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function TJ(){let{context:e,node:t}=this;if(!sJ.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r)}function SJ(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var qi=I(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Object.defineProperty(Cr,"Hub",{enumerable:!0,get:function(){return PJ.default}});Object.defineProperty(Cr,"NodePath",{enumerable:!0,get:function(){return bJ.default}});Object.defineProperty(Cr,"Scope",{enumerable:!0,get:function(){return EJ.default}});Cr.visitors=Cr.default=void 0;Kt();var Us=Os();Cr.visitors=Us;var xJ=fe(),gJ=oi(),QT=Zn(),bJ=Pr(),EJ=Sc(),PJ=up(),{VISITOR_KEYS:AJ,removeProperties:vJ,traverseFast:qs}=xJ;function Zt(e,t={},r,i,s,n){if(e){if(!t.noScope&&!r&&e.type!=="Program"&&e.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");AJ[e.type]&&(Us.explode(t),(0,QT.traverseNode)(e,t,r,i,s,void 0,n))}}var qte=Cr.default=Zt;Zt.visitors=Us;Zt.verify=Us.verify;Zt.explode=Us.explode;Zt.cheap=function(e,t){qs(e,t)};Zt.node=function(e,t,r,i,s,n){(0,QT.traverseNode)(e,t,r,i,s,n)};Zt.clearNode=function(e,t){vJ(e,t)};Zt.removeProperties=function(e,t){return qs(e,Zt.clearNode,t),e};Zt.hasType=function(e,t,r){return r!=null&&r.includes(e.type)?!1:e.type===t?!0:qs(e,function(i){if(r!=null&&r.includes(i.type))return qs.skip;if(i.type===t)return qs.stop})};Zt.cache=gJ});var mp=Pu(),CJ=Vn(),yp=qi(),ht=fe(),IJ=typeof mp=="function"?mp:mp.default,wJ=typeof yp=="function"?yp:yp.default,NJ={key:"data-vcp-edit-key",parentKey:"data-vcp-edit-parent-key",movable:"data-vcp-movable",removable:"data-vcp-removable",flags:"data-vcp-flags"},OJ=new Set(["base","body","head","html","link","meta","noscript","script","style","template","title"]);var _J="suppressHydrationWarning";function kJ(e,t){this.cacheable?.();let r=this.async();try{if(!DJ(this.resourcePath)){r(null,e,t);return}let i=this.getOptions?.()??{},s=rS({source:e,file:this.resourcePath,projectRoot:i.projectRoot});r(null,s.code,t)}catch(i){r(i)}}function DJ(e){return typeof e=="string"&&/\.(jsx|tsx)$/.test(e)&&!e.includes("/node_modules/")&&!e.endsWith(".d.ts")}function rS(e){if(!LJ(e.source))return{code:e.source,elements:[]};let t=e.attributes??NJ,r=CJ.parse(e.source,{sourceType:"module",plugins:["jsx","typescript"]}),i=[],s=BJ(e.file,e.projectRoot);return wJ(r,{JSXElement(n){let a=n.node.openingElement,o=a.name;if(!RJ(o)||iS(a,t.key))return;let l=UJ(n)??"default",c=VJ(n),f=MJ(s,l,c),x=Aa(o)??"unknown",P=FJ(o)?"jsx":"component-call";P==="component-call"&&!KJ(n.node.children)||(jJ(a,t.key,f),qJ(a,_J),i.push({key:f,tag:x,component_name:l,source_file:s,source_kind:P}))}}),{code:IJ(r,{jsescOption:{minimal:!0}}).code,elements:i}}function LJ(e){return e.includes("<")}function MJ(e,t,r){return`${e}::${t}::${r}`}function BJ(e,t){let r=e.replace(/\\/g,"/").replace(/^\.\//,""),i=t?.replace(/\\/g,"/").replace(/\/+$/,"");if(i&&r.startsWith(`${i}/`))return r.slice(i.length+1);for(let[n,a]of[["/src/app/",1],["/src/components/",1],["/app/",1],["/components/",1]]){let o=r.indexOf(n);if(o>=0)return r.slice(o+a)}return r.match(/(?:^|\/)((?:src\/app|src\/components|app|components)\/.+)$/)?.[1]??r}function FJ(e){return ht.isJSXIdentifier(e)&&/^[a-z]/.test(e.name)}function Aa(e){return ht.isJSXIdentifier(e)?e.name:ht.isJSXMemberExpression(e)?sS(e):null}function RJ(e){let t=Aa(e);return!t||t==="Fragment"||t.endsWith(".Fragment")?!1:!OJ.has(t)}function iS(e,t){return e.attributes.some(r=>ht.isJSXAttribute(r)&&ht.isJSXIdentifier(r.name,{name:t}))}function jJ(e,t,r){e.attributes.push(ht.jsxAttribute(ht.jsxIdentifier(t),ht.stringLiteral(r)))}function qJ(e,t){iS(e,t)||e.attributes.push(ht.jsxAttribute(ht.jsxIdentifier(t),null))}function sS(e){return`${ht.isJSXIdentifier(e.object)?e.object.name:sS(e.object)}.${e.property.name}`}function UJ(e){let t=e;for(;t;){if(t.isFunctionDeclaration()||t.isClassDeclaration())return t.node.id?.name??null;if(t.isVariableDeclarator()&&ht.isIdentifier(t.node.id)){let r=t.get("init");if(!Array.isArray(r)&&(r.isArrowFunctionExpression()||r.isFunctionExpression()))return t.node.id.name}t=t.parentPath}return null}function KJ(e){return e.some(t=>ht.isJSXElement(t)||ht.isJSXFragment(t))}var ZT=new WeakMap,eS=new WeakMap,Tp=new WeakMap;function VJ(e){let t=ZT.get(e.node);if(t!==void 0)return t;let r=[],i=e;for(;i;){if(i.isJSXElement()){let n=YJ(i);n&&r.unshift(n)}i=i.parentPath}let s=r.join("/");return ZT.set(e.node,s),s}function YJ(e){let t=Aa(e.node.openingElement.name);return!t||t==="Fragment"||t.endsWith(".Fragment")?null:/^[A-Z]/.test(t)?`component:${t}#${tS(e,t)}`:`${t}#${tS(e,t)}`}function tS(e,t){let r=JJ(e);if(!r)return 0;let i=Tp.get(r.node)?.get(t)?.get(e.node);if(i!==void 0)return i;let s=Tp.get(r.node);s||(s=new Map,Tp.set(r.node,s));let n=s.get(t);n||(n=new WeakMap,s.set(t,n));let a=0;for(let o of va(r))if(Aa(o.node.openingElement.name)===t){if(n.set(o.node,a),o.node===e.node)return a;a+=1}return n.get(e.node)??0}function JJ(e){let t=e.parentPath,r=null;for(;t;){if(t.isJSXFragment()){r=t,t=t.parentPath;continue}if(t.isJSXElement())return t;t=t.parentPath}return r}function va(e){let t=eS.get(e.node);if(t)return t;let r=[],i=e.get("children");for(let s of i)if(!Array.isArray(s)){if(s.isJSXElement()){r.push(s);continue}if(s.isJSXFragment()){r.push(...va(s));continue}s.isJSXExpressionContainer()&&r.push(...mi(s.get("expression")))}return eS.set(e.node,r),r}function mi(e){return e.isJSXElement()?[e]:e.isJSXFragment()?va(e):e.isParenthesizedExpression()?mi(e.get("expression")):e.isLogicalExpression()&&e.node.operator==="&&"?mi(e.get("right")):e.isConditionalExpression()?[...mi(e.get("consequent")),...mi(e.get("alternate"))]:e.isCallExpression()&&WJ(e.node)?XJ(e.get("arguments")[0]):[]}function XJ(e){if(!e?.isArrowFunctionExpression()&&!e?.isFunctionExpression())return[];let t=e.get("body");if(t.isJSXElement())return[t];if(t.isJSXFragment())return va(t);if(t.isParenthesizedExpression())return mi(t.get("expression"));if(!t.isBlockStatement())return[];for(let r of t.get("body")){if(!r.isReturnStatement())continue;let i=r.get("argument");return i.node?mi(i):[]}return[]}function WJ(e){return ht.isMemberExpression(e.callee)&&ht.isIdentifier(e.callee.property)&&e.callee.property.name==="map"}module.exports=kJ;module.exports.instrumentSiteEditRuntimeAttributes=rS;
|