@vue3-oop/preset-vue 2.4.14
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/README.md +61 -0
- package/compiled/@vue/babel-plugin-jsx/index.js +33114 -0
- package/compiled/@vue/babel-plugin-jsx/package.json +7 -0
- package/dist/atomParser/index.d.ts +14 -0
- package/dist/atomParser/index.js +115 -0
- package/dist/common.d.ts +3 -0
- package/dist/common.js +57 -0
- package/dist/compiler/browser.d.ts +3 -0
- package/dist/compiler/browser.js +78 -0
- package/dist/compiler/index.d.ts +34 -0
- package/dist/compiler/index.js +208 -0
- package/dist/compiler/node.d.ts +11 -0
- package/dist/compiler/node.js +75 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +59 -0
- package/dist/requireHook.d.ts +2 -0
- package/dist/requireHook.js +67 -0
- package/dist/shared.d.ts +11 -0
- package/dist/shared.js +64 -0
- package/dist/vue/checkVersion.d.ts +2 -0
- package/dist/vue/checkVersion.js +52 -0
- package/dist/vue/index.d.ts +3 -0
- package/dist/vue/index.js +56 -0
- package/dist/vue/techStack/index.d.ts +2 -0
- package/dist/vue/techStack/index.js +95 -0
- package/dist/vue/techStack/jsx.d.ts +2 -0
- package/dist/vue/techStack/jsx.js +81 -0
- package/dist/vue/techStack/sfc.d.ts +2 -0
- package/dist/vue/techStack/sfc.js +80 -0
- package/dist/vue/webpack/config.d.ts +3 -0
- package/dist/vue/webpack/config.js +85 -0
- package/dist/vue/webpack/index.d.ts +2 -0
- package/dist/vue/webpack/index.js +48 -0
- package/lib/compiler.mjs +73 -0
- package/lib/preflight.mjs +5 -0
- package/lib/renderer.mjs +5 -0
- package/lib/runtimePlugin.mjs +60 -0
- package/package.json +58 -0
package/lib/compiler.mjs
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { parse, compileScript, rewriteDefault, compileTemplate, compileStyle } from 'vue/compiler-sfc';
|
|
2
|
+
|
|
3
|
+
var bd=Object.create;var ko=Object.defineProperty;var Sd=Object.getOwnPropertyDescriptor;var xd=Object.getOwnPropertyNames;var Pd=Object.getPrototypeOf,Ed=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var gd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of xd(e))!Ed.call(t,s)&&s!==r&&ko(t,s,{get:()=>e[s],enumerable:!(i=Sd(e,s))||i.enumerable});return t};var Ce=(t,e,r)=>(r=t!=null?bd(Pd(t)):{},gd(e||!t||!t.__esModule?ko(r,"default",{value:t,enumerable:!0}):r,t));var Dr=v(Xi=>{Object.defineProperty(Xi,"__esModule",{value:!0});Xi.default=Ad;function Ad(t,e){let r=Object.keys(e);for(let i of r)if(t[i]!==e[i])return !1;return !0}});var Vt=v(Ji=>{Object.defineProperty(Ji,"__esModule",{value:!0});Ji.default=vd;var _o=new Set;function vd(t,e,r=""){if(_o.has(t))return;_o.add(t);let{internal:i,trace:s}=Id(1,2);i||console.warn(`${r}\`${t}\` has been deprecated, please migrate to \`${e}\`
|
|
4
|
+
${s}`);}function Id(t,e){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Error.stackTraceLimit=1+t+e,Error.prepareStackTrace=function(n,o){s=o;},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!s)return {internal:!1,trace:""};let a=s.slice(1+t,1+t+e);return {internal:/[\\/]@babel[\\/]/.test(a[1].getFileName()),trace:a.map(n=>` at ${n}`).join(`
|
|
5
|
+
`)}}});var le=v(d=>{Object.defineProperty(d,"__esModule",{value:!0});d.isAccessor=UT;d.isAnyTypeAnnotation=oy;d.isArgumentPlaceholder=jm;d.isArrayExpression=wd;d.isArrayPattern=vh;d.isArrayTypeAnnotation=ly;d.isArrowFunctionExpression=Ih;d.isAssignmentExpression=Od;d.isAssignmentPattern=Ah;d.isAwaitExpression=zh;d.isBigIntLiteral=Gh;d.isBinary=uT;d.isBinaryExpression=Nd;d.isBindExpression=Bm;d.isBlock=fT;d.isBlockParent=pT;d.isBlockStatement=kd;d.isBooleanLiteral=eh;d.isBooleanLiteralTypeAnnotation=cy;d.isBooleanTypeAnnotation=uy;d.isBreakStatement=_d;d.isCallExpression=Md;d.isCatchClause=jd;d.isClass=BT;d.isClassAccessorProperty=ry;d.isClassBody=wh;d.isClassDeclaration=Nh;d.isClassExpression=Oh;d.isClassImplements=fy;d.isClassMethod=qh;d.isClassPrivateMethod=sy;d.isClassPrivateProperty=iy;d.isClassProperty=ty;d.isCompletionStatement=yT;d.isConditional=mT;d.isConditionalExpression=Bd;d.isContinueStatement=Fd;d.isDebuggerStatement=Rd;d.isDecimalLiteral=Ym;d.isDeclaration=vT;d.isDeclareClass=dy;d.isDeclareExportAllDeclaration=Ey;d.isDeclareExportDeclaration=Py;d.isDeclareFunction=hy;d.isDeclareInterface=yy;d.isDeclareModule=my;d.isDeclareModuleExports=Ty;d.isDeclareOpaqueType=Sy;d.isDeclareTypeAlias=by;d.isDeclareVariable=xy;d.isDeclaredPredicate=gy;d.isDecorator=Rm;d.isDirective=Dd;d.isDirectiveLiteral=Ld;d.isDoExpression=Um;d.isDoWhileStatement=Ud;d.isEmptyStatement=qd;d.isEmptyTypeAnnotation=_y;d.isEnumBody=$T;d.isEnumBooleanBody=lm;d.isEnumBooleanMember=fm;d.isEnumDeclaration=om;d.isEnumDefaultedMember=ym;d.isEnumMember=WT;d.isEnumNumberBody=um;d.isEnumNumberMember=dm;d.isEnumStringBody=cm;d.isEnumStringMember=hm;d.isEnumSymbolBody=pm;d.isExistsTypeAnnotation=Ay;d.isExportAllDeclaration=Ch;d.isExportDeclaration=FT;d.isExportDefaultDeclaration=Dh;d.isExportDefaultSpecifier=qm;d.isExportNamedDeclaration=Lh;d.isExportNamespaceSpecifier=Qh;d.isExportSpecifier=kh;d.isExpression=lT;d.isExpressionStatement=Kd;d.isExpressionWrapper=ST;d.isFile=Vd;d.isFlow=KT;d.isFlowBaseAnnotation=YT;d.isFlowDeclaration=XT;d.isFlowPredicate=JT;d.isFlowType=VT;d.isFor=xT;d.isForInStatement=Yd;d.isForOfStatement=_h;d.isForStatement=Xd;d.isForXStatement=PT;d.isFunction=ET;d.isFunctionDeclaration=Jd;d.isFunctionExpression=$d;d.isFunctionParent=gT;d.isFunctionTypeAnnotation=vy;d.isFunctionTypeParam=Iy;d.isGenericTypeAnnotation=wy;d.isIdentifier=Wd;d.isIfStatement=zd;d.isImmutable=CT;d.isImport=Hh;d.isImportAttribute=Fm;d.isImportDeclaration=Mh;d.isImportDefaultSpecifier=jh;d.isImportExpression=Rh;d.isImportNamespaceSpecifier=Bh;d.isImportOrExportDeclaration=Mo;d.isImportSpecifier=Fh;d.isIndexedAccessType=mm;d.isInferredPredicate=Oy;d.isInterfaceDeclaration=Cy;d.isInterfaceExtends=Ny;d.isInterfaceTypeAnnotation=Dy;d.isInterpreterDirective=Cd;d.isIntersectionTypeAnnotation=Ly;d.isJSX=zT;d.isJSXAttribute=bm;d.isJSXClosingElement=Sm;d.isJSXClosingFragment=Lm;d.isJSXElement=xm;d.isJSXEmptyExpression=Pm;d.isJSXExpressionContainer=Em;d.isJSXFragment=Cm;d.isJSXIdentifier=Am;d.isJSXMemberExpression=vm;d.isJSXNamespacedName=Im;d.isJSXOpeningElement=wm;d.isJSXOpeningFragment=Dm;d.isJSXSpreadAttribute=Om;d.isJSXSpreadChild=gm;d.isJSXText=Nm;d.isLVal=wT;d.isLabeledStatement=Hd;d.isLiteral=NT;d.isLogicalExpression=rh;d.isLoop=TT;d.isMemberExpression=ih;d.isMetaProperty=Uh;d.isMethod=LT;d.isMiscellaneous=HT;d.isMixedTypeAnnotation=ky;d.isModuleDeclaration=ab;d.isModuleExpression=Xm;d.isModuleSpecifier=RT;d.isNewExpression=sh;d.isNoop=km;d.isNullLiteral=Zd;d.isNullLiteralTypeAnnotation=py;d.isNullableTypeAnnotation=My;d.isNumberLiteral=tb;d.isNumberLiteralTypeAnnotation=jy;d.isNumberTypeAnnotation=By;d.isNumericLiteral=Qd;d.isObjectExpression=nh;d.isObjectMember=kT;d.isObjectMethod=oh;d.isObjectPattern=Kh;d.isObjectProperty=lh;d.isObjectTypeAnnotation=Fy;d.isObjectTypeCallProperty=Uy;d.isObjectTypeIndexer=qy;d.isObjectTypeInternalSlot=Ry;d.isObjectTypeProperty=Ky;d.isObjectTypeSpreadProperty=Vy;d.isOpaqueType=Yy;d.isOptionalCallExpression=ey;d.isOptionalIndexedAccessType=Tm;d.isOptionalMemberExpression=Zh;d.isParenthesizedExpression=fh;d.isPattern=jT;d.isPatternLike=IT;d.isPipelineBareFunction=Wm;d.isPipelinePrimaryTopicReference=zm;d.isPipelineTopicExpression=$m;d.isPlaceholder=_m;d.isPrivate=qT;d.isPrivateName=ay;d.isProgram=ah;d.isProperty=_T;d.isPureish=AT;d.isQualifiedTypeIdentifier=Xy;d.isRecordExpression=Km;d.isRegExpLiteral=th;d.isRegexLiteral=rb;d.isRestElement=uh;d.isRestProperty=ib;d.isReturnStatement=ch;d.isScopable=cT;d.isSequenceExpression=ph;d.isSpreadElement=Vh;d.isSpreadProperty=sb;d.isStandardized=oT;d.isStatement=dT;d.isStaticBlock=ny;d.isStringLiteral=Gd;d.isStringLiteralTypeAnnotation=Jy;d.isStringTypeAnnotation=$y;d.isSuper=Yh;d.isSwitchCase=dh;d.isSwitchStatement=hh;d.isSymbolTypeAnnotation=Wy;d.isTSAnyKeyword=a0;d.isTSArrayType=v0;d.isTSAsExpression=Y0;d.isTSBaseType=eb;d.isTSBigIntKeyword=o0;d.isTSBooleanKeyword=n0;d.isTSCallSignatureDeclaration=e0;d.isTSConditionalType=L0;d.isTSConstructSignatureDeclaration=t0;d.isTSConstructorType=x0;d.isTSDeclareFunction=Gm;d.isTSDeclareMethod=Qm;d.isTSEntityName=OT;d.isTSEnumDeclaration=$0;d.isTSEnumMember=W0;d.isTSExportAssignment=tT;d.isTSExpressionWithTypeArguments=R0;d.isTSExternalModuleReference=Z0;d.isTSFunctionType=S0;d.isTSImportEqualsDeclaration=Q0;d.isTSImportType=G0;d.isTSIndexSignature=s0;d.isTSIndexedAccessType=j0;d.isTSInferType=k0;d.isTSInstantiationExpression=V0;d.isTSInterfaceBody=q0;d.isTSInterfaceDeclaration=U0;d.isTSIntersectionType=D0;d.isTSIntrinsicKeyword=l0;d.isTSLiteralType=F0;d.isTSMappedType=B0;d.isTSMethodSignature=i0;d.isTSModuleBlock=H0;d.isTSModuleDeclaration=z0;d.isTSNamedTupleMember=N0;d.isTSNamespaceExportDeclaration=rT;d.isTSNeverKeyword=u0;d.isTSNonNullExpression=eT;d.isTSNullKeyword=c0;d.isTSNumberKeyword=p0;d.isTSObjectKeyword=f0;d.isTSOptionalType=w0;d.isTSParameterProperty=Hm;d.isTSParenthesizedType=_0;d.isTSPropertySignature=r0;d.isTSQualifiedName=Zm;d.isTSRestType=O0;d.isTSSatisfiesExpression=X0;d.isTSStringKeyword=d0;d.isTSSymbolKeyword=h0;d.isTSThisType=b0;d.isTSTupleType=I0;d.isTSType=ZT;d.isTSTypeAliasDeclaration=K0;d.isTSTypeAnnotation=iT;d.isTSTypeAssertion=J0;d.isTSTypeElement=QT;d.isTSTypeLiteral=A0;d.isTSTypeOperator=M0;d.isTSTypeParameter=nT;d.isTSTypeParameterDeclaration=aT;d.isTSTypeParameterInstantiation=sT;d.isTSTypePredicate=E0;d.isTSTypeQuery=g0;d.isTSTypeReference=P0;d.isTSUndefinedKeyword=y0;d.isTSUnionType=C0;d.isTSUnknownKeyword=m0;d.isTSVoidKeyword=T0;d.isTaggedTemplateExpression=Xh;d.isTemplateElement=Jh;d.isTemplateLiteral=$h;d.isTerminatorless=hT;d.isThisExpression=yh;d.isThisTypeAnnotation=zy;d.isThrowStatement=mh;d.isTopicReference=Jm;d.isTryStatement=Th;d.isTupleExpression=Vm;d.isTupleTypeAnnotation=Hy;d.isTypeAlias=Qy;d.isTypeAnnotation=Zy;d.isTypeCastExpression=em;d.isTypeParameter=tm;d.isTypeParameterDeclaration=rm;d.isTypeParameterInstantiation=im;d.isTypeScript=GT;d.isTypeofTypeAnnotation=Gy;d.isUnaryExpression=bh;d.isUnaryLike=MT;d.isUnionTypeAnnotation=sm;d.isUpdateExpression=Sh;d.isUserWhitespacable=DT;d.isV8IntrinsicIdentifier=Mm;d.isVariableDeclaration=xh;d.isVariableDeclarator=Ph;d.isVariance=am;d.isVoidTypeAnnotation=nm;d.isWhile=bT;d.isWhileStatement=Eh;d.isWithStatement=gh;d.isYieldExpression=Wh;var m=Dr(),Yt=Vt();function wd(t,e){return !t||t.type!=="ArrayExpression"?!1:e==null||(0, m.default)(t,e)}function Od(t,e){return !t||t.type!=="AssignmentExpression"?!1:e==null||(0, m.default)(t,e)}function Nd(t,e){return !t||t.type!=="BinaryExpression"?!1:e==null||(0, m.default)(t,e)}function Cd(t,e){return !t||t.type!=="InterpreterDirective"?!1:e==null||(0, m.default)(t,e)}function Dd(t,e){return !t||t.type!=="Directive"?!1:e==null||(0, m.default)(t,e)}function Ld(t,e){return !t||t.type!=="DirectiveLiteral"?!1:e==null||(0, m.default)(t,e)}function kd(t,e){return !t||t.type!=="BlockStatement"?!1:e==null||(0, m.default)(t,e)}function _d(t,e){return !t||t.type!=="BreakStatement"?!1:e==null||(0, m.default)(t,e)}function Md(t,e){return !t||t.type!=="CallExpression"?!1:e==null||(0, m.default)(t,e)}function jd(t,e){return !t||t.type!=="CatchClause"?!1:e==null||(0, m.default)(t,e)}function Bd(t,e){return !t||t.type!=="ConditionalExpression"?!1:e==null||(0, m.default)(t,e)}function Fd(t,e){return !t||t.type!=="ContinueStatement"?!1:e==null||(0, m.default)(t,e)}function Rd(t,e){return !t||t.type!=="DebuggerStatement"?!1:e==null||(0, m.default)(t,e)}function Ud(t,e){return !t||t.type!=="DoWhileStatement"?!1:e==null||(0, m.default)(t,e)}function qd(t,e){return !t||t.type!=="EmptyStatement"?!1:e==null||(0, m.default)(t,e)}function Kd(t,e){return !t||t.type!=="ExpressionStatement"?!1:e==null||(0, m.default)(t,e)}function Vd(t,e){return !t||t.type!=="File"?!1:e==null||(0, m.default)(t,e)}function Yd(t,e){return !t||t.type!=="ForInStatement"?!1:e==null||(0, m.default)(t,e)}function Xd(t,e){return !t||t.type!=="ForStatement"?!1:e==null||(0, m.default)(t,e)}function Jd(t,e){return !t||t.type!=="FunctionDeclaration"?!1:e==null||(0, m.default)(t,e)}function $d(t,e){return !t||t.type!=="FunctionExpression"?!1:e==null||(0, m.default)(t,e)}function Wd(t,e){return !t||t.type!=="Identifier"?!1:e==null||(0, m.default)(t,e)}function zd(t,e){return !t||t.type!=="IfStatement"?!1:e==null||(0, m.default)(t,e)}function Hd(t,e){return !t||t.type!=="LabeledStatement"?!1:e==null||(0, m.default)(t,e)}function Gd(t,e){return !t||t.type!=="StringLiteral"?!1:e==null||(0, m.default)(t,e)}function Qd(t,e){return !t||t.type!=="NumericLiteral"?!1:e==null||(0, m.default)(t,e)}function Zd(t,e){return !t||t.type!=="NullLiteral"?!1:e==null||(0, m.default)(t,e)}function eh(t,e){return !t||t.type!=="BooleanLiteral"?!1:e==null||(0, m.default)(t,e)}function th(t,e){return !t||t.type!=="RegExpLiteral"?!1:e==null||(0, m.default)(t,e)}function rh(t,e){return !t||t.type!=="LogicalExpression"?!1:e==null||(0, m.default)(t,e)}function ih(t,e){return !t||t.type!=="MemberExpression"?!1:e==null||(0, m.default)(t,e)}function sh(t,e){return !t||t.type!=="NewExpression"?!1:e==null||(0, m.default)(t,e)}function ah(t,e){return !t||t.type!=="Program"?!1:e==null||(0, m.default)(t,e)}function nh(t,e){return !t||t.type!=="ObjectExpression"?!1:e==null||(0, m.default)(t,e)}function oh(t,e){return !t||t.type!=="ObjectMethod"?!1:e==null||(0, m.default)(t,e)}function lh(t,e){return !t||t.type!=="ObjectProperty"?!1:e==null||(0, m.default)(t,e)}function uh(t,e){return !t||t.type!=="RestElement"?!1:e==null||(0, m.default)(t,e)}function ch(t,e){return !t||t.type!=="ReturnStatement"?!1:e==null||(0, m.default)(t,e)}function ph(t,e){return !t||t.type!=="SequenceExpression"?!1:e==null||(0, m.default)(t,e)}function fh(t,e){return !t||t.type!=="ParenthesizedExpression"?!1:e==null||(0, m.default)(t,e)}function dh(t,e){return !t||t.type!=="SwitchCase"?!1:e==null||(0, m.default)(t,e)}function hh(t,e){return !t||t.type!=="SwitchStatement"?!1:e==null||(0, m.default)(t,e)}function yh(t,e){return !t||t.type!=="ThisExpression"?!1:e==null||(0, m.default)(t,e)}function mh(t,e){return !t||t.type!=="ThrowStatement"?!1:e==null||(0, m.default)(t,e)}function Th(t,e){return !t||t.type!=="TryStatement"?!1:e==null||(0, m.default)(t,e)}function bh(t,e){return !t||t.type!=="UnaryExpression"?!1:e==null||(0, m.default)(t,e)}function Sh(t,e){return !t||t.type!=="UpdateExpression"?!1:e==null||(0, m.default)(t,e)}function xh(t,e){return !t||t.type!=="VariableDeclaration"?!1:e==null||(0, m.default)(t,e)}function Ph(t,e){return !t||t.type!=="VariableDeclarator"?!1:e==null||(0, m.default)(t,e)}function Eh(t,e){return !t||t.type!=="WhileStatement"?!1:e==null||(0, m.default)(t,e)}function gh(t,e){return !t||t.type!=="WithStatement"?!1:e==null||(0, m.default)(t,e)}function Ah(t,e){return !t||t.type!=="AssignmentPattern"?!1:e==null||(0, m.default)(t,e)}function vh(t,e){return !t||t.type!=="ArrayPattern"?!1:e==null||(0, m.default)(t,e)}function Ih(t,e){return !t||t.type!=="ArrowFunctionExpression"?!1:e==null||(0, m.default)(t,e)}function wh(t,e){return !t||t.type!=="ClassBody"?!1:e==null||(0, m.default)(t,e)}function Oh(t,e){return !t||t.type!=="ClassExpression"?!1:e==null||(0, m.default)(t,e)}function Nh(t,e){return !t||t.type!=="ClassDeclaration"?!1:e==null||(0, m.default)(t,e)}function Ch(t,e){return !t||t.type!=="ExportAllDeclaration"?!1:e==null||(0, m.default)(t,e)}function Dh(t,e){return !t||t.type!=="ExportDefaultDeclaration"?!1:e==null||(0, m.default)(t,e)}function Lh(t,e){return !t||t.type!=="ExportNamedDeclaration"?!1:e==null||(0, m.default)(t,e)}function kh(t,e){return !t||t.type!=="ExportSpecifier"?!1:e==null||(0, m.default)(t,e)}function _h(t,e){return !t||t.type!=="ForOfStatement"?!1:e==null||(0, m.default)(t,e)}function Mh(t,e){return !t||t.type!=="ImportDeclaration"?!1:e==null||(0, m.default)(t,e)}function jh(t,e){return !t||t.type!=="ImportDefaultSpecifier"?!1:e==null||(0, m.default)(t,e)}function Bh(t,e){return !t||t.type!=="ImportNamespaceSpecifier"?!1:e==null||(0, m.default)(t,e)}function Fh(t,e){return !t||t.type!=="ImportSpecifier"?!1:e==null||(0, m.default)(t,e)}function Rh(t,e){return !t||t.type!=="ImportExpression"?!1:e==null||(0, m.default)(t,e)}function Uh(t,e){return !t||t.type!=="MetaProperty"?!1:e==null||(0, m.default)(t,e)}function qh(t,e){return !t||t.type!=="ClassMethod"?!1:e==null||(0, m.default)(t,e)}function Kh(t,e){return !t||t.type!=="ObjectPattern"?!1:e==null||(0, m.default)(t,e)}function Vh(t,e){return !t||t.type!=="SpreadElement"?!1:e==null||(0, m.default)(t,e)}function Yh(t,e){return !t||t.type!=="Super"?!1:e==null||(0, m.default)(t,e)}function Xh(t,e){return !t||t.type!=="TaggedTemplateExpression"?!1:e==null||(0, m.default)(t,e)}function Jh(t,e){return !t||t.type!=="TemplateElement"?!1:e==null||(0, m.default)(t,e)}function $h(t,e){return !t||t.type!=="TemplateLiteral"?!1:e==null||(0, m.default)(t,e)}function Wh(t,e){return !t||t.type!=="YieldExpression"?!1:e==null||(0, m.default)(t,e)}function zh(t,e){return !t||t.type!=="AwaitExpression"?!1:e==null||(0, m.default)(t,e)}function Hh(t,e){return !t||t.type!=="Import"?!1:e==null||(0, m.default)(t,e)}function Gh(t,e){return !t||t.type!=="BigIntLiteral"?!1:e==null||(0, m.default)(t,e)}function Qh(t,e){return !t||t.type!=="ExportNamespaceSpecifier"?!1:e==null||(0, m.default)(t,e)}function Zh(t,e){return !t||t.type!=="OptionalMemberExpression"?!1:e==null||(0, m.default)(t,e)}function ey(t,e){return !t||t.type!=="OptionalCallExpression"?!1:e==null||(0, m.default)(t,e)}function ty(t,e){return !t||t.type!=="ClassProperty"?!1:e==null||(0, m.default)(t,e)}function ry(t,e){return !t||t.type!=="ClassAccessorProperty"?!1:e==null||(0, m.default)(t,e)}function iy(t,e){return !t||t.type!=="ClassPrivateProperty"?!1:e==null||(0, m.default)(t,e)}function sy(t,e){return !t||t.type!=="ClassPrivateMethod"?!1:e==null||(0, m.default)(t,e)}function ay(t,e){return !t||t.type!=="PrivateName"?!1:e==null||(0, m.default)(t,e)}function ny(t,e){return !t||t.type!=="StaticBlock"?!1:e==null||(0, m.default)(t,e)}function oy(t,e){return !t||t.type!=="AnyTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function ly(t,e){return !t||t.type!=="ArrayTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function uy(t,e){return !t||t.type!=="BooleanTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function cy(t,e){return !t||t.type!=="BooleanLiteralTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function py(t,e){return !t||t.type!=="NullLiteralTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function fy(t,e){return !t||t.type!=="ClassImplements"?!1:e==null||(0, m.default)(t,e)}function dy(t,e){return !t||t.type!=="DeclareClass"?!1:e==null||(0, m.default)(t,e)}function hy(t,e){return !t||t.type!=="DeclareFunction"?!1:e==null||(0, m.default)(t,e)}function yy(t,e){return !t||t.type!=="DeclareInterface"?!1:e==null||(0, m.default)(t,e)}function my(t,e){return !t||t.type!=="DeclareModule"?!1:e==null||(0, m.default)(t,e)}function Ty(t,e){return !t||t.type!=="DeclareModuleExports"?!1:e==null||(0, m.default)(t,e)}function by(t,e){return !t||t.type!=="DeclareTypeAlias"?!1:e==null||(0, m.default)(t,e)}function Sy(t,e){return !t||t.type!=="DeclareOpaqueType"?!1:e==null||(0, m.default)(t,e)}function xy(t,e){return !t||t.type!=="DeclareVariable"?!1:e==null||(0, m.default)(t,e)}function Py(t,e){return !t||t.type!=="DeclareExportDeclaration"?!1:e==null||(0, m.default)(t,e)}function Ey(t,e){return !t||t.type!=="DeclareExportAllDeclaration"?!1:e==null||(0, m.default)(t,e)}function gy(t,e){return !t||t.type!=="DeclaredPredicate"?!1:e==null||(0, m.default)(t,e)}function Ay(t,e){return !t||t.type!=="ExistsTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function vy(t,e){return !t||t.type!=="FunctionTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function Iy(t,e){return !t||t.type!=="FunctionTypeParam"?!1:e==null||(0, m.default)(t,e)}function wy(t,e){return !t||t.type!=="GenericTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function Oy(t,e){return !t||t.type!=="InferredPredicate"?!1:e==null||(0, m.default)(t,e)}function Ny(t,e){return !t||t.type!=="InterfaceExtends"?!1:e==null||(0, m.default)(t,e)}function Cy(t,e){return !t||t.type!=="InterfaceDeclaration"?!1:e==null||(0, m.default)(t,e)}function Dy(t,e){return !t||t.type!=="InterfaceTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function Ly(t,e){return !t||t.type!=="IntersectionTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function ky(t,e){return !t||t.type!=="MixedTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function _y(t,e){return !t||t.type!=="EmptyTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function My(t,e){return !t||t.type!=="NullableTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function jy(t,e){return !t||t.type!=="NumberLiteralTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function By(t,e){return !t||t.type!=="NumberTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function Fy(t,e){return !t||t.type!=="ObjectTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function Ry(t,e){return !t||t.type!=="ObjectTypeInternalSlot"?!1:e==null||(0, m.default)(t,e)}function Uy(t,e){return !t||t.type!=="ObjectTypeCallProperty"?!1:e==null||(0, m.default)(t,e)}function qy(t,e){return !t||t.type!=="ObjectTypeIndexer"?!1:e==null||(0, m.default)(t,e)}function Ky(t,e){return !t||t.type!=="ObjectTypeProperty"?!1:e==null||(0, m.default)(t,e)}function Vy(t,e){return !t||t.type!=="ObjectTypeSpreadProperty"?!1:e==null||(0, m.default)(t,e)}function Yy(t,e){return !t||t.type!=="OpaqueType"?!1:e==null||(0, m.default)(t,e)}function Xy(t,e){return !t||t.type!=="QualifiedTypeIdentifier"?!1:e==null||(0, m.default)(t,e)}function Jy(t,e){return !t||t.type!=="StringLiteralTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function $y(t,e){return !t||t.type!=="StringTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function Wy(t,e){return !t||t.type!=="SymbolTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function zy(t,e){return !t||t.type!=="ThisTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function Hy(t,e){return !t||t.type!=="TupleTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function Gy(t,e){return !t||t.type!=="TypeofTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function Qy(t,e){return !t||t.type!=="TypeAlias"?!1:e==null||(0, m.default)(t,e)}function Zy(t,e){return !t||t.type!=="TypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function em(t,e){return !t||t.type!=="TypeCastExpression"?!1:e==null||(0, m.default)(t,e)}function tm(t,e){return !t||t.type!=="TypeParameter"?!1:e==null||(0, m.default)(t,e)}function rm(t,e){return !t||t.type!=="TypeParameterDeclaration"?!1:e==null||(0, m.default)(t,e)}function im(t,e){return !t||t.type!=="TypeParameterInstantiation"?!1:e==null||(0, m.default)(t,e)}function sm(t,e){return !t||t.type!=="UnionTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function am(t,e){return !t||t.type!=="Variance"?!1:e==null||(0, m.default)(t,e)}function nm(t,e){return !t||t.type!=="VoidTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function om(t,e){return !t||t.type!=="EnumDeclaration"?!1:e==null||(0, m.default)(t,e)}function lm(t,e){return !t||t.type!=="EnumBooleanBody"?!1:e==null||(0, m.default)(t,e)}function um(t,e){return !t||t.type!=="EnumNumberBody"?!1:e==null||(0, m.default)(t,e)}function cm(t,e){return !t||t.type!=="EnumStringBody"?!1:e==null||(0, m.default)(t,e)}function pm(t,e){return !t||t.type!=="EnumSymbolBody"?!1:e==null||(0, m.default)(t,e)}function fm(t,e){return !t||t.type!=="EnumBooleanMember"?!1:e==null||(0, m.default)(t,e)}function dm(t,e){return !t||t.type!=="EnumNumberMember"?!1:e==null||(0, m.default)(t,e)}function hm(t,e){return !t||t.type!=="EnumStringMember"?!1:e==null||(0, m.default)(t,e)}function ym(t,e){return !t||t.type!=="EnumDefaultedMember"?!1:e==null||(0, m.default)(t,e)}function mm(t,e){return !t||t.type!=="IndexedAccessType"?!1:e==null||(0, m.default)(t,e)}function Tm(t,e){return !t||t.type!=="OptionalIndexedAccessType"?!1:e==null||(0, m.default)(t,e)}function bm(t,e){return !t||t.type!=="JSXAttribute"?!1:e==null||(0, m.default)(t,e)}function Sm(t,e){return !t||t.type!=="JSXClosingElement"?!1:e==null||(0, m.default)(t,e)}function xm(t,e){return !t||t.type!=="JSXElement"?!1:e==null||(0, m.default)(t,e)}function Pm(t,e){return !t||t.type!=="JSXEmptyExpression"?!1:e==null||(0, m.default)(t,e)}function Em(t,e){return !t||t.type!=="JSXExpressionContainer"?!1:e==null||(0, m.default)(t,e)}function gm(t,e){return !t||t.type!=="JSXSpreadChild"?!1:e==null||(0, m.default)(t,e)}function Am(t,e){return !t||t.type!=="JSXIdentifier"?!1:e==null||(0, m.default)(t,e)}function vm(t,e){return !t||t.type!=="JSXMemberExpression"?!1:e==null||(0, m.default)(t,e)}function Im(t,e){return !t||t.type!=="JSXNamespacedName"?!1:e==null||(0, m.default)(t,e)}function wm(t,e){return !t||t.type!=="JSXOpeningElement"?!1:e==null||(0, m.default)(t,e)}function Om(t,e){return !t||t.type!=="JSXSpreadAttribute"?!1:e==null||(0, m.default)(t,e)}function Nm(t,e){return !t||t.type!=="JSXText"?!1:e==null||(0, m.default)(t,e)}function Cm(t,e){return !t||t.type!=="JSXFragment"?!1:e==null||(0, m.default)(t,e)}function Dm(t,e){return !t||t.type!=="JSXOpeningFragment"?!1:e==null||(0, m.default)(t,e)}function Lm(t,e){return !t||t.type!=="JSXClosingFragment"?!1:e==null||(0, m.default)(t,e)}function km(t,e){return !t||t.type!=="Noop"?!1:e==null||(0, m.default)(t,e)}function _m(t,e){return !t||t.type!=="Placeholder"?!1:e==null||(0, m.default)(t,e)}function Mm(t,e){return !t||t.type!=="V8IntrinsicIdentifier"?!1:e==null||(0, m.default)(t,e)}function jm(t,e){return !t||t.type!=="ArgumentPlaceholder"?!1:e==null||(0, m.default)(t,e)}function Bm(t,e){return !t||t.type!=="BindExpression"?!1:e==null||(0, m.default)(t,e)}function Fm(t,e){return !t||t.type!=="ImportAttribute"?!1:e==null||(0, m.default)(t,e)}function Rm(t,e){return !t||t.type!=="Decorator"?!1:e==null||(0, m.default)(t,e)}function Um(t,e){return !t||t.type!=="DoExpression"?!1:e==null||(0, m.default)(t,e)}function qm(t,e){return !t||t.type!=="ExportDefaultSpecifier"?!1:e==null||(0, m.default)(t,e)}function Km(t,e){return !t||t.type!=="RecordExpression"?!1:e==null||(0, m.default)(t,e)}function Vm(t,e){return !t||t.type!=="TupleExpression"?!1:e==null||(0, m.default)(t,e)}function Ym(t,e){return !t||t.type!=="DecimalLiteral"?!1:e==null||(0, m.default)(t,e)}function Xm(t,e){return !t||t.type!=="ModuleExpression"?!1:e==null||(0, m.default)(t,e)}function Jm(t,e){return !t||t.type!=="TopicReference"?!1:e==null||(0, m.default)(t,e)}function $m(t,e){return !t||t.type!=="PipelineTopicExpression"?!1:e==null||(0, m.default)(t,e)}function Wm(t,e){return !t||t.type!=="PipelineBareFunction"?!1:e==null||(0, m.default)(t,e)}function zm(t,e){return !t||t.type!=="PipelinePrimaryTopicReference"?!1:e==null||(0, m.default)(t,e)}function Hm(t,e){return !t||t.type!=="TSParameterProperty"?!1:e==null||(0, m.default)(t,e)}function Gm(t,e){return !t||t.type!=="TSDeclareFunction"?!1:e==null||(0, m.default)(t,e)}function Qm(t,e){return !t||t.type!=="TSDeclareMethod"?!1:e==null||(0, m.default)(t,e)}function Zm(t,e){return !t||t.type!=="TSQualifiedName"?!1:e==null||(0, m.default)(t,e)}function e0(t,e){return !t||t.type!=="TSCallSignatureDeclaration"?!1:e==null||(0, m.default)(t,e)}function t0(t,e){return !t||t.type!=="TSConstructSignatureDeclaration"?!1:e==null||(0, m.default)(t,e)}function r0(t,e){return !t||t.type!=="TSPropertySignature"?!1:e==null||(0, m.default)(t,e)}function i0(t,e){return !t||t.type!=="TSMethodSignature"?!1:e==null||(0, m.default)(t,e)}function s0(t,e){return !t||t.type!=="TSIndexSignature"?!1:e==null||(0, m.default)(t,e)}function a0(t,e){return !t||t.type!=="TSAnyKeyword"?!1:e==null||(0, m.default)(t,e)}function n0(t,e){return !t||t.type!=="TSBooleanKeyword"?!1:e==null||(0, m.default)(t,e)}function o0(t,e){return !t||t.type!=="TSBigIntKeyword"?!1:e==null||(0, m.default)(t,e)}function l0(t,e){return !t||t.type!=="TSIntrinsicKeyword"?!1:e==null||(0, m.default)(t,e)}function u0(t,e){return !t||t.type!=="TSNeverKeyword"?!1:e==null||(0, m.default)(t,e)}function c0(t,e){return !t||t.type!=="TSNullKeyword"?!1:e==null||(0, m.default)(t,e)}function p0(t,e){return !t||t.type!=="TSNumberKeyword"?!1:e==null||(0, m.default)(t,e)}function f0(t,e){return !t||t.type!=="TSObjectKeyword"?!1:e==null||(0, m.default)(t,e)}function d0(t,e){return !t||t.type!=="TSStringKeyword"?!1:e==null||(0, m.default)(t,e)}function h0(t,e){return !t||t.type!=="TSSymbolKeyword"?!1:e==null||(0, m.default)(t,e)}function y0(t,e){return !t||t.type!=="TSUndefinedKeyword"?!1:e==null||(0, m.default)(t,e)}function m0(t,e){return !t||t.type!=="TSUnknownKeyword"?!1:e==null||(0, m.default)(t,e)}function T0(t,e){return !t||t.type!=="TSVoidKeyword"?!1:e==null||(0, m.default)(t,e)}function b0(t,e){return !t||t.type!=="TSThisType"?!1:e==null||(0, m.default)(t,e)}function S0(t,e){return !t||t.type!=="TSFunctionType"?!1:e==null||(0, m.default)(t,e)}function x0(t,e){return !t||t.type!=="TSConstructorType"?!1:e==null||(0, m.default)(t,e)}function P0(t,e){return !t||t.type!=="TSTypeReference"?!1:e==null||(0, m.default)(t,e)}function E0(t,e){return !t||t.type!=="TSTypePredicate"?!1:e==null||(0, m.default)(t,e)}function g0(t,e){return !t||t.type!=="TSTypeQuery"?!1:e==null||(0, m.default)(t,e)}function A0(t,e){return !t||t.type!=="TSTypeLiteral"?!1:e==null||(0, m.default)(t,e)}function v0(t,e){return !t||t.type!=="TSArrayType"?!1:e==null||(0, m.default)(t,e)}function I0(t,e){return !t||t.type!=="TSTupleType"?!1:e==null||(0, m.default)(t,e)}function w0(t,e){return !t||t.type!=="TSOptionalType"?!1:e==null||(0, m.default)(t,e)}function O0(t,e){return !t||t.type!=="TSRestType"?!1:e==null||(0, m.default)(t,e)}function N0(t,e){return !t||t.type!=="TSNamedTupleMember"?!1:e==null||(0, m.default)(t,e)}function C0(t,e){return !t||t.type!=="TSUnionType"?!1:e==null||(0, m.default)(t,e)}function D0(t,e){return !t||t.type!=="TSIntersectionType"?!1:e==null||(0, m.default)(t,e)}function L0(t,e){return !t||t.type!=="TSConditionalType"?!1:e==null||(0, m.default)(t,e)}function k0(t,e){return !t||t.type!=="TSInferType"?!1:e==null||(0, m.default)(t,e)}function _0(t,e){return !t||t.type!=="TSParenthesizedType"?!1:e==null||(0, m.default)(t,e)}function M0(t,e){return !t||t.type!=="TSTypeOperator"?!1:e==null||(0, m.default)(t,e)}function j0(t,e){return !t||t.type!=="TSIndexedAccessType"?!1:e==null||(0, m.default)(t,e)}function B0(t,e){return !t||t.type!=="TSMappedType"?!1:e==null||(0, m.default)(t,e)}function F0(t,e){return !t||t.type!=="TSLiteralType"?!1:e==null||(0, m.default)(t,e)}function R0(t,e){return !t||t.type!=="TSExpressionWithTypeArguments"?!1:e==null||(0, m.default)(t,e)}function U0(t,e){return !t||t.type!=="TSInterfaceDeclaration"?!1:e==null||(0, m.default)(t,e)}function q0(t,e){return !t||t.type!=="TSInterfaceBody"?!1:e==null||(0, m.default)(t,e)}function K0(t,e){return !t||t.type!=="TSTypeAliasDeclaration"?!1:e==null||(0, m.default)(t,e)}function V0(t,e){return !t||t.type!=="TSInstantiationExpression"?!1:e==null||(0, m.default)(t,e)}function Y0(t,e){return !t||t.type!=="TSAsExpression"?!1:e==null||(0, m.default)(t,e)}function X0(t,e){return !t||t.type!=="TSSatisfiesExpression"?!1:e==null||(0, m.default)(t,e)}function J0(t,e){return !t||t.type!=="TSTypeAssertion"?!1:e==null||(0, m.default)(t,e)}function $0(t,e){return !t||t.type!=="TSEnumDeclaration"?!1:e==null||(0, m.default)(t,e)}function W0(t,e){return !t||t.type!=="TSEnumMember"?!1:e==null||(0, m.default)(t,e)}function z0(t,e){return !t||t.type!=="TSModuleDeclaration"?!1:e==null||(0, m.default)(t,e)}function H0(t,e){return !t||t.type!=="TSModuleBlock"?!1:e==null||(0, m.default)(t,e)}function G0(t,e){return !t||t.type!=="TSImportType"?!1:e==null||(0, m.default)(t,e)}function Q0(t,e){return !t||t.type!=="TSImportEqualsDeclaration"?!1:e==null||(0, m.default)(t,e)}function Z0(t,e){return !t||t.type!=="TSExternalModuleReference"?!1:e==null||(0, m.default)(t,e)}function eT(t,e){return !t||t.type!=="TSNonNullExpression"?!1:e==null||(0, m.default)(t,e)}function tT(t,e){return !t||t.type!=="TSExportAssignment"?!1:e==null||(0, m.default)(t,e)}function rT(t,e){return !t||t.type!=="TSNamespaceExportDeclaration"?!1:e==null||(0, m.default)(t,e)}function iT(t,e){return !t||t.type!=="TSTypeAnnotation"?!1:e==null||(0, m.default)(t,e)}function sT(t,e){return !t||t.type!=="TSTypeParameterInstantiation"?!1:e==null||(0, m.default)(t,e)}function aT(t,e){return !t||t.type!=="TSTypeParameterDeclaration"?!1:e==null||(0, m.default)(t,e)}function nT(t,e){return !t||t.type!=="TSTypeParameter"?!1:e==null||(0, m.default)(t,e)}function oT(t,e){if(!t)return !1;switch(t.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":break;case"Placeholder":switch(t.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return !1}break;default:return !1}return e==null||(0, m.default)(t,e)}function lT(t,e){if(!t)return !1;switch(t.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(t.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return !1}break;default:return !1}return e==null||(0, m.default)(t,e)}function uT(t,e){if(!t)return !1;switch(t.type){case"BinaryExpression":case"LogicalExpression":break;default:return !1}return e==null||(0, m.default)(t,e)}function cT(t,e){if(!t)return !1;switch(t.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(t.expectedNode==="BlockStatement")break;default:return !1}return e==null||(0, m.default)(t,e)}function pT(t,e){if(!t)return !1;switch(t.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(t.expectedNode==="BlockStatement")break;default:return !1}return e==null||(0, m.default)(t,e)}function fT(t,e){if(!t)return !1;switch(t.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(t.expectedNode==="BlockStatement")break;default:return !1}return e==null||(0, m.default)(t,e)}function dT(t,e){if(!t)return !1;switch(t.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(t.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return !1}break;default:return !1}return e==null||(0, m.default)(t,e)}function hT(t,e){if(!t)return !1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return !1}return e==null||(0, m.default)(t,e)}function yT(t,e){if(!t)return !1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return !1}return e==null||(0, m.default)(t,e)}function mT(t,e){if(!t)return !1;switch(t.type){case"ConditionalExpression":case"IfStatement":break;default:return !1}return e==null||(0, m.default)(t,e)}function TT(t,e){if(!t)return !1;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return !1}return e==null||(0, m.default)(t,e)}function bT(t,e){if(!t)return !1;switch(t.type){case"DoWhileStatement":case"WhileStatement":break;default:return !1}return e==null||(0, m.default)(t,e)}function ST(t,e){if(!t)return !1;switch(t.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return !1}return e==null||(0, m.default)(t,e)}function xT(t,e){if(!t)return !1;switch(t.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return !1}return e==null||(0, m.default)(t,e)}function PT(t,e){if(!t)return !1;switch(t.type){case"ForInStatement":case"ForOfStatement":break;default:return !1}return e==null||(0, m.default)(t,e)}function ET(t,e){if(!t)return !1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return !1}return e==null||(0, m.default)(t,e)}function gT(t,e){if(!t)return !1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return !1}return e==null||(0, m.default)(t,e)}function AT(t,e){if(!t)return !1;switch(t.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(t.expectedNode==="StringLiteral")break;default:return !1}return e==null||(0, m.default)(t,e)}function vT(t,e){if(!t)return !1;switch(t.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":break;case"Placeholder":if(t.expectedNode==="Declaration")break;default:return !1}return e==null||(0, m.default)(t,e)}function IT(t,e){if(!t)return !1;switch(t.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return !1}break;default:return !1}return e==null||(0, m.default)(t,e)}function wT(t,e){if(!t)return !1;switch(t.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(t.expectedNode){case"Pattern":case"Identifier":break;default:return !1}break;default:return !1}return e==null||(0, m.default)(t,e)}function OT(t,e){if(!t)return !1;switch(t.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(t.expectedNode==="Identifier")break;default:return !1}return e==null||(0, m.default)(t,e)}function NT(t,e){if(!t)return !1;switch(t.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(t.expectedNode==="StringLiteral")break;default:return !1}return e==null||(0, m.default)(t,e)}function CT(t,e){if(!t)return !1;switch(t.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(t.expectedNode==="StringLiteral")break;default:return !1}return e==null||(0, m.default)(t,e)}function DT(t,e){if(!t)return !1;switch(t.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return !1}return e==null||(0, m.default)(t,e)}function LT(t,e){if(!t)return !1;switch(t.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return !1}return e==null||(0, m.default)(t,e)}function kT(t,e){if(!t)return !1;switch(t.type){case"ObjectMethod":case"ObjectProperty":break;default:return !1}return e==null||(0, m.default)(t,e)}function _T(t,e){if(!t)return !1;switch(t.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return !1}return e==null||(0, m.default)(t,e)}function MT(t,e){if(!t)return !1;switch(t.type){case"UnaryExpression":case"SpreadElement":break;default:return !1}return e==null||(0, m.default)(t,e)}function jT(t,e){if(!t)return !1;switch(t.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(t.expectedNode==="Pattern")break;default:return !1}return e==null||(0, m.default)(t,e)}function BT(t,e){if(!t)return !1;switch(t.type){case"ClassExpression":case"ClassDeclaration":break;default:return !1}return e==null||(0, m.default)(t,e)}function Mo(t,e){if(!t)return !1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return !1}return e==null||(0, m.default)(t,e)}function FT(t,e){if(!t)return !1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return !1}return e==null||(0, m.default)(t,e)}function RT(t,e){if(!t)return !1;switch(t.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return !1}return e==null||(0, m.default)(t,e)}function UT(t,e){if(!t)return !1;switch(t.type){case"ClassAccessorProperty":break;default:return !1}return e==null||(0, m.default)(t,e)}function qT(t,e){if(!t)return !1;switch(t.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return !1}return e==null||(0, m.default)(t,e)}function KT(t,e){if(!t)return !1;switch(t.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 e==null||(0, m.default)(t,e)}function VT(t,e){if(!t)return !1;switch(t.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 e==null||(0, m.default)(t,e)}function YT(t,e){if(!t)return !1;switch(t.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 e==null||(0, m.default)(t,e)}function XT(t,e){if(!t)return !1;switch(t.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 e==null||(0, m.default)(t,e)}function JT(t,e){if(!t)return !1;switch(t.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return !1}return e==null||(0, m.default)(t,e)}function $T(t,e){if(!t)return !1;switch(t.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return !1}return e==null||(0, m.default)(t,e)}function WT(t,e){if(!t)return !1;switch(t.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return !1}return e==null||(0, m.default)(t,e)}function zT(t,e){if(!t)return !1;switch(t.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 e==null||(0, m.default)(t,e)}function HT(t,e){if(!t)return !1;switch(t.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return !1}return e==null||(0, m.default)(t,e)}function GT(t,e){if(!t)return !1;switch(t.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"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":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 e==null||(0, m.default)(t,e)}function QT(t,e){if(!t)return !1;switch(t.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return !1}return e==null||(0, m.default)(t,e)}function ZT(t,e){if(!t)return !1;switch(t.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"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return !1}return e==null||(0, m.default)(t,e)}function eb(t,e){if(!t)return !1;switch(t.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"TSLiteralType":break;default:return !1}return e==null||(0, m.default)(t,e)}function tb(t,e){return (0, Yt.default)("isNumberLiteral","isNumericLiteral"),!t||t.type!=="NumberLiteral"?!1:e==null||(0, m.default)(t,e)}function rb(t,e){return (0, Yt.default)("isRegexLiteral","isRegExpLiteral"),!t||t.type!=="RegexLiteral"?!1:e==null||(0, m.default)(t,e)}function ib(t,e){return (0, Yt.default)("isRestProperty","isRestElement"),!t||t.type!=="RestProperty"?!1:e==null||(0, m.default)(t,e)}function sb(t,e){return (0, Yt.default)("isSpreadProperty","isSpreadElement"),!t||t.type!=="SpreadProperty"?!1:e==null||(0, m.default)(t,e)}function ab(t,e){return (0, Yt.default)("isModuleDeclaration","isImportOrExportDeclaration"),Mo(t,e)}});var Wi=v($i=>{Object.defineProperty($i,"__esModule",{value:!0});$i.default=nb;var Xt=le();function nb(t,e,r){if(!(0, Xt.isMemberExpression)(t))return !1;let i=Array.isArray(e)?e:e.split("."),s=[],a;for(a=t;(0, Xt.isMemberExpression)(a);a=a.object)s.push(a.property);if(s.push(a),s.length<i.length||!r&&s.length>i.length)return !1;for(let n=0,o=s.length-1;n<i.length;n++,o--){let l=s[o],u;if((0, Xt.isIdentifier)(l))u=l.name;else if((0, Xt.isStringLiteral)(l))u=l.value;else if((0, Xt.isThisExpression)(l))u="this";else return !1;if(i[n]!==u)return !1}return !0}});var Hi=v(zi=>{Object.defineProperty(zi,"__esModule",{value:!0});zi.default=lb;var ob=Wi();function lb(t,e){let r=t.split(".");return i=>(0, ob.default)(i,r,e)}});var jo=v(Lr=>{Object.defineProperty(Lr,"__esModule",{value:!0});Lr.default=void 0;var ub=Hi(),cb=(0, ub.default)("React.Component");Lr.default=cb;});var Bo=v(Gi=>{Object.defineProperty(Gi,"__esModule",{value:!0});Gi.default=pb;function pb(t){return !!t&&/^[a-z]/.test(t)}});var Ro=v((B_,Fo)=>{var Jt=null;function $t(t){if(Jt!==null&&typeof Jt.property){let e=Jt;return Jt=$t.prototype=null,e}return Jt=$t.prototype=t??Object.create(null),new $t}$t();Fo.exports=function(e){return $t(e)};});var kr=v(Qi=>{Object.defineProperty(Qi,"__esModule",{value:!0});Qi.default=fb;var Uo=De();function fb(t,e){if(t===e)return !0;if(t==null||Uo.ALIAS_KEYS[e])return !1;let r=Uo.FLIPPED_ALIAS_KEYS[e];if(r){if(r[0]===t)return !0;for(let i of r)if(t===i)return !0}return !1}});var es=v(Zi=>{Object.defineProperty(Zi,"__esModule",{value:!0});Zi.default=hb;var db=De();function hb(t,e){if(t===e)return !0;let r=db.PLACEHOLDERS_ALIAS[t];if(r){for(let i of r)if(e===i)return !0}return !1}});var Et=v(ts=>{Object.defineProperty(ts,"__esModule",{value:!0});ts.default=Sb;var yb=Dr(),mb=kr(),Tb=es(),bb=De();function Sb(t,e,r){return e?(0, mb.default)(e.type,t)?typeof r>"u"?!0:(0, yb.default)(e,r):!r&&e.type==="Placeholder"&&t in bb.FLIPPED_ALIAS_KEYS?(0, Tb.default)(e.expectedNode,t):!1:!1}});var Xo=v(Wt=>{Object.defineProperty(Wt,"__esModule",{value:!0});Wt.isIdentifierChar=Yo;Wt.isIdentifierName=gb;Wt.isIdentifierStart=Vo;var is="\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-\u088E\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\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",qo="\u200C\u200D\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\u0898-\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-\u1ACE\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",xb=new RegExp("["+is+"]"),Pb=new RegExp("["+is+qo+"]");is=qo=null;var Ko=[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,68,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,71,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,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,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,757,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Eb=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function rs(t,e){let r=65536;for(let i=0,s=e.length;i<s;i+=2){if(r+=e[i],r>t)return !1;if(r+=e[i+1],r>=t)return !0}return !1}function Vo(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&xb.test(String.fromCharCode(t)):rs(t,Ko)}function Yo(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&Pb.test(String.fromCharCode(t)):rs(t,Ko)||rs(t,Eb)}function gb(t){let e=!0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);if((i&64512)===55296&&r+1<t.length){let s=t.charCodeAt(++r);(s&64512)===56320&&(i=65536+((i&1023)<<10)+(s&1023));}if(e){if(e=!1,!Vo(i))return !1}else if(!Yo(i))return !1}return !e}});var zo=v(pt=>{Object.defineProperty(pt,"__esModule",{value:!0});pt.isKeyword=Ob;pt.isReservedWord=Jo;pt.isStrictBindOnlyReservedWord=Wo;pt.isStrictBindReservedWord=wb;pt.isStrictReservedWord=$o;var ss={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"]},Ab=new Set(ss.keyword),vb=new Set(ss.strict),Ib=new Set(ss.strictBind);function Jo(t,e){return e&&t==="await"||t==="enum"}function $o(t,e){return Jo(t,e)||vb.has(t)}function Wo(t){return Ib.has(t)}function wb(t,e){return $o(t,e)||Wo(t)}function Ob(t){return Ab.has(t)}});var Ht=v(Fe=>{Object.defineProperty(Fe,"__esModule",{value:!0});Object.defineProperty(Fe,"isIdentifierChar",{enumerable:!0,get:function(){return as.isIdentifierChar}});Object.defineProperty(Fe,"isIdentifierName",{enumerable:!0,get:function(){return as.isIdentifierName}});Object.defineProperty(Fe,"isIdentifierStart",{enumerable:!0,get:function(){return as.isIdentifierStart}});Object.defineProperty(Fe,"isKeyword",{enumerable:!0,get:function(){return zt.isKeyword}});Object.defineProperty(Fe,"isReservedWord",{enumerable:!0,get:function(){return zt.isReservedWord}});Object.defineProperty(Fe,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return zt.isStrictBindOnlyReservedWord}});Object.defineProperty(Fe,"isStrictBindReservedWord",{enumerable:!0,get:function(){return zt.isStrictBindReservedWord}});Object.defineProperty(Fe,"isStrictReservedWord",{enumerable:!0,get:function(){return zt.isStrictReservedWord}});var as=Xo(),zt=zo();});var gt=v(os=>{Object.defineProperty(os,"__esModule",{value:!0});os.default=Nb;var ns=Ht();function Nb(t,e=!0){return typeof t!="string"||e&&((0, ns.isKeyword)(t)||(0, ns.isStrictReservedWord)(t,!0))?!1:(0, ns.isIdentifierName)(t)}});var Zo=v(Gt=>{Object.defineProperty(Gt,"__esModule",{value:!0});Gt.readCodePoint=Qo;Gt.readInt=Go;Gt.readStringContents=Db;var Cb=function(e){return e>=48&&e<=57},Ho={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},_r={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Db(t,e,r,i,s,a){let n=r,o=i,l=s,u="",p=null,P=r,{length:E}=e;for(;;){if(r>=E){a.unterminated(n,o,l),u+=e.slice(P,r);break}let A=e.charCodeAt(r);if(Lb(t,A,e,r)){u+=e.slice(P,r);break}if(A===92){u+=e.slice(P,r);let I=kb(e,r,i,s,t==="template",a);I.ch===null&&!p?p={pos:r,lineStart:i,curLine:s}:u+=I.ch,{pos:r,lineStart:i,curLine:s}=I,P=r;}else A===8232||A===8233?(++r,++s,i=r):A===10||A===13?t==="template"?(u+=e.slice(P,r)+`
|
|
6
|
+
`,++r,A===13&&e.charCodeAt(r)===10&&++r,++s,P=i=r):a.unterminated(n,o,l):++r;}return {pos:r,str:u,firstInvalidLoc:p,lineStart:i,curLine:s,containsInvalid:!!p}}function Lb(t,e,r,i){return t==="template"?e===96||e===36&&r.charCodeAt(i+1)===123:e===(t==="double"?34:39)}function kb(t,e,r,i,s,a){let n=!s;e++;let o=u=>({pos:e,ch:u,lineStart:r,curLine:i}),l=t.charCodeAt(e++);switch(l){case 110:return o(`
|
|
7
|
+
`);case 114:return o("\r");case 120:{let u;return {code:u,pos:e}=ls(t,e,r,i,2,!1,n,a),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return {code:u,pos:e}=Qo(t,e,r,i,n,a),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);a.strictNumericEscape(e-1,r,i);default:if(l>=48&&l<=55){let u=e-1,P=t.slice(u,e+2).match(/^[0-7]+/)[0],E=parseInt(P,8);E>255&&(P=P.slice(0,-1),E=parseInt(P,8)),e+=P.length-1;let A=t.charCodeAt(e);if(P!=="0"||A===56||A===57){if(s)return o(null);a.strictNumericEscape(u,r,i);}return o(String.fromCharCode(E))}return o(String.fromCharCode(l))}}function ls(t,e,r,i,s,a,n,o){let l=e,u;return {n:u,pos:e}=Go(t,e,r,i,16,s,a,!1,o,!n),u===null&&(n?o.invalidEscapeSequence(l,r,i):e=l-1),{code:u,pos:e}}function Go(t,e,r,i,s,a,n,o,l,u){let p=e,P=s===16?Ho.hex:Ho.decBinOct,E=s===16?_r.hex:s===10?_r.dec:s===8?_r.oct:_r.bin,A=!1,I=0;for(let w=0,M=a??1/0;w<M;++w){let B=t.charCodeAt(e),j;if(B===95&&o!=="bail"){let k=t.charCodeAt(e-1),H=t.charCodeAt(e+1);if(o){if(Number.isNaN(H)||!E(H)||P.has(k)||P.has(H)){if(u)return {n:null,pos:e};l.unexpectedNumericSeparator(e,r,i);}}else {if(u)return {n:null,pos:e};l.numericSeparatorInEscapeSequence(e,r,i);}++e;continue}if(B>=97?j=B-97+10:B>=65?j=B-65+10:Cb(B)?j=B-48:j=1/0,j>=s){if(j<=9&&u)return {n:null,pos:e};if(j<=9&&l.invalidDigit(e,r,i,s))j=0;else if(n)j=0,A=!0;else break}++e,I=I*s+j;}return e===p||a!=null&&e-p!==a||A?{n:null,pos:e}:{n:I,pos:e}}function Qo(t,e,r,i,s,a){let n=t.charCodeAt(e),o;if(n===123){if(++e,{code:o,pos:e}=ls(t,e,r,i,t.indexOf("}",e)-e,!0,s,a),++e,o!==null&&o>1114111)if(s)a.invalidCodePoint(e,r,i);else return {code:null,pos:e}}else ({code:o,pos:e}=ls(t,e,r,i,4,!1,s,a));return {code:o,pos:e}}});var Qe=v(J=>{Object.defineProperty(J,"__esModule",{value:!0});J.UPDATE_OPERATORS=J.UNARY_OPERATORS=J.STRING_UNARY_OPERATORS=J.STATEMENT_OR_BLOCK_KEYS=J.NUMBER_UNARY_OPERATORS=J.NUMBER_BINARY_OPERATORS=J.NOT_LOCAL_BINDING=J.LOGICAL_OPERATORS=J.INHERIT_KEYS=J.FOR_INIT_KEYS=J.FLATTENABLE_KEYS=J.EQUALITY_BINARY_OPERATORS=J.COMPARISON_BINARY_OPERATORS=J.COMMENT_KEYS=J.BOOLEAN_UNARY_OPERATORS=J.BOOLEAN_NUMBER_BINARY_OPERATORS=J.BOOLEAN_BINARY_OPERATORS=J.BLOCK_SCOPED_SYMBOL=J.BINARY_OPERATORS=J.ASSIGNMENT_OPERATORS=void 0;J.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];J.FLATTENABLE_KEYS=["body","expressions"];J.FOR_INIT_KEYS=["left","init"];J.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];var _b=J.LOGICAL_OPERATORS=["||","&&","??"];J.UPDATE_OPERATORS=["++","--"];var Mb=J.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],jb=J.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],Bb=J.COMPARISON_BINARY_OPERATORS=[...jb,"in","instanceof"],Fb=J.BOOLEAN_BINARY_OPERATORS=[...Bb,...Mb],el=J.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];J.BINARY_OPERATORS=["+",...el,...Fb,"|>"];J.ASSIGNMENT_OPERATORS=["=","+=",...el.map(t=>t+"="),..._b.map(t=>t+"=")];var Rb=J.BOOLEAN_UNARY_OPERATORS=["delete","!"],Ub=J.NUMBER_UNARY_OPERATORS=["+","-","~"],qb=J.STRING_UNARY_OPERATORS=["typeof"];J.UNARY_OPERATORS=["void","throw",...Rb,...Ub,...qb];J.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};J.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");J.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding");});var Ke=v(Q=>{Object.defineProperty(Q,"__esModule",{value:!0});Q.VISITOR_KEYS=Q.NODE_PARENT_VALIDATIONS=Q.NODE_FIELDS=Q.FLIPPED_ALIAS_KEYS=Q.DEPRECATED_KEYS=Q.BUILDER_KEYS=Q.ALIAS_KEYS=void 0;Q.arrayOf=rl;Q.arrayOfType=il;Q.assertEach=sl;Q.assertNodeOrValueType=Zb;Q.assertNodeType=cs;Q.assertOneOf=Qb;Q.assertOptionalChainStart=tS;Q.assertShape=eS;Q.assertValueType=ds;Q.chain=al;Q.default=nl;Q.defineAliasedType=sS;Q.typeIs=Br;Q.validate=fs;Q.validateArrayOfType=Gb;Q.validateOptional=zb;Q.validateOptionalType=Hb;Q.validateType=Wb;var tl=Et(),jr=Fr(),Kb=Q.VISITOR_KEYS={},Vb=Q.ALIAS_KEYS={},us=Q.FLIPPED_ALIAS_KEYS={},Yb=Q.NODE_FIELDS={},Xb=Q.BUILDER_KEYS={},Jb=Q.DEPRECATED_KEYS={},$b=Q.NODE_PARENT_VALIDATIONS={};function Mr(t){return Array.isArray(t)?"array":t===null?"null":typeof t}function fs(t){return {validate:t}}function Br(t){return typeof t=="string"?cs(t):cs(...t)}function Wb(t){return fs(Br(t))}function zb(t){return {validate:t,optional:!0}}function Hb(t){return {validate:Br(t),optional:!0}}function rl(t){return al(ds("array"),sl(t))}function il(t){return rl(Br(t))}function Gb(t){return fs(il(t))}function sl(t){function e(r,i,s){if(Array.isArray(s))for(let a=0;a<s.length;a++){let n=`${i}[${a}]`,o=s[a];t(r,n,o),process.env.BABEL_TYPES_8_BREAKING&&(0, jr.validateChild)(r,n,o);}}return e.each=t,e}function Qb(...t){function e(r,i,s){if(t.indexOf(s)<0)throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(s)}`)}return e.oneOf=t,e}function cs(...t){function e(r,i,s){for(let a of t)if((0, tl.default)(a,s)){(0, jr.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(s?.type)}`)}return e.oneOfNodeTypes=t,e}function Zb(...t){function e(r,i,s){for(let a of t)if(Mr(s)===a||(0, tl.default)(a,s)){(0, jr.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(s?.type)}`)}return e.oneOfNodeOrValueTypes=t,e}function ds(t){function e(r,i,s){if(!(Mr(s)===t))throw new TypeError(`Property ${i} expected type of ${t} but got ${Mr(s)}`)}return e.type=t,e}function eS(t){function e(r,i,s){let a=[];for(let n of Object.keys(t))try{(0,jr.validateField)(r,n,s[n],t[n]);}catch(o){if(o instanceof TypeError){a.push(o.message);continue}throw o}if(a.length)throw new TypeError(`Property ${i} of ${r.type} expected to have the following:
|
|
8
|
+
${a.join(`
|
|
9
|
+
`)}`)}return e.shapeOf=t,e}function tS(){function t(e){var r;let i=e;for(;e;){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 ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return t}function al(...t){function e(...r){for(let i of t)i(...r);}if(e.chainOf=t,t.length>=2&&"type"in t[0]&&t[0].type==="array"&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return e}var rS=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],iS=["default","optional","deprecated","validate"],ps={};function sS(...t){return (e,r={})=>{let i=r.aliases;if(!i){var s;r.inherits&&(i=(s=ps[r.inherits].aliases)==null?void 0:s.slice()),(i)!=null||(i=[]),r.aliases=i;}let n=t.filter(o=>!i.includes(o));i.unshift(...n),nl(e,r);}}function nl(t,e={}){let r=e.inherits&&ps[e.inherits]||{},i=e.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],p=u.default;if(Array.isArray(p)?p.length>0:p&&typeof p=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[l]={default:Array.isArray(p)?[]:p,optional:u.optional,deprecated:u.deprecated,validate:u.validate};}}let s=e.visitor||r.visitor||[],a=e.aliases||r.aliases||[],n=e.builder||r.builder||e.visitor||[];for(let o of Object.keys(e))if(rS.indexOf(o)===-1)throw new Error(`Unknown type option "${o}" on ${t}`);e.deprecatedAlias&&(Jb[e.deprecatedAlias]=t);for(let o of s.concat(n))i[o]=i[o]||{};for(let o of Object.keys(i)){let l=i[o];l.default!==void 0&&n.indexOf(o)===-1&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=ds(Mr(l.default)));for(let u of Object.keys(l))if(iS.indexOf(u)===-1)throw new Error(`Unknown field key "${u}" on ${t}.${o}`)}Kb[t]=e.visitor=s,Xb[t]=e.builder=n,Yb[t]=e.fields=i,Vb[t]=e.aliases=a,a.forEach(o=>{us[o]=us[o]||[],us[o].push(t);}),e.validate&&($b[t]=e.validate),ps[t]=e;}});var ys=v(ge=>{Object.defineProperty(ge,"__esModule",{value:!0});ge.patternLikeCommon=ge.functionTypeAnnotationCommon=ge.functionDeclarationCommon=ge.functionCommon=ge.classMethodOrPropertyCommon=ge.classMethodOrDeclareMethodCommon=void 0;var ye=Et(),aS=gt(),ol=Ht(),nS=Zo(),Qt=Qe(),c=Ke(),D=(0, c.defineAliasedType)("Standardized");D("ArrayExpression",{fields:{elements:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});D("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, c.assertValueType)("string");let t=(0, c.assertOneOf)(...Qt.ASSIGNMENT_OPERATORS),e=(0, c.assertOneOf)("=");return function(r,i,s){((0, ye.default)("Pattern",r.left)?e:t)(r,i,s);}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, c.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, c.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0, c.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});D("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0, c.assertOneOf)(...Qt.BINARY_OPERATORS)},left:{validate:function(){let t=(0, c.assertNodeType)("Expression"),e=(0, c.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,a){(i.operator==="in"?e:t)(i,s,a);},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0, c.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});D("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0, c.assertValueType)("string")}}});D("Directive",{visitor:["value"],fields:{value:{validate:(0, c.assertNodeType)("DirectiveLiteral")}}});D("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0, c.assertValueType)("string")}}});D("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Directive"))),default:[]},body:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]});D("BreakStatement",{visitor:["label"],fields:{label:{validate:(0, c.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});D("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0, c.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, c.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0, c.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, c.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});D("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0, c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0, c.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});D("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0, c.assertNodeType)("Expression")},consequent:{validate:(0, c.assertNodeType)("Expression")},alternate:{validate:(0, c.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});D("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0, c.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});D("DebuggerStatement",{aliases:["Statement"]});D("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0, c.assertNodeType)("Expression")},body:{validate:(0, c.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});D("EmptyStatement",{aliases:["Statement"]});D("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0, c.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});D("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0, c.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, c.assertEach)((0, c.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0, c.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});D("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, c.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, c.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0, c.assertNodeType)("Expression")},body:{validate:(0, c.assertNodeType)("Statement")}}});D("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0, c.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0, c.assertNodeType)("Expression"),optional:!0},update:{validate:(0, c.assertNodeType)("Expression"),optional:!0},body:{validate:(0, c.assertNodeType)("Statement")}}});var At=()=>({params:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});ge.functionCommon=At;var ft=()=>({returnType:{validate:(0, c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, c.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});ge.functionTypeAnnotationCommon=ft;var ll=()=>Object.assign({},At(),{declare:{validate:(0, c.assertValueType)("boolean"),optional:!0},id:{validate:(0, c.assertNodeType)("Identifier"),optional:!0}});ge.functionDeclarationCommon=ll;D("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},ll(),ft(),{body:{validate:(0, c.assertNodeType)("BlockStatement")},predicate:{validate:(0, c.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return ()=>{};let t=(0, c.assertNodeType)("Identifier");return function(e,r,i){(0, ye.default)("ExportDefaultDeclaration",e)||t(i,"id",i.id);}}()});D("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},At(),ft(),{id:{validate:(0, c.assertNodeType)("Identifier"),optional:!0},body:{validate:(0, c.assertNodeType)("BlockStatement")},predicate:{validate:(0, c.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var vt=()=>({typeAnnotation:{validate:(0, c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0, c.assertValueType)("boolean"),optional:!0},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0}});ge.patternLikeCommon=vt;D("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},vt(),{name:{validate:(0, c.chain)((0, c.assertValueType)("string"),Object.assign(function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&!(0, aS.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"}))}}),validate(t,e,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i=/\.(\w+)$/.exec(e);if(!i)return;let[,s]=i,a={computed:!1};if(s==="property"){if((0, ye.default)("MemberExpression",t,a)||(0, ye.default)("OptionalMemberExpression",t,a))return}else if(s==="key"){if((0, ye.default)("Property",t,a)||(0, ye.default)("Method",t,a))return}else if(s==="exported"){if((0, ye.default)("ExportSpecifier",t))return}else if(s==="imported"){if((0, ye.default)("ImportSpecifier",t,{imported:r}))return}else if(s==="meta"&&(0, ye.default)("MetaProperty",t,{meta:r}))return;if(((0, ol.isKeyword)(r.name)||(0, ol.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}});D("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0, c.assertNodeType)("Expression")},consequent:{validate:(0, c.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0, c.assertNodeType)("Statement")}}});D("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0, c.assertNodeType)("Identifier")},body:{validate:(0, c.assertNodeType)("Statement")}}});D("StringLiteral",{builder:["value"],fields:{value:{validate:(0, c.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});D("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0, c.chain)((0, c.assertValueType)("number"),Object.assign(function(t,e,r){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});D("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});D("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0, c.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});D("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0, c.assertValueType)("string")},flags:{validate:(0, c.chain)((0, c.assertValueType)("string"),Object.assign(function(t,e,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i=/[^gimsuy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}});D("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0, c.assertOneOf)(...Qt.LOGICAL_OPERATORS)},left:{validate:(0, c.assertNodeType)("Expression")},right:{validate:(0, c.assertNodeType)("Expression")}}});D("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0, c.assertNodeType)("Expression","Super")},property:{validate:function(){let t=(0, c.assertNodeType)("Identifier","PrivateName"),e=(0, c.assertNodeType)("Expression"),r=function(i,s,a){(i.computed?e:t)(i,s,a);};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, c.assertOneOf)(!0,!1),optional:!0}})});D("NewExpression",{inherits:"CallExpression"});D("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0, c.assertValueType)("string")},sourceType:{validate:(0, c.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0, c.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Directive"))),default:[]},body:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]});D("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}});D("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},At(),ft(),{kind:Object.assign({validate:(0, c.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let t=(0, c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),e=(0, c.assertNodeType)("Expression"),r=function(i,s,a){(i.computed?e:t)(i,s,a);};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0, c.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});D("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let t=(0, c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),e=(0, c.assertNodeType)("Expression");return Object.assign(function(i,s,a){(i.computed?e:t)(i,s,a);},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0, c.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0, c.chain)((0, c.assertValueType)("boolean"),Object.assign(function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&t.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")},{type:"boolean"}),function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!(0, ye.default)("Identifier",t.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}),default:!1},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){let t=(0, c.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),e=(0, c.assertNodeType)("Expression");return function(r,i,s){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0, ye.default)("ObjectPattern",r)?t:e)(s,"value",s.value);}}()});D("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},vt(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, c.assertNodeType)("LVal")}}),validate(t,e){if(!process.env.BABEL_TYPES_8_BREAKING)return;let r=/(\w+)\[(\d+)\]/.exec(e);if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(t[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}});D("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, c.assertNodeType)("Expression"),optional:!0}}});D("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Expression")))}},aliases:["Expression"]});D("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0, c.assertNodeType)("Expression")}}});D("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0, c.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Statement")))}}});D("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0, c.assertNodeType)("Expression")},cases:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("SwitchCase")))}}});D("ThisExpression",{aliases:["Expression"]});D("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, c.assertNodeType)("Expression")}}});D("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0, c.chain)((0, c.assertNodeType)("BlockStatement"),Object.assign(function(t){if(process.env.BABEL_TYPES_8_BREAKING&&!t.handler&&!t.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0, c.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0, c.assertNodeType)("BlockStatement")}}});D("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0, c.assertNodeType)("Expression")},operator:{validate:(0, c.assertOneOf)(...Qt.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});D("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, c.assertNodeType)("Identifier","MemberExpression"):(0, c.assertNodeType)("Expression")},operator:{validate:(0, c.assertOneOf)(...Qt.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});D("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0, c.assertValueType)("boolean"),optional:!0},kind:{validate:(0, c.assertOneOf)("var","let","const","using","await using")},declarations:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("VariableDeclarator")))}},validate(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&(0, ye.default)("ForXStatement",t,{left:r})&&r.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${t.type}`)}});D("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, c.assertNodeType)("LVal");let t=(0, c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),e=(0, c.assertNodeType)("Identifier");return function(r,i,s){(r.init?t:e)(r,i,s);}}()},definite:{optional:!0,validate:(0, c.assertValueType)("boolean")},init:{optional:!0,validate:(0, c.assertNodeType)("Expression")}}});D("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0, c.assertNodeType)("Expression")},body:{validate:(0, c.assertNodeType)("Statement")}}});D("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0, c.assertNodeType)("Expression")},body:{validate:(0, c.assertNodeType)("Statement")}}});D("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},vt(),{left:{validate:(0, c.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0, c.assertNodeType)("Expression")},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0}})});D("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},vt(),{elements:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeOrValueType)("null","PatternLike","LVal")))}})});D("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},At(),ft(),{expression:{validate:(0, c.assertValueType)("boolean")},body:{validate:(0, c.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0, c.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});D("ClassBody",{visitor:["body"],fields:{body:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}});D("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0, c.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0, c.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, c.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, c.assertNodeType)("Expression")},superTypeParameters:{validate:(0, c.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0, c.assertNodeType)("InterfaceExtends"),optional:!0}}});D("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0, c.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0, c.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, c.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, c.assertNodeType)("Expression")},superTypeParameters:{validate:(0, c.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0, c.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0, c.assertValueType)("boolean"),optional:!0},abstract:{validate:(0, c.assertValueType)("boolean"),optional:!0}},validate:function(){let t=(0, c.assertNodeType)("Identifier");return function(e,r,i){process.env.BABEL_TYPES_8_BREAKING&&((0, ye.default)("ExportDefaultDeclaration",e)||t(i,"id",i.id));}}()});D("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0, c.assertNodeType)("StringLiteral")},exportKind:(0, c.validateOptional)((0, c.assertOneOf)("type","value")),attributes:{optional:!0,validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("ImportAttribute")))}}});D("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0, c.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0, c.validateOptional)((0, c.assertOneOf)("value"))}});D("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0, c.chain)((0, c.assertNodeType)("Declaration"),Object.assign(function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&t.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")},{oneOfNodeTypes:["Declaration"]}),function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&t.source)throw new TypeError("Cannot export a declaration from a source")})},attributes:{optional:!0,validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)(function(){let t=(0, c.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),e=(0, c.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(r,i,s){(r.source?t:e)(r,i,s);}:t}()))},source:{validate:(0, c.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0, c.validateOptional)((0, c.assertOneOf)("type","value"))}});D("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, c.assertNodeType)("Identifier")},exported:{validate:(0, c.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0, c.assertOneOf)("type","value"),optional:!0}}});D("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, c.assertNodeType)("VariableDeclaration","LVal");let t=(0, c.assertNodeType)("VariableDeclaration"),e=(0, c.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(r,i,s){(0, ye.default)("VariableDeclaration",s)?t(r,i,s):e(r,i,s);}}()},right:{validate:(0, c.assertNodeType)("Expression")},body:{validate:(0, c.assertNodeType)("Statement")},await:{default:!1}}});D("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("ImportAttribute")))},module:{optional:!0,validate:(0, c.assertValueType)("boolean")},phase:{default:null,validate:(0, c.assertOneOf)("source","defer")},specifiers:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0, c.assertNodeType)("StringLiteral")},importKind:{validate:(0, c.assertOneOf)("type","typeof","value"),optional:!0}}});D("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, c.assertNodeType)("Identifier")}}});D("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, c.assertNodeType)("Identifier")}}});D("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, c.assertNodeType)("Identifier")},imported:{validate:(0, c.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0, c.assertOneOf)("type","typeof","value"),optional:!0}}});D("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0, c.assertOneOf)("source","defer")},source:{validate:(0, c.assertNodeType)("Expression")},options:{validate:(0, c.assertNodeType)("Expression"),optional:!0}}});D("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0, c.chain)((0, c.assertNodeType)("Identifier"),Object.assign(function(t,e,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0, ye.default)("Identifier",t.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0, c.assertNodeType)("Identifier")}}});var Rr=()=>({abstract:{validate:(0, c.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0, c.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0, c.assertValueType)("boolean"),optional:!0},key:{validate:(0, c.chain)(function(){let t=(0, c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),e=(0, c.assertNodeType)("Expression");return function(r,i,s){(r.computed?e:t)(r,i,s);}}(),(0, c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});ge.classMethodOrPropertyCommon=Rr;var hs=()=>Object.assign({},At(),Rr(),{params:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0, c.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0, c.chain)((0, c.assertValueType)("string"),(0, c.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0}});ge.classMethodOrDeclareMethodCommon=hs;D("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},hs(),ft(),{body:{validate:(0, c.assertNodeType)("BlockStatement")}})});D("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},vt(),{properties:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("RestElement","ObjectProperty")))}})});D("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0, c.assertNodeType)("Expression")}}});D("Super",{aliases:["Expression"]});D("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0, c.assertNodeType)("Expression")},quasi:{validate:(0, c.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0, c.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});D("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0, c.chain)((0, c.assertShape)({raw:{validate:(0, c.assertValueType)("string")},cooked:{validate:(0, c.assertValueType)("string"),optional:!0}}),function(e){let r=e.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:a,firstInvalidLoc:n}=(0, nS.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");e.value.cooked=n?null:a;})},tail:{default:!1}}});D("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("TemplateElement")))},expressions:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Expression","TSType")),function(t,e,r){if(t.quasis.length!==r.length+1)throw new TypeError(`Number of ${t.type} quasis should be exactly one more than the number of expressions.
|
|
10
|
+
Expected ${r.length+1} quasis but got ${t.quasis.length}`)})}}});D("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0, c.chain)((0, c.assertValueType)("boolean"),Object.assign(function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!t.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0, c.assertNodeType)("Expression")}}});D("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0, c.assertNodeType)("Expression")}}});D("Import",{aliases:["Expression"]});D("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0, c.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});D("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, c.assertNodeType)("Identifier")}}});D("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0, c.assertNodeType)("Expression")},property:{validate:function(){let t=(0, c.assertNodeType)("Identifier"),e=(0, c.assertNodeType)("Expression");return Object.assign(function(i,s,a){(i.computed?e:t)(i,s,a);},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, c.chain)((0, c.assertValueType)("boolean"),(0, c.assertOptionalChainStart)()):(0, c.assertValueType)("boolean")}}});D("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0, c.assertNodeType)("Expression")},arguments:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, c.chain)((0, c.assertValueType)("boolean"),(0, c.assertOptionalChainStart)()):(0, c.assertValueType)("boolean")},typeArguments:{validate:(0, c.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, c.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}});D("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Rr(),{value:{validate:(0, c.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, c.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0, c.assertValueType)("boolean"),optional:!0},declare:{validate:(0, c.assertValueType)("boolean"),optional:!0},variance:{validate:(0, c.assertNodeType)("Variance"),optional:!0}})});D("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Rr(),{key:{validate:(0, c.chain)(function(){let t=(0, c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),e=(0, c.assertNodeType)("Expression");return function(r,i,s){(r.computed?e:t)(r,i,s);}}(),(0, c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0, c.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, c.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0, c.assertValueType)("boolean"),optional:!0},declare:{validate:(0, c.assertValueType)("boolean"),optional:!0},variance:{validate:(0, c.assertNodeType)("Variance"),optional:!0}})});D("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0, c.assertNodeType)("PrivateName")},value:{validate:(0, c.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0, c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0, c.assertValueType)("boolean"),default:!1},readonly:{validate:(0, c.assertValueType)("boolean"),optional:!0},definite:{validate:(0, c.assertValueType)("boolean"),optional:!0},variance:{validate:(0, c.assertNodeType)("Variance"),optional:!0}}});D("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},hs(),ft(),{kind:{validate:(0, c.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0, c.assertNodeType)("PrivateName")},body:{validate:(0, c.assertNodeType)("BlockStatement")}})});D("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0, c.assertNodeType)("Identifier")}}});D("StaticBlock",{visitor:["body"],fields:{body:{validate:(0, c.chain)((0, c.assertValueType)("array"),(0, c.assertEach)((0, c.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]});});var ul=v(()=>{var g=Ke(),R=(0, g.defineAliasedType)("Flow"),ms=t=>{let e=t==="DeclareClass";R(t,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...e?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0, g.validateType)("Identifier"),typeParameters:(0, g.validateOptionalType)("TypeParameterDeclaration"),extends:(0, g.validateOptional)((0, g.arrayOfType)("InterfaceExtends"))},e?{mixins:(0, g.validateOptional)((0, g.arrayOfType)("InterfaceExtends")),implements:(0, g.validateOptional)((0, g.arrayOfType)("ClassImplements"))}:{},{body:(0, g.validateType)("ObjectTypeAnnotation")})});};R("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0, g.validateType)("FlowType")}});R("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, g.validate)((0, g.assertValueType)("boolean"))}});R("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0, g.validateType)("Identifier"),typeParameters:(0, g.validateOptionalType)("TypeParameterInstantiation")}});ms("DeclareClass");R("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, g.validateType)("Identifier"),predicate:(0, g.validateOptionalType)("DeclaredPredicate")}});ms("DeclareInterface");R("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, g.validateType)(["Identifier","StringLiteral"]),body:(0, g.validateType)("BlockStatement"),kind:(0, g.validateOptional)((0, g.assertOneOf)("CommonJS","ES"))}});R("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0, g.validateType)("TypeAnnotation")}});R("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, g.validateType)("Identifier"),typeParameters:(0, g.validateOptionalType)("TypeParameterDeclaration"),right:(0, g.validateType)("FlowType")}});R("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, g.validateType)("Identifier"),typeParameters:(0, g.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, g.validateOptionalType)("FlowType"),impltype:(0, g.validateOptionalType)("FlowType")}});R("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, g.validateType)("Identifier")}});R("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0, g.validateOptionalType)("Flow"),specifiers:(0, g.validateOptional)((0, g.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0, g.validateOptionalType)("StringLiteral"),default:(0, g.validateOptional)((0, g.assertValueType)("boolean"))}});R("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0, g.validateType)("StringLiteral"),exportKind:(0, g.validateOptional)((0, g.assertOneOf)("type","value"))}});R("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0, g.validateType)("Flow")}});R("ExistsTypeAnnotation",{aliases:["FlowType"]});R("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0, g.validateOptionalType)("TypeParameterDeclaration"),params:(0, g.validate)((0, g.arrayOfType)("FunctionTypeParam")),rest:(0, g.validateOptionalType)("FunctionTypeParam"),this:(0, g.validateOptionalType)("FunctionTypeParam"),returnType:(0, g.validateType)("FlowType")}});R("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0, g.validateOptionalType)("Identifier"),typeAnnotation:(0, g.validateType)("FlowType"),optional:(0, g.validateOptional)((0, g.assertValueType)("boolean"))}});R("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0, g.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0, g.validateOptionalType)("TypeParameterInstantiation")}});R("InferredPredicate",{aliases:["FlowPredicate"]});R("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0, g.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0, g.validateOptionalType)("TypeParameterInstantiation")}});ms("InterfaceDeclaration");R("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0, g.validateOptional)((0, g.arrayOfType)("InterfaceExtends")),body:(0, g.validateType)("ObjectTypeAnnotation")}});R("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, g.validate)((0, g.arrayOfType)("FlowType"))}});R("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0, g.validateType)("FlowType")}});R("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, g.validate)((0, g.assertValueType)("number"))}});R("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0, g.validate)((0, g.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0, g.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0, g.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0, g.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0, g.assertValueType)("boolean"),default:!1},inexact:(0, g.validateOptional)((0, g.assertValueType)("boolean"))}});R("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0, g.validateType)("Identifier"),value:(0, g.validateType)("FlowType"),optional:(0, g.validate)((0, g.assertValueType)("boolean")),static:(0, g.validate)((0, g.assertValueType)("boolean")),method:(0, g.validate)((0, g.assertValueType)("boolean"))}});R("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0, g.validateType)("FlowType"),static:(0, g.validate)((0, g.assertValueType)("boolean"))}});R("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0, g.validateOptionalType)("Identifier"),key:(0, g.validateType)("FlowType"),value:(0, g.validateType)("FlowType"),static:(0, g.validate)((0, g.assertValueType)("boolean")),variance:(0, g.validateOptionalType)("Variance")}});R("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0, g.validateType)(["Identifier","StringLiteral"]),value:(0, g.validateType)("FlowType"),kind:(0, g.validate)((0, g.assertOneOf)("init","get","set")),static:(0, g.validate)((0, g.assertValueType)("boolean")),proto:(0, g.validate)((0, g.assertValueType)("boolean")),optional:(0, g.validate)((0, g.assertValueType)("boolean")),variance:(0, g.validateOptionalType)("Variance"),method:(0, g.validate)((0, g.assertValueType)("boolean"))}});R("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0, g.validateType)("FlowType")}});R("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, g.validateType)("Identifier"),typeParameters:(0, g.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, g.validateOptionalType)("FlowType"),impltype:(0, g.validateType)("FlowType")}});R("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0, g.validateType)("Identifier"),qualification:(0, g.validateType)(["Identifier","QualifiedTypeIdentifier"])}});R("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, g.validate)((0, g.assertValueType)("string"))}});R("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, g.validate)((0, g.arrayOfType)("FlowType"))}});R("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0, g.validateType)("FlowType")}});R("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, g.validateType)("Identifier"),typeParameters:(0, g.validateOptionalType)("TypeParameterDeclaration"),right:(0, g.validateType)("FlowType")}});R("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0, g.validateType)("FlowType")}});R("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0, g.validateType)("Expression"),typeAnnotation:(0, g.validateType)("TypeAnnotation")}});R("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0, g.validate)((0, g.assertValueType)("string")),bound:(0, g.validateOptionalType)("TypeAnnotation"),default:(0, g.validateOptionalType)("FlowType"),variance:(0, g.validateOptionalType)("Variance")}});R("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0, g.validate)((0, g.arrayOfType)("TypeParameter"))}});R("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0, g.validate)((0, g.arrayOfType)("FlowType"))}});R("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, g.validate)((0, g.arrayOfType)("FlowType"))}});R("Variance",{builder:["kind"],fields:{kind:(0, g.validate)((0, g.assertOneOf)("minus","plus"))}});R("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});R("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0, g.validateType)("Identifier"),body:(0, g.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}});R("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, g.validate)((0, g.assertValueType)("boolean")),members:(0, g.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0, g.validate)((0, g.assertValueType)("boolean"))}});R("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, g.validate)((0, g.assertValueType)("boolean")),members:(0, g.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0, g.validate)((0, g.assertValueType)("boolean"))}});R("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, g.validate)((0, g.assertValueType)("boolean")),members:(0, g.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0, g.validate)((0, g.assertValueType)("boolean"))}});R("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0, g.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0, g.validate)((0, g.assertValueType)("boolean"))}});R("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, g.validateType)("Identifier"),init:(0, g.validateType)("BooleanLiteral")}});R("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, g.validateType)("Identifier"),init:(0, g.validateType)("NumericLiteral")}});R("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, g.validateType)("Identifier"),init:(0, g.validateType)("StringLiteral")}});R("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, g.validateType)("Identifier")}});R("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, g.validateType)("FlowType"),indexType:(0, g.validateType)("FlowType")}});R("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, g.validateType)("FlowType"),indexType:(0, g.validateType)("FlowType"),optional:(0, g.validate)((0, g.assertValueType)("boolean"))}});});var cl=v(()=>{var ee=Ke(),me=(0, ee.defineAliasedType)("JSX");me("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0, ee.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0, ee.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});me("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0, ee.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});me("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0, ee.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0, ee.assertNodeType)("JSXClosingElement")},children:{validate:(0, ee.chain)((0, ee.assertValueType)("array"),(0, ee.assertEach)((0, ee.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0, ee.assertValueType)("boolean"),optional:!0}})});me("JSXEmptyExpression",{});me("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, ee.assertNodeType)("Expression","JSXEmptyExpression")}}});me("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, ee.assertNodeType)("Expression")}}});me("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0, ee.assertValueType)("string")}}});me("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0, ee.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0, ee.assertNodeType)("JSXIdentifier")}}});me("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0, ee.assertNodeType)("JSXIdentifier")},name:{validate:(0, ee.assertNodeType)("JSXIdentifier")}}});me("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0, ee.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0, ee.chain)((0, ee.assertValueType)("array"),(0, ee.assertEach)((0, ee.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0, ee.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});me("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0, ee.assertNodeType)("Expression")}}});me("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0, ee.assertValueType)("string")}}});me("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0, ee.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0, ee.assertNodeType)("JSXClosingFragment")},children:{validate:(0, ee.chain)((0, ee.assertValueType)("array"),(0, ee.assertEach)((0, ee.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}});me("JSXOpeningFragment",{aliases:["Immutable"]});me("JSXClosingFragment",{aliases:["Immutable"]});});var Ss=v(Ze=>{Object.defineProperty(Ze,"__esModule",{value:!0});Ze.PLACEHOLDERS_FLIPPED_ALIAS=Ze.PLACEHOLDERS_ALIAS=Ze.PLACEHOLDERS=void 0;var oS=Ke(),lS=Ze.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],bs=Ze.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let t of lS){let e=oS.ALIAS_KEYS[t];e!=null&&e.length&&(bs[t]=e);}var Ts=Ze.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(bs).forEach(t=>{bs[t].forEach(e=>{Object.hasOwnProperty.call(Ts,e)||(Ts[e]=[]),Ts[e].push(t);});});});var pl=v(()=>{var Ur=Ke(),uS=Ss(),xs=(0, Ur.defineAliasedType)("Miscellaneous");xs("Noop",{visitor:[]});xs("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0, Ur.assertNodeType)("Identifier")},expectedNode:{validate:(0, Ur.assertOneOf)(...uS.PLACEHOLDERS)}}});xs("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0, Ur.assertValueType)("string")}}});});var fl=v(()=>{var Z=Ke();(0, Z.default)("ArgumentPlaceholder",{});(0, Z.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0, Z.assertNodeType)("Expression")},callee:{validate:(0, Z.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0, Z.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0, Z.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0, Z.assertNodeType)("StringLiteral")}}});(0, Z.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0, Z.assertNodeType)("Expression")}}});(0, Z.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0, Z.assertNodeType)("BlockStatement")},async:{validate:(0, Z.assertValueType)("boolean"),default:!1}}});(0, Z.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, Z.assertNodeType)("Identifier")}}});(0, Z.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0, Z.chain)((0, Z.assertValueType)("array"),(0, Z.assertEach)((0, Z.assertNodeType)("ObjectProperty","SpreadElement")))}}});(0, Z.default)("TupleExpression",{fields:{elements:{validate:(0, Z.chain)((0, Z.assertValueType)("array"),(0, Z.assertEach)((0, Z.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]});(0, Z.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0, Z.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0, Z.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0, Z.assertNodeType)("Program")}},aliases:["Expression"]});(0, Z.default)("TopicReference",{aliases:["Expression"]});(0, Z.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0, Z.assertNodeType)("Expression")}},aliases:["Expression"]});(0, Z.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0, Z.assertNodeType)("Expression")}},aliases:["Expression"]});(0, Z.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});});var xl=v(()=>{var N=Ke(),dl=ys(),cS=Et(),Y=(0, N.defineAliasedType)("TypeScript"),Ae=(0, N.assertValueType)("boolean"),hl=()=>({returnType:{validate:(0, N.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, N.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});Y("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0, N.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0, N.assertValueType)("boolean"),optional:!0},parameter:{validate:(0, N.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0, N.assertValueType)("boolean"),optional:!0},decorators:{validate:(0, N.chain)((0, N.assertValueType)("array"),(0, N.assertEach)((0, N.assertNodeType)("Decorator"))),optional:!0}}});Y("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0, dl.functionDeclarationCommon)(),hl())});Y("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0, dl.classMethodOrDeclareMethodCommon)(),hl())});Y("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0, N.validateType)("TSEntityName"),right:(0, N.validateType)("Identifier")}});var qr=()=>({typeParameters:(0, N.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0, N.validateArrayOfType)(["ArrayPattern","Identifier","ObjectPattern","RestElement"]),typeAnnotation:(0, N.validateOptionalType)("TSTypeAnnotation")}),yl={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:qr()};Y("TSCallSignatureDeclaration",yl);Y("TSConstructSignatureDeclaration",yl);var ml=()=>({key:(0, N.validateType)("Expression"),computed:{default:!1},optional:(0, N.validateOptional)(Ae)});Y("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},ml(),{readonly:(0, N.validateOptional)(Ae),typeAnnotation:(0, N.validateOptionalType)("TSTypeAnnotation"),kind:{validate:(0, N.assertOneOf)("get","set")}})});Y("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},qr(),ml(),{kind:{validate:(0, N.assertOneOf)("method","get","set")}})});Y("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0, N.validateOptional)(Ae),static:(0, N.validateOptional)(Ae),parameters:(0, N.validateArrayOfType)("Identifier"),typeAnnotation:(0, N.validateOptionalType)("TSTypeAnnotation")}});var pS=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let t of pS)Y(t,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Y("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var Tl={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Y("TSFunctionType",Object.assign({},Tl,{fields:qr()}));Y("TSConstructorType",Object.assign({},Tl,{fields:Object.assign({},qr(),{abstract:(0, N.validateOptional)(Ae)})}));Y("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0, N.validateType)("TSEntityName"),typeParameters:(0, N.validateOptionalType)("TSTypeParameterInstantiation")}});Y("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0, N.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0, N.validateOptionalType)("TSTypeAnnotation"),asserts:(0, N.validateOptional)(Ae)}});Y("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0, N.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0, N.validateOptionalType)("TSTypeParameterInstantiation")}});Y("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0, N.validateArrayOfType)("TSTypeElement")}});Y("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0, N.validateType)("TSType")}});Y("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0, N.validateArrayOfType)(["TSType","TSNamedTupleMember"])}});Y("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, N.validateType)("TSType")}});Y("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, N.validateType)("TSType")}});Y("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0, N.validateType)("Identifier"),optional:{validate:Ae,default:!1},elementType:(0, N.validateType)("TSType")}});var bl={aliases:["TSType"],visitor:["types"],fields:{types:(0, N.validateArrayOfType)("TSType")}};Y("TSUnionType",bl);Y("TSIntersectionType",bl);Y("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0, N.validateType)("TSType"),extendsType:(0, N.validateType)("TSType"),trueType:(0, N.validateType)("TSType"),falseType:(0, N.validateType)("TSType")}});Y("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0, N.validateType)("TSTypeParameter")}});Y("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, N.validateType)("TSType")}});Y("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0, N.validate)((0, N.assertValueType)("string")),typeAnnotation:(0, N.validateType)("TSType")}});Y("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0, N.validateType)("TSType"),indexType:(0, N.validateType)("TSType")}});Y("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0, N.validateOptional)((0, N.assertOneOf)(!0,!1,"+","-")),typeParameter:(0, N.validateType)("TSTypeParameter"),optional:(0, N.validateOptional)((0, N.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0, N.validateOptionalType)("TSType"),nameType:(0, N.validateOptionalType)("TSType")}});Y("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let t=(0, N.assertNodeType)("NumericLiteral","BigIntLiteral"),e=(0, N.assertOneOf)("-"),r=(0, N.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function i(s,a,n){(0, cS.default)("UnaryExpression",n)?(e(n,"operator",n.operator),t(n,"argument",n.argument)):r(s,a,n);}return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i}()}}});Y("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0, N.validateType)("TSEntityName"),typeParameters:(0, N.validateOptionalType)("TSTypeParameterInstantiation")}});Y("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0, N.validateOptional)(Ae),id:(0, N.validateType)("Identifier"),typeParameters:(0, N.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0, N.validateOptional)((0, N.arrayOfType)("TSExpressionWithTypeArguments")),body:(0, N.validateType)("TSInterfaceBody")}});Y("TSInterfaceBody",{visitor:["body"],fields:{body:(0, N.validateArrayOfType)("TSTypeElement")}});Y("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0, N.validateOptional)(Ae),id:(0, N.validateType)("Identifier"),typeParameters:(0, N.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0, N.validateType)("TSType")}});Y("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0, N.validateType)("Expression"),typeParameters:(0, N.validateOptionalType)("TSTypeParameterInstantiation")}});var Sl={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0, N.validateType)("Expression"),typeAnnotation:(0, N.validateType)("TSType")}};Y("TSAsExpression",Sl);Y("TSSatisfiesExpression",Sl);Y("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0, N.validateType)("TSType"),expression:(0, N.validateType)("Expression")}});Y("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0, N.validateOptional)(Ae),const:(0, N.validateOptional)(Ae),id:(0, N.validateType)("Identifier"),members:(0, N.validateArrayOfType)("TSEnumMember"),initializer:(0, N.validateOptionalType)("Expression")}});Y("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0, N.validateType)(["Identifier","StringLiteral"]),initializer:(0, N.validateOptionalType)("Expression")}});Y("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0, N.validateOptional)(Ae),global:(0, N.validateOptional)(Ae),id:(0, N.validateType)(["Identifier","StringLiteral"]),body:(0, N.validateType)(["TSModuleBlock","TSModuleDeclaration"])}});Y("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0, N.validateArrayOfType)("Statement")}});Y("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0, N.validateType)("StringLiteral"),qualifier:(0, N.validateOptionalType)("TSEntityName"),typeParameters:(0, N.validateOptionalType)("TSTypeParameterInstantiation")}});Y("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0, N.validate)(Ae),id:(0, N.validateType)("Identifier"),moduleReference:(0, N.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0, N.assertOneOf)("type","value"),optional:!0}}});Y("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0, N.validateType)("StringLiteral")}});Y("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0, N.validateType)("Expression")}});Y("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0, N.validateType)("Expression")}});Y("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0, N.validateType)("Identifier")}});Y("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0, N.assertNodeType)("TSType")}}});Y("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0, N.chain)((0, N.assertValueType)("array"),(0, N.assertEach)((0, N.assertNodeType)("TSType")))}}});Y("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0, N.chain)((0, N.assertValueType)("array"),(0, N.assertEach)((0, N.assertNodeType)("TSTypeParameter")))}}});Y("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0, N.assertValueType)("string")},in:{validate:(0, N.assertValueType)("boolean"),optional:!0},out:{validate:(0, N.assertValueType)("boolean"),optional:!0},const:{validate:(0, N.assertValueType)("boolean"),optional:!0},constraint:{validate:(0, N.assertNodeType)("TSType"),optional:!0},default:{validate:(0, N.assertNodeType)("TSType"),optional:!0}}});});var Pl=v(Kr=>{Object.defineProperty(Kr,"__esModule",{value:!0});Kr.DEPRECATED_ALIASES=void 0;Kr.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"};});var De=v(Te=>{Object.defineProperty(Te,"__esModule",{value:!0});Object.defineProperty(Te,"ALIAS_KEYS",{enumerable:!0,get:function(){return pe.ALIAS_KEYS}});Object.defineProperty(Te,"BUILDER_KEYS",{enumerable:!0,get:function(){return pe.BUILDER_KEYS}});Object.defineProperty(Te,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return Ps.DEPRECATED_ALIASES}});Object.defineProperty(Te,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return pe.DEPRECATED_KEYS}});Object.defineProperty(Te,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return pe.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Te,"NODE_FIELDS",{enumerable:!0,get:function(){return pe.NODE_FIELDS}});Object.defineProperty(Te,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return pe.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Te,"PLACEHOLDERS",{enumerable:!0,get:function(){return Zt.PLACEHOLDERS}});Object.defineProperty(Te,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Zt.PLACEHOLDERS_ALIAS}});Object.defineProperty(Te,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Zt.PLACEHOLDERS_FLIPPED_ALIAS}});Te.TYPES=void 0;Object.defineProperty(Te,"VISITOR_KEYS",{enumerable:!0,get:function(){return pe.VISITOR_KEYS}});var et=Ro();ys();ul();cl();pl();fl();xl();var pe=Ke(),Zt=Ss(),Ps=Pl();Object.keys(Ps.DEPRECATED_ALIASES).forEach(t=>{pe.FLIPPED_ALIAS_KEYS[t]=pe.FLIPPED_ALIAS_KEYS[Ps.DEPRECATED_ALIASES[t]];});et(pe.VISITOR_KEYS);et(pe.ALIAS_KEYS);et(pe.FLIPPED_ALIAS_KEYS);et(pe.NODE_FIELDS);et(pe.BUILDER_KEYS);et(pe.DEPRECATED_KEYS);et(Zt.PLACEHOLDERS_ALIAS);et(Zt.PLACEHOLDERS_FLIPPED_ALIAS);Te.TYPES=[].concat(Object.keys(pe.VISITOR_KEYS),Object.keys(pe.FLIPPED_ALIAS_KEYS),Object.keys(pe.DEPRECATED_KEYS));});var Fr=v(er=>{Object.defineProperty(er,"__esModule",{value:!0});er.default=fS;er.validateChild=Al;er.validateField=gl;var El=De();function fS(t,e,r){if(!t)return;let i=El.NODE_FIELDS[t.type];if(!i)return;let s=i[e];gl(t,e,r,s),Al(t,e,r);}function gl(t,e,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(t,e,r));}function Al(t,e,r){if(r==null)return;let i=El.NODE_PARENT_VALIDATIONS[r.type];i&&i(t,e,r);}});var vl=v(Es=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.default=yS;var dS=Fr(),hS=ve();function yS(t){let e=hS.BUILDER_KEYS[t.type];for(let r of e)(0, dS.default)(t,r,t[r]);return t}});var be=v(f=>{Object.defineProperty(f,"__esModule",{value:!0});f.anyTypeAnnotation=Jx;f.argumentPlaceholder=PE;f.arrayExpression=mS;f.arrayPattern=px;f.arrayTypeAnnotation=$x;f.arrowFunctionExpression=fx;f.assignmentExpression=TS;f.assignmentPattern=cx;f.awaitExpression=_x;f.bigIntLiteral=jx;f.binaryExpression=bS;f.bindExpression=EE;f.blockStatement=ES;f.booleanLiteral=KS;f.booleanLiteralTypeAnnotation=zx;f.booleanTypeAnnotation=Wx;f.breakStatement=gS;f.callExpression=AS;f.catchClause=vS;f.classAccessorProperty=qx;f.classBody=dx;f.classDeclaration=yx;f.classExpression=hx;f.classImplements=Gx;f.classMethod=wx;f.classPrivateMethod=Vx;f.classPrivateProperty=Kx;f.classProperty=Ux;f.conditionalExpression=IS;f.continueStatement=wS;f.debuggerStatement=OS;f.decimalLiteral=NE;f.declareClass=Qx;f.declareExportAllDeclaration=oP;f.declareExportDeclaration=nP;f.declareFunction=Zx;f.declareInterface=eP;f.declareModule=tP;f.declareModuleExports=rP;f.declareOpaqueType=sP;f.declareTypeAlias=iP;f.declareVariable=aP;f.declaredPredicate=lP;f.decorator=AE;f.directive=xS;f.directiveLiteral=PS;f.doExpression=vE;f.doWhileStatement=NS;f.emptyStatement=CS;f.emptyTypeAnnotation=SP;f.enumBooleanBody=$P;f.enumBooleanMember=GP;f.enumDeclaration=JP;f.enumDefaultedMember=eE;f.enumNumberBody=WP;f.enumNumberMember=QP;f.enumStringBody=zP;f.enumStringMember=ZP;f.enumSymbolBody=HP;f.existsTypeAnnotation=uP;f.exportAllDeclaration=mx;f.exportDefaultDeclaration=Tx;f.exportDefaultSpecifier=IE;f.exportNamedDeclaration=bx;f.exportNamespaceSpecifier=Bx;f.exportSpecifier=Sx;f.expressionStatement=DS;f.file=LS;f.forInStatement=kS;f.forOfStatement=xx;f.forStatement=_S;f.functionDeclaration=MS;f.functionExpression=jS;f.functionTypeAnnotation=cP;f.functionTypeParam=pP;f.genericTypeAnnotation=fP;f.identifier=BS;f.ifStatement=FS;f.import=Mx;f.importAttribute=gE;f.importDeclaration=Px;f.importDefaultSpecifier=Ex;f.importExpression=vx;f.importNamespaceSpecifier=gx;f.importSpecifier=Ax;f.indexedAccessType=tE;f.inferredPredicate=dP;f.interfaceDeclaration=yP;f.interfaceExtends=hP;f.interfaceTypeAnnotation=mP;f.interpreterDirective=SS;f.intersectionTypeAnnotation=TP;f.jSXAttribute=f.jsxAttribute=iE;f.jSXClosingElement=f.jsxClosingElement=sE;f.jSXClosingFragment=f.jsxClosingFragment=TE;f.jSXElement=f.jsxElement=aE;f.jSXEmptyExpression=f.jsxEmptyExpression=nE;f.jSXExpressionContainer=f.jsxExpressionContainer=oE;f.jSXFragment=f.jsxFragment=yE;f.jSXIdentifier=f.jsxIdentifier=uE;f.jSXMemberExpression=f.jsxMemberExpression=cE;f.jSXNamespacedName=f.jsxNamespacedName=pE;f.jSXOpeningElement=f.jsxOpeningElement=fE;f.jSXOpeningFragment=f.jsxOpeningFragment=mE;f.jSXSpreadAttribute=f.jsxSpreadAttribute=dE;f.jSXSpreadChild=f.jsxSpreadChild=lE;f.jSXText=f.jsxText=hE;f.labeledStatement=RS;f.logicalExpression=VS;f.memberExpression=YS;f.metaProperty=Ix;f.mixedTypeAnnotation=bP;f.moduleExpression=CE;f.newExpression=XS;f.noop=bE;f.nullLiteral=qS;f.nullLiteralTypeAnnotation=Hx;f.nullableTypeAnnotation=xP;f.numberLiteral=Jg;f.numberLiteralTypeAnnotation=PP;f.numberTypeAnnotation=EP;f.numericLiteral=Il;f.objectExpression=$S;f.objectMethod=WS;f.objectPattern=Ox;f.objectProperty=zS;f.objectTypeAnnotation=gP;f.objectTypeCallProperty=vP;f.objectTypeIndexer=IP;f.objectTypeInternalSlot=AP;f.objectTypeProperty=wP;f.objectTypeSpreadProperty=OP;f.opaqueType=NP;f.optionalCallExpression=Rx;f.optionalIndexedAccessType=rE;f.optionalMemberExpression=Fx;f.parenthesizedExpression=QS;f.pipelineBareFunction=kE;f.pipelinePrimaryTopicReference=_E;f.pipelineTopicExpression=LE;f.placeholder=SE;f.privateName=Yx;f.program=JS;f.qualifiedTypeIdentifier=CP;f.recordExpression=wE;f.regExpLiteral=wl;f.regexLiteral=$g;f.restElement=Ol;f.restProperty=Wg;f.returnStatement=HS;f.sequenceExpression=GS;f.spreadElement=Nl;f.spreadProperty=zg;f.staticBlock=Xx;f.stringLiteral=US;f.stringLiteralTypeAnnotation=DP;f.stringTypeAnnotation=LP;f.super=Nx;f.switchCase=ZS;f.switchStatement=ex;f.symbolTypeAnnotation=kP;f.taggedTemplateExpression=Cx;f.templateElement=Dx;f.templateLiteral=Lx;f.thisExpression=tx;f.thisTypeAnnotation=_P;f.throwStatement=rx;f.topicReference=DE;f.tryStatement=ix;f.tSAnyKeyword=f.tsAnyKeyword=YE;f.tSArrayType=f.tsArrayType=cg;f.tSAsExpression=f.tsAsExpression=Ng;f.tSBigIntKeyword=f.tsBigIntKeyword=JE;f.tSBooleanKeyword=f.tsBooleanKeyword=XE;f.tSCallSignatureDeclaration=f.tsCallSignatureDeclaration=RE;f.tSConditionalType=f.tsConditionalType=Tg;f.tSConstructSignatureDeclaration=f.tsConstructSignatureDeclaration=UE;f.tSConstructorType=f.tsConstructorType=ag;f.tSDeclareFunction=f.tsDeclareFunction=jE;f.tSDeclareMethod=f.tsDeclareMethod=BE;f.tSEnumDeclaration=f.tsEnumDeclaration=Lg;f.tSEnumMember=f.tsEnumMember=kg;f.tSExportAssignment=f.tsExportAssignment=Ug;f.tSExpressionWithTypeArguments=f.tsExpressionWithTypeArguments=Ag;f.tSExternalModuleReference=f.tsExternalModuleReference=Fg;f.tSFunctionType=f.tsFunctionType=sg;f.tSImportEqualsDeclaration=f.tsImportEqualsDeclaration=Bg;f.tSImportType=f.tsImportType=jg;f.tSIndexSignature=f.tsIndexSignature=VE;f.tSIndexedAccessType=f.tsIndexedAccessType=Pg;f.tSInferType=f.tsInferType=bg;f.tSInstantiationExpression=f.tsInstantiationExpression=Og;f.tSInterfaceBody=f.tsInterfaceBody=Ig;f.tSInterfaceDeclaration=f.tsInterfaceDeclaration=vg;f.tSIntersectionType=f.tsIntersectionType=mg;f.tSIntrinsicKeyword=f.tsIntrinsicKeyword=$E;f.tSLiteralType=f.tsLiteralType=gg;f.tSMappedType=f.tsMappedType=Eg;f.tSMethodSignature=f.tsMethodSignature=KE;f.tSModuleBlock=f.tsModuleBlock=Mg;f.tSModuleDeclaration=f.tsModuleDeclaration=_g;f.tSNamedTupleMember=f.tsNamedTupleMember=hg;f.tSNamespaceExportDeclaration=f.tsNamespaceExportDeclaration=qg;f.tSNeverKeyword=f.tsNeverKeyword=WE;f.tSNonNullExpression=f.tsNonNullExpression=Rg;f.tSNullKeyword=f.tsNullKeyword=zE;f.tSNumberKeyword=f.tsNumberKeyword=HE;f.tSObjectKeyword=f.tsObjectKeyword=GE;f.tSOptionalType=f.tsOptionalType=fg;f.tSParameterProperty=f.tsParameterProperty=ME;f.tSParenthesizedType=f.tsParenthesizedType=Sg;f.tSPropertySignature=f.tsPropertySignature=qE;f.tSQualifiedName=f.tsQualifiedName=FE;f.tSRestType=f.tsRestType=dg;f.tSSatisfiesExpression=f.tsSatisfiesExpression=Cg;f.tSStringKeyword=f.tsStringKeyword=QE;f.tSSymbolKeyword=f.tsSymbolKeyword=ZE;f.tSThisType=f.tsThisType=ig;f.tSTupleType=f.tsTupleType=pg;f.tSTypeAliasDeclaration=f.tsTypeAliasDeclaration=wg;f.tSTypeAnnotation=f.tsTypeAnnotation=Kg;f.tSTypeAssertion=f.tsTypeAssertion=Dg;f.tSTypeLiteral=f.tsTypeLiteral=ug;f.tSTypeOperator=f.tsTypeOperator=xg;f.tSTypeParameter=f.tsTypeParameter=Xg;f.tSTypeParameterDeclaration=f.tsTypeParameterDeclaration=Yg;f.tSTypeParameterInstantiation=f.tsTypeParameterInstantiation=Vg;f.tSTypePredicate=f.tsTypePredicate=og;f.tSTypeQuery=f.tsTypeQuery=lg;f.tSTypeReference=f.tsTypeReference=ng;f.tSUndefinedKeyword=f.tsUndefinedKeyword=eg;f.tSUnionType=f.tsUnionType=yg;f.tSUnknownKeyword=f.tsUnknownKeyword=tg;f.tSVoidKeyword=f.tsVoidKeyword=rg;f.tupleExpression=OE;f.tupleTypeAnnotation=MP;f.typeAlias=BP;f.typeAnnotation=FP;f.typeCastExpression=RP;f.typeParameter=UP;f.typeParameterDeclaration=qP;f.typeParameterInstantiation=KP;f.typeofTypeAnnotation=jP;f.unaryExpression=sx;f.unionTypeAnnotation=VP;f.updateExpression=ax;f.v8IntrinsicIdentifier=xE;f.variableDeclaration=nx;f.variableDeclarator=ox;f.variance=YP;f.voidTypeAnnotation=XP;f.whileStatement=lx;f.withStatement=ux;f.yieldExpression=kx;var x=vl(),Vr=Vt();function mS(t=[]){return (0, x.default)({type:"ArrayExpression",elements:t})}function TS(t,e,r){return (0, x.default)({type:"AssignmentExpression",operator:t,left:e,right:r})}function bS(t,e,r){return (0, x.default)({type:"BinaryExpression",operator:t,left:e,right:r})}function SS(t){return (0, x.default)({type:"InterpreterDirective",value:t})}function xS(t){return (0, x.default)({type:"Directive",value:t})}function PS(t){return (0, x.default)({type:"DirectiveLiteral",value:t})}function ES(t,e=[]){return (0, x.default)({type:"BlockStatement",body:t,directives:e})}function gS(t=null){return (0, x.default)({type:"BreakStatement",label:t})}function AS(t,e){return (0, x.default)({type:"CallExpression",callee:t,arguments:e})}function vS(t=null,e){return (0, x.default)({type:"CatchClause",param:t,body:e})}function IS(t,e,r){return (0, x.default)({type:"ConditionalExpression",test:t,consequent:e,alternate:r})}function wS(t=null){return (0, x.default)({type:"ContinueStatement",label:t})}function OS(){return {type:"DebuggerStatement"}}function NS(t,e){return (0, x.default)({type:"DoWhileStatement",test:t,body:e})}function CS(){return {type:"EmptyStatement"}}function DS(t){return (0, x.default)({type:"ExpressionStatement",expression:t})}function LS(t,e=null,r=null){return (0, x.default)({type:"File",program:t,comments:e,tokens:r})}function kS(t,e,r){return (0, x.default)({type:"ForInStatement",left:t,right:e,body:r})}function _S(t=null,e=null,r=null,i){return (0, x.default)({type:"ForStatement",init:t,test:e,update:r,body:i})}function MS(t=null,e,r,i=!1,s=!1){return (0, x.default)({type:"FunctionDeclaration",id:t,params:e,body:r,generator:i,async:s})}function jS(t=null,e,r,i=!1,s=!1){return (0, x.default)({type:"FunctionExpression",id:t,params:e,body:r,generator:i,async:s})}function BS(t){return (0, x.default)({type:"Identifier",name:t})}function FS(t,e,r=null){return (0, x.default)({type:"IfStatement",test:t,consequent:e,alternate:r})}function RS(t,e){return (0, x.default)({type:"LabeledStatement",label:t,body:e})}function US(t){return (0, x.default)({type:"StringLiteral",value:t})}function Il(t){return (0, x.default)({type:"NumericLiteral",value:t})}function qS(){return {type:"NullLiteral"}}function KS(t){return (0, x.default)({type:"BooleanLiteral",value:t})}function wl(t,e=""){return (0, x.default)({type:"RegExpLiteral",pattern:t,flags:e})}function VS(t,e,r){return (0, x.default)({type:"LogicalExpression",operator:t,left:e,right:r})}function YS(t,e,r=!1,i=null){return (0, x.default)({type:"MemberExpression",object:t,property:e,computed:r,optional:i})}function XS(t,e){return (0, x.default)({type:"NewExpression",callee:t,arguments:e})}function JS(t,e=[],r="script",i=null){return (0, x.default)({type:"Program",body:t,directives:e,sourceType:r,interpreter:i,sourceFile:null})}function $S(t){return (0, x.default)({type:"ObjectExpression",properties:t})}function WS(t="method",e,r,i,s=!1,a=!1,n=!1){return (0, x.default)({type:"ObjectMethod",kind:t,key:e,params:r,body:i,computed:s,generator:a,async:n})}function zS(t,e,r=!1,i=!1,s=null){return (0, x.default)({type:"ObjectProperty",key:t,value:e,computed:r,shorthand:i,decorators:s})}function Ol(t){return (0, x.default)({type:"RestElement",argument:t})}function HS(t=null){return (0, x.default)({type:"ReturnStatement",argument:t})}function GS(t){return (0, x.default)({type:"SequenceExpression",expressions:t})}function QS(t){return (0, x.default)({type:"ParenthesizedExpression",expression:t})}function ZS(t=null,e){return (0, x.default)({type:"SwitchCase",test:t,consequent:e})}function ex(t,e){return (0, x.default)({type:"SwitchStatement",discriminant:t,cases:e})}function tx(){return {type:"ThisExpression"}}function rx(t){return (0, x.default)({type:"ThrowStatement",argument:t})}function ix(t,e=null,r=null){return (0, x.default)({type:"TryStatement",block:t,handler:e,finalizer:r})}function sx(t,e,r=!0){return (0, x.default)({type:"UnaryExpression",operator:t,argument:e,prefix:r})}function ax(t,e,r=!1){return (0, x.default)({type:"UpdateExpression",operator:t,argument:e,prefix:r})}function nx(t,e){return (0, x.default)({type:"VariableDeclaration",kind:t,declarations:e})}function ox(t,e=null){return (0, x.default)({type:"VariableDeclarator",id:t,init:e})}function lx(t,e){return (0, x.default)({type:"WhileStatement",test:t,body:e})}function ux(t,e){return (0, x.default)({type:"WithStatement",object:t,body:e})}function cx(t,e){return (0, x.default)({type:"AssignmentPattern",left:t,right:e})}function px(t){return (0, x.default)({type:"ArrayPattern",elements:t})}function fx(t,e,r=!1){return (0, x.default)({type:"ArrowFunctionExpression",params:t,body:e,async:r,expression:null})}function dx(t){return (0, x.default)({type:"ClassBody",body:t})}function hx(t=null,e=null,r,i=null){return (0, x.default)({type:"ClassExpression",id:t,superClass:e,body:r,decorators:i})}function yx(t=null,e=null,r,i=null){return (0, x.default)({type:"ClassDeclaration",id:t,superClass:e,body:r,decorators:i})}function mx(t){return (0, x.default)({type:"ExportAllDeclaration",source:t})}function Tx(t){return (0, x.default)({type:"ExportDefaultDeclaration",declaration:t})}function bx(t=null,e=[],r=null){return (0, x.default)({type:"ExportNamedDeclaration",declaration:t,specifiers:e,source:r})}function Sx(t,e){return (0, x.default)({type:"ExportSpecifier",local:t,exported:e})}function xx(t,e,r,i=!1){return (0, x.default)({type:"ForOfStatement",left:t,right:e,body:r,await:i})}function Px(t,e){return (0, x.default)({type:"ImportDeclaration",specifiers:t,source:e})}function Ex(t){return (0, x.default)({type:"ImportDefaultSpecifier",local:t})}function gx(t){return (0, x.default)({type:"ImportNamespaceSpecifier",local:t})}function Ax(t,e){return (0, x.default)({type:"ImportSpecifier",local:t,imported:e})}function vx(t,e=null){return (0, x.default)({type:"ImportExpression",source:t,options:e})}function Ix(t,e){return (0, x.default)({type:"MetaProperty",meta:t,property:e})}function wx(t="method",e,r,i,s=!1,a=!1,n=!1,o=!1){return (0, x.default)({type:"ClassMethod",kind:t,key:e,params:r,body:i,computed:s,static:a,generator:n,async:o})}function Ox(t){return (0, x.default)({type:"ObjectPattern",properties:t})}function Nl(t){return (0, x.default)({type:"SpreadElement",argument:t})}function Nx(){return {type:"Super"}}function Cx(t,e){return (0, x.default)({type:"TaggedTemplateExpression",tag:t,quasi:e})}function Dx(t,e=!1){return (0, x.default)({type:"TemplateElement",value:t,tail:e})}function Lx(t,e){return (0, x.default)({type:"TemplateLiteral",quasis:t,expressions:e})}function kx(t=null,e=!1){return (0, x.default)({type:"YieldExpression",argument:t,delegate:e})}function _x(t){return (0, x.default)({type:"AwaitExpression",argument:t})}function Mx(){return {type:"Import"}}function jx(t){return (0, x.default)({type:"BigIntLiteral",value:t})}function Bx(t){return (0, x.default)({type:"ExportNamespaceSpecifier",exported:t})}function Fx(t,e,r=!1,i){return (0, x.default)({type:"OptionalMemberExpression",object:t,property:e,computed:r,optional:i})}function Rx(t,e,r){return (0, x.default)({type:"OptionalCallExpression",callee:t,arguments:e,optional:r})}function Ux(t,e=null,r=null,i=null,s=!1,a=!1){return (0, x.default)({type:"ClassProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:a})}function qx(t,e=null,r=null,i=null,s=!1,a=!1){return (0, x.default)({type:"ClassAccessorProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:a})}function Kx(t,e=null,r=null,i=!1){return (0, x.default)({type:"ClassPrivateProperty",key:t,value:e,decorators:r,static:i})}function Vx(t="method",e,r,i,s=!1){return (0, x.default)({type:"ClassPrivateMethod",kind:t,key:e,params:r,body:i,static:s})}function Yx(t){return (0, x.default)({type:"PrivateName",id:t})}function Xx(t){return (0, x.default)({type:"StaticBlock",body:t})}function Jx(){return {type:"AnyTypeAnnotation"}}function $x(t){return (0, x.default)({type:"ArrayTypeAnnotation",elementType:t})}function Wx(){return {type:"BooleanTypeAnnotation"}}function zx(t){return (0, x.default)({type:"BooleanLiteralTypeAnnotation",value:t})}function Hx(){return {type:"NullLiteralTypeAnnotation"}}function Gx(t,e=null){return (0, x.default)({type:"ClassImplements",id:t,typeParameters:e})}function Qx(t,e=null,r=null,i){return (0, x.default)({type:"DeclareClass",id:t,typeParameters:e,extends:r,body:i})}function Zx(t){return (0, x.default)({type:"DeclareFunction",id:t})}function eP(t,e=null,r=null,i){return (0, x.default)({type:"DeclareInterface",id:t,typeParameters:e,extends:r,body:i})}function tP(t,e,r=null){return (0, x.default)({type:"DeclareModule",id:t,body:e,kind:r})}function rP(t){return (0, x.default)({type:"DeclareModuleExports",typeAnnotation:t})}function iP(t,e=null,r){return (0, x.default)({type:"DeclareTypeAlias",id:t,typeParameters:e,right:r})}function sP(t,e=null,r=null){return (0, x.default)({type:"DeclareOpaqueType",id:t,typeParameters:e,supertype:r})}function aP(t){return (0, x.default)({type:"DeclareVariable",id:t})}function nP(t=null,e=null,r=null){return (0, x.default)({type:"DeclareExportDeclaration",declaration:t,specifiers:e,source:r})}function oP(t){return (0, x.default)({type:"DeclareExportAllDeclaration",source:t})}function lP(t){return (0, x.default)({type:"DeclaredPredicate",value:t})}function uP(){return {type:"ExistsTypeAnnotation"}}function cP(t=null,e,r=null,i){return (0, x.default)({type:"FunctionTypeAnnotation",typeParameters:t,params:e,rest:r,returnType:i})}function pP(t=null,e){return (0, x.default)({type:"FunctionTypeParam",name:t,typeAnnotation:e})}function fP(t,e=null){return (0, x.default)({type:"GenericTypeAnnotation",id:t,typeParameters:e})}function dP(){return {type:"InferredPredicate"}}function hP(t,e=null){return (0, x.default)({type:"InterfaceExtends",id:t,typeParameters:e})}function yP(t,e=null,r=null,i){return (0, x.default)({type:"InterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i})}function mP(t=null,e){return (0, x.default)({type:"InterfaceTypeAnnotation",extends:t,body:e})}function TP(t){return (0, x.default)({type:"IntersectionTypeAnnotation",types:t})}function bP(){return {type:"MixedTypeAnnotation"}}function SP(){return {type:"EmptyTypeAnnotation"}}function xP(t){return (0, x.default)({type:"NullableTypeAnnotation",typeAnnotation:t})}function PP(t){return (0, x.default)({type:"NumberLiteralTypeAnnotation",value:t})}function EP(){return {type:"NumberTypeAnnotation"}}function gP(t,e=[],r=[],i=[],s=!1){return (0, x.default)({type:"ObjectTypeAnnotation",properties:t,indexers:e,callProperties:r,internalSlots:i,exact:s})}function AP(t,e,r,i,s){return (0, x.default)({type:"ObjectTypeInternalSlot",id:t,value:e,optional:r,static:i,method:s})}function vP(t){return (0, x.default)({type:"ObjectTypeCallProperty",value:t,static:null})}function IP(t=null,e,r,i=null){return (0, x.default)({type:"ObjectTypeIndexer",id:t,key:e,value:r,variance:i,static:null})}function wP(t,e,r=null){return (0, x.default)({type:"ObjectTypeProperty",key:t,value:e,variance:r,kind:null,method:null,optional:null,proto:null,static:null})}function OP(t){return (0, x.default)({type:"ObjectTypeSpreadProperty",argument:t})}function NP(t,e=null,r=null,i){return (0, x.default)({type:"OpaqueType",id:t,typeParameters:e,supertype:r,impltype:i})}function CP(t,e){return (0, x.default)({type:"QualifiedTypeIdentifier",id:t,qualification:e})}function DP(t){return (0, x.default)({type:"StringLiteralTypeAnnotation",value:t})}function LP(){return {type:"StringTypeAnnotation"}}function kP(){return {type:"SymbolTypeAnnotation"}}function _P(){return {type:"ThisTypeAnnotation"}}function MP(t){return (0, x.default)({type:"TupleTypeAnnotation",types:t})}function jP(t){return (0, x.default)({type:"TypeofTypeAnnotation",argument:t})}function BP(t,e=null,r){return (0, x.default)({type:"TypeAlias",id:t,typeParameters:e,right:r})}function FP(t){return (0, x.default)({type:"TypeAnnotation",typeAnnotation:t})}function RP(t,e){return (0, x.default)({type:"TypeCastExpression",expression:t,typeAnnotation:e})}function UP(t=null,e=null,r=null){return (0, x.default)({type:"TypeParameter",bound:t,default:e,variance:r,name:null})}function qP(t){return (0, x.default)({type:"TypeParameterDeclaration",params:t})}function KP(t){return (0, x.default)({type:"TypeParameterInstantiation",params:t})}function VP(t){return (0, x.default)({type:"UnionTypeAnnotation",types:t})}function YP(t){return (0, x.default)({type:"Variance",kind:t})}function XP(){return {type:"VoidTypeAnnotation"}}function JP(t,e){return (0, x.default)({type:"EnumDeclaration",id:t,body:e})}function $P(t){return (0, x.default)({type:"EnumBooleanBody",members:t,explicitType:null,hasUnknownMembers:null})}function WP(t){return (0, x.default)({type:"EnumNumberBody",members:t,explicitType:null,hasUnknownMembers:null})}function zP(t){return (0, x.default)({type:"EnumStringBody",members:t,explicitType:null,hasUnknownMembers:null})}function HP(t){return (0, x.default)({type:"EnumSymbolBody",members:t,hasUnknownMembers:null})}function GP(t){return (0, x.default)({type:"EnumBooleanMember",id:t,init:null})}function QP(t,e){return (0, x.default)({type:"EnumNumberMember",id:t,init:e})}function ZP(t,e){return (0, x.default)({type:"EnumStringMember",id:t,init:e})}function eE(t){return (0, x.default)({type:"EnumDefaultedMember",id:t})}function tE(t,e){return (0, x.default)({type:"IndexedAccessType",objectType:t,indexType:e})}function rE(t,e){return (0, x.default)({type:"OptionalIndexedAccessType",objectType:t,indexType:e,optional:null})}function iE(t,e=null){return (0, x.default)({type:"JSXAttribute",name:t,value:e})}function sE(t){return (0, x.default)({type:"JSXClosingElement",name:t})}function aE(t,e=null,r,i=null){return (0, x.default)({type:"JSXElement",openingElement:t,closingElement:e,children:r,selfClosing:i})}function nE(){return {type:"JSXEmptyExpression"}}function oE(t){return (0, x.default)({type:"JSXExpressionContainer",expression:t})}function lE(t){return (0, x.default)({type:"JSXSpreadChild",expression:t})}function uE(t){return (0, x.default)({type:"JSXIdentifier",name:t})}function cE(t,e){return (0, x.default)({type:"JSXMemberExpression",object:t,property:e})}function pE(t,e){return (0, x.default)({type:"JSXNamespacedName",namespace:t,name:e})}function fE(t,e,r=!1){return (0, x.default)({type:"JSXOpeningElement",name:t,attributes:e,selfClosing:r})}function dE(t){return (0, x.default)({type:"JSXSpreadAttribute",argument:t})}function hE(t){return (0, x.default)({type:"JSXText",value:t})}function yE(t,e,r){return (0, x.default)({type:"JSXFragment",openingFragment:t,closingFragment:e,children:r})}function mE(){return {type:"JSXOpeningFragment"}}function TE(){return {type:"JSXClosingFragment"}}function bE(){return {type:"Noop"}}function SE(t,e){return (0, x.default)({type:"Placeholder",expectedNode:t,name:e})}function xE(t){return (0, x.default)({type:"V8IntrinsicIdentifier",name:t})}function PE(){return {type:"ArgumentPlaceholder"}}function EE(t,e){return (0, x.default)({type:"BindExpression",object:t,callee:e})}function gE(t,e){return (0, x.default)({type:"ImportAttribute",key:t,value:e})}function AE(t){return (0, x.default)({type:"Decorator",expression:t})}function vE(t,e=!1){return (0, x.default)({type:"DoExpression",body:t,async:e})}function IE(t){return (0, x.default)({type:"ExportDefaultSpecifier",exported:t})}function wE(t){return (0, x.default)({type:"RecordExpression",properties:t})}function OE(t=[]){return (0, x.default)({type:"TupleExpression",elements:t})}function NE(t){return (0, x.default)({type:"DecimalLiteral",value:t})}function CE(t){return (0, x.default)({type:"ModuleExpression",body:t})}function DE(){return {type:"TopicReference"}}function LE(t){return (0, x.default)({type:"PipelineTopicExpression",expression:t})}function kE(t){return (0, x.default)({type:"PipelineBareFunction",callee:t})}function _E(){return {type:"PipelinePrimaryTopicReference"}}function ME(t){return (0, x.default)({type:"TSParameterProperty",parameter:t})}function jE(t=null,e=null,r,i=null){return (0, x.default)({type:"TSDeclareFunction",id:t,typeParameters:e,params:r,returnType:i})}function BE(t=null,e,r=null,i,s=null){return (0, x.default)({type:"TSDeclareMethod",decorators:t,key:e,typeParameters:r,params:i,returnType:s})}function FE(t,e){return (0, x.default)({type:"TSQualifiedName",left:t,right:e})}function RE(t=null,e,r=null){return (0, x.default)({type:"TSCallSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r})}function UE(t=null,e,r=null){return (0, x.default)({type:"TSConstructSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r})}function qE(t,e=null){return (0, x.default)({type:"TSPropertySignature",key:t,typeAnnotation:e,kind:null})}function KE(t,e=null,r,i=null){return (0, x.default)({type:"TSMethodSignature",key:t,typeParameters:e,parameters:r,typeAnnotation:i,kind:null})}function VE(t,e=null){return (0, x.default)({type:"TSIndexSignature",parameters:t,typeAnnotation:e})}function YE(){return {type:"TSAnyKeyword"}}function XE(){return {type:"TSBooleanKeyword"}}function JE(){return {type:"TSBigIntKeyword"}}function $E(){return {type:"TSIntrinsicKeyword"}}function WE(){return {type:"TSNeverKeyword"}}function zE(){return {type:"TSNullKeyword"}}function HE(){return {type:"TSNumberKeyword"}}function GE(){return {type:"TSObjectKeyword"}}function QE(){return {type:"TSStringKeyword"}}function ZE(){return {type:"TSSymbolKeyword"}}function eg(){return {type:"TSUndefinedKeyword"}}function tg(){return {type:"TSUnknownKeyword"}}function rg(){return {type:"TSVoidKeyword"}}function ig(){return {type:"TSThisType"}}function sg(t=null,e,r=null){return (0, x.default)({type:"TSFunctionType",typeParameters:t,parameters:e,typeAnnotation:r})}function ag(t=null,e,r=null){return (0, x.default)({type:"TSConstructorType",typeParameters:t,parameters:e,typeAnnotation:r})}function ng(t,e=null){return (0, x.default)({type:"TSTypeReference",typeName:t,typeParameters:e})}function og(t,e=null,r=null){return (0, x.default)({type:"TSTypePredicate",parameterName:t,typeAnnotation:e,asserts:r})}function lg(t,e=null){return (0, x.default)({type:"TSTypeQuery",exprName:t,typeParameters:e})}function ug(t){return (0, x.default)({type:"TSTypeLiteral",members:t})}function cg(t){return (0, x.default)({type:"TSArrayType",elementType:t})}function pg(t){return (0, x.default)({type:"TSTupleType",elementTypes:t})}function fg(t){return (0, x.default)({type:"TSOptionalType",typeAnnotation:t})}function dg(t){return (0, x.default)({type:"TSRestType",typeAnnotation:t})}function hg(t,e,r=!1){return (0, x.default)({type:"TSNamedTupleMember",label:t,elementType:e,optional:r})}function yg(t){return (0, x.default)({type:"TSUnionType",types:t})}function mg(t){return (0, x.default)({type:"TSIntersectionType",types:t})}function Tg(t,e,r,i){return (0, x.default)({type:"TSConditionalType",checkType:t,extendsType:e,trueType:r,falseType:i})}function bg(t){return (0, x.default)({type:"TSInferType",typeParameter:t})}function Sg(t){return (0, x.default)({type:"TSParenthesizedType",typeAnnotation:t})}function xg(t){return (0, x.default)({type:"TSTypeOperator",typeAnnotation:t,operator:null})}function Pg(t,e){return (0, x.default)({type:"TSIndexedAccessType",objectType:t,indexType:e})}function Eg(t,e=null,r=null){return (0, x.default)({type:"TSMappedType",typeParameter:t,typeAnnotation:e,nameType:r})}function gg(t){return (0, x.default)({type:"TSLiteralType",literal:t})}function Ag(t,e=null){return (0, x.default)({type:"TSExpressionWithTypeArguments",expression:t,typeParameters:e})}function vg(t,e=null,r=null,i){return (0, x.default)({type:"TSInterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i})}function Ig(t){return (0, x.default)({type:"TSInterfaceBody",body:t})}function wg(t,e=null,r){return (0, x.default)({type:"TSTypeAliasDeclaration",id:t,typeParameters:e,typeAnnotation:r})}function Og(t,e=null){return (0, x.default)({type:"TSInstantiationExpression",expression:t,typeParameters:e})}function Ng(t,e){return (0, x.default)({type:"TSAsExpression",expression:t,typeAnnotation:e})}function Cg(t,e){return (0, x.default)({type:"TSSatisfiesExpression",expression:t,typeAnnotation:e})}function Dg(t,e){return (0, x.default)({type:"TSTypeAssertion",typeAnnotation:t,expression:e})}function Lg(t,e){return (0, x.default)({type:"TSEnumDeclaration",id:t,members:e})}function kg(t,e=null){return (0, x.default)({type:"TSEnumMember",id:t,initializer:e})}function _g(t,e){return (0, x.default)({type:"TSModuleDeclaration",id:t,body:e})}function Mg(t){return (0, x.default)({type:"TSModuleBlock",body:t})}function jg(t,e=null,r=null){return (0, x.default)({type:"TSImportType",argument:t,qualifier:e,typeParameters:r})}function Bg(t,e){return (0, x.default)({type:"TSImportEqualsDeclaration",id:t,moduleReference:e,isExport:null})}function Fg(t){return (0, x.default)({type:"TSExternalModuleReference",expression:t})}function Rg(t){return (0, x.default)({type:"TSNonNullExpression",expression:t})}function Ug(t){return (0, x.default)({type:"TSExportAssignment",expression:t})}function qg(t){return (0, x.default)({type:"TSNamespaceExportDeclaration",id:t})}function Kg(t){return (0, x.default)({type:"TSTypeAnnotation",typeAnnotation:t})}function Vg(t){return (0, x.default)({type:"TSTypeParameterInstantiation",params:t})}function Yg(t){return (0, x.default)({type:"TSTypeParameterDeclaration",params:t})}function Xg(t=null,e=null,r){return (0, x.default)({type:"TSTypeParameter",constraint:t,default:e,name:r})}function Jg(t){return (0, Vr.default)("NumberLiteral","NumericLiteral","The node type "),Il(t)}function $g(t,e=""){return (0, Vr.default)("RegexLiteral","RegExpLiteral","The node type "),wl(t,e)}function Wg(t){return (0, Vr.default)("RestProperty","RestElement","The node type "),Ol(t)}function zg(t){return (0, Vr.default)("SpreadProperty","SpreadElement","The node type "),Nl(t)}});var Cl=v(gs=>{Object.defineProperty(gs,"__esModule",{value:!0});gs.default=Qg;var Hg=be(),Gg=ve();function Qg(t,e){let r=t.value.split(/\r\n|\n|\r/),i=0;for(let a=0;a<r.length;a++)r[a].match(/[^ \t]/)&&(i=a);let s="";for(let a=0;a<r.length;a++){let n=r[a],o=a===0,l=a===r.length-1,u=a===i,p=n.replace(/\t/g," ");o||(p=p.replace(/^[ ]+/,"")),l||(p=p.replace(/[ ]+$/,"")),p&&(u||(p+=" "),s+=p);}s&&e.push((0, Gg.inherits)((0, Hg.stringLiteral)(s),t));}});var Dl=v(vs=>{Object.defineProperty(vs,"__esModule",{value:!0});vs.default=eA;var As=le(),Zg=Cl();function eA(t){let e=[];for(let r=0;r<t.children.length;r++){let i=t.children[r];if((0, As.isJSXText)(i)){(0, Zg.default)(i,e);continue}(0, As.isJSXExpressionContainer)(i)&&(i=i.expression),!(0, As.isJSXEmptyExpression)(i)&&e.push(i);}return e}});var ws=v(Is=>{Object.defineProperty(Is,"__esModule",{value:!0});Is.default=rA;var tA=De();function rA(t){return !!(t&&tA.VISITOR_KEYS[t.type])}});var Ll=v(Os=>{Object.defineProperty(Os,"__esModule",{value:!0});Os.default=sA;var iA=ws();function sA(t){if(!(0, iA.default)(t)){var e;let r=(e=t?.type)!=null?e:JSON.stringify(t);throw new TypeError(`Not a valid node of type "${r}"`)}}});var kl=v(h=>{Object.defineProperty(h,"__esModule",{value:!0});h.assertAccessor=xO;h.assertAnyTypeAnnotation=Uv;h.assertArgumentPlaceholder=yI;h.assertArrayExpression=nA;h.assertArrayPattern=sv;h.assertArrayTypeAnnotation=qv;h.assertArrowFunctionExpression=av;h.assertAssignmentExpression=oA;h.assertAssignmentPattern=iv;h.assertAwaitExpression=Ov;h.assertBigIntLiteral=Cv;h.assertBinary=Kw;h.assertBinaryExpression=lA;h.assertBindExpression=mI;h.assertBlock=Xw;h.assertBlockParent=Yw;h.assertBlockStatement=fA;h.assertBooleanLiteral=kA;h.assertBooleanLiteralTypeAnnotation=Vv;h.assertBooleanTypeAnnotation=Kv;h.assertBreakStatement=dA;h.assertCallExpression=hA;h.assertCatchClause=yA;h.assertClass=mO;h.assertClassAccessorProperty=Mv;h.assertClassBody=nv;h.assertClassDeclaration=lv;h.assertClassExpression=ov;h.assertClassImplements=Xv;h.assertClassMethod=xv;h.assertClassPrivateMethod=Bv;h.assertClassPrivateProperty=jv;h.assertClassProperty=_v;h.assertCompletionStatement=Ww;h.assertConditional=zw;h.assertConditionalExpression=mA;h.assertContinueStatement=TA;h.assertDebuggerStatement=bA;h.assertDecimalLiteral=gI;h.assertDeclaration=sO;h.assertDeclareClass=Jv;h.assertDeclareExportAllDeclaration=t1;h.assertDeclareExportDeclaration=e1;h.assertDeclareFunction=$v;h.assertDeclareInterface=Wv;h.assertDeclareModule=zv;h.assertDeclareModuleExports=Hv;h.assertDeclareOpaqueType=Qv;h.assertDeclareTypeAlias=Gv;h.assertDeclareVariable=Zv;h.assertDeclaredPredicate=r1;h.assertDecorator=bI;h.assertDirective=cA;h.assertDirectiveLiteral=pA;h.assertDoExpression=SI;h.assertDoWhileStatement=SA;h.assertEmptyStatement=xA;h.assertEmptyTypeAnnotation=d1;h.assertEnumBody=wO;h.assertEnumBooleanBody=q1;h.assertEnumBooleanMember=X1;h.assertEnumDeclaration=U1;h.assertEnumDefaultedMember=W1;h.assertEnumMember=OO;h.assertEnumNumberBody=K1;h.assertEnumNumberMember=J1;h.assertEnumStringBody=V1;h.assertEnumStringMember=$1;h.assertEnumSymbolBody=Y1;h.assertExistsTypeAnnotation=i1;h.assertExportAllDeclaration=uv;h.assertExportDeclaration=bO;h.assertExportDefaultDeclaration=cv;h.assertExportDefaultSpecifier=xI;h.assertExportNamedDeclaration=pv;h.assertExportNamespaceSpecifier=Dv;h.assertExportSpecifier=fv;h.assertExpression=qw;h.assertExpressionStatement=PA;h.assertExpressionWrapper=Qw;h.assertFile=EA;h.assertFlow=EO;h.assertFlowBaseAnnotation=AO;h.assertFlowDeclaration=vO;h.assertFlowPredicate=IO;h.assertFlowType=gO;h.assertFor=Zw;h.assertForInStatement=gA;h.assertForOfStatement=dv;h.assertForStatement=AA;h.assertForXStatement=eO;h.assertFunction=tO;h.assertFunctionDeclaration=vA;h.assertFunctionExpression=IA;h.assertFunctionParent=rO;h.assertFunctionTypeAnnotation=s1;h.assertFunctionTypeParam=a1;h.assertGenericTypeAnnotation=n1;h.assertIdentifier=wA;h.assertIfStatement=OA;h.assertImmutable=uO;h.assertImport=Nv;h.assertImportAttribute=TI;h.assertImportDeclaration=hv;h.assertImportDefaultSpecifier=yv;h.assertImportExpression=bv;h.assertImportNamespaceSpecifier=mv;h.assertImportOrExportDeclaration=TO;h.assertImportSpecifier=Tv;h.assertIndexedAccessType=z1;h.assertInferredPredicate=o1;h.assertInterfaceDeclaration=u1;h.assertInterfaceExtends=l1;h.assertInterfaceTypeAnnotation=c1;h.assertInterpreterDirective=uA;h.assertIntersectionTypeAnnotation=p1;h.assertJSX=NO;h.assertJSXAttribute=G1;h.assertJSXClosingElement=Q1;h.assertJSXClosingFragment=pI;h.assertJSXElement=Z1;h.assertJSXEmptyExpression=eI;h.assertJSXExpressionContainer=tI;h.assertJSXFragment=uI;h.assertJSXIdentifier=iI;h.assertJSXMemberExpression=sI;h.assertJSXNamespacedName=aI;h.assertJSXOpeningElement=nI;h.assertJSXOpeningFragment=cI;h.assertJSXSpreadAttribute=oI;h.assertJSXSpreadChild=rI;h.assertJSXText=lI;h.assertLVal=nO;h.assertLabeledStatement=NA;h.assertLiteral=lO;h.assertLogicalExpression=MA;h.assertLoop=Hw;h.assertMemberExpression=jA;h.assertMetaProperty=Sv;h.assertMethod=pO;h.assertMiscellaneous=CO;h.assertMixedTypeAnnotation=f1;h.assertModuleDeclaration=RO;h.assertModuleExpression=AI;h.assertModuleSpecifier=SO;h.assertNewExpression=BA;h.assertNoop=fI;h.assertNullLiteral=LA;h.assertNullLiteralTypeAnnotation=Yv;h.assertNullableTypeAnnotation=h1;h.assertNumberLiteral=MO;h.assertNumberLiteralTypeAnnotation=y1;h.assertNumberTypeAnnotation=m1;h.assertNumericLiteral=DA;h.assertObjectExpression=RA;h.assertObjectMember=fO;h.assertObjectMethod=UA;h.assertObjectPattern=Pv;h.assertObjectProperty=qA;h.assertObjectTypeAnnotation=T1;h.assertObjectTypeCallProperty=S1;h.assertObjectTypeIndexer=x1;h.assertObjectTypeInternalSlot=b1;h.assertObjectTypeProperty=P1;h.assertObjectTypeSpreadProperty=E1;h.assertOpaqueType=g1;h.assertOptionalCallExpression=kv;h.assertOptionalIndexedAccessType=H1;h.assertOptionalMemberExpression=Lv;h.assertParenthesizedExpression=XA;h.assertPattern=yO;h.assertPatternLike=aO;h.assertPipelineBareFunction=wI;h.assertPipelinePrimaryTopicReference=OI;h.assertPipelineTopicExpression=II;h.assertPlaceholder=dI;h.assertPrivate=PO;h.assertPrivateName=Fv;h.assertProgram=FA;h.assertProperty=dO;h.assertPureish=iO;h.assertQualifiedTypeIdentifier=A1;h.assertRecordExpression=PI;h.assertRegExpLiteral=_A;h.assertRegexLiteral=jO;h.assertRestElement=KA;h.assertRestProperty=BO;h.assertReturnStatement=VA;h.assertScopable=Vw;h.assertSequenceExpression=YA;h.assertSpreadElement=Ev;h.assertSpreadProperty=FO;h.assertStandardized=Uw;h.assertStatement=Jw;h.assertStaticBlock=Rv;h.assertStringLiteral=CA;h.assertStringLiteralTypeAnnotation=v1;h.assertStringTypeAnnotation=I1;h.assertSuper=gv;h.assertSwitchCase=JA;h.assertSwitchStatement=$A;h.assertSymbolTypeAnnotation=w1;h.assertTSAnyKeyword=FI;h.assertTSArrayType=sw;h.assertTSAsExpression=gw;h.assertTSBaseType=_O;h.assertTSBigIntKeyword=UI;h.assertTSBooleanKeyword=RI;h.assertTSCallSignatureDeclaration=kI;h.assertTSConditionalType=pw;h.assertTSConstructSignatureDeclaration=_I;h.assertTSConstructorType=ZI;h.assertTSDeclareFunction=CI;h.assertTSDeclareMethod=DI;h.assertTSEntityName=oO;h.assertTSEnumDeclaration=Iw;h.assertTSEnumMember=ww;h.assertTSExportAssignment=_w;h.assertTSExpressionWithTypeArguments=bw;h.assertTSExternalModuleReference=Lw;h.assertTSFunctionType=QI;h.assertTSImportEqualsDeclaration=Dw;h.assertTSImportType=Cw;h.assertTSIndexSignature=BI;h.assertTSIndexedAccessType=yw;h.assertTSInferType=fw;h.assertTSInstantiationExpression=Ew;h.assertTSInterfaceBody=xw;h.assertTSInterfaceDeclaration=Sw;h.assertTSIntersectionType=cw;h.assertTSIntrinsicKeyword=qI;h.assertTSLiteralType=Tw;h.assertTSMappedType=mw;h.assertTSMethodSignature=jI;h.assertTSModuleBlock=Nw;h.assertTSModuleDeclaration=Ow;h.assertTSNamedTupleMember=lw;h.assertTSNamespaceExportDeclaration=Mw;h.assertTSNeverKeyword=KI;h.assertTSNonNullExpression=kw;h.assertTSNullKeyword=VI;h.assertTSNumberKeyword=YI;h.assertTSObjectKeyword=XI;h.assertTSOptionalType=nw;h.assertTSParameterProperty=NI;h.assertTSParenthesizedType=dw;h.assertTSPropertySignature=MI;h.assertTSQualifiedName=LI;h.assertTSRestType=ow;h.assertTSSatisfiesExpression=Aw;h.assertTSStringKeyword=JI;h.assertTSSymbolKeyword=$I;h.assertTSThisType=GI;h.assertTSTupleType=aw;h.assertTSType=kO;h.assertTSTypeAliasDeclaration=Pw;h.assertTSTypeAnnotation=jw;h.assertTSTypeAssertion=vw;h.assertTSTypeElement=LO;h.assertTSTypeLiteral=iw;h.assertTSTypeOperator=hw;h.assertTSTypeParameter=Rw;h.assertTSTypeParameterDeclaration=Fw;h.assertTSTypeParameterInstantiation=Bw;h.assertTSTypePredicate=tw;h.assertTSTypeQuery=rw;h.assertTSTypeReference=ew;h.assertTSUndefinedKeyword=WI;h.assertTSUnionType=uw;h.assertTSUnknownKeyword=zI;h.assertTSVoidKeyword=HI;h.assertTaggedTemplateExpression=Av;h.assertTemplateElement=vv;h.assertTemplateLiteral=Iv;h.assertTerminatorless=$w;h.assertThisExpression=WA;h.assertThisTypeAnnotation=O1;h.assertThrowStatement=zA;h.assertTopicReference=vI;h.assertTryStatement=HA;h.assertTupleExpression=EI;h.assertTupleTypeAnnotation=N1;h.assertTypeAlias=D1;h.assertTypeAnnotation=L1;h.assertTypeCastExpression=k1;h.assertTypeParameter=_1;h.assertTypeParameterDeclaration=M1;h.assertTypeParameterInstantiation=j1;h.assertTypeScript=DO;h.assertTypeofTypeAnnotation=C1;h.assertUnaryExpression=GA;h.assertUnaryLike=hO;h.assertUnionTypeAnnotation=B1;h.assertUpdateExpression=QA;h.assertUserWhitespacable=cO;h.assertV8IntrinsicIdentifier=hI;h.assertVariableDeclaration=ZA;h.assertVariableDeclarator=ev;h.assertVariance=F1;h.assertVoidTypeAnnotation=R1;h.assertWhile=Gw;h.assertWhileStatement=tv;h.assertWithStatement=rv;h.assertYieldExpression=wv;var aA=Et(),tr=Vt();function y(t,e,r){if(!(0, aA.default)(t,e,r))throw new Error(`Expected type "${t}" with option ${JSON.stringify(r)}, but instead got "${e.type}".`)}function nA(t,e){y("ArrayExpression",t,e);}function oA(t,e){y("AssignmentExpression",t,e);}function lA(t,e){y("BinaryExpression",t,e);}function uA(t,e){y("InterpreterDirective",t,e);}function cA(t,e){y("Directive",t,e);}function pA(t,e){y("DirectiveLiteral",t,e);}function fA(t,e){y("BlockStatement",t,e);}function dA(t,e){y("BreakStatement",t,e);}function hA(t,e){y("CallExpression",t,e);}function yA(t,e){y("CatchClause",t,e);}function mA(t,e){y("ConditionalExpression",t,e);}function TA(t,e){y("ContinueStatement",t,e);}function bA(t,e){y("DebuggerStatement",t,e);}function SA(t,e){y("DoWhileStatement",t,e);}function xA(t,e){y("EmptyStatement",t,e);}function PA(t,e){y("ExpressionStatement",t,e);}function EA(t,e){y("File",t,e);}function gA(t,e){y("ForInStatement",t,e);}function AA(t,e){y("ForStatement",t,e);}function vA(t,e){y("FunctionDeclaration",t,e);}function IA(t,e){y("FunctionExpression",t,e);}function wA(t,e){y("Identifier",t,e);}function OA(t,e){y("IfStatement",t,e);}function NA(t,e){y("LabeledStatement",t,e);}function CA(t,e){y("StringLiteral",t,e);}function DA(t,e){y("NumericLiteral",t,e);}function LA(t,e){y("NullLiteral",t,e);}function kA(t,e){y("BooleanLiteral",t,e);}function _A(t,e){y("RegExpLiteral",t,e);}function MA(t,e){y("LogicalExpression",t,e);}function jA(t,e){y("MemberExpression",t,e);}function BA(t,e){y("NewExpression",t,e);}function FA(t,e){y("Program",t,e);}function RA(t,e){y("ObjectExpression",t,e);}function UA(t,e){y("ObjectMethod",t,e);}function qA(t,e){y("ObjectProperty",t,e);}function KA(t,e){y("RestElement",t,e);}function VA(t,e){y("ReturnStatement",t,e);}function YA(t,e){y("SequenceExpression",t,e);}function XA(t,e){y("ParenthesizedExpression",t,e);}function JA(t,e){y("SwitchCase",t,e);}function $A(t,e){y("SwitchStatement",t,e);}function WA(t,e){y("ThisExpression",t,e);}function zA(t,e){y("ThrowStatement",t,e);}function HA(t,e){y("TryStatement",t,e);}function GA(t,e){y("UnaryExpression",t,e);}function QA(t,e){y("UpdateExpression",t,e);}function ZA(t,e){y("VariableDeclaration",t,e);}function ev(t,e){y("VariableDeclarator",t,e);}function tv(t,e){y("WhileStatement",t,e);}function rv(t,e){y("WithStatement",t,e);}function iv(t,e){y("AssignmentPattern",t,e);}function sv(t,e){y("ArrayPattern",t,e);}function av(t,e){y("ArrowFunctionExpression",t,e);}function nv(t,e){y("ClassBody",t,e);}function ov(t,e){y("ClassExpression",t,e);}function lv(t,e){y("ClassDeclaration",t,e);}function uv(t,e){y("ExportAllDeclaration",t,e);}function cv(t,e){y("ExportDefaultDeclaration",t,e);}function pv(t,e){y("ExportNamedDeclaration",t,e);}function fv(t,e){y("ExportSpecifier",t,e);}function dv(t,e){y("ForOfStatement",t,e);}function hv(t,e){y("ImportDeclaration",t,e);}function yv(t,e){y("ImportDefaultSpecifier",t,e);}function mv(t,e){y("ImportNamespaceSpecifier",t,e);}function Tv(t,e){y("ImportSpecifier",t,e);}function bv(t,e){y("ImportExpression",t,e);}function Sv(t,e){y("MetaProperty",t,e);}function xv(t,e){y("ClassMethod",t,e);}function Pv(t,e){y("ObjectPattern",t,e);}function Ev(t,e){y("SpreadElement",t,e);}function gv(t,e){y("Super",t,e);}function Av(t,e){y("TaggedTemplateExpression",t,e);}function vv(t,e){y("TemplateElement",t,e);}function Iv(t,e){y("TemplateLiteral",t,e);}function wv(t,e){y("YieldExpression",t,e);}function Ov(t,e){y("AwaitExpression",t,e);}function Nv(t,e){y("Import",t,e);}function Cv(t,e){y("BigIntLiteral",t,e);}function Dv(t,e){y("ExportNamespaceSpecifier",t,e);}function Lv(t,e){y("OptionalMemberExpression",t,e);}function kv(t,e){y("OptionalCallExpression",t,e);}function _v(t,e){y("ClassProperty",t,e);}function Mv(t,e){y("ClassAccessorProperty",t,e);}function jv(t,e){y("ClassPrivateProperty",t,e);}function Bv(t,e){y("ClassPrivateMethod",t,e);}function Fv(t,e){y("PrivateName",t,e);}function Rv(t,e){y("StaticBlock",t,e);}function Uv(t,e){y("AnyTypeAnnotation",t,e);}function qv(t,e){y("ArrayTypeAnnotation",t,e);}function Kv(t,e){y("BooleanTypeAnnotation",t,e);}function Vv(t,e){y("BooleanLiteralTypeAnnotation",t,e);}function Yv(t,e){y("NullLiteralTypeAnnotation",t,e);}function Xv(t,e){y("ClassImplements",t,e);}function Jv(t,e){y("DeclareClass",t,e);}function $v(t,e){y("DeclareFunction",t,e);}function Wv(t,e){y("DeclareInterface",t,e);}function zv(t,e){y("DeclareModule",t,e);}function Hv(t,e){y("DeclareModuleExports",t,e);}function Gv(t,e){y("DeclareTypeAlias",t,e);}function Qv(t,e){y("DeclareOpaqueType",t,e);}function Zv(t,e){y("DeclareVariable",t,e);}function e1(t,e){y("DeclareExportDeclaration",t,e);}function t1(t,e){y("DeclareExportAllDeclaration",t,e);}function r1(t,e){y("DeclaredPredicate",t,e);}function i1(t,e){y("ExistsTypeAnnotation",t,e);}function s1(t,e){y("FunctionTypeAnnotation",t,e);}function a1(t,e){y("FunctionTypeParam",t,e);}function n1(t,e){y("GenericTypeAnnotation",t,e);}function o1(t,e){y("InferredPredicate",t,e);}function l1(t,e){y("InterfaceExtends",t,e);}function u1(t,e){y("InterfaceDeclaration",t,e);}function c1(t,e){y("InterfaceTypeAnnotation",t,e);}function p1(t,e){y("IntersectionTypeAnnotation",t,e);}function f1(t,e){y("MixedTypeAnnotation",t,e);}function d1(t,e){y("EmptyTypeAnnotation",t,e);}function h1(t,e){y("NullableTypeAnnotation",t,e);}function y1(t,e){y("NumberLiteralTypeAnnotation",t,e);}function m1(t,e){y("NumberTypeAnnotation",t,e);}function T1(t,e){y("ObjectTypeAnnotation",t,e);}function b1(t,e){y("ObjectTypeInternalSlot",t,e);}function S1(t,e){y("ObjectTypeCallProperty",t,e);}function x1(t,e){y("ObjectTypeIndexer",t,e);}function P1(t,e){y("ObjectTypeProperty",t,e);}function E1(t,e){y("ObjectTypeSpreadProperty",t,e);}function g1(t,e){y("OpaqueType",t,e);}function A1(t,e){y("QualifiedTypeIdentifier",t,e);}function v1(t,e){y("StringLiteralTypeAnnotation",t,e);}function I1(t,e){y("StringTypeAnnotation",t,e);}function w1(t,e){y("SymbolTypeAnnotation",t,e);}function O1(t,e){y("ThisTypeAnnotation",t,e);}function N1(t,e){y("TupleTypeAnnotation",t,e);}function C1(t,e){y("TypeofTypeAnnotation",t,e);}function D1(t,e){y("TypeAlias",t,e);}function L1(t,e){y("TypeAnnotation",t,e);}function k1(t,e){y("TypeCastExpression",t,e);}function _1(t,e){y("TypeParameter",t,e);}function M1(t,e){y("TypeParameterDeclaration",t,e);}function j1(t,e){y("TypeParameterInstantiation",t,e);}function B1(t,e){y("UnionTypeAnnotation",t,e);}function F1(t,e){y("Variance",t,e);}function R1(t,e){y("VoidTypeAnnotation",t,e);}function U1(t,e){y("EnumDeclaration",t,e);}function q1(t,e){y("EnumBooleanBody",t,e);}function K1(t,e){y("EnumNumberBody",t,e);}function V1(t,e){y("EnumStringBody",t,e);}function Y1(t,e){y("EnumSymbolBody",t,e);}function X1(t,e){y("EnumBooleanMember",t,e);}function J1(t,e){y("EnumNumberMember",t,e);}function $1(t,e){y("EnumStringMember",t,e);}function W1(t,e){y("EnumDefaultedMember",t,e);}function z1(t,e){y("IndexedAccessType",t,e);}function H1(t,e){y("OptionalIndexedAccessType",t,e);}function G1(t,e){y("JSXAttribute",t,e);}function Q1(t,e){y("JSXClosingElement",t,e);}function Z1(t,e){y("JSXElement",t,e);}function eI(t,e){y("JSXEmptyExpression",t,e);}function tI(t,e){y("JSXExpressionContainer",t,e);}function rI(t,e){y("JSXSpreadChild",t,e);}function iI(t,e){y("JSXIdentifier",t,e);}function sI(t,e){y("JSXMemberExpression",t,e);}function aI(t,e){y("JSXNamespacedName",t,e);}function nI(t,e){y("JSXOpeningElement",t,e);}function oI(t,e){y("JSXSpreadAttribute",t,e);}function lI(t,e){y("JSXText",t,e);}function uI(t,e){y("JSXFragment",t,e);}function cI(t,e){y("JSXOpeningFragment",t,e);}function pI(t,e){y("JSXClosingFragment",t,e);}function fI(t,e){y("Noop",t,e);}function dI(t,e){y("Placeholder",t,e);}function hI(t,e){y("V8IntrinsicIdentifier",t,e);}function yI(t,e){y("ArgumentPlaceholder",t,e);}function mI(t,e){y("BindExpression",t,e);}function TI(t,e){y("ImportAttribute",t,e);}function bI(t,e){y("Decorator",t,e);}function SI(t,e){y("DoExpression",t,e);}function xI(t,e){y("ExportDefaultSpecifier",t,e);}function PI(t,e){y("RecordExpression",t,e);}function EI(t,e){y("TupleExpression",t,e);}function gI(t,e){y("DecimalLiteral",t,e);}function AI(t,e){y("ModuleExpression",t,e);}function vI(t,e){y("TopicReference",t,e);}function II(t,e){y("PipelineTopicExpression",t,e);}function wI(t,e){y("PipelineBareFunction",t,e);}function OI(t,e){y("PipelinePrimaryTopicReference",t,e);}function NI(t,e){y("TSParameterProperty",t,e);}function CI(t,e){y("TSDeclareFunction",t,e);}function DI(t,e){y("TSDeclareMethod",t,e);}function LI(t,e){y("TSQualifiedName",t,e);}function kI(t,e){y("TSCallSignatureDeclaration",t,e);}function _I(t,e){y("TSConstructSignatureDeclaration",t,e);}function MI(t,e){y("TSPropertySignature",t,e);}function jI(t,e){y("TSMethodSignature",t,e);}function BI(t,e){y("TSIndexSignature",t,e);}function FI(t,e){y("TSAnyKeyword",t,e);}function RI(t,e){y("TSBooleanKeyword",t,e);}function UI(t,e){y("TSBigIntKeyword",t,e);}function qI(t,e){y("TSIntrinsicKeyword",t,e);}function KI(t,e){y("TSNeverKeyword",t,e);}function VI(t,e){y("TSNullKeyword",t,e);}function YI(t,e){y("TSNumberKeyword",t,e);}function XI(t,e){y("TSObjectKeyword",t,e);}function JI(t,e){y("TSStringKeyword",t,e);}function $I(t,e){y("TSSymbolKeyword",t,e);}function WI(t,e){y("TSUndefinedKeyword",t,e);}function zI(t,e){y("TSUnknownKeyword",t,e);}function HI(t,e){y("TSVoidKeyword",t,e);}function GI(t,e){y("TSThisType",t,e);}function QI(t,e){y("TSFunctionType",t,e);}function ZI(t,e){y("TSConstructorType",t,e);}function ew(t,e){y("TSTypeReference",t,e);}function tw(t,e){y("TSTypePredicate",t,e);}function rw(t,e){y("TSTypeQuery",t,e);}function iw(t,e){y("TSTypeLiteral",t,e);}function sw(t,e){y("TSArrayType",t,e);}function aw(t,e){y("TSTupleType",t,e);}function nw(t,e){y("TSOptionalType",t,e);}function ow(t,e){y("TSRestType",t,e);}function lw(t,e){y("TSNamedTupleMember",t,e);}function uw(t,e){y("TSUnionType",t,e);}function cw(t,e){y("TSIntersectionType",t,e);}function pw(t,e){y("TSConditionalType",t,e);}function fw(t,e){y("TSInferType",t,e);}function dw(t,e){y("TSParenthesizedType",t,e);}function hw(t,e){y("TSTypeOperator",t,e);}function yw(t,e){y("TSIndexedAccessType",t,e);}function mw(t,e){y("TSMappedType",t,e);}function Tw(t,e){y("TSLiteralType",t,e);}function bw(t,e){y("TSExpressionWithTypeArguments",t,e);}function Sw(t,e){y("TSInterfaceDeclaration",t,e);}function xw(t,e){y("TSInterfaceBody",t,e);}function Pw(t,e){y("TSTypeAliasDeclaration",t,e);}function Ew(t,e){y("TSInstantiationExpression",t,e);}function gw(t,e){y("TSAsExpression",t,e);}function Aw(t,e){y("TSSatisfiesExpression",t,e);}function vw(t,e){y("TSTypeAssertion",t,e);}function Iw(t,e){y("TSEnumDeclaration",t,e);}function ww(t,e){y("TSEnumMember",t,e);}function Ow(t,e){y("TSModuleDeclaration",t,e);}function Nw(t,e){y("TSModuleBlock",t,e);}function Cw(t,e){y("TSImportType",t,e);}function Dw(t,e){y("TSImportEqualsDeclaration",t,e);}function Lw(t,e){y("TSExternalModuleReference",t,e);}function kw(t,e){y("TSNonNullExpression",t,e);}function _w(t,e){y("TSExportAssignment",t,e);}function Mw(t,e){y("TSNamespaceExportDeclaration",t,e);}function jw(t,e){y("TSTypeAnnotation",t,e);}function Bw(t,e){y("TSTypeParameterInstantiation",t,e);}function Fw(t,e){y("TSTypeParameterDeclaration",t,e);}function Rw(t,e){y("TSTypeParameter",t,e);}function Uw(t,e){y("Standardized",t,e);}function qw(t,e){y("Expression",t,e);}function Kw(t,e){y("Binary",t,e);}function Vw(t,e){y("Scopable",t,e);}function Yw(t,e){y("BlockParent",t,e);}function Xw(t,e){y("Block",t,e);}function Jw(t,e){y("Statement",t,e);}function $w(t,e){y("Terminatorless",t,e);}function Ww(t,e){y("CompletionStatement",t,e);}function zw(t,e){y("Conditional",t,e);}function Hw(t,e){y("Loop",t,e);}function Gw(t,e){y("While",t,e);}function Qw(t,e){y("ExpressionWrapper",t,e);}function Zw(t,e){y("For",t,e);}function eO(t,e){y("ForXStatement",t,e);}function tO(t,e){y("Function",t,e);}function rO(t,e){y("FunctionParent",t,e);}function iO(t,e){y("Pureish",t,e);}function sO(t,e){y("Declaration",t,e);}function aO(t,e){y("PatternLike",t,e);}function nO(t,e){y("LVal",t,e);}function oO(t,e){y("TSEntityName",t,e);}function lO(t,e){y("Literal",t,e);}function uO(t,e){y("Immutable",t,e);}function cO(t,e){y("UserWhitespacable",t,e);}function pO(t,e){y("Method",t,e);}function fO(t,e){y("ObjectMember",t,e);}function dO(t,e){y("Property",t,e);}function hO(t,e){y("UnaryLike",t,e);}function yO(t,e){y("Pattern",t,e);}function mO(t,e){y("Class",t,e);}function TO(t,e){y("ImportOrExportDeclaration",t,e);}function bO(t,e){y("ExportDeclaration",t,e);}function SO(t,e){y("ModuleSpecifier",t,e);}function xO(t,e){y("Accessor",t,e);}function PO(t,e){y("Private",t,e);}function EO(t,e){y("Flow",t,e);}function gO(t,e){y("FlowType",t,e);}function AO(t,e){y("FlowBaseAnnotation",t,e);}function vO(t,e){y("FlowDeclaration",t,e);}function IO(t,e){y("FlowPredicate",t,e);}function wO(t,e){y("EnumBody",t,e);}function OO(t,e){y("EnumMember",t,e);}function NO(t,e){y("JSX",t,e);}function CO(t,e){y("Miscellaneous",t,e);}function DO(t,e){y("TypeScript",t,e);}function LO(t,e){y("TSTypeElement",t,e);}function kO(t,e){y("TSType",t,e);}function _O(t,e){y("TSBaseType",t,e);}function MO(t,e){(0, tr.default)("assertNumberLiteral","assertNumericLiteral"),y("NumberLiteral",t,e);}function jO(t,e){(0, tr.default)("assertRegexLiteral","assertRegExpLiteral"),y("RegexLiteral",t,e);}function BO(t,e){(0, tr.default)("assertRestProperty","assertRestElement"),y("RestProperty",t,e);}function FO(t,e){(0, tr.default)("assertSpreadProperty","assertSpreadElement"),y("SpreadProperty",t,e);}function RO(t,e){(0, tr.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),y("ModuleDeclaration",t,e);}});var _l=v(Yr=>{Object.defineProperty(Yr,"__esModule",{value:!0});Yr.default=void 0;var ke=be();Yr.default=UO;function UO(t){switch(t){case"string":return (0, ke.stringTypeAnnotation)();case"number":return (0, ke.numberTypeAnnotation)();case"undefined":return (0, ke.voidTypeAnnotation)();case"boolean":return (0, ke.booleanTypeAnnotation)();case"function":return (0, ke.genericTypeAnnotation)((0, ke.identifier)("Function"));case"object":return (0, ke.genericTypeAnnotation)((0, ke.identifier)("Object"));case"symbol":return (0, ke.genericTypeAnnotation)((0, ke.identifier)("Symbol"));case"bigint":return (0, ke.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+t)}});var Cs=v(Ns=>{Object.defineProperty(Ns,"__esModule",{value:!0});Ns.default=jl;var rr=le();function Ml(t){return (0, rr.isIdentifier)(t)?t.name:`${t.id.name}.${Ml(t.qualification)}`}function jl(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,a=[];for(let n=0;n<e.length;n++){let o=e[n];if(o&&!(a.indexOf(o)>=0)){if((0, rr.isAnyTypeAnnotation)(o))return [o];if((0, rr.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0, rr.isUnionTypeAnnotation)(o)){s.has(o.types)||(e.push(...o.types),s.add(o.types));continue}if((0, rr.isGenericTypeAnnotation)(o)){let l=Ml(o.id);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=jl(u.typeParameters.params)):u=o.typeParameters;}else r.set(l,o);continue}a.push(o);}}for(let[,n]of i)a.push(n);for(let[,n]of r)a.push(n);return a}});var Bl=v(Ds=>{Object.defineProperty(Ds,"__esModule",{value:!0});Ds.default=VO;var qO=be(),KO=Cs();function VO(t){let e=(0, KO.default)(t);return e.length===1?e[0]:(0, qO.unionTypeAnnotation)(e)}});var Ul=v(Ls=>{Object.defineProperty(Ls,"__esModule",{value:!0});Ls.default=Rl;var ir=le();function Fl(t){return (0, ir.isIdentifier)(t)?t.name:`${t.right.name}.${Fl(t.left)}`}function Rl(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,a=[];for(let n=0;n<e.length;n++){let o=e[n];if(o&&!(a.indexOf(o)>=0)){if((0, ir.isTSAnyKeyword)(o))return [o];if((0, ir.isTSBaseType)(o)){i.set(o.type,o);continue}if((0, ir.isTSUnionType)(o)){s.has(o.types)||(e.push(...o.types),s.add(o.types));continue}if((0, ir.isTSTypeReference)(o)&&o.typeParameters){let l=Fl(o.typeName);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=Rl(u.typeParameters.params)):u=o.typeParameters;}else r.set(l,o);continue}a.push(o);}}for(let[,n]of i)a.push(n);for(let[,n]of r)a.push(n);return a}});var ql=v(ks=>{Object.defineProperty(ks,"__esModule",{value:!0});ks.default=$O;var YO=be(),XO=Ul(),JO=le();function $O(t){let e=t.map(i=>(0, JO.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0, XO.default)(e);return r.length===1?r[0]:(0, YO.tsUnionType)(r)}});var Kl=v(T=>{Object.defineProperty(T,"__esModule",{value:!0});Object.defineProperty(T,"AnyTypeAnnotation",{enumerable:!0,get:function(){return b.anyTypeAnnotation}});Object.defineProperty(T,"ArgumentPlaceholder",{enumerable:!0,get:function(){return b.argumentPlaceholder}});Object.defineProperty(T,"ArrayExpression",{enumerable:!0,get:function(){return b.arrayExpression}});Object.defineProperty(T,"ArrayPattern",{enumerable:!0,get:function(){return b.arrayPattern}});Object.defineProperty(T,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return b.arrayTypeAnnotation}});Object.defineProperty(T,"ArrowFunctionExpression",{enumerable:!0,get:function(){return b.arrowFunctionExpression}});Object.defineProperty(T,"AssignmentExpression",{enumerable:!0,get:function(){return b.assignmentExpression}});Object.defineProperty(T,"AssignmentPattern",{enumerable:!0,get:function(){return b.assignmentPattern}});Object.defineProperty(T,"AwaitExpression",{enumerable:!0,get:function(){return b.awaitExpression}});Object.defineProperty(T,"BigIntLiteral",{enumerable:!0,get:function(){return b.bigIntLiteral}});Object.defineProperty(T,"BinaryExpression",{enumerable:!0,get:function(){return b.binaryExpression}});Object.defineProperty(T,"BindExpression",{enumerable:!0,get:function(){return b.bindExpression}});Object.defineProperty(T,"BlockStatement",{enumerable:!0,get:function(){return b.blockStatement}});Object.defineProperty(T,"BooleanLiteral",{enumerable:!0,get:function(){return b.booleanLiteral}});Object.defineProperty(T,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return b.booleanLiteralTypeAnnotation}});Object.defineProperty(T,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return b.booleanTypeAnnotation}});Object.defineProperty(T,"BreakStatement",{enumerable:!0,get:function(){return b.breakStatement}});Object.defineProperty(T,"CallExpression",{enumerable:!0,get:function(){return b.callExpression}});Object.defineProperty(T,"CatchClause",{enumerable:!0,get:function(){return b.catchClause}});Object.defineProperty(T,"ClassAccessorProperty",{enumerable:!0,get:function(){return b.classAccessorProperty}});Object.defineProperty(T,"ClassBody",{enumerable:!0,get:function(){return b.classBody}});Object.defineProperty(T,"ClassDeclaration",{enumerable:!0,get:function(){return b.classDeclaration}});Object.defineProperty(T,"ClassExpression",{enumerable:!0,get:function(){return b.classExpression}});Object.defineProperty(T,"ClassImplements",{enumerable:!0,get:function(){return b.classImplements}});Object.defineProperty(T,"ClassMethod",{enumerable:!0,get:function(){return b.classMethod}});Object.defineProperty(T,"ClassPrivateMethod",{enumerable:!0,get:function(){return b.classPrivateMethod}});Object.defineProperty(T,"ClassPrivateProperty",{enumerable:!0,get:function(){return b.classPrivateProperty}});Object.defineProperty(T,"ClassProperty",{enumerable:!0,get:function(){return b.classProperty}});Object.defineProperty(T,"ConditionalExpression",{enumerable:!0,get:function(){return b.conditionalExpression}});Object.defineProperty(T,"ContinueStatement",{enumerable:!0,get:function(){return b.continueStatement}});Object.defineProperty(T,"DebuggerStatement",{enumerable:!0,get:function(){return b.debuggerStatement}});Object.defineProperty(T,"DecimalLiteral",{enumerable:!0,get:function(){return b.decimalLiteral}});Object.defineProperty(T,"DeclareClass",{enumerable:!0,get:function(){return b.declareClass}});Object.defineProperty(T,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return b.declareExportAllDeclaration}});Object.defineProperty(T,"DeclareExportDeclaration",{enumerable:!0,get:function(){return b.declareExportDeclaration}});Object.defineProperty(T,"DeclareFunction",{enumerable:!0,get:function(){return b.declareFunction}});Object.defineProperty(T,"DeclareInterface",{enumerable:!0,get:function(){return b.declareInterface}});Object.defineProperty(T,"DeclareModule",{enumerable:!0,get:function(){return b.declareModule}});Object.defineProperty(T,"DeclareModuleExports",{enumerable:!0,get:function(){return b.declareModuleExports}});Object.defineProperty(T,"DeclareOpaqueType",{enumerable:!0,get:function(){return b.declareOpaqueType}});Object.defineProperty(T,"DeclareTypeAlias",{enumerable:!0,get:function(){return b.declareTypeAlias}});Object.defineProperty(T,"DeclareVariable",{enumerable:!0,get:function(){return b.declareVariable}});Object.defineProperty(T,"DeclaredPredicate",{enumerable:!0,get:function(){return b.declaredPredicate}});Object.defineProperty(T,"Decorator",{enumerable:!0,get:function(){return b.decorator}});Object.defineProperty(T,"Directive",{enumerable:!0,get:function(){return b.directive}});Object.defineProperty(T,"DirectiveLiteral",{enumerable:!0,get:function(){return b.directiveLiteral}});Object.defineProperty(T,"DoExpression",{enumerable:!0,get:function(){return b.doExpression}});Object.defineProperty(T,"DoWhileStatement",{enumerable:!0,get:function(){return b.doWhileStatement}});Object.defineProperty(T,"EmptyStatement",{enumerable:!0,get:function(){return b.emptyStatement}});Object.defineProperty(T,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return b.emptyTypeAnnotation}});Object.defineProperty(T,"EnumBooleanBody",{enumerable:!0,get:function(){return b.enumBooleanBody}});Object.defineProperty(T,"EnumBooleanMember",{enumerable:!0,get:function(){return b.enumBooleanMember}});Object.defineProperty(T,"EnumDeclaration",{enumerable:!0,get:function(){return b.enumDeclaration}});Object.defineProperty(T,"EnumDefaultedMember",{enumerable:!0,get:function(){return b.enumDefaultedMember}});Object.defineProperty(T,"EnumNumberBody",{enumerable:!0,get:function(){return b.enumNumberBody}});Object.defineProperty(T,"EnumNumberMember",{enumerable:!0,get:function(){return b.enumNumberMember}});Object.defineProperty(T,"EnumStringBody",{enumerable:!0,get:function(){return b.enumStringBody}});Object.defineProperty(T,"EnumStringMember",{enumerable:!0,get:function(){return b.enumStringMember}});Object.defineProperty(T,"EnumSymbolBody",{enumerable:!0,get:function(){return b.enumSymbolBody}});Object.defineProperty(T,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return b.existsTypeAnnotation}});Object.defineProperty(T,"ExportAllDeclaration",{enumerable:!0,get:function(){return b.exportAllDeclaration}});Object.defineProperty(T,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return b.exportDefaultDeclaration}});Object.defineProperty(T,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return b.exportDefaultSpecifier}});Object.defineProperty(T,"ExportNamedDeclaration",{enumerable:!0,get:function(){return b.exportNamedDeclaration}});Object.defineProperty(T,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return b.exportNamespaceSpecifier}});Object.defineProperty(T,"ExportSpecifier",{enumerable:!0,get:function(){return b.exportSpecifier}});Object.defineProperty(T,"ExpressionStatement",{enumerable:!0,get:function(){return b.expressionStatement}});Object.defineProperty(T,"File",{enumerable:!0,get:function(){return b.file}});Object.defineProperty(T,"ForInStatement",{enumerable:!0,get:function(){return b.forInStatement}});Object.defineProperty(T,"ForOfStatement",{enumerable:!0,get:function(){return b.forOfStatement}});Object.defineProperty(T,"ForStatement",{enumerable:!0,get:function(){return b.forStatement}});Object.defineProperty(T,"FunctionDeclaration",{enumerable:!0,get:function(){return b.functionDeclaration}});Object.defineProperty(T,"FunctionExpression",{enumerable:!0,get:function(){return b.functionExpression}});Object.defineProperty(T,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return b.functionTypeAnnotation}});Object.defineProperty(T,"FunctionTypeParam",{enumerable:!0,get:function(){return b.functionTypeParam}});Object.defineProperty(T,"GenericTypeAnnotation",{enumerable:!0,get:function(){return b.genericTypeAnnotation}});Object.defineProperty(T,"Identifier",{enumerable:!0,get:function(){return b.identifier}});Object.defineProperty(T,"IfStatement",{enumerable:!0,get:function(){return b.ifStatement}});Object.defineProperty(T,"Import",{enumerable:!0,get:function(){return b.import}});Object.defineProperty(T,"ImportAttribute",{enumerable:!0,get:function(){return b.importAttribute}});Object.defineProperty(T,"ImportDeclaration",{enumerable:!0,get:function(){return b.importDeclaration}});Object.defineProperty(T,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return b.importDefaultSpecifier}});Object.defineProperty(T,"ImportExpression",{enumerable:!0,get:function(){return b.importExpression}});Object.defineProperty(T,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return b.importNamespaceSpecifier}});Object.defineProperty(T,"ImportSpecifier",{enumerable:!0,get:function(){return b.importSpecifier}});Object.defineProperty(T,"IndexedAccessType",{enumerable:!0,get:function(){return b.indexedAccessType}});Object.defineProperty(T,"InferredPredicate",{enumerable:!0,get:function(){return b.inferredPredicate}});Object.defineProperty(T,"InterfaceDeclaration",{enumerable:!0,get:function(){return b.interfaceDeclaration}});Object.defineProperty(T,"InterfaceExtends",{enumerable:!0,get:function(){return b.interfaceExtends}});Object.defineProperty(T,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return b.interfaceTypeAnnotation}});Object.defineProperty(T,"InterpreterDirective",{enumerable:!0,get:function(){return b.interpreterDirective}});Object.defineProperty(T,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return b.intersectionTypeAnnotation}});Object.defineProperty(T,"JSXAttribute",{enumerable:!0,get:function(){return b.jsxAttribute}});Object.defineProperty(T,"JSXClosingElement",{enumerable:!0,get:function(){return b.jsxClosingElement}});Object.defineProperty(T,"JSXClosingFragment",{enumerable:!0,get:function(){return b.jsxClosingFragment}});Object.defineProperty(T,"JSXElement",{enumerable:!0,get:function(){return b.jsxElement}});Object.defineProperty(T,"JSXEmptyExpression",{enumerable:!0,get:function(){return b.jsxEmptyExpression}});Object.defineProperty(T,"JSXExpressionContainer",{enumerable:!0,get:function(){return b.jsxExpressionContainer}});Object.defineProperty(T,"JSXFragment",{enumerable:!0,get:function(){return b.jsxFragment}});Object.defineProperty(T,"JSXIdentifier",{enumerable:!0,get:function(){return b.jsxIdentifier}});Object.defineProperty(T,"JSXMemberExpression",{enumerable:!0,get:function(){return b.jsxMemberExpression}});Object.defineProperty(T,"JSXNamespacedName",{enumerable:!0,get:function(){return b.jsxNamespacedName}});Object.defineProperty(T,"JSXOpeningElement",{enumerable:!0,get:function(){return b.jsxOpeningElement}});Object.defineProperty(T,"JSXOpeningFragment",{enumerable:!0,get:function(){return b.jsxOpeningFragment}});Object.defineProperty(T,"JSXSpreadAttribute",{enumerable:!0,get:function(){return b.jsxSpreadAttribute}});Object.defineProperty(T,"JSXSpreadChild",{enumerable:!0,get:function(){return b.jsxSpreadChild}});Object.defineProperty(T,"JSXText",{enumerable:!0,get:function(){return b.jsxText}});Object.defineProperty(T,"LabeledStatement",{enumerable:!0,get:function(){return b.labeledStatement}});Object.defineProperty(T,"LogicalExpression",{enumerable:!0,get:function(){return b.logicalExpression}});Object.defineProperty(T,"MemberExpression",{enumerable:!0,get:function(){return b.memberExpression}});Object.defineProperty(T,"MetaProperty",{enumerable:!0,get:function(){return b.metaProperty}});Object.defineProperty(T,"MixedTypeAnnotation",{enumerable:!0,get:function(){return b.mixedTypeAnnotation}});Object.defineProperty(T,"ModuleExpression",{enumerable:!0,get:function(){return b.moduleExpression}});Object.defineProperty(T,"NewExpression",{enumerable:!0,get:function(){return b.newExpression}});Object.defineProperty(T,"Noop",{enumerable:!0,get:function(){return b.noop}});Object.defineProperty(T,"NullLiteral",{enumerable:!0,get:function(){return b.nullLiteral}});Object.defineProperty(T,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return b.nullLiteralTypeAnnotation}});Object.defineProperty(T,"NullableTypeAnnotation",{enumerable:!0,get:function(){return b.nullableTypeAnnotation}});Object.defineProperty(T,"NumberLiteral",{enumerable:!0,get:function(){return b.numberLiteral}});Object.defineProperty(T,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return b.numberLiteralTypeAnnotation}});Object.defineProperty(T,"NumberTypeAnnotation",{enumerable:!0,get:function(){return b.numberTypeAnnotation}});Object.defineProperty(T,"NumericLiteral",{enumerable:!0,get:function(){return b.numericLiteral}});Object.defineProperty(T,"ObjectExpression",{enumerable:!0,get:function(){return b.objectExpression}});Object.defineProperty(T,"ObjectMethod",{enumerable:!0,get:function(){return b.objectMethod}});Object.defineProperty(T,"ObjectPattern",{enumerable:!0,get:function(){return b.objectPattern}});Object.defineProperty(T,"ObjectProperty",{enumerable:!0,get:function(){return b.objectProperty}});Object.defineProperty(T,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return b.objectTypeAnnotation}});Object.defineProperty(T,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return b.objectTypeCallProperty}});Object.defineProperty(T,"ObjectTypeIndexer",{enumerable:!0,get:function(){return b.objectTypeIndexer}});Object.defineProperty(T,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return b.objectTypeInternalSlot}});Object.defineProperty(T,"ObjectTypeProperty",{enumerable:!0,get:function(){return b.objectTypeProperty}});Object.defineProperty(T,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return b.objectTypeSpreadProperty}});Object.defineProperty(T,"OpaqueType",{enumerable:!0,get:function(){return b.opaqueType}});Object.defineProperty(T,"OptionalCallExpression",{enumerable:!0,get:function(){return b.optionalCallExpression}});Object.defineProperty(T,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return b.optionalIndexedAccessType}});Object.defineProperty(T,"OptionalMemberExpression",{enumerable:!0,get:function(){return b.optionalMemberExpression}});Object.defineProperty(T,"ParenthesizedExpression",{enumerable:!0,get:function(){return b.parenthesizedExpression}});Object.defineProperty(T,"PipelineBareFunction",{enumerable:!0,get:function(){return b.pipelineBareFunction}});Object.defineProperty(T,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return b.pipelinePrimaryTopicReference}});Object.defineProperty(T,"PipelineTopicExpression",{enumerable:!0,get:function(){return b.pipelineTopicExpression}});Object.defineProperty(T,"Placeholder",{enumerable:!0,get:function(){return b.placeholder}});Object.defineProperty(T,"PrivateName",{enumerable:!0,get:function(){return b.privateName}});Object.defineProperty(T,"Program",{enumerable:!0,get:function(){return b.program}});Object.defineProperty(T,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return b.qualifiedTypeIdentifier}});Object.defineProperty(T,"RecordExpression",{enumerable:!0,get:function(){return b.recordExpression}});Object.defineProperty(T,"RegExpLiteral",{enumerable:!0,get:function(){return b.regExpLiteral}});Object.defineProperty(T,"RegexLiteral",{enumerable:!0,get:function(){return b.regexLiteral}});Object.defineProperty(T,"RestElement",{enumerable:!0,get:function(){return b.restElement}});Object.defineProperty(T,"RestProperty",{enumerable:!0,get:function(){return b.restProperty}});Object.defineProperty(T,"ReturnStatement",{enumerable:!0,get:function(){return b.returnStatement}});Object.defineProperty(T,"SequenceExpression",{enumerable:!0,get:function(){return b.sequenceExpression}});Object.defineProperty(T,"SpreadElement",{enumerable:!0,get:function(){return b.spreadElement}});Object.defineProperty(T,"SpreadProperty",{enumerable:!0,get:function(){return b.spreadProperty}});Object.defineProperty(T,"StaticBlock",{enumerable:!0,get:function(){return b.staticBlock}});Object.defineProperty(T,"StringLiteral",{enumerable:!0,get:function(){return b.stringLiteral}});Object.defineProperty(T,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return b.stringLiteralTypeAnnotation}});Object.defineProperty(T,"StringTypeAnnotation",{enumerable:!0,get:function(){return b.stringTypeAnnotation}});Object.defineProperty(T,"Super",{enumerable:!0,get:function(){return b.super}});Object.defineProperty(T,"SwitchCase",{enumerable:!0,get:function(){return b.switchCase}});Object.defineProperty(T,"SwitchStatement",{enumerable:!0,get:function(){return b.switchStatement}});Object.defineProperty(T,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return b.symbolTypeAnnotation}});Object.defineProperty(T,"TSAnyKeyword",{enumerable:!0,get:function(){return b.tsAnyKeyword}});Object.defineProperty(T,"TSArrayType",{enumerable:!0,get:function(){return b.tsArrayType}});Object.defineProperty(T,"TSAsExpression",{enumerable:!0,get:function(){return b.tsAsExpression}});Object.defineProperty(T,"TSBigIntKeyword",{enumerable:!0,get:function(){return b.tsBigIntKeyword}});Object.defineProperty(T,"TSBooleanKeyword",{enumerable:!0,get:function(){return b.tsBooleanKeyword}});Object.defineProperty(T,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return b.tsCallSignatureDeclaration}});Object.defineProperty(T,"TSConditionalType",{enumerable:!0,get:function(){return b.tsConditionalType}});Object.defineProperty(T,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return b.tsConstructSignatureDeclaration}});Object.defineProperty(T,"TSConstructorType",{enumerable:!0,get:function(){return b.tsConstructorType}});Object.defineProperty(T,"TSDeclareFunction",{enumerable:!0,get:function(){return b.tsDeclareFunction}});Object.defineProperty(T,"TSDeclareMethod",{enumerable:!0,get:function(){return b.tsDeclareMethod}});Object.defineProperty(T,"TSEnumDeclaration",{enumerable:!0,get:function(){return b.tsEnumDeclaration}});Object.defineProperty(T,"TSEnumMember",{enumerable:!0,get:function(){return b.tsEnumMember}});Object.defineProperty(T,"TSExportAssignment",{enumerable:!0,get:function(){return b.tsExportAssignment}});Object.defineProperty(T,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return b.tsExpressionWithTypeArguments}});Object.defineProperty(T,"TSExternalModuleReference",{enumerable:!0,get:function(){return b.tsExternalModuleReference}});Object.defineProperty(T,"TSFunctionType",{enumerable:!0,get:function(){return b.tsFunctionType}});Object.defineProperty(T,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return b.tsImportEqualsDeclaration}});Object.defineProperty(T,"TSImportType",{enumerable:!0,get:function(){return b.tsImportType}});Object.defineProperty(T,"TSIndexSignature",{enumerable:!0,get:function(){return b.tsIndexSignature}});Object.defineProperty(T,"TSIndexedAccessType",{enumerable:!0,get:function(){return b.tsIndexedAccessType}});Object.defineProperty(T,"TSInferType",{enumerable:!0,get:function(){return b.tsInferType}});Object.defineProperty(T,"TSInstantiationExpression",{enumerable:!0,get:function(){return b.tsInstantiationExpression}});Object.defineProperty(T,"TSInterfaceBody",{enumerable:!0,get:function(){return b.tsInterfaceBody}});Object.defineProperty(T,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return b.tsInterfaceDeclaration}});Object.defineProperty(T,"TSIntersectionType",{enumerable:!0,get:function(){return b.tsIntersectionType}});Object.defineProperty(T,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return b.tsIntrinsicKeyword}});Object.defineProperty(T,"TSLiteralType",{enumerable:!0,get:function(){return b.tsLiteralType}});Object.defineProperty(T,"TSMappedType",{enumerable:!0,get:function(){return b.tsMappedType}});Object.defineProperty(T,"TSMethodSignature",{enumerable:!0,get:function(){return b.tsMethodSignature}});Object.defineProperty(T,"TSModuleBlock",{enumerable:!0,get:function(){return b.tsModuleBlock}});Object.defineProperty(T,"TSModuleDeclaration",{enumerable:!0,get:function(){return b.tsModuleDeclaration}});Object.defineProperty(T,"TSNamedTupleMember",{enumerable:!0,get:function(){return b.tsNamedTupleMember}});Object.defineProperty(T,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return b.tsNamespaceExportDeclaration}});Object.defineProperty(T,"TSNeverKeyword",{enumerable:!0,get:function(){return b.tsNeverKeyword}});Object.defineProperty(T,"TSNonNullExpression",{enumerable:!0,get:function(){return b.tsNonNullExpression}});Object.defineProperty(T,"TSNullKeyword",{enumerable:!0,get:function(){return b.tsNullKeyword}});Object.defineProperty(T,"TSNumberKeyword",{enumerable:!0,get:function(){return b.tsNumberKeyword}});Object.defineProperty(T,"TSObjectKeyword",{enumerable:!0,get:function(){return b.tsObjectKeyword}});Object.defineProperty(T,"TSOptionalType",{enumerable:!0,get:function(){return b.tsOptionalType}});Object.defineProperty(T,"TSParameterProperty",{enumerable:!0,get:function(){return b.tsParameterProperty}});Object.defineProperty(T,"TSParenthesizedType",{enumerable:!0,get:function(){return b.tsParenthesizedType}});Object.defineProperty(T,"TSPropertySignature",{enumerable:!0,get:function(){return b.tsPropertySignature}});Object.defineProperty(T,"TSQualifiedName",{enumerable:!0,get:function(){return b.tsQualifiedName}});Object.defineProperty(T,"TSRestType",{enumerable:!0,get:function(){return b.tsRestType}});Object.defineProperty(T,"TSSatisfiesExpression",{enumerable:!0,get:function(){return b.tsSatisfiesExpression}});Object.defineProperty(T,"TSStringKeyword",{enumerable:!0,get:function(){return b.tsStringKeyword}});Object.defineProperty(T,"TSSymbolKeyword",{enumerable:!0,get:function(){return b.tsSymbolKeyword}});Object.defineProperty(T,"TSThisType",{enumerable:!0,get:function(){return b.tsThisType}});Object.defineProperty(T,"TSTupleType",{enumerable:!0,get:function(){return b.tsTupleType}});Object.defineProperty(T,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return b.tsTypeAliasDeclaration}});Object.defineProperty(T,"TSTypeAnnotation",{enumerable:!0,get:function(){return b.tsTypeAnnotation}});Object.defineProperty(T,"TSTypeAssertion",{enumerable:!0,get:function(){return b.tsTypeAssertion}});Object.defineProperty(T,"TSTypeLiteral",{enumerable:!0,get:function(){return b.tsTypeLiteral}});Object.defineProperty(T,"TSTypeOperator",{enumerable:!0,get:function(){return b.tsTypeOperator}});Object.defineProperty(T,"TSTypeParameter",{enumerable:!0,get:function(){return b.tsTypeParameter}});Object.defineProperty(T,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return b.tsTypeParameterDeclaration}});Object.defineProperty(T,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return b.tsTypeParameterInstantiation}});Object.defineProperty(T,"TSTypePredicate",{enumerable:!0,get:function(){return b.tsTypePredicate}});Object.defineProperty(T,"TSTypeQuery",{enumerable:!0,get:function(){return b.tsTypeQuery}});Object.defineProperty(T,"TSTypeReference",{enumerable:!0,get:function(){return b.tsTypeReference}});Object.defineProperty(T,"TSUndefinedKeyword",{enumerable:!0,get:function(){return b.tsUndefinedKeyword}});Object.defineProperty(T,"TSUnionType",{enumerable:!0,get:function(){return b.tsUnionType}});Object.defineProperty(T,"TSUnknownKeyword",{enumerable:!0,get:function(){return b.tsUnknownKeyword}});Object.defineProperty(T,"TSVoidKeyword",{enumerable:!0,get:function(){return b.tsVoidKeyword}});Object.defineProperty(T,"TaggedTemplateExpression",{enumerable:!0,get:function(){return b.taggedTemplateExpression}});Object.defineProperty(T,"TemplateElement",{enumerable:!0,get:function(){return b.templateElement}});Object.defineProperty(T,"TemplateLiteral",{enumerable:!0,get:function(){return b.templateLiteral}});Object.defineProperty(T,"ThisExpression",{enumerable:!0,get:function(){return b.thisExpression}});Object.defineProperty(T,"ThisTypeAnnotation",{enumerable:!0,get:function(){return b.thisTypeAnnotation}});Object.defineProperty(T,"ThrowStatement",{enumerable:!0,get:function(){return b.throwStatement}});Object.defineProperty(T,"TopicReference",{enumerable:!0,get:function(){return b.topicReference}});Object.defineProperty(T,"TryStatement",{enumerable:!0,get:function(){return b.tryStatement}});Object.defineProperty(T,"TupleExpression",{enumerable:!0,get:function(){return b.tupleExpression}});Object.defineProperty(T,"TupleTypeAnnotation",{enumerable:!0,get:function(){return b.tupleTypeAnnotation}});Object.defineProperty(T,"TypeAlias",{enumerable:!0,get:function(){return b.typeAlias}});Object.defineProperty(T,"TypeAnnotation",{enumerable:!0,get:function(){return b.typeAnnotation}});Object.defineProperty(T,"TypeCastExpression",{enumerable:!0,get:function(){return b.typeCastExpression}});Object.defineProperty(T,"TypeParameter",{enumerable:!0,get:function(){return b.typeParameter}});Object.defineProperty(T,"TypeParameterDeclaration",{enumerable:!0,get:function(){return b.typeParameterDeclaration}});Object.defineProperty(T,"TypeParameterInstantiation",{enumerable:!0,get:function(){return b.typeParameterInstantiation}});Object.defineProperty(T,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return b.typeofTypeAnnotation}});Object.defineProperty(T,"UnaryExpression",{enumerable:!0,get:function(){return b.unaryExpression}});Object.defineProperty(T,"UnionTypeAnnotation",{enumerable:!0,get:function(){return b.unionTypeAnnotation}});Object.defineProperty(T,"UpdateExpression",{enumerable:!0,get:function(){return b.updateExpression}});Object.defineProperty(T,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return b.v8IntrinsicIdentifier}});Object.defineProperty(T,"VariableDeclaration",{enumerable:!0,get:function(){return b.variableDeclaration}});Object.defineProperty(T,"VariableDeclarator",{enumerable:!0,get:function(){return b.variableDeclarator}});Object.defineProperty(T,"Variance",{enumerable:!0,get:function(){return b.variance}});Object.defineProperty(T,"VoidTypeAnnotation",{enumerable:!0,get:function(){return b.voidTypeAnnotation}});Object.defineProperty(T,"WhileStatement",{enumerable:!0,get:function(){return b.whileStatement}});Object.defineProperty(T,"WithStatement",{enumerable:!0,get:function(){return b.withStatement}});Object.defineProperty(T,"YieldExpression",{enumerable:!0,get:function(){return b.yieldExpression}});var b=be();});var Yl=v(_s=>{Object.defineProperty(_s,"__esModule",{value:!0});_s.buildUndefinedNode=WO;var Vl=be();function WO(){return (0, Vl.unaryExpression)("void",(0, Vl.numericLiteral)(0),!0)}});var tt=v(Ms=>{Object.defineProperty(Ms,"__esModule",{value:!0});Ms.default=zO;var Xl=De(),Jl=le(),Ve=Function.call.bind(Object.prototype.hasOwnProperty);function $l(t,e,r,i){return t&&typeof t.type=="string"?zl(t,e,r,i):t}function Wl(t,e,r,i){return Array.isArray(t)?t.map(s=>$l(s,e,r,i)):$l(t,e,r,i)}function zO(t,e=!0,r=!1){return zl(t,e,r,new Map)}function zl(t,e=!0,r=!1,i){if(!t)return t;let{type:s}=t,a={type:t.type};if((0, Jl.isIdentifier)(t))a.name=t.name,Ve(t,"optional")&&typeof t.optional=="boolean"&&(a.optional=t.optional),Ve(t,"typeAnnotation")&&(a.typeAnnotation=e?Wl(t.typeAnnotation,!0,r,i):t.typeAnnotation);else if(Ve(Xl.NODE_FIELDS,s))for(let n of Object.keys(Xl.NODE_FIELDS[s]))Ve(t,n)&&(e?a[n]=(0, Jl.isFile)(t)&&n==="comments"?Xr(t.comments,e,r,i):Wl(t[n],!0,r,i):a[n]=t[n]);else throw new Error(`Unknown node type: "${s}"`);return Ve(t,"loc")&&(r?a.loc=null:a.loc=t.loc),Ve(t,"leadingComments")&&(a.leadingComments=Xr(t.leadingComments,e,r,i)),Ve(t,"innerComments")&&(a.innerComments=Xr(t.innerComments,e,r,i)),Ve(t,"trailingComments")&&(a.trailingComments=Xr(t.trailingComments,e,r,i)),Ve(t,"extra")&&(a.extra=Object.assign({},t.extra)),a}function Xr(t,e,r,i){return !t||!e?t:t.map(s=>{let a=i.get(s);if(a)return a;let{type:n,value:o,loc:l}=s,u={type:n,value:o,loc:l};return r&&(u.loc=null),i.set(s,u),u})}});var Hl=v(js=>{Object.defineProperty(js,"__esModule",{value:!0});js.default=GO;var HO=tt();function GO(t){return (0, HO.default)(t,!1)}});var Gl=v(Bs=>{Object.defineProperty(Bs,"__esModule",{value:!0});Bs.default=ZO;var QO=tt();function ZO(t){return (0, QO.default)(t)}});var Ql=v(Fs=>{Object.defineProperty(Fs,"__esModule",{value:!0});Fs.default=tN;var eN=tt();function tN(t){return (0, eN.default)(t,!0,!0)}});var Zl=v(Rs=>{Object.defineProperty(Rs,"__esModule",{value:!0});Rs.default=iN;var rN=tt();function iN(t){return (0, rN.default)(t,!1,!0)}});var qs=v(Us=>{Object.defineProperty(Us,"__esModule",{value:!0});Us.default=sN;function sN(t,e,r){if(!r||!t)return t;let i=`${e}Comments`;return t[i]?e==="leading"?t[i]=r.concat(t[i]):t[i].push(...r):t[i]=r,t}});var eu=v(Ks=>{Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=nN;var aN=qs();function nN(t,e,r,i){return (0, aN.default)(t,e,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var Jr=v(Vs=>{Object.defineProperty(Vs,"__esModule",{value:!0});Vs.default=oN;function oN(t,e,r){e&&r&&(e[t]=Array.from(new Set([].concat(e[t],r[t]).filter(Boolean))));}});var Xs=v(Ys=>{Object.defineProperty(Ys,"__esModule",{value:!0});Ys.default=uN;var lN=Jr();function uN(t,e){(0, lN.default)("innerComments",t,e);}});var $s=v(Js=>{Object.defineProperty(Js,"__esModule",{value:!0});Js.default=pN;var cN=Jr();function pN(t,e){(0, cN.default)("leadingComments",t,e);}});var zs=v(Ws=>{Object.defineProperty(Ws,"__esModule",{value:!0});Ws.default=dN;var fN=Jr();function dN(t,e){(0, fN.default)("trailingComments",t,e);}});var Gs=v(Hs=>{Object.defineProperty(Hs,"__esModule",{value:!0});Hs.default=TN;var hN=zs(),yN=$s(),mN=Xs();function TN(t,e){return (0, hN.default)(t,e),(0, yN.default)(t,e),(0, mN.default)(t,e),t}});var tu=v(Qs=>{Object.defineProperty(Qs,"__esModule",{value:!0});Qs.default=SN;var bN=Qe();function SN(t){return bN.COMMENT_KEYS.forEach(e=>{t[e]=null;}),t}});var ru=v(C=>{Object.defineProperty(C,"__esModule",{value:!0});C.WHILE_TYPES=C.USERWHITESPACABLE_TYPES=C.UNARYLIKE_TYPES=C.TYPESCRIPT_TYPES=C.TSTYPE_TYPES=C.TSTYPEELEMENT_TYPES=C.TSENTITYNAME_TYPES=C.TSBASETYPE_TYPES=C.TERMINATORLESS_TYPES=C.STATEMENT_TYPES=C.STANDARDIZED_TYPES=C.SCOPABLE_TYPES=C.PUREISH_TYPES=C.PROPERTY_TYPES=C.PRIVATE_TYPES=C.PATTERN_TYPES=C.PATTERNLIKE_TYPES=C.OBJECTMEMBER_TYPES=C.MODULESPECIFIER_TYPES=C.MODULEDECLARATION_TYPES=C.MISCELLANEOUS_TYPES=C.METHOD_TYPES=C.LVAL_TYPES=C.LOOP_TYPES=C.LITERAL_TYPES=C.JSX_TYPES=C.IMPORTOREXPORTDECLARATION_TYPES=C.IMMUTABLE_TYPES=C.FUNCTION_TYPES=C.FUNCTIONPARENT_TYPES=C.FOR_TYPES=C.FORXSTATEMENT_TYPES=C.FLOW_TYPES=C.FLOWTYPE_TYPES=C.FLOWPREDICATE_TYPES=C.FLOWDECLARATION_TYPES=C.FLOWBASEANNOTATION_TYPES=C.EXPRESSION_TYPES=C.EXPRESSIONWRAPPER_TYPES=C.EXPORTDECLARATION_TYPES=C.ENUMMEMBER_TYPES=C.ENUMBODY_TYPES=C.DECLARATION_TYPES=C.CONDITIONAL_TYPES=C.COMPLETIONSTATEMENT_TYPES=C.CLASS_TYPES=C.BLOCK_TYPES=C.BLOCKPARENT_TYPES=C.BINARY_TYPES=C.ACCESSOR_TYPES=void 0;var X=De();C.STANDARDIZED_TYPES=X.FLIPPED_ALIAS_KEYS.Standardized;C.EXPRESSION_TYPES=X.FLIPPED_ALIAS_KEYS.Expression;C.BINARY_TYPES=X.FLIPPED_ALIAS_KEYS.Binary;C.SCOPABLE_TYPES=X.FLIPPED_ALIAS_KEYS.Scopable;C.BLOCKPARENT_TYPES=X.FLIPPED_ALIAS_KEYS.BlockParent;C.BLOCK_TYPES=X.FLIPPED_ALIAS_KEYS.Block;C.STATEMENT_TYPES=X.FLIPPED_ALIAS_KEYS.Statement;C.TERMINATORLESS_TYPES=X.FLIPPED_ALIAS_KEYS.Terminatorless;C.COMPLETIONSTATEMENT_TYPES=X.FLIPPED_ALIAS_KEYS.CompletionStatement;C.CONDITIONAL_TYPES=X.FLIPPED_ALIAS_KEYS.Conditional;C.LOOP_TYPES=X.FLIPPED_ALIAS_KEYS.Loop;C.WHILE_TYPES=X.FLIPPED_ALIAS_KEYS.While;C.EXPRESSIONWRAPPER_TYPES=X.FLIPPED_ALIAS_KEYS.ExpressionWrapper;C.FOR_TYPES=X.FLIPPED_ALIAS_KEYS.For;C.FORXSTATEMENT_TYPES=X.FLIPPED_ALIAS_KEYS.ForXStatement;C.FUNCTION_TYPES=X.FLIPPED_ALIAS_KEYS.Function;C.FUNCTIONPARENT_TYPES=X.FLIPPED_ALIAS_KEYS.FunctionParent;C.PUREISH_TYPES=X.FLIPPED_ALIAS_KEYS.Pureish;C.DECLARATION_TYPES=X.FLIPPED_ALIAS_KEYS.Declaration;C.PATTERNLIKE_TYPES=X.FLIPPED_ALIAS_KEYS.PatternLike;C.LVAL_TYPES=X.FLIPPED_ALIAS_KEYS.LVal;C.TSENTITYNAME_TYPES=X.FLIPPED_ALIAS_KEYS.TSEntityName;C.LITERAL_TYPES=X.FLIPPED_ALIAS_KEYS.Literal;C.IMMUTABLE_TYPES=X.FLIPPED_ALIAS_KEYS.Immutable;C.USERWHITESPACABLE_TYPES=X.FLIPPED_ALIAS_KEYS.UserWhitespacable;C.METHOD_TYPES=X.FLIPPED_ALIAS_KEYS.Method;C.OBJECTMEMBER_TYPES=X.FLIPPED_ALIAS_KEYS.ObjectMember;C.PROPERTY_TYPES=X.FLIPPED_ALIAS_KEYS.Property;C.UNARYLIKE_TYPES=X.FLIPPED_ALIAS_KEYS.UnaryLike;C.PATTERN_TYPES=X.FLIPPED_ALIAS_KEYS.Pattern;C.CLASS_TYPES=X.FLIPPED_ALIAS_KEYS.Class;var xN=C.IMPORTOREXPORTDECLARATION_TYPES=X.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;C.EXPORTDECLARATION_TYPES=X.FLIPPED_ALIAS_KEYS.ExportDeclaration;C.MODULESPECIFIER_TYPES=X.FLIPPED_ALIAS_KEYS.ModuleSpecifier;C.ACCESSOR_TYPES=X.FLIPPED_ALIAS_KEYS.Accessor;C.PRIVATE_TYPES=X.FLIPPED_ALIAS_KEYS.Private;C.FLOW_TYPES=X.FLIPPED_ALIAS_KEYS.Flow;C.FLOWTYPE_TYPES=X.FLIPPED_ALIAS_KEYS.FlowType;C.FLOWBASEANNOTATION_TYPES=X.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;C.FLOWDECLARATION_TYPES=X.FLIPPED_ALIAS_KEYS.FlowDeclaration;C.FLOWPREDICATE_TYPES=X.FLIPPED_ALIAS_KEYS.FlowPredicate;C.ENUMBODY_TYPES=X.FLIPPED_ALIAS_KEYS.EnumBody;C.ENUMMEMBER_TYPES=X.FLIPPED_ALIAS_KEYS.EnumMember;C.JSX_TYPES=X.FLIPPED_ALIAS_KEYS.JSX;C.MISCELLANEOUS_TYPES=X.FLIPPED_ALIAS_KEYS.Miscellaneous;C.TYPESCRIPT_TYPES=X.FLIPPED_ALIAS_KEYS.TypeScript;C.TSTYPEELEMENT_TYPES=X.FLIPPED_ALIAS_KEYS.TSTypeElement;C.TSTYPE_TYPES=X.FLIPPED_ALIAS_KEYS.TSType;C.TSBASETYPE_TYPES=X.FLIPPED_ALIAS_KEYS.TSBaseType;C.MODULEDECLARATION_TYPES=xN;});var ta=v(ea=>{Object.defineProperty(ea,"__esModule",{value:!0});ea.default=PN;var $r=le(),Zs=be();function PN(t,e){if((0, $r.isBlockStatement)(t))return t;let r=[];return (0, $r.isEmptyStatement)(t)?r=[]:((0, $r.isStatement)(t)||((0, $r.isFunction)(e)?t=(0, Zs.returnStatement)(t):t=(0, Zs.expressionStatement)(t)),r=[t]),(0, Zs.blockStatement)(r)}});var iu=v(ra=>{Object.defineProperty(ra,"__esModule",{value:!0});ra.default=gN;var EN=ta();function gN(t,e="body"){let r=(0, EN.default)(t[e],t);return t[e]=r,r}});var sa=v(ia=>{Object.defineProperty(ia,"__esModule",{value:!0});ia.default=IN;var AN=gt(),vN=Ht();function IN(t){t=t+"";let e="";for(let r of t)e+=(0, vN.isIdentifierChar)(r.codePointAt(0))?r:"-";return e=e.replace(/^[-0-9]+/,""),e=e.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0, AN.default)(e)||(e=`_${e}`),e||"_"}});var su=v(aa=>{Object.defineProperty(aa,"__esModule",{value:!0});aa.default=ON;var wN=sa();function ON(t){return t=(0, wN.default)(t),(t==="eval"||t==="arguments")&&(t="_"+t),t}});var au=v(na=>{Object.defineProperty(na,"__esModule",{value:!0});na.default=DN;var NN=le(),CN=be();function DN(t,e=t.key||t.property){return !t.computed&&(0, NN.isIdentifier)(e)&&(e=(0, CN.stringLiteral)(e.name)),e}});var nu=v(Wr=>{Object.defineProperty(Wr,"__esModule",{value:!0});Wr.default=void 0;var sr=le();Wr.default=LN;function LN(t){if((0, sr.isExpressionStatement)(t)&&(t=t.expression),(0, sr.isExpression)(t))return t;if((0, sr.isClass)(t)?t.type="ClassExpression":(0, sr.isFunction)(t)&&(t.type="FunctionExpression"),!(0, sr.isExpression)(t))throw new Error(`cannot turn ${t.type} to an expression`);return t}});var ua=v(la=>{Object.defineProperty(la,"__esModule",{value:!0});la.default=oa;var kN=De();function oa(t,e,r){if(!t)return;let i=kN.VISITOR_KEYS[t.type];if(i){r=r||{},e(t,r);for(let s of i){let a=t[s];if(Array.isArray(a))for(let n of a)oa(n,e,r);else oa(a,e,r);}}}});var pa=v(ca=>{Object.defineProperty(ca,"__esModule",{value:!0});ca.default=jN;var _N=Qe(),ou=["tokens","start","end","loc","raw","rawValue"],MN=[..._N.COMMENT_KEYS,"comments",...ou];function jN(t,e={}){let r=e.preserveComments?ou:MN;for(let s of r)t[s]!=null&&(t[s]=void 0);for(let s of Object.keys(t))s[0]==="_"&&t[s]!=null&&(t[s]=void 0);let i=Object.getOwnPropertySymbols(t);for(let s of i)t[s]=null;}});var da=v(fa=>{Object.defineProperty(fa,"__esModule",{value:!0});fa.default=RN;var BN=ua(),FN=pa();function RN(t,e){return (0, BN.default)(t,FN.default,e),t}});var uu=v(ha=>{Object.defineProperty(ha,"__esModule",{value:!0});ha.default=dt;var lu=le(),UN=tt(),qN=da();function dt(t,e=t.key){let r;return t.kind==="method"?dt.increment()+"":((0, lu.isIdentifier)(e)?r=e.name:(0, lu.isStringLiteral)(e)?r=JSON.stringify(e.value):r=JSON.stringify((0, qN.default)((0, UN.default)(e))),t.computed&&(r=`[${r}]`),t.static&&(r=`static:${r}`),r)}dt.uid=0;dt.increment=function(){return dt.uid>=Number.MAX_SAFE_INTEGER?dt.uid=0:dt.uid++};});var cu=v(Hr=>{Object.defineProperty(Hr,"__esModule",{value:!0});Hr.default=void 0;var zr=le(),KN=be();Hr.default=VN;function VN(t,e){if((0, zr.isStatement)(t))return t;let r=!1,i;if((0, zr.isClass)(t))r=!0,i="ClassDeclaration";else if((0, zr.isFunction)(t))r=!0,i="FunctionDeclaration";else if((0, zr.isAssignmentExpression)(t))return (0, KN.expressionStatement)(t);if(r&&!t.id&&(i=!1),!i){if(e)return !1;throw new Error(`cannot turn ${t.type} to a statement`)}return t.type=i,t}});var pu=v(Gr=>{Object.defineProperty(Gr,"__esModule",{value:!0});Gr.default=void 0;var YN=gt(),de=be();Gr.default=ya;var XN=Function.call.bind(Object.prototype.toString);function JN(t){return XN(t)==="[object RegExp]"}function $N(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return !1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function ya(t){if(t===void 0)return (0, de.identifier)("undefined");if(t===!0||t===!1)return (0, de.booleanLiteral)(t);if(t===null)return (0, de.nullLiteral)();if(typeof t=="string")return (0, de.stringLiteral)(t);if(typeof t=="number"){let e;if(Number.isFinite(t))e=(0, de.numericLiteral)(Math.abs(t));else {let r;Number.isNaN(t)?r=(0, de.numericLiteral)(0):r=(0, de.numericLiteral)(1),e=(0, de.binaryExpression)("/",r,(0, de.numericLiteral)(0));}return (t<0||Object.is(t,-0))&&(e=(0, de.unaryExpression)("-",e)),e}if(JN(t)){let e=t.source,r=t.toString().match(/\/([a-z]+|)$/)[1];return (0, de.regExpLiteral)(e,r)}if(Array.isArray(t))return (0, de.arrayExpression)(t.map(ya));if($N(t)){let e=[];for(let r of Object.keys(t)){let i;(0, YN.default)(r)?i=(0, de.identifier)(r):i=(0, de.stringLiteral)(r),e.push((0, de.objectProperty)(i,ya(t[r])));}return (0, de.objectExpression)(e)}throw new Error("don't know how to turn this value into a node")}});var fu=v(ma=>{Object.defineProperty(ma,"__esModule",{value:!0});ma.default=zN;var WN=be();function zN(t,e,r=!1){return t.object=(0, WN.memberExpression)(t.object,t.property,t.computed),t.property=e,t.computed=!!r,t}});var hu=v(Ta=>{Object.defineProperty(Ta,"__esModule",{value:!0});Ta.default=GN;var du=Qe(),HN=Gs();function GN(t,e){if(!t||!e)return t;for(let r of du.INHERIT_KEYS.optional)t[r]==null&&(t[r]=e[r]);for(let r of Object.keys(e))r[0]==="_"&&r!=="__clone"&&(t[r]=e[r]);for(let r of du.INHERIT_KEYS.force)t[r]=e[r];return (0, HN.default)(t,e),t}});var yu=v(ba=>{Object.defineProperty(ba,"__esModule",{value:!0});ba.default=e2;var QN=be(),ZN=ve();function e2(t,e){if((0, ZN.isSuper)(t.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return t.object=(0, QN.memberExpression)(e,t.object),t}});var ar=v(xa=>{Object.defineProperty(xa,"__esModule",{value:!0});xa.default=Sa;var rt=le();function Sa(t,e,r,i){let s=[].concat(t),a=Object.create(null);for(;s.length;){let n=s.shift();if(!n||i&&((0, rt.isAssignmentExpression)(n)||(0, rt.isUnaryExpression)(n)))continue;let o=Sa.keys[n.type];if((0, rt.isIdentifier)(n)){e?(a[n.name]=a[n.name]||[]).push(n):a[n.name]=n;continue}if((0, rt.isExportDeclaration)(n)&&!(0, rt.isExportAllDeclaration)(n)){(0, rt.isDeclaration)(n.declaration)&&s.push(n.declaration);continue}if(r){if((0, rt.isFunctionDeclaration)(n)){s.push(n.id);continue}if((0, rt.isFunctionExpression)(n))continue}if(o)for(let l=0;l<o.length;l++){let u=o[l],p=n[u];p&&(Array.isArray(p)?s.push(...p):s.push(p));}}return a}Sa.keys={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"],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"]};});var mu=v(Qr=>{Object.defineProperty(Qr,"__esModule",{value:!0});Qr.default=void 0;var t2=ar();Qr.default=r2;function r2(t,e){return (0, t2.default)(t,e,!0)}});var Tu=v(Ea=>{Object.defineProperty(Ea,"__esModule",{value:!0});Ea.default=s2;var i2=De();function s2(t,e,r){typeof e=="function"&&(e={enter:e});let{enter:i,exit:s}=e;Pa(t,i,s,r,[]);}function Pa(t,e,r,i,s){let a=i2.VISITOR_KEYS[t.type];if(a){e&&e(t,s,i);for(let n of a){let o=t[n];if(Array.isArray(o))for(let l=0;l<o.length;l++){let u=o[l];u&&(s.push({node:t,key:n,index:l}),Pa(u,e,r,i,s),s.pop());}else o&&(s.push({node:t,key:n}),Pa(o,e,r,i,s),s.pop());}r&&r(t,s,i);}}});var bu=v(ga=>{Object.defineProperty(ga,"__esModule",{value:!0});ga.default=n2;var a2=ar();function n2(t,e,r){if(r&&t.type==="Identifier"&&e.type==="ObjectProperty"&&r.type==="ObjectExpression")return !1;let i=a2.default.keys[e.type];if(i)for(let s=0;s<i.length;s++){let a=i[s],n=e[a];if(Array.isArray(n)){if(n.indexOf(t)>=0)return !0}else if(n===t)return !0}return !1}});var va=v(Aa=>{Object.defineProperty(Aa,"__esModule",{value:!0});Aa.default=u2;var o2=le(),l2=Qe();function u2(t){return (0, o2.isVariableDeclaration)(t)&&(t.kind!=="var"||t[l2.BLOCK_SCOPED_SYMBOL])}});var xu=v(Ia=>{Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=p2;var Su=le(),c2=va();function p2(t){return (0, Su.isFunctionDeclaration)(t)||(0, Su.isClassDeclaration)(t)||(0, c2.default)(t)}});var Pu=v(wa=>{Object.defineProperty(wa,"__esModule",{value:!0});wa.default=h2;var f2=kr(),d2=le();function h2(t){return (0, f2.default)(t.type,"Immutable")?!0:(0, d2.isIdentifier)(t)?t.name==="undefined":!1}});var gu=v(Na=>{Object.defineProperty(Na,"__esModule",{value:!0});Na.default=Oa;var Eu=De();function Oa(t,e){if(typeof t!="object"||typeof e!="object"||t==null||e==null)return t===e;if(t.type!==e.type)return !1;let r=Object.keys(Eu.NODE_FIELDS[t.type]||t.type),i=Eu.VISITOR_KEYS[t.type];for(let s of r){let a=t[s],n=e[s];if(typeof a!=typeof n)return !1;if(!(a==null&&n==null)){if(a==null||n==null)return !1;if(Array.isArray(a)){if(!Array.isArray(n)||a.length!==n.length)return !1;for(let o=0;o<a.length;o++)if(!Oa(a[o],n[o]))return !1;continue}if(typeof a=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(a))if(a[o]!==n[o])return !1;continue}if(!Oa(a,n))return !1}}return !0}});var Au=v(Ca=>{Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=y2;function y2(t,e,r){switch(e.type){case"MemberExpression":case"OptionalMemberExpression":return e.property===t?!!e.computed:e.object===t;case"JSXMemberExpression":return e.object===t;case"VariableDeclarator":return e.init===t;case"ArrowFunctionExpression":return e.body===t;case"PrivateName":return !1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return e.key===t?!!e.computed:!1;case"ObjectProperty":return e.key===t?!!e.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return e.key===t?!!e.computed:!0;case"ClassPrivateProperty":return e.key!==t;case"ClassDeclaration":case"ClassExpression":return e.superClass===t;case"AssignmentExpression":return e.right===t;case"AssignmentPattern":return e.right===t;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:e.local===t;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 e.key!==t;case"TSEnumMember":return e.id!==t;case"TSPropertySignature":return e.key===t?!!e.computed:!0}return !0}});var vu=v(Da=>{Object.defineProperty(Da,"__esModule",{value:!0});Da.default=m2;var ht=le();function m2(t,e){return (0, ht.isBlockStatement)(t)&&((0, ht.isFunction)(e)||(0, ht.isCatchClause)(e))?!1:(0, ht.isPattern)(t)&&((0, ht.isFunction)(e)||(0, ht.isCatchClause)(e))?!0:(0, ht.isScopable)(t)}});var wu=v(La=>{Object.defineProperty(La,"__esModule",{value:!0});La.default=T2;var Iu=le();function T2(t){return (0, Iu.isImportDefaultSpecifier)(t)||(0, Iu.isIdentifier)(t.imported||t.exported,{name:"default"})}});var Ou=v(ka=>{Object.defineProperty(ka,"__esModule",{value:!0});ka.default=x2;var b2=gt(),S2=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 x2(t){return (0, b2.default)(t)&&!S2.has(t)}});var Nu=v(_a=>{Object.defineProperty(_a,"__esModule",{value:!0});_a.default=g2;var P2=le(),E2=Qe();function g2(t){return (0, P2.isVariableDeclaration)(t,{kind:"var"})&&!t[E2.BLOCK_SCOPED_SYMBOL]}});var Cu=v(ja=>{Object.defineProperty(ja,"__esModule",{value:!0});ja.default=Zr;var A2=ar(),yt=le(),Ma=be(),v2=tt();function Zr(t,e,r){let i=[],s=!0;for(let a of t)if((0, yt.isEmptyStatement)(a)||(s=!1),(0, yt.isExpression)(a))i.push(a);else if((0, yt.isExpressionStatement)(a))i.push(a.expression);else if((0, yt.isVariableDeclaration)(a)){if(a.kind!=="var")return;for(let n of a.declarations){let o=(0, A2.default)(n);for(let l of Object.keys(o))r.push({kind:a.kind,id:(0, v2.default)(o[l])});n.init&&i.push((0, Ma.assignmentExpression)("=",n.id,n.init));}s=!0;}else if((0, yt.isIfStatement)(a)){let n=a.consequent?Zr([a.consequent],e,r):e.buildUndefinedNode(),o=a.alternate?Zr([a.alternate],e,r):e.buildUndefinedNode();if(!n||!o)return;i.push((0, Ma.conditionalExpression)(a.test,n,o));}else if((0, yt.isBlockStatement)(a)){let n=Zr(a.body,e,r);if(!n)return;i.push(n);}else if((0, yt.isEmptyStatement)(a))t.indexOf(a)===0&&(s=!0);else return;return s&&i.push(e.buildUndefinedNode()),i.length===1?i[0]:(0, Ma.sequenceExpression)(i)}});var Du=v(Ba=>{Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=w2;var I2=Cu();function w2(t,e){if(!(t!=null&&t.length))return;let r=[],i=(0, I2.default)(t,e,r);if(i){for(let s of r)e.push(s);return i}}});var ve=v(L=>{Object.defineProperty(L,"__esModule",{value:!0});var Ye={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,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!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(L,"__internal__deprecationWarning",{enumerable:!0,get:function(){return NC.default}});Object.defineProperty(L,"addComment",{enumerable:!0,get:function(){return R2.default}});Object.defineProperty(L,"addComments",{enumerable:!0,get:function(){return U2.default}});Object.defineProperty(L,"appendToMemberExpression",{enumerable:!0,get:function(){return tC.default}});Object.defineProperty(L,"assertNode",{enumerable:!0,get:function(){return D2.default}});Object.defineProperty(L,"buildMatchMemberExpression",{enumerable:!0,get:function(){return OC.default}});Object.defineProperty(L,"clone",{enumerable:!0,get:function(){return M2.default}});Object.defineProperty(L,"cloneDeep",{enumerable:!0,get:function(){return j2.default}});Object.defineProperty(L,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return B2.default}});Object.defineProperty(L,"cloneNode",{enumerable:!0,get:function(){return _2.default}});Object.defineProperty(L,"cloneWithoutLoc",{enumerable:!0,get:function(){return F2.default}});Object.defineProperty(L,"createFlowUnionType",{enumerable:!0,get:function(){return Lu.default}});Object.defineProperty(L,"createTSUnionType",{enumerable:!0,get:function(){return k2.default}});Object.defineProperty(L,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return L2.default}});Object.defineProperty(L,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return Lu.default}});Object.defineProperty(L,"ensureBlock",{enumerable:!0,get:function(){return J2.default}});Object.defineProperty(L,"getBindingIdentifiers",{enumerable:!0,get:function(){return oC.default}});Object.defineProperty(L,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return lC.default}});Object.defineProperty(L,"inheritInnerComments",{enumerable:!0,get:function(){return q2.default}});Object.defineProperty(L,"inheritLeadingComments",{enumerable:!0,get:function(){return K2.default}});Object.defineProperty(L,"inheritTrailingComments",{enumerable:!0,get:function(){return Y2.default}});Object.defineProperty(L,"inherits",{enumerable:!0,get:function(){return rC.default}});Object.defineProperty(L,"inheritsComments",{enumerable:!0,get:function(){return V2.default}});Object.defineProperty(L,"is",{enumerable:!0,get:function(){return pC.default}});Object.defineProperty(L,"isBinding",{enumerable:!0,get:function(){return fC.default}});Object.defineProperty(L,"isBlockScoped",{enumerable:!0,get:function(){return dC.default}});Object.defineProperty(L,"isImmutable",{enumerable:!0,get:function(){return hC.default}});Object.defineProperty(L,"isLet",{enumerable:!0,get:function(){return yC.default}});Object.defineProperty(L,"isNode",{enumerable:!0,get:function(){return mC.default}});Object.defineProperty(L,"isNodesEquivalent",{enumerable:!0,get:function(){return TC.default}});Object.defineProperty(L,"isPlaceholderType",{enumerable:!0,get:function(){return bC.default}});Object.defineProperty(L,"isReferenced",{enumerable:!0,get:function(){return SC.default}});Object.defineProperty(L,"isScope",{enumerable:!0,get:function(){return xC.default}});Object.defineProperty(L,"isSpecifierDefault",{enumerable:!0,get:function(){return PC.default}});Object.defineProperty(L,"isType",{enumerable:!0,get:function(){return EC.default}});Object.defineProperty(L,"isValidES3Identifier",{enumerable:!0,get:function(){return gC.default}});Object.defineProperty(L,"isValidIdentifier",{enumerable:!0,get:function(){return AC.default}});Object.defineProperty(L,"isVar",{enumerable:!0,get:function(){return vC.default}});Object.defineProperty(L,"matchesPattern",{enumerable:!0,get:function(){return IC.default}});Object.defineProperty(L,"prependToMemberExpression",{enumerable:!0,get:function(){return iC.default}});L.react=void 0;Object.defineProperty(L,"removeComments",{enumerable:!0,get:function(){return X2.default}});Object.defineProperty(L,"removeProperties",{enumerable:!0,get:function(){return sC.default}});Object.defineProperty(L,"removePropertiesDeep",{enumerable:!0,get:function(){return aC.default}});Object.defineProperty(L,"removeTypeDuplicates",{enumerable:!0,get:function(){return nC.default}});Object.defineProperty(L,"shallowEqual",{enumerable:!0,get:function(){return cC.default}});Object.defineProperty(L,"toBindingIdentifierName",{enumerable:!0,get:function(){return $2.default}});Object.defineProperty(L,"toBlock",{enumerable:!0,get:function(){return W2.default}});Object.defineProperty(L,"toComputedKey",{enumerable:!0,get:function(){return z2.default}});Object.defineProperty(L,"toExpression",{enumerable:!0,get:function(){return H2.default}});Object.defineProperty(L,"toIdentifier",{enumerable:!0,get:function(){return G2.default}});Object.defineProperty(L,"toKeyAlias",{enumerable:!0,get:function(){return Q2.default}});Object.defineProperty(L,"toStatement",{enumerable:!0,get:function(){return Z2.default}});Object.defineProperty(L,"traverse",{enumerable:!0,get:function(){return ei.default}});Object.defineProperty(L,"traverseFast",{enumerable:!0,get:function(){return uC.default}});Object.defineProperty(L,"validate",{enumerable:!0,get:function(){return wC.default}});Object.defineProperty(L,"valueToNode",{enumerable:!0,get:function(){return eC.default}});var O2=jo(),N2=Bo(),C2=Dl(),D2=Ll(),Fa=kl();Object.keys(Fa).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Ye,t)||t in L&&L[t]===Fa[t]||Object.defineProperty(L,t,{enumerable:!0,get:function(){return Fa[t]}});});var L2=_l(),Lu=Bl(),k2=ql(),Ra=be();Object.keys(Ra).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Ye,t)||t in L&&L[t]===Ra[t]||Object.defineProperty(L,t,{enumerable:!0,get:function(){return Ra[t]}});});var Ua=Kl();Object.keys(Ua).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Ye,t)||t in L&&L[t]===Ua[t]||Object.defineProperty(L,t,{enumerable:!0,get:function(){return Ua[t]}});});var qa=Yl();Object.keys(qa).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Ye,t)||t in L&&L[t]===qa[t]||Object.defineProperty(L,t,{enumerable:!0,get:function(){return qa[t]}});});var _2=tt(),M2=Hl(),j2=Gl(),B2=Ql(),F2=Zl(),R2=eu(),U2=qs(),q2=Xs(),K2=$s(),V2=Gs(),Y2=zs(),X2=tu(),Ka=ru();Object.keys(Ka).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Ye,t)||t in L&&L[t]===Ka[t]||Object.defineProperty(L,t,{enumerable:!0,get:function(){return Ka[t]}});});var Va=Qe();Object.keys(Va).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Ye,t)||t in L&&L[t]===Va[t]||Object.defineProperty(L,t,{enumerable:!0,get:function(){return Va[t]}});});var J2=iu(),$2=su(),W2=ta(),z2=au(),H2=nu(),G2=sa(),Q2=uu(),Z2=cu(),eC=pu(),Ya=De();Object.keys(Ya).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Ye,t)||t in L&&L[t]===Ya[t]||Object.defineProperty(L,t,{enumerable:!0,get:function(){return Ya[t]}});});var tC=fu(),rC=hu(),iC=yu(),sC=pa(),aC=da(),nC=Cs(),oC=ar(),lC=mu(),ei=Tu();Object.keys(ei).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Ye,t)||t in L&&L[t]===ei[t]||Object.defineProperty(L,t,{enumerable:!0,get:function(){return ei[t]}});});var uC=ua(),cC=Dr(),pC=Et(),fC=bu(),dC=xu(),hC=Pu(),yC=va(),mC=ws(),TC=gu(),bC=es(),SC=Au(),xC=vu(),PC=wu(),EC=kr(),gC=Ou(),AC=gt(),vC=Nu(),IC=Wi(),wC=Fr(),OC=Hi(),Xa=le();Object.keys(Xa).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Ye,t)||t in L&&L[t]===Xa[t]||Object.defineProperty(L,t,{enumerable:!0,get:function(){return Xa[t]}});});var NC=Vt();L.react={isReactComponent:O2.default,isCompatTag:N2.default,buildChildren:C2.default};L.toSequenceExpression=Du().default;});var _u=v(Le=>{Object.defineProperty(Le,"__esModule",{value:!0});Le.statements=Le.statement=Le.smart=Le.program=Le.expression=void 0;var CC=ve(),{assertExpressionStatement:DC}=CC;function Ja(t){return {code:e=>`/* @babel/template */;
|
|
11
|
+
${e}`,validate:()=>{},unwrap:e=>t(e.program.body.slice(1))}}var LC=Ja(t=>t.length>1?t:t[0]);Le.smart=LC;var kC=Ja(t=>t);Le.statements=kC;var _C=Ja(t=>{if(t.length===0)throw new Error("Found nothing to return.");if(t.length>1)throw new Error("Found multiple statements but wanted one");return t[0]});Le.statement=_C;var ku={code:t=>`(
|
|
12
|
+
${t}
|
|
13
|
+
)`,validate:t=>{if(t.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(ku.unwrap(t).start===0)throw new Error("Parse result included parens.")},unwrap:({program:t})=>{let[e]=t.body;return DC(e),e.expression}};Le.expression=ku;var MC={code:t=>t,validate:()=>{},unwrap:t=>t.program};Le.program=MC;});var ti=v(nr=>{Object.defineProperty(nr,"__esModule",{value:!0});nr.merge=FC;nr.normalizeReplacements=UC;nr.validate=RC;var jC=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function BC(t,e){if(t==null)return {};var r={},i=Object.keys(t),s,a;for(a=0;a<i.length;a++)s=i[a],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}function FC(t,e){let{placeholderWhitelist:r=t.placeholderWhitelist,placeholderPattern:i=t.placeholderPattern,preserveComments:s=t.preserveComments,syntacticPlaceholders:a=t.syntacticPlaceholders}=e;return {parser:Object.assign({},t.parser,e.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:a}}function RC(t){if(t!=null&&typeof t!="object")throw new Error("Unknown template options.");let e=t||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:a}=e,n=BC(e,jC);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(a!=null&&typeof a!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(a===!0&&(r!=null||i!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return {parser:n,placeholderWhitelist:r||void 0,placeholderPattern:i??void 0,preserveComments:s??void 0,syntacticPlaceholders:a??void 0}}function UC(t){if(Array.isArray(t))return t.reduce((e,r,i)=>(e["$"+i]=r,e),{});if(typeof t=="object"||t==null)return t||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var dc=v(Tr=>{Object.defineProperty(Tr,"__esModule",{value:!0});function li(t,e){if(t==null)return {};var r={},i=Object.keys(t),s,a;for(a=0;a<i.length;a++)s=i[a],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}var Ue=class{constructor(e,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=r,this.index=i;}},Nt=class{constructor(e,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=r;}};function xe(t,e){let{line:r,column:i,index:s}=t;return new Ue(r,i+e,s+e)}var Mu="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",qC={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Mu},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Mu}},ju={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"},si=({type:t,prefix:e})=>t==="UpdateExpression"?ju.UpdateExpression[String(e)]:ju[t],KC={AccessorIsGenerator:({kind:t})=>`A ${t}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.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",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:t})=>`Missing initializer in ${t} 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:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
14
|
+
- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="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:t})=>`Unsyntactic ${t==="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 `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
|
|
15
|
+
- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:t})=>`\`import()\` requires exactly ${t===1?"one argument":"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.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${si(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${si(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${si(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} 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:t})=>`Label '${t}' 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:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).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:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' 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:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,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:t})=>`Unexpected keyword '${t}'.`,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:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,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`.",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:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,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.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},VC={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' 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."},YC=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),XC={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:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${si({type:t})}; 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.'},JC=["toMessage"],$C=["message"];function Bu(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r});}function WC(t){let{toMessage:e}=t,r=li(t,JC);return function i({loc:s,details:a}){let n=new SyntaxError;return Object.assign(n,r,{loc:s,pos:s.index}),"missingPlugin"in a&&Object.assign(n,{missingPlugin:a.missingPlugin}),Bu(n,"clone",function(l={}){var u;let{line:p,column:P,index:E}=(u=l.loc)!=null?u:s;return i({loc:new Ue(p,P,E),details:Object.assign({},a,l.details)})}),Bu(n,"details",a),Object.defineProperty(n,"message",{configurable:!0,get(){let o=`${e(a)} (${s.line}:${s.column})`;return this.message=o,o},set(o){Object.defineProperty(this,"message",{value:o,writable:!0});}}),n}}function We(t,e){if(Array.isArray(t))return i=>We(i,t[0]);let r={};for(let i of Object.keys(t)){let s=t[i],a=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:n}=a,o=li(a,$C),l=typeof n=="string"?()=>n:n;r[i]=WC(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},e?{syntaxPlugin:e}:{},o));}return r}var S=Object.assign({},We(qC),We(KC),We(VC),We`pipelineOperator`(XC)),{defineProperty:zC}=Object,Fu=(t,e)=>zC(t,e,{enumerable:!1,value:t[e]});function or(t){return t.loc.start&&Fu(t.loc.start,"index"),t.loc.end&&Fu(t.loc.end,"index"),t}var HC=t=>class extends t{parse(){let r=or(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(or)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i);}catch{}let a=this.estreeParseLiteral(s);return a.regex={pattern:r,flags:i},a}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)}directiveToStmt(r){let i=r.value;delete r.value,i.type="Literal",i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=r;return s.type="ExpressionStatement",s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}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,a,n){super.parseBlockBody(r,i,s,a,n);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives;}pushClassMethod(r,i,s,a,n,o){this.parseMethod(i,s,a,n,o,"ClassMethod",!0),i.typeParameters&&(i.value.typeParameters=i.typeParameters,delete i.typeParameters),r.body.push(i);}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=i,r.type="PrivateIdentifier",r}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,a,n,o,l=!1){let u=this.startNode();return u.kind=r.kind,u=super.parseMethod(u,i,s,a,n,o,l),u.type="FunctionExpression",delete u.kind,r.value=u,o==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition",i.computed=!1),i}parseObjectMethod(r,i,s,a,n){let o=super.parseObjectMethod(r,i,s,a,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(r,i,s,a){let n=super.parseObjectProperty(r,i,s,a);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(r,i,s){return r==="Property"?"value":super.isValidLVal(r,i,s)}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:a}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(a,i);}else super.toAssignable(r,i);}toAssignableObjectExpressionProp(r,i,s){r.kind==="get"||r.kind==="set"?this.raise(S.PatternHasAccessor,{at:r.key}):r.method?this.raise(S.PatternHasMethod,{at:r.key}):super.toAssignableObjectExpressionProp(r,i,s);}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){if(s.type="ImportExpression",s.source=s.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var a,n;s.options=(a=s.arguments[1])!=null?a:null,s.attributes=(n=s.arguments[1])!=null?n:null;}delete s.arguments,delete s.callee;}return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r);}parseExport(r,i){let s=this.state.lastTokStartLoc,a=super.parseExport(r,i);switch(a.type){case"ExportAllDeclaration":a.exported=null;break;case"ExportNamedDeclaration":a.specifiers.length===1&&a.specifiers[0].type==="ExportNamespaceSpecifier"&&(a.type="ExportAllDeclaration",a.exported=a.specifiers[0].exported,delete a.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=a;o?.type==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===a.start&&this.resetStartLocation(a,s);}break}return a}parseSubscript(r,i,s,a){let n=super.parseSubscript(r,i,s,a);if(a.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),a.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else (n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}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.method||r.kind==="get"||r.kind==="set"}finishNodeAt(r,i,s){return or(super.finishNodeAt(r,i,s))}resetStartLocation(r,i){super.resetStartLocation(r,i),or(r);}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),or(r);}},Tt=class{constructor(e,r){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!r;}},ne={brace:new Tt("{"),j_oTag:new Tt("<tag"),j_cTag:new Tt("</tag"),j_expr:new Tt("<tag>...</tag>",!0)};ne.template=new Tt("`",!0);var W=!0,_=!0,$a=!0,lr=!0,it=!0,GC=!0,ui=class{constructor(e,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=e,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;}},Sn=new Map;function G(t,e={}){e.keyword=t;let r=q(t,e);return Sn.set(t,r),r}function Se(t,e){return q(t,{beforeExpr:W,binop:e})}var fr=-1,Je=[],xn=[],Pn=[],En=[],gn=[],An=[];function q(t,e={}){var r,i,s,a;return ++fr,xn.push(t),Pn.push((r=e.binop)!=null?r:-1),En.push((i=e.beforeExpr)!=null?i:!1),gn.push((s=e.startsExpr)!=null?s:!1),An.push((a=e.prefix)!=null?a:!1),Je.push(new ui(t,e)),fr}function $(t,e={}){var r,i,s,a;return ++fr,Sn.set(t,fr),xn.push(t),Pn.push((r=e.binop)!=null?r:-1),En.push((i=e.beforeExpr)!=null?i:!1),gn.push((s=e.startsExpr)!=null?s:!1),An.push((a=e.prefix)!=null?a:!1),Je.push(new ui("name",e)),fr}var QC={bracketL:q("[",{beforeExpr:W,startsExpr:_}),bracketHashL:q("#[",{beforeExpr:W,startsExpr:_}),bracketBarL:q("[|",{beforeExpr:W,startsExpr:_}),bracketR:q("]"),bracketBarR:q("|]"),braceL:q("{",{beforeExpr:W,startsExpr:_}),braceBarL:q("{|",{beforeExpr:W,startsExpr:_}),braceHashL:q("#{",{beforeExpr:W,startsExpr:_}),braceR:q("}"),braceBarR:q("|}"),parenL:q("(",{beforeExpr:W,startsExpr:_}),parenR:q(")"),comma:q(",",{beforeExpr:W}),semi:q(";",{beforeExpr:W}),colon:q(":",{beforeExpr:W}),doubleColon:q("::",{beforeExpr:W}),dot:q("."),question:q("?",{beforeExpr:W}),questionDot:q("?."),arrow:q("=>",{beforeExpr:W}),template:q("template"),ellipsis:q("...",{beforeExpr:W}),backQuote:q("`",{startsExpr:_}),dollarBraceL:q("${",{beforeExpr:W,startsExpr:_}),templateTail:q("...`",{startsExpr:_}),templateNonTail:q("...${",{beforeExpr:W,startsExpr:_}),at:q("@"),hash:q("#",{startsExpr:_}),interpreterDirective:q("#!..."),eq:q("=",{beforeExpr:W,isAssign:lr}),assign:q("_=",{beforeExpr:W,isAssign:lr}),slashAssign:q("_=",{beforeExpr:W,isAssign:lr}),xorAssign:q("_=",{beforeExpr:W,isAssign:lr}),moduloAssign:q("_=",{beforeExpr:W,isAssign:lr}),incDec:q("++/--",{prefix:it,postfix:GC,startsExpr:_}),bang:q("!",{beforeExpr:W,prefix:it,startsExpr:_}),tilde:q("~",{beforeExpr:W,prefix:it,startsExpr:_}),doubleCaret:q("^^",{startsExpr:_}),doubleAt:q("@@",{startsExpr:_}),pipeline:Se("|>",0),nullishCoalescing:Se("??",1),logicalOR:Se("||",1),logicalAND:Se("&&",2),bitwiseOR:Se("|",3),bitwiseXOR:Se("^",4),bitwiseAND:Se("&",5),equality:Se("==/!=/===/!==",6),lt:Se("</>/<=/>=",7),gt:Se("</>/<=/>=",7),relational:Se("</>/<=/>=",7),bitShift:Se("<</>>/>>>",8),bitShiftL:Se("<</>>/>>>",8),bitShiftR:Se("<</>>/>>>",8),plusMin:q("+/-",{beforeExpr:W,binop:9,prefix:it,startsExpr:_}),modulo:q("%",{binop:10,startsExpr:_}),star:q("*",{binop:10}),slash:Se("/",10),exponent:q("**",{beforeExpr:W,binop:11,rightAssociative:!0}),_in:G("in",{beforeExpr:W,binop:7}),_instanceof:G("instanceof",{beforeExpr:W,binop:7}),_break:G("break"),_case:G("case",{beforeExpr:W}),_catch:G("catch"),_continue:G("continue"),_debugger:G("debugger"),_default:G("default",{beforeExpr:W}),_else:G("else",{beforeExpr:W}),_finally:G("finally"),_function:G("function",{startsExpr:_}),_if:G("if"),_return:G("return",{beforeExpr:W}),_switch:G("switch"),_throw:G("throw",{beforeExpr:W,prefix:it,startsExpr:_}),_try:G("try"),_var:G("var"),_const:G("const"),_with:G("with"),_new:G("new",{beforeExpr:W,startsExpr:_}),_this:G("this",{startsExpr:_}),_super:G("super",{startsExpr:_}),_class:G("class",{startsExpr:_}),_extends:G("extends",{beforeExpr:W}),_export:G("export"),_import:G("import",{startsExpr:_}),_null:G("null",{startsExpr:_}),_true:G("true",{startsExpr:_}),_false:G("false",{startsExpr:_}),_typeof:G("typeof",{beforeExpr:W,prefix:it,startsExpr:_}),_void:G("void",{beforeExpr:W,prefix:it,startsExpr:_}),_delete:G("delete",{beforeExpr:W,prefix:it,startsExpr:_}),_do:G("do",{isLoop:$a,beforeExpr:W}),_for:G("for",{isLoop:$a}),_while:G("while",{isLoop:$a}),_as:$("as",{startsExpr:_}),_assert:$("assert",{startsExpr:_}),_async:$("async",{startsExpr:_}),_await:$("await",{startsExpr:_}),_defer:$("defer",{startsExpr:_}),_from:$("from",{startsExpr:_}),_get:$("get",{startsExpr:_}),_let:$("let",{startsExpr:_}),_meta:$("meta",{startsExpr:_}),_of:$("of",{startsExpr:_}),_sent:$("sent",{startsExpr:_}),_set:$("set",{startsExpr:_}),_source:$("source",{startsExpr:_}),_static:$("static",{startsExpr:_}),_using:$("using",{startsExpr:_}),_yield:$("yield",{startsExpr:_}),_asserts:$("asserts",{startsExpr:_}),_checks:$("checks",{startsExpr:_}),_exports:$("exports",{startsExpr:_}),_global:$("global",{startsExpr:_}),_implements:$("implements",{startsExpr:_}),_intrinsic:$("intrinsic",{startsExpr:_}),_infer:$("infer",{startsExpr:_}),_is:$("is",{startsExpr:_}),_mixins:$("mixins",{startsExpr:_}),_proto:$("proto",{startsExpr:_}),_require:$("require",{startsExpr:_}),_satisfies:$("satisfies",{startsExpr:_}),_keyof:$("keyof",{startsExpr:_}),_readonly:$("readonly",{startsExpr:_}),_unique:$("unique",{startsExpr:_}),_abstract:$("abstract",{startsExpr:_}),_declare:$("declare",{startsExpr:_}),_enum:$("enum",{startsExpr:_}),_module:$("module",{startsExpr:_}),_namespace:$("namespace",{startsExpr:_}),_interface:$("interface",{startsExpr:_}),_type:$("type",{startsExpr:_}),_opaque:$("opaque",{startsExpr:_}),name:q("name",{startsExpr:_}),string:q("string",{startsExpr:_}),num:q("num",{startsExpr:_}),bigint:q("bigint",{startsExpr:_}),decimal:q("decimal",{startsExpr:_}),regexp:q("regexp",{startsExpr:_}),privateName:q("#name",{startsExpr:_}),eof:q("eof"),jsxName:q("jsxName"),jsxText:q("jsxText",{beforeExpr:!0}),jsxTagStart:q("jsxTagStart",{startsExpr:!0}),jsxTagEnd:q("jsxTagEnd"),placeholder:q("%%",{startsExpr:!0})};function te(t){return t>=93&&t<=132}function ZC(t){return t<=92}function _e(t){return t>=58&&t<=132}function Gu(t){return t>=58&&t<=136}function eD(t){return En[t]}function Qa(t){return gn[t]}function tD(t){return t>=29&&t<=33}function Ru(t){return t>=129&&t<=131}function rD(t){return t>=90&&t<=92}function vn(t){return t>=58&&t<=92}function iD(t){return t>=39&&t<=59}function sD(t){return t===34}function aD(t){return An[t]}function nD(t){return t>=121&&t<=123}function oD(t){return t>=124&&t<=130}function nt(t){return xn[t]}function ai(t){return Pn[t]}function lD(t){return t===57}function ci(t){return t>=24&&t<=25}function Xe(t){return Je[t]}Je[8].updateContext=t=>{t.pop();},Je[5].updateContext=Je[7].updateContext=Je[23].updateContext=t=>{t.push(ne.brace);},Je[22].updateContext=t=>{t[t.length-1]===ne.template?t.pop():t.push(ne.template);},Je[142].updateContext=t=>{t.push(ne.j_expr,ne.j_oTag);};var In="\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-\u088E\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\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",Qu="\u200C\u200D\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\u0898-\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-\u1ACE\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",uD=new RegExp("["+In+"]"),cD=new RegExp("["+In+Qu+"]");In=Qu=null;var Zu=[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,68,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,71,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,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,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,757,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],pD=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function Za(t,e){let r=65536;for(let i=0,s=e.length;i<s;i+=2){if(r+=e[i],r>t)return !1;if(r+=e[i+1],r>=t)return !0}return !1}function $e(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&uD.test(String.fromCharCode(t)):Za(t,Zu)}function wt(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&cD.test(String.fromCharCode(t)):Za(t,Zu)||Za(t,pD)}var wn={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"]},fD=new Set(wn.keyword),dD=new Set(wn.strict),hD=new Set(wn.strictBind);function ec(t,e){return e&&t==="await"||t==="enum"}function tc(t,e){return ec(t,e)||dD.has(t)}function rc(t){return hD.has(t)}function ic(t,e){return tc(t,e)||rc(t)}function yD(t){return fD.has(t)}function mD(t,e,r){return t===64&&e===64&&$e(r)}var TD=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 bD(t){return TD.has(t)}var hr=class{constructor(e){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=e;}},yr=class{constructor(e,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,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 inClass(){return (this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return (e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return !0;if(r&451)return !1}}get inNonArrowFunction(){return (this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new hr(e)}enter(e){this.scopeStack.push(this.createScope(e));}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return !!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,i){let s=this.currentScope();if(r&8||r&16)this.checkRedeclarationInScope(s,e,r,i),r&16?s.functions.add(e):s.lexical.add(e),r&8&&this.maybeExportDefined(s,e);else if(r&4)for(let a=this.scopeStack.length-1;a>=0&&(s=this.scopeStack[a],this.checkRedeclarationInScope(s,e,r,i),s.var.add(e),this.maybeExportDefined(s,e),!(s.flags&387));--a);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(e);}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r);}checkRedeclarationInScope(e,r,i,s){this.isRedeclaredInScope(e,r,i)&&this.parser.raise(S.VarRedeclaration,{at:s,identifierName:r});}isRedeclaredInScope(e,r,i){return i&1?i&8?e.lexical.has(r)||e.functions.has(r)||e.var.has(r):i&16?e.lexical.has(r)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(r):e.lexical.has(r)&&!(e.flags&8&&e.lexical.values().next().value===r)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(r):!1}checkLocalExport(e){let{name:r}=e,i=this.scopeStack[0];!i.lexical.has(r)&&!i.var.has(r)&&!i.functions.has(r)&&this.undefinedExports.set(r,e.loc.start);}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&387)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&451&&!(r&4))return r}}},en=class extends hr{constructor(...e){super(...e),this.declareFunctions=new Set;}},tn=class extends yr{createScope(e){return new en(e)}declareName(e,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,r,i);}isRedeclaredInScope(e,r,i){return super.isRedeclaredInScope(e,r,i)?!0:i&2048?!e.declareFunctions.has(r)&&(e.lexical.has(r)||e.functions.has(r)):!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e);}},rn=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1;}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,i]=e;if(!this.hasPlugin(r))return !1;let s=this.plugins.get(r);for(let a of Object.keys(i))if(s?.[a]!==i[a])return !1;return !0}}getPluginOption(e,r){var i;return (i=this.plugins.get(e))==null?void 0:i[r]}};function sc(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e);}function SD(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e);}function mr(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e);}function ur(t,e,r){let i=null,s=e.length;for(;i===null&&s>0;)i=e[--s];i===null||i.start>r.start?mr(t,r.comments):sc(i,r.comments);}var sn=class extends rn{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.comments.push(e);}processComment(e){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,a=r[s];a.start===e.end&&(a.leadingNode=e,s--);let{start:n}=e;for(;s>=0;s--){let o=r[s],l=o.end;if(l>n)o.containingNode=e,this.finalizeComment(o),r.splice(s,1);else {l===n&&(o.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&sc(e.leadingNode,r),e.trailingNode!==null&&SD(e.trailingNode,r);else {let{containingNode:i,start:s}=e;if(this.input.charCodeAt(s-1)===44)switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":ur(i,i.properties,e);break;case"CallExpression":case"OptionalCallExpression":ur(i,i.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":ur(i,i.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":ur(i,i.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":ur(i,i.specifiers,e);break;default:mr(i,r);}else mr(i,r);}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[];}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===e&&(s.leadingNode=null);}resetPreviousIdentifierLeadingComments(e){let{commentStack:r}=this.state,{length:i}=r;i!==0&&(r[i-1].trailingNode===e?r[i-1].trailingNode=null:i>=2&&r[i-2].trailingNode===e&&(r[i-2].trailingNode=null));}takeSurroundingComments(e,r,i){let{commentStack:s}=this.state,a=s.length;if(a===0)return;let n=a-1;for(;n>=0;n--){let o=s[n],l=o.end;if(o.start===i)o.leadingNode=e;else if(l===r)o.trailingNode=e;else if(l<r)break}}},ac=/\r\n?|[\n\u2028\u2029]/,ri=new RegExp(ac.source,"g");function dr(t){switch(t){case 10:case 13:case 8232:case 8233:return !0;default:return !1}}var Wa=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ni=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Uu=new RegExp("(?=("+ni.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function xD(t){switch(t){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 an=class t{constructor(){this.strict=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.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.comments=[],this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[ne.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0;}init({strictMode:e,sourceType:r,startLine:i,startColumn:s}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.curLine=i,this.lineStart=-s,this.startLoc=this.endLoc=new Ue(i,s,0);}curPosition(){return new Ue(this.curLine,this.pos-this.lineStart,this.pos)}clone(e){let r=new t,i=Object.keys(this);for(let s=0,a=i.length;s<a;s++){let n=i[s],o=this[n];!e&&Array.isArray(o)&&(o=o.slice()),r[n]=o;}return r}},PD=function(e){return e>=48&&e<=57},qu={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ii={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Ku(t,e,r,i,s,a){let n=r,o=i,l=s,u="",p=null,P=r,{length:E}=e;for(;;){if(r>=E){a.unterminated(n,o,l),u+=e.slice(P,r);break}let A=e.charCodeAt(r);if(ED(t,A,e,r)){u+=e.slice(P,r);break}if(A===92){u+=e.slice(P,r);let I=gD(e,r,i,s,t==="template",a);I.ch===null&&!p?p={pos:r,lineStart:i,curLine:s}:u+=I.ch,{pos:r,lineStart:i,curLine:s}=I,P=r;}else A===8232||A===8233?(++r,++s,i=r):A===10||A===13?t==="template"?(u+=e.slice(P,r)+`
|
|
16
|
+
`,++r,A===13&&e.charCodeAt(r)===10&&++r,++s,P=i=r):a.unterminated(n,o,l):++r;}return {pos:r,str:u,firstInvalidLoc:p,lineStart:i,curLine:s,containsInvalid:!!p}}function ED(t,e,r,i){return t==="template"?e===96||e===36&&r.charCodeAt(i+1)===123:e===(t==="double"?34:39)}function gD(t,e,r,i,s,a){let n=!s;e++;let o=u=>({pos:e,ch:u,lineStart:r,curLine:i}),l=t.charCodeAt(e++);switch(l){case 110:return o(`
|
|
17
|
+
`);case 114:return o("\r");case 120:{let u;return {code:u,pos:e}=nn(t,e,r,i,2,!1,n,a),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return {code:u,pos:e}=oc(t,e,r,i,n,a),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);a.strictNumericEscape(e-1,r,i);default:if(l>=48&&l<=55){let u=e-1,P=t.slice(u,e+2).match(/^[0-7]+/)[0],E=parseInt(P,8);E>255&&(P=P.slice(0,-1),E=parseInt(P,8)),e+=P.length-1;let A=t.charCodeAt(e);if(P!=="0"||A===56||A===57){if(s)return o(null);a.strictNumericEscape(u,r,i);}return o(String.fromCharCode(E))}return o(String.fromCharCode(l))}}function nn(t,e,r,i,s,a,n,o){let l=e,u;return {n:u,pos:e}=nc(t,e,r,i,16,s,a,!1,o,!n),u===null&&(n?o.invalidEscapeSequence(l,r,i):e=l-1),{code:u,pos:e}}function nc(t,e,r,i,s,a,n,o,l,u){let p=e,P=s===16?qu.hex:qu.decBinOct,E=s===16?ii.hex:s===10?ii.dec:s===8?ii.oct:ii.bin,A=!1,I=0;for(let w=0,M=a??1/0;w<M;++w){let B=t.charCodeAt(e),j;if(B===95&&o!=="bail"){let k=t.charCodeAt(e-1),H=t.charCodeAt(e+1);if(o){if(Number.isNaN(H)||!E(H)||P.has(k)||P.has(H)){if(u)return {n:null,pos:e};l.unexpectedNumericSeparator(e,r,i);}}else {if(u)return {n:null,pos:e};l.numericSeparatorInEscapeSequence(e,r,i);}++e;continue}if(B>=97?j=B-97+10:B>=65?j=B-65+10:PD(B)?j=B-48:j=1/0,j>=s){if(j<=9&&u)return {n:null,pos:e};if(j<=9&&l.invalidDigit(e,r,i,s))j=0;else if(n)j=0,A=!0;else break}++e,I=I*s+j;}return e===p||a!=null&&e-p!==a||A?{n:null,pos:e}:{n:I,pos:e}}function oc(t,e,r,i,s,a){let n=t.charCodeAt(e),o;if(n===123){if(++e,{code:o,pos:e}=nn(t,e,r,i,t.indexOf("}",e)-e,!0,s,a),++e,o!==null&&o>1114111)if(s)a.invalidCodePoint(e,r,i);else return {code:null,pos:e}}else ({code:o,pos:e}=nn(t,e,r,i,4,!1,s,a));return {code:o,pos:e}}var AD=["at"],vD=["at"];function cr(t,e,r){return new Ue(r,t-e,t)}var ID=new Set([103,109,115,105,121,117,100,118]),Re=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new Nt(e.startLoc,e.endLoc);}},on=class extends sn{constructor(e,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,a,n)=>this.options.errorRecovery?(this.raise(S.InvalidDigit,{at:cr(i,s,a),radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(S.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(S.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(S.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(S.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,a)=>{this.recordStrictModeErrors(S.StrictNumericEscape,{at:cr(i,s,a)});},unterminated:(i,s,a)=>{throw this.raise(S.UnterminatedString,{at:cr(i-1,s,a)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(S.StrictNumericEscape),unterminated:(i,s,a)=>{throw this.raise(S.UnterminatedTemplate,{at:cr(i,s,a)})}}),this.state=new an,this.state.init(e),this.input=r,this.length=r.length,this.isLookahead=!1;}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength;}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Re(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken();}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return {pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Wa.lastIndex=e,Wa.test(this.input)?Wa.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return ni.lastIndex=e,ni.test(this.input)?ni.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++e<this.input.length){let i=this.input.charCodeAt(e);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023));}return r}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,{at: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(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos));}skipBlockComment(e){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(e,i+2);if(s===-1)throw this.raise(S.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=s+e.length,ri.lastIndex=i+2;ri.test(this.input)&&ri.lastIndex<=s;)++this.state.curLine,this.state.lineStart=ri.lastIndex;if(this.isLookahead)return;let a={type:"CommentBlock",value:this.input.slice(i+2,s),start:i,end:s+e.length,loc:new Nt(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(a),a}skipLineComment(e){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!dr(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+e,a),start:r,end:a,loc:new Nt(i,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,r=[];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),this.options.attachComment&&r.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));break}default:break e}break;default:if(xD(i))++this.state.pos;else if(i===45&&!this.inModule&&this.options.annexB){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(e===0||this.state.lineStart>e)){let a=this.skipLineComment(3);a!==void 0&&(this.addComment(a),this.options.attachComment&&r.push(a));}else break e}else if(i===60&&!this.inModule&&this.options.annexB){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 a=this.skipLineComment(4);a!==void 0&&(this.addComment(a),this.options.attachComment&&r.push(a));}else break e}else break e}}if(r.length>0){let i=this.state.pos,s={start:e,end:i,comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s);}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(i);}replaceToken(e){this.state.type=e,this.updateContext();}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(S.UnexpectedDigitAfterHash,{at: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?S.RecordExpressionHashIncorrectStartSyntaxType:S.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1);}else $e(r)?(++this.state.pos,this.finishToken(138,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1);}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===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 e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return !1;let r=this.state.pos;for(this.state.pos+=1;!dr(e)&&++this.state.pos<this.length;)e=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(e){let r=e===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);e===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=e===37?33:30),this.finishOp(r,i);}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(S.RecordExpressionBarIncorrectEndSyntaxType,{at: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(S.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1);}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===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(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1);}readToken_lt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===60){if(this.input.charCodeAt(e+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:e}=this.state,r=this.input.charCodeAt(e+1);if(r===62){let i=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+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(e){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(e===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1);}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);e===63?r===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17));}getTokenFromCode(e){switch(e){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(S.TupleExpressionBarIncorrectStartSyntaxType,{at: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(S.RecordExpressionBarIncorrectStartSyntaxType,{at: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(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);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($e(e)){this.readWord(e);return}}throw this.raise(S.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(e)})}finishOp(e,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,i);}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,i,s,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(S.UnterminatedRegExp,{at:xe(e,1)});let u=this.input.charCodeAt(a);if(dr(u))throw this.raise(S.UnterminatedRegExp,{at:xe(e,1)});if(i)i=!1;else {if(u===91)s=!0;else if(u===93&&s)s=!1;else if(u===47&&!s)break;i=u===92;}}let n=this.input.slice(r,a);++a;let o="",l=()=>xe(e,a+2-r);for(;a<this.length;){let u=this.codePointAtPos(a),p=String.fromCharCode(u);if(ID.has(u))u===118?o.includes("u")&&this.raise(S.IncompatibleRegExpUVFlags,{at:l()}):u===117&&o.includes("v")&&this.raise(S.IncompatibleRegExpUVFlags,{at:l()}),o.includes(p)&&this.raise(S.DuplicateRegExpFlags,{at:l()});else if(wt(u)||u===92)this.raise(S.MalformedRegExpFlags,{at:l()});else break;++a,o+=p;}this.state.pos=a,this.finishToken(137,{pattern:n,flags:o});}readInt(e,r,i=!1,s=!0){let{n:a,pos:n}=nc(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=n,a}readRadixNumber(e){let r=this.state.curPosition(),i=!1;this.state.pos+=2;let s=this.readInt(e);s==null&&this.raise(S.InvalidDigit,{at:xe(r,2),radix:e});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,i=!0;else if(a===109)throw this.raise(S.InvalidDecimal,{at:r});if($e(this.codePointAtPos(this.state.pos)))throw this.raise(S.NumberIdentifier,{at:this.state.curPosition()});if(i){let n=this.input.slice(r.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,n);return}this.finishToken(134,s);}readNumber(e){let r=this.state.pos,i=this.state.curPosition(),s=!1,a=!1,n=!1,o=!1,l=!1;!e&&this.readInt(10)===null&&this.raise(S.InvalidNumber,{at:this.state.curPosition()});let u=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(u){let A=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(S.StrictOctalLiteral,{at:i}),!this.state.strict){let I=A.indexOf("_");I>0&&this.raise(S.ZeroDigitNumericSeparator,{at:xe(i,I)});}l=u&&!/[89]/.test(A);}let p=this.input.charCodeAt(this.state.pos);if(p===46&&!l&&(++this.state.pos,this.readInt(10),s=!0,p=this.input.charCodeAt(this.state.pos)),(p===69||p===101)&&!l&&(p=this.input.charCodeAt(++this.state.pos),(p===43||p===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(S.InvalidOrMissingExponent,{at:i}),s=!0,o=!0,p=this.input.charCodeAt(this.state.pos)),p===110&&((s||u)&&this.raise(S.InvalidBigIntLiteral,{at:i}),++this.state.pos,a=!0),p===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||u)&&this.raise(S.InvalidDecimal,{at:i}),++this.state.pos,n=!0),$e(this.codePointAtPos(this.state.pos)))throw this.raise(S.NumberIdentifier,{at:this.state.curPosition()});let P=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(a){this.finishToken(135,P);return}if(n){this.finishToken(136,P);return}let E=l?parseInt(P,8):parseFloat(P);this.finishToken(134,E);}readCodePoint(e){let{code:r,pos:i}=oc(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(e){let{str:r,pos:i,curLine:s,lineStart:a}=Ku(e===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=a,this.state.curLine=s,this.finishToken(133,r);}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken();}readTemplateToken(){let e=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:a,lineStart:n}=Ku("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=n,this.state.curLine=a,i&&(this.state.firstInvalidTemplateEscapePos=new Ue(i.curLine,i.pos-i.lineStart,i.pos)),this.input.codePointAt(s)===96?this.finishToken(24,i?null:e+r+"`"):(this.state.pos++,this.finishToken(25,i?null:e+r+"${"));}recordStrictModeErrors(e,{at:r}){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,{at:r}):this.state.strictErrors.set(i,[e,r]);}readWord1(e){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let a=this.codePointAtPos(this.state.pos);if(wt(a))this.state.pos+=a<=65535?1:2;else if(a===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let n=this.state.curPosition(),o=this.state.pos===i?$e:wt;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(S.MissingUnicodeEscape,{at:this.state.curPosition()}),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(S.EscapedCharNotAnIdentifier,{at:n}),r+=String.fromCodePoint(l)),s=this.state.pos;}else break}return r+this.input.slice(s,this.state.pos)}readWord(e){let r=this.readWord1(e),i=Sn.get(r);i!==void 0?this.finishToken(i,nt(i)):this.finishToken(132,r);}checkKeywordEscapes(){let{type:e}=this.state;vn(e)&&this.state.containsEsc&&this.raise(S.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:nt(e)});}raise(e,r){let{at:i}=r,s=li(r,AD),a=i instanceof Ue?i:i.loc.start,n=e({loc:a,details:s});if(!this.options.errorRecovery)throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,r){let{at:i}=r,s=li(r,vD),a=i instanceof Ue?i:i.loc.start,n=a.index,o=this.state.errors;for(let l=o.length-1;l>=0;l--){let u=o[l];if(u.loc.index===n)return o[l]=e({loc:a,details:s});if(u.loc.index<n)break}return this.raise(e,r)}updateContext(e){}unexpected(e,r){throw this.raise(S.UnexpectedToken,{expected:r?nt(r):null,at:e??this.state.startLoc})}expectPlugin(e,r){if(this.hasPlugin(e))return !0;throw this.raise(S.MissingPlugin,{at:r??this.state.startLoc,missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(r=>this.hasPlugin(r)))throw this.raise(S.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:e})}errorBuilder(e){return (r,i,s)=>{this.raise(e,{at:cr(r,i,s)});}}},ln=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map;}},un=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e;}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ln);}exit(){let e=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(S.InvalidPrivateFieldResolution,{at:s,identifierName:i});}declarePrivateName(e,r,i){let{privateNames:s,loneAccessors:a,undefinedPrivateNames:n}=this.current(),o=s.has(e);if(r&3){let l=o&&a.get(e);if(l){let u=l&4,p=r&4,P=l&3,E=r&3;o=P===E||u!==p,o||a.delete(e);}else o||a.set(e,r);}o&&this.parser.raise(S.PrivateNameRedeclaration,{at:i,identifierName:e}),s.add(e),n.delete(e);}usePrivateName(e,r){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,r):this.parser.raise(S.InvalidPrivateFieldResolution,{at:r,identifierName:e});}},Ct=class{constructor(e=0){this.type=e;}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},pi=class extends Ct{constructor(e){super(e),this.declarationErrors=new Map;}recordDeclarationError(e,{at:r}){let i=r.index;this.declarationErrors.set(i,[e,r]);}clearDeclarationError(e){this.declarationErrors.delete(e);}iterateErrors(e){this.declarationErrors.forEach(e);}},cn=class{constructor(e){this.parser=void 0,this.stack=[new Ct],this.parser=e;}enter(e){this.stack.push(e);}exit(){this.stack.pop();}recordParameterInitializerError(e,{at:r}){let i={at:r.loc.start},{stack:s}=this,a=s.length-1,n=s[a];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(e,i);else return;n=s[--a];}this.parser.raise(e,i);}recordArrowParameterBindingError(e,{at:r}){let{stack:i}=this,s=i[i.length-1],a={at:r.loc.start};if(s.isCertainlyParameterDeclaration())this.parser.raise(e,a);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,a);else return}recordAsyncArrowParametersError({at:e}){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(S.AwaitBindingIdentifier,{at:e}),s=r[--i];}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,{at:s});let a=e.length-2,n=e[a];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(s.index),n=e[--a];});}};function wD(){return new Ct(3)}function OD(){return new pi(1)}function ND(){return new pi(2)}function lc(){return new Ct}var pn=class{constructor(){this.stacks=[];}enter(e){this.stacks.push(e);}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 oi(t,e){return (t?2:0)|(e?1:0)}var fn=class extends on{addExtra(e,r,i,s=!0){if(!e)return;let a=e.extra=e.extra||{};s?a[r]=i:Object.defineProperty(a,r,{enumerable:s,value:i});}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){let i=e+r.length;if(this.input.slice(e,i)===r){let s=this.input.charCodeAt(i);return !(wt(s)||(s&64512)===55296)}return !1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,{at:this.state.startLoc});this.unexpected(null,e);}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return ac.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Uu.lastIndex=this.state.end,Uu.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(S.MissingSemicolon,{at:this.state.lastTokEndLoc});}expect(e,r){this.eat(e)||this.unexpected(r,e);}tryParse(e,r=this.state.clone()){let i={node:null};try{let s=e((a=null)=>{throw i.node=a,i});if(this.state.errors.length>r.errors.length){let a=this.state;return this.state=r,this.state.tokensLength=a.tokensLength,{node:s,error:a.errors[r.errors.length],thrown:!1,aborted:!1,failState:a}}return {node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let a=this.state;if(this.state=r,s instanceof SyntaxError)return {node:null,error:s,thrown:!0,aborted:!1,failState:a};if(s===i)return {node:i.node,error:null,thrown:!1,aborted:!0,failState:a};throw s}}checkExpressionErrors(e,r){if(!e)return !1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:a,optionalParametersLoc:n}=e,o=!!i||!!s||!!n||!!a;if(!r)return o;i!=null&&this.raise(S.InvalidCoverInitializedName,{at:i}),s!=null&&this.raise(S.DuplicateProto,{at:s}),a!=null&&this.raise(S.UnexpectedPrivateField,{at:a}),n!=null&&this.unexpected(n);}isLiteralPropertyName(){return Gu(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return (e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=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=e;let a=this.scope,n=this.getScopeHandler();this.scope=new n(this,e);let o=this.prodParam;this.prodParam=new pn;let l=this.classScope;this.classScope=new un(this);let u=this.expressionScope;return this.expressionScope=new cn(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=a,this.prodParam=o,this.classScope=l,this.expressionScope=u;}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e);}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r);}},Ot=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null;}},Dt=class{constructor(e,r,i){this.type="",this.start=r,this.end=0,this.loc=new Nt(i),e!=null&&e.options.ranges&&(this.range=[r,0]),e!=null&&e.filename&&(this.loc.filename=e.filename);}},On=Dt.prototype;On.__clone=function(){let t=new Dt(void 0,this.start,this.loc.start),e=Object.keys(this);for(let r=0,i=e.length;r<i;r++){let s=e[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(t[s]=this[s]);}return t};function CD(t){return ze(t)}function ze(t){let{type:e,start:r,end:i,loc:s,range:a,extra:n,name:o}=t,l=Object.create(On);return l.type=e,l.start=r,l.end=i,l.loc=s,l.range=a,l.extra=n,l.name=o,e==="Placeholder"&&(l.expectedNode=t.expectedNode),l}function DD(t){let{type:e,start:r,end:i,loc:s,range:a,extra:n}=t;if(e==="Placeholder")return CD(t);let o=Object.create(On);return o.type=e,o.start=r,o.end=i,o.loc=s,o.range=a,t.raw!==void 0?o.raw=t.raw:o.extra=n,o.value=t.value,o}var dn=class extends fn{startNode(){return new Dt(this,this.state.start,this.state.startLoc)}startNodeAt(e){return new Dt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,i){return e.type=r,e.end=i.index,e.loc.end=i,this.options.ranges&&(e.range[1]=i.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index,e.loc.start=r,this.options.ranges&&(e.range[0]=r.index);}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index);}resetStartLocationFromNode(e,r){this.resetStartLocation(e,r.loc.start);}},LD=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),K=We`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:t})=>`Cannot overwrite reserved type ${t}.`,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:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,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:t})=>`Unexpected reserved type ${t}.`,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:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function kD(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Vu(t){return t.importKind==="type"||t.importKind==="typeof"}var _D={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function MD(t,e){let r=[],i=[];for(let s=0;s<t.length;s++)(e(t[s],s,t)?r:i).push(t[s]);return [r,i]}var jD=/\*?\s*@((?:no)?flow)\b/,BD=t=>class extends t{constructor(...r){super(...r),this.flowPragma=void 0;}getScopeHandler(){return tn}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return !!this.getPluginOption("flow","enums")}finishToken(r,i){r!==133&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i);}addComment(r){if(this.flowPragma===void 0){let i=jD.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.lastTokStart>i.index+1&&this.raise(K.UnexpectedSpaceBetweenModuloChecks,{at: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(),a=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return s.params=n.params,s.rest=n.rest,s.this=n._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),a.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(a,"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(K.NestedDeclareModule,{at: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);this.unexpected();}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),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(133)?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(K.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(o)):(this.expectContextual(125,K.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),s.push(o);}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let a=null,n=!1;return s.forEach(o=>{kD(o)?(a==="CommonJS"&&this.raise(K.AmbiguousDeclareModuleKind,{at:o}),a="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(K.DuplicateDeclareModuleExports,{at:o}),a==="ES"&&this.raise(K.AmbiguousDeclareModuleKind,{at:o}),a="CommonJS",n=!0);}),r.kind=a||"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(K.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:s,suggestion:_D[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.type="ExportDeclaration",r.default=!1,delete r.exportKind),r.type="Declare"+r.type,r;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 i.type="DeclareTypeAlias",i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return i.type="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(K.UnexpectedReservedUnderscore,{at:this.state.startLoc});}checkReservedType(r,i,s){LD.has(r)&&this.raise(s?K.AssignReservedType:K.UnexpectedReservedType,{at:i,reservedType:r});}flowParseRestrictedIdentifier(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifier(r)}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")}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),a=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return s.name=n.name,s.variance=a,s.bound=n.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(K.MissingTypeParamDefault,{at: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(142)?this.next():this.unexpected();let s=!1;do{let a=this.flowParseTypeParameter(s);i.params.push(a),a.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")}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;r.params=[],this.state.inType=!0,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);return this.state.noAnonFunctionType=s,this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){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(134)||this.match(133)?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:a,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,p,P=!1;for(i&&this.match(6)?(this.expect(6),u=9,p=!0):(this.expect(5),u=8,p=!1),l.exact=p;!this.match(u);){let A=!1,I=null,w=null,M=this.startNode();if(a&&this.isContextual(118)){let j=this.lookahead();j.type!==14&&j.type!==17&&(this.next(),I=this.state.startLoc,r=!1);}if(r&&this.isContextual(106)){let j=this.lookahead();j.type!==14&&j.type!==17&&(this.next(),A=!0);}let B=this.flowParseVariance();if(this.eat(0))I!=null&&this.unexpected(I),this.eat(0)?(B&&this.unexpected(B.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(M,A))):l.indexers.push(this.flowParseObjectTypeIndexer(M,A,B));else if(this.match(10)||this.match(47))I!=null&&this.unexpected(I),B&&this.unexpected(B.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(M,A));else {let j="init";if(this.isContextual(99)||this.isContextual(104)){let H=this.lookahead();Gu(H.type)&&(j=this.state.value,this.next());}let k=this.flowParseObjectTypeProperty(M,A,I,B,j,s,n??!p);k===null?(P=!0,w=this.state.lastTokStartLoc):l.properties.push(k);}this.flowObjectTypeSemicolon(),w&&!this.match(8)&&!this.match(9)&&this.raise(K.UnexpectedExplicitInexactInObject,{at:w});}this.expect(u),s&&(l.inexact=P);let E=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,E}flowParseObjectTypeProperty(r,i,s,a,n,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(K.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(K.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),a&&this.raise(K.InexactVariance,{at:a}),null):(o||this.raise(K.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),s!=null&&this.unexpected(s),a&&this.raise(K.SpreadVariance,{at:a}),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=n;let u=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),a&&this.unexpected(a.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(K.ThisParamBannedInConstructor,{at:r.value.this})):(n!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(u=!0),r.value=this.flowParseTypeInitialiser(),r.variance=a),r.optional=u,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"?K.GetterMayNotHaveThisParam:K.SetterMayNotHaveThisParam,{at:r.value.this}),s!==i&&this.raise(r.kind==="get"?S.BadGetterArity:S.BadSetterArity,{at:r}),r.kind==="set"&&r.value.rest&&this.raise(S.BadSetterRestParameter,{at:r});}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected();}flowParseQualifiedTypeIdentifier(r,i){(r)!=null||(r=this.state.startLoc);let a=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(r);n.qualification=a,n.id=this.flowParseRestrictedIdentifier(!0),a=this.finishNode(n,"QualifiedTypeIdentifier");}return a}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,a=null,n=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(K.ThisParamMustBeFirst,{at:n}),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(K.ThisParamMayNotBeOptional,{at:n})),a=this.flowParseTypeInitialiser()):a=this.flowParseType(),n.name=i,n.optional=s,n.typeAnnotation=a,this.finishNode(n,"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,a,n=!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,a=this.flowParseTupleType(),this.state.noAnonFunctionType=o,a;case 47:return i.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),i.params=s.params,i.rest=s.rest,i.this=s._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),this.finishNode(i,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(te(this.state.type)||this.match(78)){let l=this.lookahead().type;n=l!==17&&l!==14;}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,a=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),a;this.eat(12);}return a?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]):s=this.flowParseFunctionTypeParams(),i.params=s.params,i.rest=s.rest,i.this=s._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation");case 133: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(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(K.UnexpectedSubtractionOperand,{at:this.state.startLoc})}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135: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(vn(this.state.type)){let l=nt(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(te(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}this.unexpected();}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let a=this.startNodeAt(r),n=this.eat(18);s=s||n,this.expect(0),!n&&this.match(3)?(a.elementType=i,this.next(),i=this.finishNode(a,"ArrayTypeAnnotation")):(a.objectType=i,a.indexType=this.flowParseType(),this.expect(3),s?(a.optional=n,i=this.finishNode(a,"OptionalIndexedAccessType")):i=this.finishNode(a,"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(r){let i=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i)),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 a=this.startNode();[a.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=a.typeAnnotation?this.finishNode(a,"TypeAnnotation"):null;}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(_e(s.type)){let a=this.startNode();return this.next(),this.flowParseInterface(a)}}else if(this.shouldParseEnums()&&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)||te(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(te(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 Ru(r)||this.shouldParseEnums()&&r===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return Ru(r)||this.shouldParseEnums()&&r===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&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 E=this.lookaheadCharCode();if(E===44||E===61||E===58||E===41)return this.setOptionalParametersError(s),r}this.expect(17);let a=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[p,P]=this.getArrowLikeExpressions(l);if(u||P.length>0){let E=[...n];if(P.length>0){this.state=a,this.state.noArrowAt=E;for(let A=0;A<P.length;A++)E.push(P[A].start);(({consequent:l,failed:u}=this.tryParseConditionalConsequent())),[p,P]=this.getArrowLikeExpressions(l);}u&&p.length>1&&this.raise(K.AmbiguousConditionalArrow,{at:a.startLoc}),u&&p.length===1&&(this.state=a,E.push(p[0].start),this.state.noArrowAt=E,{consequent:l,failed:u}=this.tryParseConditionalConsequent());}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=n,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],a=[];for(;s.length!==0;){let n=s.pop();n.type==="ArrowFunctionExpression"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):a.push(n),s.push(n.body)):n.type==="ConditionalExpression"&&(s.push(n.consequent),s.push(n.alternate));}return i?(a.forEach(n=>this.finishArrowValidation(n)),[a,[]]):MD(a,n=>n.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(6),super.checkParams(r,!1,!0),this.scope.exit();}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){if(r=super.parseParenItem(r,i),this.eat(17)&&(r.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(i);return s.expression=r,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return r}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.shouldParseEnums()&&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:a}=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(K.DeclareClassElement,{at:a}):i.value&&this.raise(K.DeclareClassFieldInitializer,{at:i.value}));}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(S.InvalidIdentifier,{at: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):mD(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 a=0;a<r.length;a++){let n=r[a];n?.type==="TypeCastExpression"&&(r[a]=this.typeCastToParameter(n));}super.toAssignableList(r,i,s);}toReferencedList(r,i){for(let a=0;a<r.length;a++){var s;let n=r[a];n&&n.type==="TypeCastExpression"&&!((s=n.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(K.TypeCastInPattern,{at:n.typeAnnotation});}return r}parseArrayLike(r,i,s,a){let n=super.parseArrayLike(r,i,s,a);return i&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(r,i,s){return r==="TypeCastExpression"||super.isValidLVal(r,i,s)}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,a,n,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,a,n,o),i.params&&n){let l=i.params;l.length>0&&this.isThisParam(l[0])&&this.raise(K.ThisParamBannedInConstructor,{at:i});}else if(i.type==="MethodDefinition"&&n&&i.value.params){let l=i.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(K.ThisParamBannedInConstructor,{at:i});}}pushClassPrivateMethod(r,i,s,a){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,a);}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&this.match(47)&&(r.superTypeParameters=this.flowParseTypeParameterInstantiation()),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(K.GetterMayNotHaveThisParam,{at:s}):this.isThisParam(s)&&this.raise(K.SetterMayNotHaveThisParam,{at:s});}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance();}parseObjPropValue(r,i,s,a,n,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let p=super.parseObjPropValue(r,i,s,a,n,o,l);return u&&((p.value||p).typeParameters=u),p}parseAssignableListItemTypes(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(K.PatternIsOptional,{at:r}),this.isThisParam(r)&&this.raise(K.ThisParamMayNotBeOptional,{at:r}),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(K.ThisParamAnnotationRequired,{at:r}),this.match(29)&&this.isThisParam(r)&&this.raise(K.ThisParamNoDefault,{at: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(K.TypeBeforeInitializer,{at:s.typeAnnotation}),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(K.ImportReflectionHasImportType,{at:r.specifiers[0].loc.start});}parseImportSpecifierLocal(r,i,s){i.local=Vu(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,a){if(super.applyImportPhase(r,i,s,a),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,a,n){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let P=this.parseIdentifier(!0);l!==null&&!_e(this.state.type)?(r.imported=P,r.importKind=l,r.local=ze(P)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier());}else {if(l!==null&&_e(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else {if(i)throw this.raise(S.ImportBindingIsString,{at:r,importName:o.value});r.imported=o,r.importKind=null;}this.eatContextual(93)?r.local=this.parseIdentifier():(u=!0,r.local=ze(r.imported));}let p=Vu(r);return s&&p&&this.raise(K.ImportTypeShorthandOnlyInPureImport,{at:r}),(s||p)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),u&&!s&&!p&&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 a=null,n;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(a=this.state.clone(),n=this.tryParse(()=>super.parseMaybeAssign(r,i),a),!n.error)return n.node;let{context:u}=this.state,p=u[u.length-1];(p===ne.j_oTag||p===ne.j_expr)&&u.pop();}if((s=n)!=null&&s.error||this.match(47)){var o,l;a=a||this.state.clone();let u,p=this.tryParse(E=>{var A;u=this.flowParseTypeParameterDeclaration();let I=this.forwardNoArrowParamsConversionAt(u,()=>{let M=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(M,u),M});(A=I.extra)!=null&&A.parenthesized&&E();let w=this.maybeUnwrapTypeCastExpression(I);return w.type!=="ArrowFunctionExpression"&&E(),w.typeParameters=u,this.resetStartLocationFromNode(w,u),I},a),P=null;if(p.node&&this.maybeUnwrapTypeCastExpression(p.node).type==="ArrowFunctionExpression"){if(!p.error&&!p.aborted)return p.node.async&&this.raise(K.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:u}),p.node;P=p.node;}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(P)return this.state=p.failState,P;throw (l=n)!=null&&l.thrown?n.error:p.thrown?p.error:this.raise(K.UnexpectedTokenAfterTypeParameter,{at:u})}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 a=this.startNode();return [a.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),a});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.indexOf(r.start)!==-1?r.params=i:super.setArrowFunctionParameters(r,i);}checkParams(r,i,s,a=!0){if(!(s&&this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1)){for(let n=0;n<r.params.length;n++)this.isThisParam(r.params[n])&&n>0&&this.raise(K.ThisParamMustBeFirst,{at:r.params[n]});super.checkParams(r,i,s,a);}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.indexOf(i.index)!==-1){this.next();let a=this.startNodeAt(i);a.callee=r,a.arguments=super.parseCallExpressionArguments(11,!1),r=this.finishNode(a,"CallExpression");}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let a=this.state.clone(),n=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),a);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),a);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,a){if(this.match(18)&&this.isLookaheadToken_lt()){if(a.optionalChainMember=!0,s)return a.stop=!0,r;this.next();let n=this.startNodeAt(i);return n.callee=r,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}else if(!s&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(i);n.callee=r;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),a.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,a.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,a)}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(K.UnterminatedFlowComment,{at:this.state.curPosition()}),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(K.NestedFlowComment,{at: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),a=this.input.charCodeAt(i+r+1);return s===58&&a===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&a!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(S.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(K.EnumBooleanMemberNotInitialized,{at:r,memberName:s,enumName:i});}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?K.EnumInvalidMemberInitializerSymbolType:K.EnumInvalidMemberInitializerPrimaryType:K.EnumInvalidMemberInitializerUnknownType,Object.assign({at:r},i))}flowEnumErrorNumberMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(K.EnumNumberMemberNotInitialized,{at:r,enumName:i,memberName:s});}flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i}){this.raise(K.EnumStringMemberInconsistentlyInitialized,{at:r,enumName:i});}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 133:{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:a}=i;a!==null&&a!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i);}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,a={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),p=l.name;if(p==="")continue;/^[a-z]/.test(p)&&this.raise(K.EnumInvalidMemberName,{at:l,memberName:p,suggestion:p[0].toUpperCase()+p.slice(1),enumName:r}),s.has(p)&&this.raise(K.EnumDuplicateMemberName,{at:l,memberName:p,enumName:r}),s.add(p);let P={enumName:r,explicitType:i,memberName:p};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,P,"boolean"),o.init=u.value,a.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,P,"number"),o.init=u.value,a.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,P,"string"),o.init=u.value,a.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,P);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,P);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,P);break;default:a.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"));}}this.match(8)||this.expect(12);}return {members:a,hasUnknownMembers:n}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let a of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(a,{enumName:s});return i}else {for(let a of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(a,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!te(this.state.type))throw this.raise(K.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(K.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,a=i.loc.start,n=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:n});switch(r.hasUnknownMembers=l,n){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 u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let p=o.booleanMembers.length,P=o.numberMembers.length,E=o.stringMembers.length,A=o.defaultedMembers.length;if(!p&&!P&&!E&&!A)return u();if(!p&&!P)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!P&&!E&&p>=A){for(let I of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(I.loc.start,{enumName:s,memberName:I.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!p&&!E&&P>=A){for(let I of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(I.loc.start,{enumName:s,memberName:I.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(K.EnumInconsistentMemberValues,{at:a,enumName:s}),u()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}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}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},FD={__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"},mt=We`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,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:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,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 st(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function It(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return It(t.object)+"."+It(t.property);throw new Error("Node had unexpected type: "+t.type)}var RD=t=>class extends t{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(mt.UnterminatedJsxContent,{at: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(142)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(141,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:dr(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(S.UnterminatedString,{at:this.state.startLoc});let a=this.input.charCodeAt(this.state.pos);if(a===r)break;a===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):dr(a)?(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(133,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 a=this.input.slice(r,this.state.pos),n=FD[a];if(++this.state.pos,n)return n}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(wt(r)||r===45);this.finishToken(140,this.input.slice(i,this.state.pos));}jsxParseIdentifier(){let r=this.startNode();return this.match(140)?r.name=this.state.value:vn(this.state.type)?r.name=nt(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(ne.brace),this.next(),r=this.jsxParseExpressionContainer(r,ne.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(mt.AttributeIsEmpty,{at:r}),r;case 142:case 133:return this.parseExprAtom();default:throw this.raise(mt.UnsupportedJsxValue,{at: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(ne.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(ne.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(ne.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(143)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(143);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(143),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(143)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(143),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],a=this.jsxParseOpeningElementAt(r),n=null;if(!a.selfClosing){e:for(;;)switch(this.state.type){case 142:if(r=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 141:s.push(this.parseExprAtom());break;case 5:{let o=this.startNode();this.setContext(ne.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,ne.j_expr));break}default:this.unexpected();}st(a)&&!st(n)&&n!==null?this.raise(mt.MissingClosingTagFragment,{at:n}):!st(a)&&st(n)?this.raise(mt.MissingClosingTagElement,{at:n,openingTagName:It(a.name)}):!st(a)&&!st(n)&&It(n.name)!==It(a.name)&&this.raise(mt.MissingClosingTagElement,{at:n,openingTagName:It(a.name)});}if(st(a)?(i.openingFragment=a,i.closingFragment=n):(i.openingElement=a,i.closingElement=n),i.children=s,this.match(47))throw this.raise(mt.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return st(a)?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(141)?this.parseLiteral(this.state.value,"JSXText"):this.match(142)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace();}getTokenFromCode(r){let i=this.curContext();if(i===ne.j_expr){this.jsxReadToken();return}if(i===ne.j_oTag||i===ne.j_cTag){if($e(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(143);return}if((r===34||r===39)&&i===ne.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(142);return}super.getTokenFromCode(r);}updateContext(r){let{context:i,type:s}=this.state;if(s===56&&r===142)i.splice(-2,2,ne.j_cTag),this.state.canStartJSXElement=!1;else if(s===142)i.push(ne.j_oTag);else if(s===143){let a=i[i.length-1];a===ne.j_oTag&&r===56||a===ne.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===ne.j_expr):(this.setContext(ne.j_expr),this.state.canStartJSXElement=!0);}else this.state.canStartJSXElement=eD(s);}},hn=class extends hr{constructor(...e){super(...e),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set;}},yn=class extends yr{constructor(...e){super(...e),this.importsStack=[];}createScope(e){return this.importsStack.push(new Set),new hn(e)}enter(e){e==256&&this.importsStack.push(new Set),super.enter(e);}exit(){let e=super.exit();return e==256&&this.importsStack.pop(),e}hasImport(e,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(e))return !0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(e))return !0}return !1}declareName(e,r,i){if(r&4096){this.hasImport(e,!0)&&this.parser.raise(S.VarRedeclaration,{at:i,identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let s=this.currentScope();if(r&1024){this.maybeExportDefined(s,e),s.exportOnlyBindings.add(e);return}super.declareName(e,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e)),s.types.add(e)),r&256&&s.enums.add(e),r&512&&s.constEnums.add(e),r&128&&s.classes.add(e);}isRedeclaredInScope(e,r,i){if(e.enums.has(r)){if(i&256){let s=!!(i&512),a=e.constEnums.has(r);return s!==a}return !0}return i&128&&e.classes.has(r)?e.lexical.has(r)?!!(i&1):!1:i&2&&e.types.has(r)?!0:super.isRedeclaredInScope(e,r,i)}checkLocalExport(e){let{name:r}=e;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let a=this.scopeStack[s];if(a.types.has(r)||a.exportOnlyBindings.has(r))return}super.checkLocalExport(e);}},UD=(t,e)=>Object.hasOwnProperty.call(t,e)&&t[e],uc=t=>t.type==="ParenthesizedExpression"?uc(t.expression):t,mn=class extends dn{toAssignable(e,r=!1){var i,s;let a;switch((e.type==="ParenthesizedExpression"||(i=e.extra)!=null&&i.parenthesized)&&(a=uc(e),r?a.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(S.InvalidParenthesizedAssignment,{at:e}):a.type!=="MemberExpression"&&!this.isOptionalMemberExpression(a)&&this.raise(S.InvalidParenthesizedAssignment,{at:e}):this.raise(S.InvalidParenthesizedAssignment,{at:e})),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let o=0,l=e.properties.length,u=l-1;o<l;o++){var n;let p=e.properties[o],P=o===u;this.toAssignableObjectExpressionProp(p,P,r),P&&p.type==="RestElement"&&(n=e.extra)!=null&&n.trailingCommaLoc&&this.raise(S.RestTrailingComma,{at:e.extra.trailingCommaLoc});}break;case"ObjectProperty":{let{key:o,value:l}=e;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":e.type="ArrayPattern",this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":e.operator!=="="&&this.raise(S.MissingEqInAssignment,{at:e.left.loc.end}),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(a,r);break}}toAssignableObjectExpressionProp(e,r,i){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?S.PatternHasAccessor:S.PatternHasMethod,{at:e.key});else if(e.type==="SpreadElement"){e.type="RestElement";let s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(S.RestTrailingComma,{at:e});}else this.toAssignable(e,i);}toAssignableList(e,r,i){let s=e.length-1;for(let a=0;a<=s;a++){let n=e[a];if(n){if(n.type==="SpreadElement"){n.type="RestElement";let o=n.argument;this.checkToRestConversion(o,!0),this.toAssignable(o,i);}else this.toAssignable(n,i);n.type==="RestElement"&&(a<s?this.raise(S.RestTrailingComma,{at:n}):r&&this.raise(S.RestTrailingComma,{at:r}));}}}isAssignable(e,r){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return !0;case"ObjectExpression":{let i=e.properties.length-1;return e.properties.every((s,a)=>s.type!=="ObjectMethod"&&(a===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return !r;default:return !1}}toReferencedList(e,r){return e}toReferencedListDeep(e,r){this.toReferencedList(e,r);for(let i of e)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements);}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,r,i){let s=i&1,a=[],n=!0;for(;!this.eat(e);)if(n?n=!1:this.expect(12),s&&this.match(12))a.push(null);else {if(this.eat(e))break;if(this.match(21)){if(a.push(this.parseAssignableListItemTypes(this.parseRestBinding(),i)),!this.checkCommaAfterRest(r)){this.expect(e);break}}else {let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(S.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());a.push(this.parseAssignableListItem(i,o));}}return a}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let e=this.startNode(),{type:r,startLoc:i}=this.state;return r===21?this.parseBindingRestProperty(e):(r===138?(this.expectPlugin("destructuringPrivate",i),this.classScope.usePrivateName(this.state.value,i),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,i,!1,!1,!0,!1))}parseAssignableListItem(e,r){let i=this.parseMaybeDefault();this.parseAssignableListItemTypes(i,e);let s=this.parseMaybeDefault(i.loc.start,i);return r.length&&(i.decorators=r),s}parseAssignableListItemTypes(e,r){return e}parseMaybeDefault(e,r){var s;if((e)!=null||(e=this.state.startLoc),r=(s=r)!=null?s:this.parseBindingAtom(),!this.eat(29))return r;let a=this.startNodeAt(e);return a.left=r,a.right=this.parseMaybeAssignAllowIn(),this.finishNode(a,"AssignmentPattern")}isValidLVal(e,r,i){return UD({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},e)}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,{in:r,binding:i=64,checkClashes:s=!1,strictModeChanged:a=!1,hasParenthesizedAncestor:n=!1}){var o;let l=e.type;if(this.isObjectMethod(e))return;let u=this.isOptionalMemberExpression(e);if(u||l==="MemberExpression"){u&&(this.expectPlugin("optionalChainingAssign",e.loc.start),r.type!=="AssignmentExpression"&&this.raise(S.InvalidLhsOptionalChaining,{at:e,ancestor:r})),i!==64&&this.raise(S.InvalidPropertyBindingPattern,{at:e});return}if(l==="Identifier"){this.checkIdentifier(e,i,a);let{name:I}=e;s&&(s.has(I)?this.raise(S.ParamDupe,{at:e}):s.add(I));return}let p=this.isValidLVal(l,!(n||(o=e.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",i);if(p===!0)return;if(p===!1){let I=i===64?S.InvalidLhs:S.InvalidLhsBinding;this.raise(I,{at:e,ancestor:r});return}let[P,E]=Array.isArray(p)?p:[p,l==="ParenthesizedExpression"],A=l==="ArrayPattern"||l==="ObjectPattern"?{type:l}:r;for(let I of [].concat(e[P]))I&&this.checkLVal(I,{in:A,binding:i,checkClashes:s,strictModeChanged:a,hasParenthesizedAncestor:E});}checkIdentifier(e,r,i=!1){this.state.strict&&(i?ic(e.name,this.inModule):rc(e.name))&&(r===64?this.raise(S.StrictEvalArguments,{at:e,referenceName:e.name}):this.raise(S.StrictEvalArgumentsBinding,{at:e,bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(S.LetInLexicalBinding,{at:e}),r&64||this.declareNameFromIdentifier(e,r);}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.loc.start);}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(S.InvalidRestAssignmentPattern,{at:e});}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?S.RestTrailingComma:S.ElementAfterRest,{at:this.state.startLoc}),!0):!1}},qD=(t,e)=>Object.hasOwnProperty.call(t,e)&&t[e];function KD(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function Yu(t){if(!t)throw new Error("Assert fail")}var F=We`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"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:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' 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:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,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.",InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[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.",NonClassMethodPropertyHasAbstractModifer:"'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:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,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.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,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:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`});function VD(t){switch(t){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 Xu(t){return t==="private"||t==="public"||t==="protected"}function YD(t){return t==="in"||t==="out"}var XD=t=>class extends t{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:F.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:F.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:F.InvalidModifierOnTypeParameter});}getScopeHandler(){return yn}tsIsIdentifier(){return te(this.state.type)}tsTokenCanFollowModifier(){return (this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(r,i){if(!te(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(r.indexOf(s)!==-1){if(i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:a=F.InvalidModifierOnTypeMember},n){let o=(u,p,P,E)=>{p===P&&n[E]&&this.raise(F.InvalidModifiersOrder,{at:u,orderedModifiers:[P,E]});},l=(u,p,P,E)=>{(n[P]&&p===E||n[E]&&p===P)&&this.raise(F.IncompatibleModifiers,{at:u,modifiers:[P,E]});};for(;;){let{startLoc:u}=this.state,p=this.tsParseModifier(r.concat(i??[]),s);if(!p)break;Xu(p)?n.accessibility?this.raise(F.DuplicateAccessibilityModifier,{at:u,modifier:p}):(o(u,p,p,"override"),o(u,p,p,"static"),o(u,p,p,"readonly"),n.accessibility=p):YD(p)?(n[p]&&this.raise(F.DuplicateModifier,{at:u,modifier:p}),n[p]=!0,o(u,p,"in","out")):(Object.hasOwnProperty.call(n,p)?this.raise(F.DuplicateModifier,{at:u,modifier:p}):(o(u,p,"static","readonly"),o(u,p,"static","override"),o(u,p,"override","readonly"),o(u,p,"abstract","override"),l(u,p,"declare","override"),l(u,p,"static","abstract")),n[p]=!0),i!=null&&i.includes(p)&&this.raise(a,{at:u,modifier:p});}}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 KD(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,a){let n=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(n.push(l),this.eat(12)){o=this.state.lastTokStart;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return a&&(a.value=o),n}tsParseBracketedList(r,i,s,a,n){a||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,n);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(F.UnsupportedImportTypeArgument,{at:this.state.startLoc}),r.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName()),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseEntityName(r=!0){let i=this.parseIdentifier(r);for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(r),i=this.finishNode(s,"TSQualifiedName");}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(),!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(),!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(142)?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(F.EmptyTypeParameters,{at:i}),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,a="parameters",n="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[a]=this.tsParseBindingListForSignature(),s?i[n]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[n]=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(F.UnsupportedSignatureParameterKind,{at: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(),te(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){this.eat(17)&&(r.optional=!0);let s=r;if(this.match(10)||this.match(47)){i&&this.raise(F.ReadonlyForMethodSignature,{at:r});let a=s;a.kind&&this.match(47)&&this.raise(F.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,a),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(a.kind==="get")a[n].length>0&&(this.raise(S.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(a[n][0])&&this.raise(F.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(a.kind==="set"){if(a[n].length!==1)this.raise(S.BadSetterArity,{at:this.state.curPosition()});else {let l=a[n][0];this.isThisParam(l)&&this.raise(F.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),l.type==="Identifier"&&l.optional&&this.raise(F.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),l.type==="RestElement"&&this.raise(F.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()});}a[o]&&this.raise(F.SetAccesorCannotHaveReturnType,{at:a[o]});}else a.kind="method";return this.finishNode(a,"TSMethodSignature")}else {let a=s;i&&(a.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(a.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"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.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)))}tsParseMappedTypeParameter(){let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),this.finishNode(r,"TSTypeParameter")}tsParseMappedType(){let r=this.startNode();return 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),r.typeParameter=this.tsParseMappedTypeParameter(),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:a}=s;i&&a!=="TSRestType"&&a!=="TSOptionalType"&&!(a==="TSNamedTupleMember"&&s.optional)&&this.raise(F.OptionalTypeBeforeRequired,{at:s}),i||(i=a==="TSNamedTupleMember"&&s.optional||a==="TSOptionalType");}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let{startLoc:r}=this.state,i=this.eat(21),s,a,n,o,u=_e(this.state.type)?this.lookaheadCharCode():null;if(u===58)s=!0,n=!1,a=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(u===63){n=!0;let p=this.state.startLoc,P=this.state.value,E=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,a=this.createIdentifier(this.startNodeAt(p),P),this.expect(17),this.expect(14),o=this.tsParseType()):(s=!1,o=E,this.expect(17));}else o=this.tsParseType(),n=this.eat(17),s=this.eat(14);if(s){let p;a?(p=this.startNodeAtNode(a),p.optional=n,p.label=a,p.elementType=o,this.eat(17)&&(p.optional=!0,this.raise(F.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(p=this.startNodeAtNode(o),p.optional=n,this.raise(F.InvalidTupleMemberLabel,{at:o}),p.label=o,p.elementType=this.tsParseType()),o=this.finishNode(p,"TSNamedTupleMember");}else if(n){let p=this.startNodeAtNode(o);p.typeAnnotation=o,o=this.finishNode(p,"TSOptionalType");}if(i){let p=this.startNodeAt(r);p.typeAnnotation=o,o=this.finishNode(p,"TSRestType");}return o}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 134:case 135:case 133: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 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==134&&i.type!==135&&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(te(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":VD(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}this.unexpected();}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let i=this.startNodeAtNode(r);i.elementType=r,this.expect(3),r=this.finishNode(i,"TSArrayType");}else {let i=this.startNodeAtNode(r);i.objectType=r,i.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(i,"TSIndexedAccessType");}return r}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(F.UnexpectedReadonly,{at: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 nD(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let a=this.startNode(),n=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!n?o[0]:(a.types=o,this.finishNode(a,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(te(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(),a=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(a&&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 n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return a?(s.parameterName=this.parseIdentifier(),s.asserts=a,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=n,s.typeAnnotation=o,s.asserts=a,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(),!te(this.state.type)&&!this.match(78)?!1:(r&&this.raise(S.InvalidEscapedReservedWord,{at: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(){Yu(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.lookahead().type===77}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(F.ReservedTypeAssertion,{at: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 a=this.startNode();return a.expression=this.tsParseEntityName(),this.match(47)&&(a.typeParameters=this.tsParseTypeArguments()),this.finishNode(a,"TSExpressionWithTypeArguments")});return s.length||this.raise(F.EmptyHeritageClauseType,{at:i,token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),te(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(F.MissingInterfaceName,{at: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.lookahead().type!==16){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInNoContext(r){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i;}}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(133)?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")}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(256),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.global=!0,r.id=this.parseIdentifier()):this.match(133)?r.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),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 a=this.tsParseModuleReference();return r.importKind==="type"&&a.type!=="TSExternalModuleReference"&&this.raise(F.ImportAliasHasImportType,{at:a}),r.moduleReference=a,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||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,s;return this.isContextual(100)&&(i=74,s="let"),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 75:case 74:return !this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,s||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 129:{let a=this.tsParseInterfaceDeclaration(r,{declare:!0});if(a)return a}default:if(te(i))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,i,s){switch(i.name){case"declare":{let a=this.tsTryParseDeclare(r);return a&&(a.declare=!0),a}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let a=r;return a.global=!0,a.id=i,a.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(a,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,i.name,!1,s)}}tsParseDeclaration(r,i,s,a){switch(i){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||te(this.state.type)))return this.tsParseAbstractDeclaration(r,a);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(r);if(te(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&te(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(s)&&te(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 a=this.startNodeAt(r);return a.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(a),a.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),a});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.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(F.EmptyTypeArguments,{at:r}):!this.state.inType&&this.curContext()===ne.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return oD(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(r,i){let s=this.state.startLoc,a={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},a);let n=a.accessibility,o=a.override,l=a.readonly;!(r&4)&&(n||l||o)&&this.raise(F.UnexpectedParameterModifier,{at:s});let u=this.parseMaybeDefault();this.parseAssignableListItemTypes(u,r);let p=this.parseMaybeDefault(u.loc.start,u);if(n||l||o){let P=this.startNodeAt(s);return i.length&&(P.decorators=i),n&&(P.accessibility=n),l&&(P.readonly=l),o&&(P.override=o),p.type!=="Identifier"&&p.type!=="AssignmentPattern"&&this.raise(F.UnsupportedParameterPropertyKind,{at:P}),P.parameter=p,this.finishNode(P,"TSParameterProperty")}return i.length&&(u.decorators=i),p}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(F.PatternIsOptional,{at: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 a=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return a&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,a):a==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(F.DeclareFunctionHasImplementation,{at:r}),r.declare)?super.parseFunctionBodyAndFinish(r,a,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(F.UnexpectedTypeAnnotation,{at:i.typeAnnotation});});}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s,a){let n=super.parseArrayLike(r,i,s,a);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(r,i,s,a){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 n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return a.stop=!0,r;a.optionalChainMember=n=!0,this.next();}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let E=this.tsTryParseGenericAsyncArrowFunction(i);if(E)return E}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(ci(this.state.type)){let E=super.parseTaggedTemplateExpression(r,i,a);return E.typeParameters=u,E}if(!s&&this.eat(10)){let E=this.startNodeAt(i);return E.callee=r,E.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(E.arguments),E.typeParameters=u,a.optionalChainMember&&(E.optional=n),this.finishCallExpression(E,a.optionalChainMember)}let p=this.state.type;if(p===48||p===52||p!==10&&Qa(p)&&!this.hasPrecedingLineBreak())return;let P=this.startNodeAt(i);return P.expression=r,P.typeParameters=u,this.finishNode(P,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(F.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),l}return super.parseSubscript(r,i,s,a)}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 a;if(ai(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(a=this.isContextual(120)))){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(a&&this.raise(S.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,a?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,a){this.state.isAmbientContext||super.checkReservedWord(r,i,s,a);}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(F.ImportReflectionHasImportType,{at: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,a){super.applyImportPhase(r,i,s,a),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value";}parseImport(r){if(this.match(133))return r.importKind="value",super.parseImport(r);let i;if(te(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(F.TypeImportCannotSpecifyDefaultAndNamed,{at:i}),i}parseExport(r,i){if(this.match(83)){this.next();let s=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(r,!1):r.importKind="value",this.tsParseImportEqualsDeclaration(r,s,!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.lookahead().type===80}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:a}=this.state,n=super.parseVarStatement(r,i,s||a);if(!a)return n;for(let{id:o,init:l}of n.declarations)l&&(i!=="const"||o.typeAnnotation?this.raise(F.InitializerNotAllowedInAmbientContext,{at:l}):$D(l,this.hasPlugin("estree"))||this.raise(F.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:l}));return n}parseStatementContent(r,i){if(this.match(75)&&this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>Xu(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let a=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:a,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:F.InvalidModifierOnTypeParameterPositions},i);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,a)&&this.raise(F.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static);};i.declare?this.tsInAmbientContext(n):n();}parseClassMemberWithIsStatic(r,i,s,a){let n=this.tsTryParseIndexSignature(i);if(n){r.body.push(n),i.abstract&&this.raise(F.IndexSignatureHasAbstract,{at:i}),i.accessibility&&this.raise(F.IndexSignatureHasAccessibility,{at:i,modifier:i.accessibility}),i.declare&&this.raise(F.IndexSignatureHasDeclare,{at:i}),i.override&&this.raise(F.IndexSignatureHasOverride,{at:i});return}!this.state.inAbstractClass&&i.abstract&&this.raise(F.NonAbstractClassHasAbstractMethod,{at:i}),i.override&&(s.hadSuperClass||this.raise(F.OverrideNotInSubClass,{at:i})),super.parseClassMemberWithIsStatic(r,i,s,a);}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(F.ClassMethodHasReadonly,{at:r}),r.declare&&this.match(10)&&this.raise(F.ClassMethodHasDeclare,{at:r});}parseExpressionStatement(r,i,s){return (i.type==="Identifier"?this.tsParseExpressionStatement(r,i,s):void 0)||super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(r,i,s);let a=this.tryParse(()=>super.parseConditional(r,i));return a.node?(a.error&&(this.state=a.failState),a.node):(a.error&&super.setOptionalParametersError(s,a.error),r)}parseParenItem(r,i){if(r=super.parseParenItem(r,i),this.eat(17)&&(r.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(i);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"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(F.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let n=te(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&(this.resetStartLocation(n,i),n.declare=!0),n):null}parseClassId(r,i,s,a){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(r.typeParameters=n);}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(F.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),r.abstract&&this.match(29)){let{key:i}=r;this.raise(F.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(i.start,i.end)}]`});}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(F.PrivateElementHasAbstract,{at:r}),r.accessibility&&this.raise(F.PrivateElementHasAccessibility,{at:r,modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(F.AccessorCannotBeOptional,{at:r}),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,a,n,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&n&&this.raise(F.ConstructorHasTypeParameters,{at:l});let{declare:u=!1,kind:p}=i;u&&(p==="get"||p==="set")&&this.raise(F.DeclareAccessor,{at:i,kind:p}),l&&(i.typeParameters=l),super.pushClassMethod(r,i,s,a,n,o);}pushClassPrivateMethod(r,i,s,a){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(i.typeParameters=n),super.pushClassPrivateMethod(r,i,s,a);}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&!r.value.body||super.declareClassPrivateMethodInScope(r,i));}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"));}parseObjPropValue(r,i,s,a,n,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(r.typeParameters=u),super.parseObjPropValue(r,i,s,a,n,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,a,n,o,l;let u,p,P;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(u=this.state.clone(),p=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!p.error)return p.node;let{context:I}=this.state,w=I[I.length-1];(w===ne.j_oTag||w===ne.j_expr)&&I.pop();}if(!((s=p)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!u||u===this.state)&&(u=this.state.clone());let E,A=this.tryParse(I=>{var w,M;E=this.tsParseTypeParameters(this.tsParseConstModifier);let B=super.parseMaybeAssign(r,i);return (B.type!=="ArrowFunctionExpression"||(w=B.extra)!=null&&w.parenthesized)&&I(),((M=E)==null?void 0:M.params.length)!==0&&this.resetStartLocationFromNode(B,E),B.typeParameters=E,B},u);if(!A.error&&!A.aborted)return E&&this.reportReservedArrowTypeParam(E),A.node;if(!p&&(Yu(!this.hasPlugin("jsx")),P=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!P.error))return P.node;if((a=p)!=null&&a.node)return this.state=p.failState,p.node;if(A.node)return this.state=A.failState,E&&this.reportReservedArrowTypeParam(E),A.node;if((n=P)!=null&&n.node)return this.state=P.failState,P.node;throw ((o=p)==null?void 0:o.error)||A.error||((l=P)==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(F.ReservedArrowTypeParam,{at: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 a=this.tsParseTypeOrTypePredicateAnnotation(14);return (this.canInsertSemicolon()||!this.match(19))&&s(),a});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node);}return super.parseArrow(r)}parseAssignableListItemTypes(r,i){if(!(i&2))return r;this.eat(17)&&(r.optional=!0);let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),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(F.UnexpectedTypeCastInParameter,{at:r}):this.raise(F.UnexpectedTypeCastInParameter,{at: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){return qD({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(s!==64||!i)&&["expression",!0],TSSatisfiesExpression:(s!==64||!i)&&["expression",!0],TSTypeAssertion:(s!==64||!i)&&["expression",!0]},r)||super.isValidLVal(r,i,s)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(r);return s.typeParameters=i,s}this.unexpected(null,10);}return super.parseMaybeDecoratorArguments(r)}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(F.TypeAnnotationAfterAssign,{at: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}toAssignableList(r,i,s){for(let a=0;a<r.length;a++){let n=r[a];n?.type==="TSTypeCastExpression"&&(r[a]=this.typeCastToParameter(n));}super.toAssignableList(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),a=this.getObjectOrClassMethodParams(r)[0];return a&&this.isThisParam(a)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let i=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return r()}finally{this.state.isAmbientContext=i;}}parseClass(r,i,s){let a=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=a;}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(F.NonClassMethodPropertyHasAbstractModifer,{at:r}),this.tsParseInterfaceDeclaration(r)}else this.unexpected(null,80);}parseMethod(r,i,s,a,n,o,l){let u=super.parseMethod(r,i,s,a,n,o,l);if(u.abstract&&(this.hasPlugin("estree")?!!u.value.body:!!u.body)){let{key:P}=u;this.raise(F.AbstractMethodHasImplementation,{at:u,methodName:P.type==="Identifier"&&!u.computed?P.name:`[${this.input.slice(P.start,P.end)}]`});}return u}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,a){return !i&&a?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,a))}parseImportSpecifier(r,i,s,a,n){return !i&&a?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,a,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let a=i?"imported":"local",n=i?"local":"exported",o=r[a],l,u=!1,p=!0,P=o.loc.start;if(this.isContextual(93)){let A=this.parseIdentifier();if(this.isContextual(93)){let I=this.parseIdentifier();_e(this.state.type)?(u=!0,o=A,l=i?this.parseIdentifier():this.parseModuleExportName(),p=!1):(l=I,p=!1);}else _e(this.state.type)?(p=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=A);}else _e(this.state.type)&&(u=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&s&&this.raise(i?F.TypeModifierIsUsedInTypeImports:F.TypeModifierIsUsedInTypeExports,{at:P}),r[a]=o,r[n]=l;let E=i?"importKind":"exportKind";r[E]=u?"type":"value",p&&this.eatContextual(93)&&(r[n]=i?this.parseIdentifier():this.parseModuleExportName()),r[n]||(r[n]=ze(r[a])),i&&this.checkIdentifier(r[n],u?4098:4096);}};function JD(t){if(t.type!=="MemberExpression")return !1;let{computed:e,property:r}=t;return e&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:pc(t.object)}function $D(t,e){var r;let{type:i}=t;if((r=t.extra)!=null&&r.parenthesized)return !1;if(e){if(i==="Literal"){let{value:s}=t;if(typeof s=="string"||typeof s=="boolean")return !0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return !0;return !!(cc(t,e)||WD(t,e)||i==="TemplateLiteral"&&t.expressions.length===0||JD(t))}function cc(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function WD(t,e){if(t.type==="UnaryExpression"){let{operator:r,argument:i}=t;if(r==="-"&&cc(i,e))return !0}return !1}function pc(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:pc(t.object)}var Ju=We`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),zD=t=>class extends t{parsePlaceholder(r){if(this.match(144)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=!!(r.expectedNode&&r.type==="Placeholder");return r.expectedNode=i,s?r:this.finishNode(r,"Placeholder")}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,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,a){r!==void 0&&super.checkReservedWord(r,i,s,a);}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s){return r==="Placeholder"||super.isValidLVal(r,i,s)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i);}chStartsBindingIdentifier(r,i){return !!(super.chStartsBindingIdentifier(r,i)||this.lookahead().type===144)}verifyBreakContinue(r,i){r.label&&r.label.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")}return this.semicolon(),r.name=i.name,this.finishPlaceholder(r,"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 a=i?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(144)||this.match(5))r.id=o;else {if(s||!i)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,a);throw this.raise(Ju.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,n),this.finishNode(r,a)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,r.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(r,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(nt(144),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.state.lastTokEndLoc.index&&this.raise(Ju.UnexpectedSpace,{at:this.state.lastTokEndLoc});}},HD=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),te(this.state.type)){let s=this.parseIdentifierName(),a=this.createIdentifier(i,s);if(a.type="V8IntrinsicIdentifier",this.match(10))return a}this.unexpected(r);}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}};function ue(t,e){let[r,i]=typeof e=="string"?[e,{}]:e,s=Object.keys(i),a=s.length===0;return t.some(n=>{if(typeof n=="string")return a&&n===r;{let[o,l]=n;if(o!==r)return !1;for(let u of s)if(l[u]!==i[u])return !1;return !0}})}function at(t,e,r){let i=t.find(s=>Array.isArray(s)?s[0]===e:s===e);return i&&Array.isArray(i)&&i.length>1?i[1][r]:null}var $u=["minimal","fsharp","hack","smart"],Wu=["^^","@@","^","%","#"],zu=["hash","bar"];function GD(t){if(ue(t,"decorators")){if(ue(t,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let e=at(t,"decorators","decoratorsBeforeExport");if(e!=null&&typeof e!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=at(t,"decorators","allowCallParenthesized");if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(ue(t,"flow")&&ue(t,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(ue(t,"placeholders")&&ue(t,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(ue(t,"pipelineOperator")){let e=at(t,"pipelineOperator","proposal");if(!$u.includes(e)){let i=$u.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}let r=ue(t,["recordAndTuple",{syntaxType:"hash"}]);if(e==="hack"){if(ue(t,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(ue(t,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let i=at(t,"pipelineOperator","topicToken");if(!Wu.includes(i)){let s=Wu.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}if(i==="#"&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(e==="smart"&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(ue(t,"moduleAttributes")){if(ue(t,"importAssertions")||ue(t,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(at(t,"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(ue(t,"importAssertions")&&ue(t,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(ue(t,"recordAndTuple")&&at(t,"recordAndTuple","syntaxType")!=null&&!zu.includes(at(t,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+zu.map(e=>`'${e}'`).join(", "));if(ue(t,"asyncDoExpressions")&&!ue(t,"doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(ue(t,"optionalChainingAssign")&&at(t,"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'.")}var fc={estree:HC,jsx:RD,flow:BD,typescript:XD,v8intrinsic:HD,placeholders:zD},QD=Object.keys(fc),za={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function ZD(t){if(t==null)return Object.assign({},za);if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let e={};for(let i of Object.keys(za)){var r;e[i]=(r=t[i])!=null?r:za[i];}return e}var Tn=class extends mn{checkProto(e,r,i,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return;let a=e.key;if((a.type==="Identifier"?a.name:a.value)==="__proto__"){if(r){this.raise(S.RecordNoProto,{at:a});return}i.used&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=a.loc.start):this.raise(S.DuplicateProto,{at:a})),i.used=!0;}}shouldExitDescending(e,r){return e.type==="ArrowFunctionExpression"&&e.start===r}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.state.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e,r){var i;e.optionalParametersLoc=(i=r?.loc)!=null?i:this.state.startLoc;}parseMaybeAssign(e,r){let i=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return r&&(o=r.call(this,o,i)),o}let s;e?s=!1:(e=new Ot,s=!0);let{type:a}=this.state;(a===10||te(a))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(e);if(r&&(n=r.call(this,n,i)),tD(this.state.type)){let o=this.startNodeAt(i),l=this.state.value;if(o.operator=l,this.match(29)){this.toAssignable(n,!0),o.left=n;let u=i.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null);}else o.left=n;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(n,{in:this.finishNode(o,"AssignmentExpression")}),o}else s&&this.checkExpressionErrors(e,!0);return n}parseMaybeConditional(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,e)}parseConditional(e,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(e,r,i){if(this.isPrivateName(e)){let a=this.getPrivateNameSV(e);(i>=ai(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(S.PrivateInExpectedIn,{at:e,identifierName:a}),this.classScope.usePrivateName(a,e.loc.start);}let s=this.state.type;if(iD(s)&&(this.prodParam.hasIn||!this.match(58))){let a=ai(s);if(a>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r);}let n=this.startNodeAt(r);n.left=e,n.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(a=ai(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(S.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});n.right=this.parseExprOpRightExpr(s,a);let u=this.finishNode(n,o||l?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(l&&(p===41||p===42)||o&&p===40)throw this.raise(S.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(u,r,i)}}return e}parseExprOpRightExpr(e,r){let i=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(S.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,r),i)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,lD(e)?r-1:r)}parseHackPipeBody(){var e;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return YC.has(i.type)&&!((e=i.extra)!=null&&e.parenthesized)&&this.raise(S.PipeUnparenthesizedBody,{at:r,type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(S.PipeTopicUnused,{at:r}),i}checkExponentialAfterUnary(e){this.match(57)&&this.raise(S.UnexpectedTokenUnaryExponentiation,{at:e.argument});}parseMaybeUnary(e,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.isAwaitAllowed()){this.next();let l=this.parseAwait(i);return r||this.checkExponentialAfterUnary(l),l}let a=this.match(34),n=this.startNode();if(aD(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&l){let u=n.argument;u.type==="Identifier"?this.raise(S.StrictDelete,{at:n}):this.hasPropertyAsPrivateName(u)&&this.raise(S.DeletePrivateField,{at:n});}if(!a)return r||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,a,e);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Qa(l):Qa(l)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(S.AwaitNotInAsyncContext,{at:i}),this.parseAwait(i)}return o}parseUpdate(e,r,i){if(r){let n=e;return this.checkLVal(n.argument,{in:this.finishNode(n,"UpdateExpression")}),e}let s=this.state.startLoc,a=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return a;for(;sD(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(s);n.operator=this.state.value,n.prefix=!1,n.argument=a,this.next(),this.checkLVal(a,{in:a=this.finishNode(n,"UpdateExpression")});}return a}parseExprSubscripts(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(e,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,r,i,s){let{type:a}=this.state;if(!i&&a===15)return this.parseBind(e,r,i,s);if(ci(a))return this.parseTaggedTemplateExpression(e,r,s);let n=!1;if(a===18){if(i&&(this.raise(S.OptionalChainingNoNew,{at:this.state.startLoc}),this.lookaheadCharCode()===40))return s.stop=!0,e;s.optionalChainMember=n=!0,this.next();}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,s,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(e,r,s,o,n):(s.stop=!0,e)}}parseMember(e,r,i,s,a){let n=this.startNodeAt(r);return n.object=e,n.computed=s,s?(n.property=this.parseExpression(),this.expect(3)):this.match(138)?(e.type==="Super"&&this.raise(S.SuperPrivateField,{at:r}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),i.optionalChainMember?(n.optional=a,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(e,r,i,s){let a=this.startNodeAt(r);return a.object=e,this.next(),a.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(a,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(e,r,i,s){let a=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=e;let{maybeAsyncArrow:l,optionalChainMember:u}=i;l&&(this.expressionScope.enter(ND()),n=new Ot),u&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,e.type==="Import",e.type!=="Super",o,n);let p=this.finishCallExpression(o,u);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),p)):(l&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=a,p}toReferencedArguments(e,r){this.toReferencedListDeep(e.arguments,r);}parseTaggedTemplateExpression(e,r,i){let s=this.startNodeAt(r);return s.tag=e,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(S.OptionalChainingNoTemplate,{at:r}),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes");}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),e.arguments.length===0||e.arguments.length>2)this.raise(S.ImportCallArity,{at:e,maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let i of e.arguments)i.type==="SpreadElement"&&this.raise(S.ImportCallSpreadArgument,{at:i});return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,i,s,a){let n=[],o=!0,l=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){r&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(S.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(!1,a,i));}return this.state.inFSharpPipelineDirectBody=l,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(e,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&mr(e,r.innerComments),r.callee.trailingComments&&mr(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){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.parseImportMetaProperty(r):this.match(10)?this.options.createImportExpressions?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(S.UnsupportedImport,{at: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 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133: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 a=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(a)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);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 a=r.callee=this.parseNoCallExpr();if(a.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(S.UnsupportedBind,{at:a})}case 138:return this.raise(S.PrivateInExpectedIn,{at: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 a=this.getPluginOption("pipelineOperator","proposal");if(a)return this.parseTopicReference(a);this.unexpected();break}case 47:{let a=this.input.codePointAt(this.nextTokenStart());$e(a)||a===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(te(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let a=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&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(te(l))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return a&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected();}}parseTopicReferenceThenEqualsSign(e,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=xe(this.state.endLoc,-1),this.parseTopicReference(i);this.unexpected();}parseTopicReference(e){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,e,s)}finishTopicReference(e,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s)){let a=i==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(i==="smart"?S.PrimaryTopicNotAllowed:S.PipeTopicUnbound,{at:r}),this.registerTopicReference(),this.finishNode(e,a)}else throw this.raise(S.PipeTopicUnconfiguredToken,{at:r,token:nt(s)})}testTopicReferenceConfiguration(e,r,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:nt(i)}]);case"smart":return i===27;default:throw this.raise(S.PipeTopicRequiresHackPipes,{at:r})}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(oi(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(S.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(S.SuperNotAllowed,{at:e}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(S.UnexpectedSuper,{at:e}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(S.UnsupportedSuper,{at:e}),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(xe(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(r,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,i){e.meta=r;let s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||s)&&this.raise(S.UnsupportedMetaProperty,{at:e.property,target:r.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){let r=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(S.ImportMetaOutsideModule,{at:r}),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let i=this.isContextual(105);if(i||this.unexpected(),this.expectPlugin(i?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(S.DynamicImportPhaseRequiresImportExpressions,{at:this.state.startLoc,phase:this.state.value});return this.next(),e.phase=i?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,r,"meta")}parseLiteralAtNode(e,r,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(i.start,this.state.end)),i.value=e,this.next(),this.finishNode(i,r)}parseLiteral(e,r){let i=this.startNode();return this.parseLiteralAtNode(e,r,i)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let r=this.parseLiteral(e.value,"RegExpLiteral");return r.pattern=e.pattern,r.flags=e.flags,r}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(OD());let s=this.state.maybeInArrowParameters,a=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],l=new Ot,u=!0,p,P;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){P=this.state.startLoc;break}if(this.match(21)){let I=this.state.startLoc;if(p=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),I)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem));}let E=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=a;let A=this.startNodeAt(r);return e&&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),P&&this.unexpected(P),p&&this.unexpected(p),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(n),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,E)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(e,r){if(!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(e);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return !this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let i=this.parseMetaProperty(e,r,"target");return !this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(S.UnexpectedNewTarget,{at:i}),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),e.arguments=r;}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let r=this.match(83),i=this.parseNoCallExpr();e.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(S.ImportCallNotNewExpression,{at:i});}parseTemplateElement(e){let{start:r,startLoc:i,end:s,value:a}=this.state,n=r+1,o=this.startNodeAt(xe(i,1));a===null&&(e||this.raise(S.InvalidEscapeSequenceTemplate,{at:xe(this.state.firstInvalidTemplateEscapePos,1)}));let l=this.match(24),u=l?-1:-2,p=s+u;o.value={raw:this.input.slice(n,p).replace(/\r\n?/g,`
|
|
20
|
+
`),cooked:a===null?null:a.slice(1,u)},o.tail=l,this.next();let P=this.finishNode(o,"TemplateElement");return this.resetEndLocation(P,xe(this.state.lastTokEndLoc,u)),P}parseTemplate(e){let r=this.startNode();r.expressions=[];let i=this.parseTemplateElement(e);for(r.quasis=[i];!i.tail;)r.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.quasis.push(i=this.parseTemplateElement(e));return this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(l);break}let p;r?p=this.parseBindingProperty():(p=this.parsePropertyDefinition(s),this.checkProto(p,i,n,s)),i&&!this.isObjectProperty(p)&&p.type!=="SpreadElement"&&this.raise(S.InvalidRecordProperty,{at:p}),p.shorthand&&this.addExtra(p,"shorthand",!0),l.properties.push(p);}this.next(),this.state.inFSharpPipelineDirectBody=a;let u="ObjectExpression";return r?u="ObjectPattern":i&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStart),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1);}maybeAsyncOrAccessorProp(e){return !e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(S.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,a=!1,n;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,e&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc,u=this.parsePropertyName(i,e);if(!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let p=u.name;p==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(i)),(p==="get"||p==="set")&&(a=!0,this.resetPreviousNodeTrailingComments(u),i.kind=p,this.match(55)&&(o=!0,this.raise(S.AccessorIsGenerator,{at:this.state.curPosition(),kind:p}),this.next()),this.parsePropertyName(i));}return this.parseObjPropValue(i,n,o,s,!1,a,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var r;let i=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==i&&this.raise(e.kind==="get"?S.BadGetterArity:S.BadSetterArity,{at:e}),e.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(S.BadSetterRestParameter,{at:e});}parseObjectMethod(e,r,i,s,a){if(a){let n=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(i||r||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,i,s){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishNode(e,"ObjectProperty");if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(r,ze(e.key));else if(this.match(29)){let a=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=a):this.raise(S.InvalidCoverInitializedName,{at:a}),e.value=this.parseMaybeDefault(r,ze(e.key));}else e.value=ze(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,r,i,s,a,n,o){let l=this.parseObjectMethod(e,i,s,a,n)||this.parseObjectProperty(e,r,a,o);return l||this.unexpected(),l}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else {let{type:i,value:s}=this.state,a;if(_e(i))a=this.parseIdentifier(!0);else switch(i){case 134:a=this.parseNumericLiteral(s);break;case 133:a=this.parseStringLiteral(s);break;case 135:a=this.parseBigIntLiteral(s);break;case 136:a=this.parseDecimalLiteral(s);break;case 138:{let n=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=n):this.raise(S.UnexpectedPrivateField,{at:n}),a=this.parsePrivateName();break}default:this.unexpected();}e.key=a,i!==138&&(e.computed=!1);}return e.key}initFunction(e,r){e.id=null,e.generator=!1,e.async=r;}parseMethod(e,r,i,s,a,n,o=!1){this.initFunction(e,i),e.generator=r,this.scope.enter(18|(o?64:0)|(a?32:0)),this.prodParam.enter(oi(i,e.generator)),this.parseFunctionParams(e,s);let l=this.parseFunctionBodyAndFinish(e,n,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(e,!i,s,n),this.state.inFSharpPipelineDirectBody=a,this.finishNode(n,i?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,i,s){this.scope.enter(6);let a=oi(i,!1);!this.match(5)&&this.prodParam.hasIn&&(a|=8),this.prodParam.enter(a),this.initFunction(e,i);let n=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,i){this.toAssignableList(r,i,!1),e.params=r;}parseFunctionBodyAndFinish(e,r,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,r)}parseFunctionBody(e,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(lc()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else {let a=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(e.params);o&&l&&this.raise(S.IllegalLanguageModeDirective,{at:(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e});let u=!a&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!i&&!l,r,u),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,u);}),this.prodParam.exit(),this.state.labels=n;}this.expressionScope.exit();}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,i=e.length;r<i;r++)if(!this.isSimpleParameter(e[r]))return !1;return !0}checkParams(e,r,i,s=!0){let a=!r&&new Set,n={type:"FormalParameters"};for(let o of e.params)this.checkLVal(o,{in:n,binding:5,checkClashes:a,strictModeChanged:s});}parseExprList(e,r,i,s){let a=[],n=!0;for(;!this.eat(e);){if(n)n=!1;else if(this.expect(12),this.match(e)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}a.push(this.parseExprListItem(r,i));}return a}parseExprListItem(e,r,i){let s;if(this.match(12))e||this.raise(S.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),s=null;else if(this.match(21)){let a=this.state.startLoc;s=this.parseParenItem(this.parseSpread(r),a);}else if(this.match(17)){this.expectPlugin("partialApplication"),i||this.raise(S.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let a=this.startNode();this.next(),s=this.finishNode(a,"ArgumentPlaceholder");}else s=this.parseMaybeAssignAllowIn(r,this.parseParenItem);return s}parseIdentifier(e){let r=this.startNode(),i=this.parseIdentifierName(e);return this.createIdentifier(r,i)}createIdentifier(e,r){return e.name=r,e.loc.identifierName=r,this.finishNode(e,"Identifier")}parseIdentifierName(e){let r,{startLoc:i,type:s}=this.state;_e(s)?r=this.state.value:this.unexpected();let a=ZC(s);return e?a&&this.replaceToken(132):this.checkReservedWord(r,i,a,!1),this.next(),r}checkReservedWord(e,r,i,s){if(e.length>10||!bD(e))return;if(i&&yD(e)){this.raise(S.UnexpectedKeyword,{at:r,keyword:e});return}if((this.state.strict?s?ic:tc:ec)(e,this.inModule)){this.raise(S.UnexpectedReservedWord,{at:r,reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(S.YieldBindingIdentifier,{at:r});return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(S.AwaitBindingIdentifier,{at:r});return}if(this.scope.inStaticBlock){this.raise(S.AwaitBindingIdentifierInStaticBlock,{at:r});return}this.expressionScope.recordAsyncArrowParametersError({at:r});}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(S.ArgumentsInClass,{at:r});return}}isAwaitAllowed(){return !!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e){let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(S.AwaitExpressionFormalParameter,{at:r}),this.eat(55)&&this.raise(S.ObsoleteAwaitStar,{at:r}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return !0;let{type:e}=this.state;return e===53||e===10||e===0||ci(e)||e===102&&!this.state.containsEsc||e===137||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(S.YieldInParameter,{at:e}),this.next();let r=!1,i=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:i=this.parseMaybeAssign();}return e.delegate=r,e.argument=i,this.finishNode(e,"YieldExpression")}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(S.PipelineHeadSequenceExpression,{at:r});}parseSmartPipelineBodyInStyle(e,r){if(this.isSimpleReference(e)){let i=this.startNodeAt(r);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}else {let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=e,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return !e.computed&&this.isSimpleReference(e.object);case"Identifier":return !0;default:return !1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(S.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(S.PipelineTopicUnused,{at:e});}withTopicBindingContext(e){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r;}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r;}}else return e()}withSoloAwaitPermittingContext(e){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=r;}}allowInAnd(e){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return e()}finally{this.prodParam.exit();}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return e()}finally{this.prodParam.exit();}}return e()}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(e){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,e);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=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{e.body=this.parseProgram(r,8,"module");}finally{i();}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},Ha={kind:"loop"},eL={kind:"switch"},tL=/[\uD800-\uDFFF]/u,Ga=/in(?:stanceof)?/y;function rL(t,e){for(let r=0;r<t.length;r++){let i=t[r],{type:s}=i;if(typeof s=="number"){{if(s===138){let{loc:a,start:n,value:o,end:l}=i,u=n+1,p=xe(a.start,1);t.splice(r,1,new Re({type:Xe(27),value:"#",start:n,end:u,startLoc:a.start,endLoc:p}),new Re({type:Xe(132),value:o,start:u,end:l,startLoc:p,endLoc:a.end})),r++;continue}if(ci(s)){let{loc:a,start:n,value:o,end:l}=i,u=n+1,p=xe(a.start,1),P;e.charCodeAt(n)===96?P=new Re({type:Xe(22),value:"`",start:n,end:u,startLoc:a.start,endLoc:p}):P=new Re({type:Xe(8),value:"}",start:n,end:u,startLoc:a.start,endLoc:p});let E,A,I,w;s===24?(A=l-1,I=xe(a.end,-1),E=o===null?null:o.slice(1,-1),w=new Re({type:Xe(22),value:"`",start:A,end:l,startLoc:I,endLoc:a.end})):(A=l-2,I=xe(a.end,-2),E=o===null?null:o.slice(1,-2),w=new Re({type:Xe(23),value:"${",start:A,end:l,startLoc:I,endLoc:a.end})),t.splice(r,1,P,new Re({type:Xe(20),value:E,start:u,end:A,startLoc:p,endLoc:I}),w),r+=2;continue}}i.type=Xe(s);}}return t}var bn=class extends Tn{parseTopLevel(e,r){return e.program=this.parseProgram(r),e.comments=this.state.comments,this.options.tokens&&(e.tokens=rL(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e,r=139,i=this.options.sourceType){if(e.sourceType=i,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[a,n]of Array.from(this.scope.undefinedExports))this.raise(S.ModuleExportUndefined,{at:n,localName:a});let s;return r===139?s=this.finishNode(e,"Program"):s=this.finishNodeAt(e,"Program",xe(this.state.startLoc,-1)),s}stmtToDirective(e){let r=e;r.type="Directive",r.value=r.expression,delete r.expression;let i=r.value,s=i.value,a=this.input.slice(i.start,i.end),n=i.value=a.slice(1,-1);return this.addExtra(i,"raw",a),this.addExtra(i,"rawValue",n),this.addExtra(i,"expressionValue",s),i.type="DirectiveLiteral",r}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(e,r){if($e(e)){if(Ga.lastIndex=r,Ga.test(this.input)){let i=this.codePointAtPos(Ga.lastIndex);if(!wt(i)&&i!==92)return !1}return !0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifier(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}startsUsingForOf(){let{type:e,containsEsc:r}=this.lookahead();if(e===102&&!r)return !1;if(te(e)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))return this.expectPlugin("explicitResourceManagement"),!0}return !1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let i=this.state.type,s=this.startNode(),a=!!(e&2),n=!!(e&4),o=e&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 n||this.raise(this.state.strict?S.StrictFunction:this.options.annexB?S.SloppyFunctionAnnexB:S.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(s,!1,!a&&n);case 80:return a||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.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?a||this.raise(S.UnexpectedLexicalDeclaration,{at:s}):this.raise(S.AwaitUsingNotInAsyncContext,{at:s}),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(S.UnexpectedUsingDeclaration,{at:this.state.startLoc}):a||this.raise(S.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let p=this.nextTokenStart(),P=this.codePointAtPos(p);if(P!==91&&(!a&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(P,p)&&P!==123))break}case 75:a||this.raise(S.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let p=this.state.value;return this.parseVarStatement(s,p)}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 p=this.lookaheadCharCode();if(p===40||p===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(S.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let p;return i===83?(p=this.parseImport(s),p.type==="ImportDeclaration"&&(!p.importKind||p.importKind==="value")&&(this.sawUnambiguousESM=!0)):(p=this.parseExport(s,r),(p.type==="ExportNamedDeclaration"&&(!p.exportKind||p.exportKind==="value")||p.type==="ExportAllDeclaration"&&(!p.exportKind||p.exportKind==="value")||p.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(p),p}default:if(this.isAsyncFunction())return a||this.raise(S.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(s,!0,!a&&n)}let l=this.state.value,u=this.parseExpression();return te(i)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,e):this.parseExpressionStatement(s,u,r)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(S.ImportOutsideModule,{at:e});}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,r,i){return e&&(r.decorators&&r.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(S.DecoratorsBeforeAfterExport,{at:r.decorators[0]}),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),i&&this.resetStartLocationFromNode(i,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(S.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(S.UnexpectedLeadingDecorator,{at:this.state.startLoc});return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=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 a=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(i),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==i&&this.raise(S.DecoratorArgumentsOutsideParentheses,{at:a});}else {for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(138)?(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");}e.expression=this.parseMaybeDecoratorArguments(i);}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){let r=this.startNodeAtNode(e);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(r||s.kind==="loop")||e.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(S.IllegalBreakContinue,{at:e,type:s});}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Ha),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Ha);let r=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(r=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(e,null);let i=this.isContextual(100);{let l=this.isContextual(96)&&this.startsAwaitUsing(),u=l||this.isContextual(107)&&this.startsUsingForOf(),p=i&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||p){let P=this.startNode(),E;l?(E="await using",this.isAwaitAllowed()||this.raise(S.AwaitUsingNotInAsyncContext,{at:this.state.startLoc}),this.next()):E=this.state.value,this.next(),this.parseVar(P,!0,E);let A=this.finishNode(P,"VariableDeclaration"),I=this.match(58);return I&&u&&this.raise(S.ForInUsing,{at:A}),(I||this.isContextual(102))&&A.declarations.length===1?this.parseForIn(e,A,r):(r!==null&&this.unexpected(r),this.parseFor(e,A))}}let s=this.isContextual(95),a=new Ot,n=this.parseExpression(!0,a),o=this.isContextual(102);if(o&&(i&&this.raise(S.ForOfLet,{at:n}),r===null&&s&&n.type==="Identifier"&&this.raise(S.ForOfAsync,{at:n})),o||this.match(58)){this.checkDestructuringPrivate(a),this.toAssignable(n,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{in:{type:l}}),this.parseForIn(e,n,r)}else this.checkExpressionErrors(a,!0);return r!==null&&this.unexpected(r),this.parseFor(e,n)}parseFunctionStatement(e,r,i){return this.next(),this.parseFunction(e,1|(i?2:0)|(r?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return !this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(S.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];this.expect(5),this.state.labels.push(eL),this.scope.enter(0);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let a=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),a?i.test=this.parseExpression():(s&&this.raise(S.MultipleDefaultsInSwitch,{at: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(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(S.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.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(),e.handler=this.finishNode(r,"CatchClause");}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(S.NoCatchOrFinally,{at:e}),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,i=!1){return this.next(),this.parseVar(e,!1,r,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Ha),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(S.StrictWith,{at:this.state.startLoc}),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,r,i,s){for(let n of this.state.labels)n.name===r&&this.raise(S.LabelRedeclaration,{at:i,labelName:r});let a=rD(this.state.type)?"loop":this.match(71)?"switch":null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===e.start)o.statementStart=this.state.start,o.kind=a;else break}return this.state.labels.push({name:r,kind:a,statementStart:this.state.start}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,i){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,i){let s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,i,s,a){let n=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(n,r?o:void 0,i,s,a);}parseBlockOrModuleBlockBody(e,r,i,s,a){let n=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let u=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(u)){let p=this.stmtToDirective(u);r.push(p),!o&&p.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear();}e.push(u);}a?.call(this,o),n||this.setStrict(!1),this.next();}parseFor(e,r){return e.init=r,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):e.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(S.ForInOfLoopInitializer,{at:r,type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(S.InvalidLhs,{at:r,ancestor:{type:"ForStatement"}}),e.left=r,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,r,i,s=!1){let a=e.declarations=[];for(e.kind=i;;){let n=this.startNode();if(this.parseVarId(n,i),n.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!s&&(n.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(S.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):i==="const"&&!(this.match(58)||this.isContextual(102))&&this.raise(S.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),a.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,r){let i=this.parseBindingAtom();this.checkLVal(i,{in:{type:"VariableDeclarator"},binding:r==="var"?5:8201}),e.id=i;}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let i=r&2,s=!!(r&1),a=s&&!(r&4),n=!!(r&8);this.initFunction(e,n),this.match(55)&&(i&&this.raise(S.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(a));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(oi(n,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression");}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||te(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(wD()),e.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit();}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start);}parseClass(e,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return !e.computed&&!e.static&&(e.key.name==="constructor"||e.key.value==="constructor")}parseClassBody(e,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},s=[],a=this.startNode();if(a.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(S.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){s.push(this.parseDecorator());continue}let n=this.startNode();s.length&&(n.decorators=s,this.resetStartLocationFromNode(n,s[0]),s=[]),this.parseClassMember(a,n,i),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(S.DecoratorConstructor,{at:n});}}),this.state.strict=r,this.next(),s.length)throw this.raise(S.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(a,"ClassBody")}parseClassMemberFromModifier(e,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(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(e,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(5)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,i,s);}parseClassMemberWithIsStatic(e,r,i,s){let a=r,n=r,o=r,l=r,u=r,p=a,P=a;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){p.kind="method";let M=this.match(138);if(this.parseClassElementName(p),M){this.pushClassPrivateMethod(e,n,!0,!1);return}this.isNonstaticConstructor(a)&&this.raise(S.ConstructorIsGenerator,{at:a.key}),this.pushClassMethod(e,a,!0,!1,!1,!1);return}let E=te(this.state.type)&&!this.state.containsEsc,A=this.match(138),I=this.parseClassElementName(r),w=this.state.startLoc;if(this.parsePostMemberNameModifiers(P),this.isClassMethod()){if(p.kind="method",A){this.pushClassPrivateMethod(e,n,!1,!1);return}let M=this.isNonstaticConstructor(a),B=!1;M&&(a.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(S.DuplicateConstructor,{at:I}),M&&this.hasPlugin("typescript")&&r.override&&this.raise(S.OverrideOnConstructor,{at:I}),i.hadConstructor=!0,B=i.hadSuperClass),this.pushClassMethod(e,a,!1,!1,M,B);}else if(this.isClassProperty())A?this.pushClassPrivateProperty(e,l):this.pushClassProperty(e,o);else if(E&&I.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(I);let M=this.eat(55);P.optional&&this.unexpected(w),p.kind="method";let B=this.match(138);this.parseClassElementName(p),this.parsePostMemberNameModifiers(P),B?this.pushClassPrivateMethod(e,n,M,!0):(this.isNonstaticConstructor(a)&&this.raise(S.ConstructorIsAsync,{at:a.key}),this.pushClassMethod(e,a,M,!0,!1,!1));}else if(E&&(I.name==="get"||I.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(I),p.kind=I.name;let M=this.match(138);this.parseClassElementName(a),M?this.pushClassPrivateMethod(e,n,!1,!1):(this.isNonstaticConstructor(a)&&this.raise(S.ConstructorIsAccessor,{at:a.key}),this.pushClassMethod(e,a,!1,!1,!1,!1)),this.checkGetterSetterParams(a);}else if(E&&I.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(I);let M=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(e,u,M);}else this.isLineTerminator()?A?this.pushClassPrivateProperty(e,l):this.pushClassProperty(e,o):this.unexpected();}parseClassElementName(e){let{type:r,value:i}=this.state;if((r===132||r===133)&&e.static&&i==="prototype"&&this.raise(S.StaticPrototype,{at:this.state.startLoc}),r===138){i==="constructor"&&this.raise(S.ConstructorClassPrivateField,{at:this.state.startLoc});let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e)}parseClassStaticBlock(e,r){var i;this.scope.enter(208);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let a=r.body=[];this.parseBlockOrModuleBlockBody(a,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(S.DecoratorStaticBlock,{at:r});}pushClassProperty(e,r){!r.computed&&(r.key.name==="constructor"||r.key.value==="constructor")&&this.raise(S.ConstructorClassField,{at:r.key}),e.body.push(this.parseClassProperty(r));}pushClassPrivateProperty(e,r){let i=this.parseClassPrivateProperty(r);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start);}pushClassAccessorProperty(e,r,i){if(!i&&!r.computed){let a=r.key;(a.name==="constructor"||a.value==="constructor")&&this.raise(S.ConstructorClassField,{at:a});}let s=this.parseClassAccessorProperty(r);e.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start);}pushClassMethod(e,r,i,s,a,n){e.body.push(this.parseMethod(r,i,s,a,n,"ClassMethod",!0));}pushClassPrivateMethod(e,r,i,s){let a=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(a);let n=a.kind==="get"?a.static?6:2:a.kind==="set"?a.static?5:1:0;this.declareClassPrivateMethodInScope(a,n);}declareClassPrivateMethodInScope(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,e.key.loc.start);}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(lc()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit();}parseClassId(e,r,i,s=8331){if(te(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,s);else if(i||!r)e.id=null;else throw this.raise(S.MissingClassName,{at:this.state.startLoc})}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null;}parseExport(e,r){let i=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,i),a=!s||this.eat(12),n=a&&this.eatExportStar(e),o=n&&this.maybeParseExportNamespaceSpecifier(e),l=a&&(!o||this.eat(12)),u=s||n;if(n&&!o){if(s&&this.unexpected(),r)throw this.raise(S.UnsupportedDecoratorExport,{at:e});return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}let p=this.maybeParseExportNamedSpecifiers(e);s&&a&&!n&&!p&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let P;if(u||p){if(P=!1,r)throw this.raise(S.UnsupportedDecoratorExport,{at:e});this.parseExportFrom(e,u);}else P=this.maybeParseExportDeclaration(e);if(u||p||P){var E;let A=e;if(this.checkExport(A,!0,!1,!!A.source),((E=A.declaration)==null?void 0:E.type)==="ClassDeclaration")this.maybeTakeDecorators(r,A.declaration,A);else if(r)throw this.raise(S.UnsupportedDecoratorExport,{at:e});return this.finishNode(A,"ExportNamedDeclaration")}if(this.eat(65)){let A=e,I=this.parseExportDefaultExpression();if(A.declaration=I,I.type==="ClassDeclaration")this.maybeTakeDecorators(r,I,A);else if(r)throw this.raise(S.UnsupportedDecoratorExport,{at:e});return this.checkExport(A,!0,!0),this.finishNode(A,"ExportDefaultDeclaration")}this.unexpected(null,5);}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,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,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return !1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return !1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);let r=e.exportKind==="type";return e.specifiers.push(...this.parseExportSpecifiers(r)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return !1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return !1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(S.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(S.UnsupportedDefaultExport,{at:this.state.startLoc});let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(te(e)){if(e===95&&!this.state.containsEsc||e===100)return !1;if((e===130||e===129)&&!this.state.containsEsc){let{type:s}=this.lookahead();if(te(s)&&s!==98||s===5)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||te(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(e,r){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):r&&this.unexpected(),this.semicolon();}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(S.DecoratorBeforeExport,{at:this.state.startLoc}),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,r,i,s){if(r){var a;if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var n;let o=e.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((n=o.extra)!=null&&n.parenthesized)&&this.raise(S.ExportDefaultFromAsIdentifier,{at:o});}}else if((a=e.specifiers)!=null&&a.length)for(let o of e.specifiers){let{exported:l}=o,u=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,u),!s&&o.local){let{local:p}=o;p.type!=="Identifier"?this.raise(S.ExportBindingIsString,{at:o,localName:p.value,exportName:u}):(this.checkReservedWord(p.name,p.loc.start,!0,!1),this.scope.checkLocalExport(p));}}else if(e.declaration){if(e.declaration.type==="FunctionDeclaration"||e.declaration.type==="ClassDeclaration"){let o=e.declaration.id;if(!o)throw new Error("Assertion failure");this.checkDuplicateExports(e,o.name);}else if(e.declaration.type==="VariableDeclaration")for(let o of e.declaration.declarations)this.checkDeclaration(o.id);}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left);}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(S.DuplicateDefaultExport,{at:e}):this.raise(S.DuplicateExport,{at:e,exportName:r})),this.exportedIdentifiers.add(r);}parseExportSpecifiers(e){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),a=this.match(133),n=this.startNode();n.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(n,a,e,s));}return r}parseExportSpecifier(e,r,i,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():r?e.exported=DD(e.local):e.exported||(e.exported=ze(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let e=this.parseStringLiteral(this.state.value),r=e.value.match(tL);return r&&this.raise(S.ModuleExportNameHasLoneSurrogate,{at:e,surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(e){let{specifiers:r}=e,i=r.length===1?r[0].type:null;if(e.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(S.SourcePhaseImportRequiresDefault,{at:r[0].loc.start});else if(e.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(S.DeferImportRequiresNamespace,{at:r[0].loc.start});else if(e.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(S.ImportReflectionNotBinding,{at:r[0].loc.start}),((s=e.assertions)==null?void 0:s.length)>0&&this.raise(S.ImportReflectionHasAssertion,{at:e.specifiers[0].loc.start});}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:r}=e;if(r!=null){let i=r.find(s=>{let a;if(s.type==="ExportSpecifier"?a=s.local:s.type==="ImportSpecifier"&&(a=s.imported),a!==void 0)return a.type==="Identifier"?a.name!=="default":a.value!=="default"});i!==void 0&&this.raise(S.ImportJSONBindingNotDefault,{at:i.loc.start});}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null));}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let i=this.parseIdentifier(!0),{type:s}=this.state;return (_e(s)?s!==98||this.lookaheadCharCode()===102:s!==12)?(this.resetPreviousIdentifierLeadingComments(i),this.applyImportPhase(e,r,i.name,i.loc.start),null):(this.applyImportPhase(e,r,null),i)}isPrecedingIdImportPhase(e){let{type:r}=this.state;return te(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(12),a=s&&this.maybeParseStarImportSpecifier(e);return s&&!a&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return (e.specifiers)!=null||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,r,i){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,i));}finishImportSpecifier(e,r,i=8201){return this.checkLVal(e.local,{in:{type:r},binding:i}),this.finishNode(e,r)}parseImportAttributes(){this.expect(5);let e=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(S.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:s}),r.add(s),this.match(133)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(S.ModuleAttributeInvalidValue,{at:this.state.startLoc});i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"));}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(S.ModuleAttributeDifferentFromType,{at:i.key}),r.has(i.key.name)&&this.raise(S.ModuleAttributesWithDuplicateKeys,{at:i.key,key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(133))throw this.raise(S.ModuleAttributeInvalidValue,{at:this.state.startLoc});i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"));}while(this.eat(12));return e}maybeParseImportAttributes(e){let r,i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?r=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),r=this.parseImportAttributes()),i=!0;}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(S.ImportAttributesUseAssert,{at:this.state.startLoc}),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),r=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r=[];else if(this.hasPlugin("moduleAttributes"))r=[];else return;!i&&this.hasPlugin("importAssertions")?e.assertions=r:e.attributes=r;}maybeParseDefaultImportSpecifier(e,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(_e(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return !1}maybeParseStarImportSpecifier(e){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return !1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else {if(this.eat(14))throw this.raise(S.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(133),a=this.isContextual(130);i.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(i,s,e.importKind==="type"||e.importKind==="typeof",a,void 0);e.specifiers.push(n);}}parseImportSpecifier(e,r,i,s,a){if(this.eatContextual(93))e.local=this.parseIdentifier();else {let{imported:n}=e;if(r)throw this.raise(S.ImportBindingIsString,{at:e,importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=ze(n));}return this.finishImportSpecifier(e,"ImportSpecifier",a)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},fi=class extends bn{constructor(e,r){e=ZD(e),super(e,r),this.options=e,this.initializeScopes(),this.plugins=iL(this.options.plugins),this.filename=e.sourceFilename;}getScopeHandler(){return yr}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,r),e.errors=this.state.errors,e}};function iL(t){let e=new Map;for(let r of t){let[i,s]=Array.isArray(r)?r:[r,{}];e.has(i)||e.set(i,s||{});}return e}function sL(t,e){var r;if(((r=e)==null?void 0:r.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let i=pr(e,t),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return e.sourceType="script",pr(e,t).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return e.sourceType="script",pr(e,t).parse()}catch{}throw i}}else return pr(e,t).parse()}function aL(t,e){let r=pr(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function nL(t){let e={};for(let r of Object.keys(t))e[r]=Xe(t[r]);return e}var oL=nL(QC);function pr(t,e){let r=fi;return t!=null&&t.plugins&&(GD(t.plugins),r=lL(t.plugins)),new r(t,e)}var Hu={};function lL(t){let e=QD.filter(s=>ue(t,s)),r=e.join("/"),i=Hu[r];if(!i){i=fi;for(let s of e)i=fc[s](i);Hu[r]=i;}return i}Tr.parse=sL;Tr.parseExpression=aL;Tr.tokTypes=oL;});var hc=v(di=>{Object.defineProperty(di,"__esModule",{value:!0});di.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;di.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!!(t[3]||t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e};});var mc=v((F5,yc)=>{var uL=/[|\\{}()[\]^$+*?.]/g;yc.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(uL,"\\$&")};});var bc=v((R5,Tc)=>{Tc.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};});var Nn=v((U5,Ec)=>{var bt=bc(),Pc={};for(hi in bt)bt.hasOwnProperty(hi)&&(Pc[bt[hi]]=hi);var hi,U=Ec.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Pe in U)if(U.hasOwnProperty(Pe)){if(!("channels"in U[Pe]))throw new Error("missing channels property: "+Pe);if(!("labels"in U[Pe]))throw new Error("missing channel labels property: "+Pe);if(U[Pe].labels.length!==U[Pe].channels)throw new Error("channel and label counts mismatch: "+Pe);Sc=U[Pe].channels,xc=U[Pe].labels,delete U[Pe].channels,delete U[Pe].labels,Object.defineProperty(U[Pe],"channels",{value:Sc}),Object.defineProperty(U[Pe],"labels",{value:xc});}var Sc,xc,Pe;U.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.min(e,r,i),a=Math.max(e,r,i),n=a-s,o,l,u;return a===s?o=0:e===a?o=(r-i)/n:r===a?o=2+(i-e)/n:i===a&&(o=4+(e-r)/n),o=Math.min(o*60,360),o<0&&(o+=360),u=(s+a)/2,a===s?l=0:u<=.5?l=n/(a+s):l=n/(2-a-s),[o,l*100,u*100]};U.rgb.hsv=function(t){var e,r,i,s,a,n=t[0]/255,o=t[1]/255,l=t[2]/255,u=Math.max(n,o,l),p=u-Math.min(n,o,l),P=function(E){return (u-E)/6/p+1/2};return p===0?s=a=0:(a=p/u,e=P(n),r=P(o),i=P(l),n===u?s=i-r:o===u?s=1/3+e-i:l===u&&(s=2/3+r-e),s<0?s+=1:s>1&&(s-=1)),[s*360,a*100,u*100]};U.rgb.hwb=function(t){var e=t[0],r=t[1],i=t[2],s=U.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(r,i));return i=1-1/255*Math.max(e,Math.max(r,i)),[s,a*100,i*100]};U.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,s,a,n,o;return o=Math.min(1-e,1-r,1-i),s=(1-e-o)/(1-o)||0,a=(1-r-o)/(1-o)||0,n=(1-i-o)/(1-o)||0,[s*100,a*100,n*100,o*100]};function cL(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}U.rgb.keyword=function(t){var e=Pc[t];if(e)return e;var r=1/0,i;for(var s in bt)if(bt.hasOwnProperty(s)){var a=bt[s],n=cL(t,a);n<r&&(r=n,i=s);}return i};U.keyword.rgb=function(t){return bt[t]};U.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var s=e*.4124+r*.3576+i*.1805,a=e*.2126+r*.7152+i*.0722,n=e*.0193+r*.1192+i*.9505;return [s*100,a*100,n*100]};U.rgb.lab=function(t){var e=U.rgb.xyz(t),r=e[0],i=e[1],s=e[2],a,n,o;return r/=95.047,i/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,a=116*i-16,n=500*(r-i),o=200*(i-s),[a,n,o]};U.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,i=t[2]/100,s,a,n,o,l;if(r===0)return l=i*255,[l,l,l];i<.5?a=i*(1+r):a=i+r-i*r,s=2*i-a,o=[0,0,0];for(var u=0;u<3;u++)n=e+1/3*-(u-1),n<0&&n++,n>1&&n--,6*n<1?l=s+(a-s)*6*n:2*n<1?l=a:3*n<2?l=s+(a-s)*(2/3-n)*6:l=s,o[u]=l*255;return o};U.hsl.hsv=function(t){var e=t[0],r=t[1]/100,i=t[2]/100,s=r,a=Math.max(i,.01),n,o;return i*=2,r*=i<=1?i:2-i,s*=a<=1?a:2-a,o=(i+r)/2,n=i===0?2*s/(a+s):2*r/(i+r),[e,n*100,o*100]};U.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,i=t[2]/100,s=Math.floor(e)%6,a=e-Math.floor(e),n=255*i*(1-r),o=255*i*(1-r*a),l=255*i*(1-r*(1-a));switch(i*=255,s){case 0:return [i,l,n];case 1:return [o,i,n];case 2:return [n,i,l];case 3:return [n,o,i];case 4:return [l,n,i];case 5:return [i,n,o]}};U.hsv.hsl=function(t){var e=t[0],r=t[1]/100,i=t[2]/100,s=Math.max(i,.01),a,n,o;return o=(2-r)*i,a=(2-r)*s,n=r*s,n/=a<=1?a:2-a,n=n||0,o/=2,[e,n*100,o*100]};U.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,i=t[2]/100,s=r+i,a,n,o,l;s>1&&(r/=s,i/=s),a=Math.floor(6*e),n=1-i,o=6*e-a,a&1&&(o=1-o),l=r+o*(n-r);var u,p,P;switch(a){default:case 6:case 0:u=n,p=l,P=r;break;case 1:u=l,p=n,P=r;break;case 2:u=r,p=n,P=l;break;case 3:u=r,p=l,P=n;break;case 4:u=l,p=r,P=n;break;case 5:u=n,p=r,P=l;break}return [u*255,p*255,P*255]};U.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,i=t[2]/100,s=t[3]/100,a,n,o;return a=1-Math.min(1,e*(1-s)+s),n=1-Math.min(1,r*(1-s)+s),o=1-Math.min(1,i*(1-s)+s),[a*255,n*255,o*255]};U.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,i=t[2]/100,s,a,n;return s=e*3.2406+r*-1.5372+i*-.4986,a=e*-.9689+r*1.8758+i*.0415,n=e*.0557+r*-.204+i*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92,s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),n=Math.min(Math.max(0,n),1),[s*255,a*255,n*255]};U.xyz.lab=function(t){var e=t[0],r=t[1],i=t[2],s,a,n;return e/=95.047,r/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*r-16,a=500*(e-r),n=200*(r-i),[s,a,n]};U.lab.xyz=function(t){var e=t[0],r=t[1],i=t[2],s,a,n;a=(e+16)/116,s=r/500+a,n=a-i/200;var o=Math.pow(a,3),l=Math.pow(s,3),u=Math.pow(n,3);return a=o>.008856?o:(a-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,s*=95.047,a*=100,n*=108.883,[s,a,n]};U.lab.lch=function(t){var e=t[0],r=t[1],i=t[2],s,a,n;return s=Math.atan2(i,r),a=s*360/2/Math.PI,a<0&&(a+=360),n=Math.sqrt(r*r+i*i),[e,n,a]};U.lch.lab=function(t){var e=t[0],r=t[1],i=t[2],s,a,n;return n=i/360*2*Math.PI,s=r*Math.cos(n),a=r*Math.sin(n),[e,s,a]};U.rgb.ansi16=function(t){var e=t[0],r=t[1],i=t[2],s=1 in arguments?arguments[1]:U.rgb.hsv(t)[2];if(s=Math.round(s/50),s===0)return 30;var a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return s===2&&(a+=60),a};U.hsv.ansi16=function(t){return U.rgb.ansi16(U.hsv.rgb(t),t[2])};U.rgb.ansi256=function(t){var e=t[0],r=t[1],i=t[2];if(e===r&&r===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var s=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5);return s};U.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,i=(e&1)*r*255,s=(e>>1&1)*r*255,a=(e>>2&1)*r*255;return [i,s,a]};U.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return [e,e,e]}t-=16;var r,i=Math.floor(t/36)/5*255,s=Math.floor((r=t%36)/6)/5*255,a=r%6/5*255;return [i,s,a]};U.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return "000000".substring(r.length)+r};U.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return [0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var i=parseInt(r,16),s=i>>16&255,a=i>>8&255,n=i&255;return [s,a,n]};U.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.max(Math.max(e,r),i),a=Math.min(Math.min(e,r),i),n=s-a,o,l;return n<1?o=a/(1-n):o=0,n<=0?l=0:s===e?l=(r-i)/n%6:s===r?l=2+(i-e)/n:l=4+(e-r)/n+4,l/=6,l%=1,[l*360,n*100,o*100]};U.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,i=1,s=0;return r<.5?i=2*e*r:i=2*e*(1-r),i<1&&(s=(r-.5*i)/(1-i)),[t[0],i*100,s*100]};U.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,i=e*r,s=0;return i<1&&(s=(r-i)/(1-i)),[t[0],i*100,s*100]};U.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,i=t[2]/100;if(r===0)return [i*255,i*255,i*255];var s=[0,0,0],a=e%1*6,n=a%1,o=1-n,l=0;switch(Math.floor(a)){case 0:s[0]=1,s[1]=n,s[2]=0;break;case 1:s[0]=o,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=n;break;case 3:s[0]=0,s[1]=o,s[2]=1;break;case 4:s[0]=n,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=o;}return l=(1-r)*i,[(r*s[0]+l)*255,(r*s[1]+l)*255,(r*s[2]+l)*255]};U.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,i=e+r*(1-e),s=0;return i>0&&(s=e/i),[t[0],s*100,i*100]};U.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,i=r*(1-e)+.5*e,s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[t[0],s*100,i*100]};U.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,i=e+r*(1-e);return [t[0],(i-e)*100,(1-i)*100]};U.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,i=1-r,s=i-e,a=0;return s<1&&(a=(i-s)/(1-s)),[t[0],s*100,a*100]};U.apple.rgb=function(t){return [t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};U.rgb.apple=function(t){return [t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};U.gray.rgb=function(t){return [t[0]/100*255,t[0]/100*255,t[0]/100*255]};U.gray.hsl=U.gray.hsv=function(t){return [0,0,t[0]]};U.gray.hwb=function(t){return [0,100,t[0]]};U.gray.cmyk=function(t){return [0,0,0,t[0]]};U.gray.lab=function(t){return [t[0],0,0]};U.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,i=r.toString(16).toUpperCase();return "000000".substring(i.length)+i};U.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return [e/255*100]};});var Ac=v((q5,gc)=>{var yi=Nn();function pL(){for(var t={},e=Object.keys(yi),r=e.length,i=0;i<r;i++)t[e[i]]={distance:-1,parent:null};return t}function fL(t){var e=pL(),r=[t];for(e[t].distance=0;r.length;)for(var i=r.pop(),s=Object.keys(yi[i]),a=s.length,n=0;n<a;n++){var o=s[n],l=e[o];l.distance===-1&&(l.distance=e[i].distance+1,l.parent=i,r.unshift(o));}return e}function dL(t,e){return function(r){return e(t(r))}}function hL(t,e){for(var r=[e[t].parent,t],i=yi[e[t].parent][t],s=e[t].parent;e[s].parent;)r.unshift(e[s].parent),i=dL(yi[e[s].parent][s],i),s=e[s].parent;return i.conversion=r,i}gc.exports=function(t){for(var e=fL(t),r={},i=Object.keys(e),s=i.length,a=0;a<s;a++){var n=i[a],o=e[n];o.parent!==null&&(r[n]=hL(n,e));}return r};});var Ic=v((K5,vc)=>{var Cn=Nn(),yL=Ac(),Lt={},mL=Object.keys(Cn);function TL(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return "conversion"in t&&(e.conversion=t.conversion),e}function bL(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var i=t(r);if(typeof i=="object")for(var s=i.length,a=0;a<s;a++)i[a]=Math.round(i[a]);return i};return "conversion"in t&&(e.conversion=t.conversion),e}mL.forEach(function(t){Lt[t]={},Object.defineProperty(Lt[t],"channels",{value:Cn[t].channels}),Object.defineProperty(Lt[t],"labels",{value:Cn[t].labels});var e=yL(t),r=Object.keys(e);r.forEach(function(i){var s=e[i];Lt[t][i]=bL(s),Lt[t][i].raw=TL(s);});});vc.exports=Lt;});var Oc=v((V5,wc)=>{var kt=Ic(),mi=(t,e)=>function(){return `\x1B[${t.apply(kt,arguments)+e}m`},Ti=(t,e)=>function(){let r=t.apply(kt,arguments);return `\x1B[${38+e};5;${r}m`},bi=(t,e)=>function(){let r=t.apply(kt,arguments);return `\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function SL(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let s of Object.keys(e)){let a=e[s];for(let n of Object.keys(a)){let o=a[n];e[n]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},a[n]=e[n],t.set(o[0],o[1]);}Object.defineProperty(e,s,{value:a,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1});}let r=s=>s,i=(s,a,n)=>[s,a,n];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:mi(r,0)},e.color.ansi256={ansi256:Ti(r,0)},e.color.ansi16m={rgb:bi(i,0)},e.bgColor.ansi={ansi:mi(r,10)},e.bgColor.ansi256={ansi256:Ti(r,10)},e.bgColor.ansi16m={rgb:bi(i,10)};for(let s of Object.keys(kt)){if(typeof kt[s]!="object")continue;let a=kt[s];s==="ansi16"&&(s="ansi"),"ansi16"in a&&(e.color.ansi[s]=mi(a.ansi16,0),e.bgColor.ansi[s]=mi(a.ansi16,10)),"ansi256"in a&&(e.color.ansi256[s]=Ti(a.ansi256,0),e.bgColor.ansi256[s]=Ti(a.ansi256,10)),"rgb"in a&&(e.color.ansi16m[s]=bi(a.rgb,0),e.bgColor.ansi16m[s]=bi(a.rgb,10));}return e}Object.defineProperty(wc,"exports",{enumerable:!0,get:SL});});var Cc=v((Y5,Nc)=>{Nc.exports={stdout:!1,stderr:!1};});var Mc=v((X5,_c)=>{var xL=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Dc=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,PL=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,EL=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,gL=new Map([["n",`
|
|
21
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function kc(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):gL.get(t)||t}function AL(t,e){let r=[],i=e.trim().split(/\s*,\s*/g),s;for(let a of i)if(!isNaN(a))r.push(Number(a));else if(s=a.match(PL))r.push(s[2].replace(EL,(n,o,l)=>o?kc(o):l));else throw new Error(`Invalid Chalk template style argument: ${a} (in style '${t}')`);return r}function vL(t){Dc.lastIndex=0;let e=[],r;for(;(r=Dc.exec(t))!==null;){let i=r[1];if(r[2]){let s=AL(i,r[2]);e.push([i].concat(s));}else e.push([i]);}return e}function Lc(t,e){let r={};for(let s of e)for(let a of s.styles)r[a[0]]=s.inverse?null:a.slice(1);let i=t;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in i))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?i=i[s].apply(i,r[s]):i=i[s];}return i}_c.exports=(t,e)=>{let r=[],i=[],s=[];if(e.replace(xL,(a,n,o,l,u,p)=>{if(n)s.push(kc(n));else if(l){let P=s.join("");s=[],i.push(r.length===0?P:Lc(t,r)(P)),r.push({inverse:o,styles:vL(l)});}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(Lc(t,r)(s.join(""))),s=[],r.pop();}else s.push(p);}),i.push(s.join("")),r.length>0){let a=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(a)}return i.join("")};});var kn=v((J5,Sr)=>{var Ln=mc(),ce=Oc(),Dn=Cc().stdout,IL=Mc(),Bc=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Fc=["ansi","ansi","ansi256","ansi16m"],Rc=new Set(["gray"]),_t=Object.create(null);function jc(t,e){e=e||{};let r=Dn?Dn.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0;}function br(t){if(!this||!(this instanceof br)||this.template){let e={};return jc(e,t),e.template=function(){let r=[].slice.call(arguments);return NL.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,br.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=br,e.template}jc(this,t);}Bc&&(ce.blue.open="\x1B[94m");for(let t of Object.keys(ce))ce[t].closeRe=new RegExp(Ln(ce[t].close),"g"),_t[t]={get(){let e=ce[t];return Si.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};_t.visible={get(){return Si.call(this,this._styles||[],!0,"visible")}};ce.color.closeRe=new RegExp(Ln(ce.color.close),"g");for(let t of Object.keys(ce.color.ansi))Rc.has(t)||(_t[t]={get(){let e=this.level;return function(){let i={open:ce.color[Fc[e]][t].apply(null,arguments),close:ce.color.close,closeRe:ce.color.closeRe};return Si.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}});ce.bgColor.closeRe=new RegExp(Ln(ce.bgColor.close),"g");for(let t of Object.keys(ce.bgColor.ansi)){if(Rc.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);_t[e]={get(){let r=this.level;return function(){let s={open:ce.bgColor[Fc[r]][t].apply(null,arguments),close:ce.bgColor.close,closeRe:ce.bgColor.closeRe};return Si.call(this,this._styles?this._styles.concat(s):[s],this._empty,t)}}};}var wL=Object.defineProperties(()=>{},_t);function Si(t,e,r){let i=function(){return OL.apply(i,arguments)};i._styles=t,i._empty=e;let s=this;return Object.defineProperty(i,"level",{enumerable:!0,get(){return s.level},set(a){s.level=a;}}),Object.defineProperty(i,"enabled",{enumerable:!0,get(){return s.enabled},set(a){s.enabled=a;}}),i.hasGrey=this.hasGrey||r==="gray"||r==="grey",i.__proto__=wL,i}function OL(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return "";if(e>1)for(let s=1;s<e;s++)r+=" "+t[s];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let i=ce.dim.open;Bc&&this.hasGrey&&(ce.dim.open="");for(let s of this._styles.slice().reverse())r=s.open+r.replace(s.closeRe,s.open)+s.close,r=r.replace(/\r?\n/g,`${s.close}$&${s.open}`);return ce.dim.open=i,r}function NL(t,e){if(!Array.isArray(e))return [].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),i=[e.raw[0]];for(let s=1;s<e.length;s++)i.push(String(r[s-1]).replace(/[{}\\]/g,"\\$&")),i.push(String(e.raw[s]));return IL(t,i.join(""))}Object.defineProperties(br.prototype,_t);Sr.exports=br();Sr.exports.supportsColor=Dn;Sr.exports.default=Sr.exports;});var Jc=v(xr=>{Object.defineProperty(xr,"__esModule",{value:!0});xr.default=jL;xr.shouldHighlight=Yc;var Uc=hc(),qc=Ht(),Mn=CL(kn(),!0);function Kc(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return (Kc=function(i){return i?r:e})(t)}function CL(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return {default:t};var r=Kc(e);if(r&&r.has(t))return r.get(t);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var n=s?Object.getOwnPropertyDescriptor(t,a):null;n&&(n.get||n.set)?Object.defineProperty(i,a,n):i[a]=t[a];}return i.default=t,r&&r.set(t,i),i}var DL=new Set(["as","async","from","get","of","set"]);function LL(t){return {keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.grey,invalid:t.white.bgRed.bold}}var kL=/\r\n|[\n\r\u2028\u2029]/,_L=/^[()[\]{}]$/,Vc;{let t=/^[a-z][\w-]*$/i,e=function(r,i,s){if(r.type==="name"){if((0, qc.isKeyword)(r.value)||(0, qc.isStrictReservedWord)(r.value,!0)||DL.has(r.value))return "keyword";if(t.test(r.value)&&(s[i-1]==="<"||s.slice(i-2,i)=="</"))return "jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return "capitalized"}return r.type==="punctuator"&&_L.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};Vc=function*(r){let i;for(;i=Uc.default.exec(r);){let s=Uc.matchToToken(i);yield {type:e(s,i.index,r),value:s.value};}};}function ML(t,e){let r="";for(let{type:i,value:s}of Vc(e)){let a=t[i];a?r+=s.split(kL).map(n=>a(n)).join(`
|
|
22
|
+
`):r+=s;}return r}function Yc(t){return Mn.default.level>0||t.forceColor}var _n;function Xc(t){if(t){return (_n)!=null||(_n=new Mn.default.constructor({enabled:!0,level:1})),_n}return Mn.default}xr.getChalk=t=>Xc(t.forceColor);function jL(t,e={}){if(t!==""&&Yc(e)){let r=LL(Xc(e.forceColor));return ML(r,t)}else return t}});var Zc=v(xi=>{Object.defineProperty(xi,"__esModule",{value:!0});xi.codeFrameColumns=Qc;xi.default=qL;var $c=Jc(),Wc=BL(kn(),!0);function Gc(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return (Gc=function(i){return i?r:e})(t)}function BL(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return {default:t};var r=Gc(e);if(r&&r.has(t))return r.get(t);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var n=s?Object.getOwnPropertyDescriptor(t,a):null;n&&(n.get||n.set)?Object.defineProperty(i,a,n):i[a]=t[a];}return i.default=t,r&&r.set(t,i),i}var jn;function FL(t){if(t){return (jn)!=null||(jn=new Wc.default.constructor({enabled:!0,level:1})),jn}return Wc.default}var zc=!1;function RL(t){return {gutter:t.grey,marker:t.red.bold,message:t.red.bold}}var Hc=/\r\n|[\n\r\u2028\u2029]/;function UL(t,e,r){let i=Object.assign({column:0,line:-1},t.start),s=Object.assign({},i,t.end),{linesAbove:a=2,linesBelow:n=3}=r||{},o=i.line,l=i.column,u=s.line,p=s.column,P=Math.max(o-(a+1),0),E=Math.min(e.length,u+n);o===-1&&(P=0),u===-1&&(E=e.length);let A=u-o,I={};if(A)for(let w=0;w<=A;w++){let M=w+o;if(!l)I[M]=!0;else if(w===0){let B=e[M-1].length;I[M]=[l,B-l+1];}else if(w===A)I[M]=[0,p];else {let B=e[M-w].length;I[M]=[0,B];}}else l===p?l?I[o]=[l,0]:I[o]=!0:I[o]=[l,p-l];return {start:P,end:E,markerLines:I}}function Qc(t,e,r={}){let i=(r.highlightCode||r.forceColor)&&(0, $c.shouldHighlight)(r),s=FL(r.forceColor),a=RL(s),n=(w,M)=>i?w(M):M,o=t.split(Hc),{start:l,end:u,markerLines:p}=UL(e,o,r),P=e.start&&typeof e.start.column=="number",E=String(u).length,I=(i?(0, $c.default)(t,r):t).split(Hc,u).slice(l,u).map((w,M)=>{let B=l+1+M,k=` ${` ${B}`.slice(-E)} |`,H=p[B],ae=!p[B+1];if(H){let oe="";if(Array.isArray(H)){let Be=w.slice(0,Math.max(H[0]-1,0)).replace(/[^\t]/g," "),Vi=H[1]||1;oe=[`
|
|
23
|
+
`,n(a.gutter,k.replace(/\d/g," "))," ",Be,n(a.marker,"^").repeat(Vi)].join(""),ae&&r.message&&(oe+=" "+n(a.message,r.message));}return [n(a.marker,">"),n(a.gutter,k),w.length>0?` ${w}`:"",oe].join("")}else return ` ${n(a.gutter,k)}${w.length>0?` ${w}`:""}`}).join(`
|
|
24
|
+
`);return r.message&&!P&&(I=`${" ".repeat(E+1)}${r.message}
|
|
25
|
+
${I}`),i?s.reset(I):I}function qL(t,e,r,i={}){if(!zc){zc=!0;let a="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(a,"DeprecationWarning");else {let n=new Error(a);n.name="DeprecationWarning",console.warn(new Error(a));}}return r=Math.max(r,0),Qc(t,{start:{column:r,line:e}},i)}});var Fn=v(Bn=>{Object.defineProperty(Bn,"__esModule",{value:!0});Bn.default=t3;var KL=ve(),VL=dc(),YL=Zc(),{isCallExpression:XL,isExpressionStatement:JL,isFunction:$L,isIdentifier:WL,isJSXIdentifier:zL,isNewExpression:HL,isPlaceholder:Pi,isStatement:GL,isStringLiteral:ep,removePropertiesDeep:QL,traverse:ZL}=KL,e3=/^[_$A-Z0-9]+$/;function t3(t,e,r){let{placeholderWhitelist:i,placeholderPattern:s,preserveComments:a,syntacticPlaceholders:n}=r,o=s3(e,r.parser,n);QL(o,{preserveComments:a}),t.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:i,placeholderPattern:s,syntacticPlaceholders:n};return ZL(o,r3,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function r3(t,e,r){var i;let s,a=r.syntactic.placeholders.length>0;if(Pi(t)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=t.name.name,a=!0;}else {if(a||r.syntacticPlaceholders)return;if(WL(t)||zL(t))s=t.name;else if(ep(t))s=t.value;else return}if(a&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!a&&(r.placeholderPattern===!1||!(r.placeholderPattern||e3).test(s))&&!((i=r.placeholderWhitelist)!=null&&i.has(s)))return;e=e.slice();let{node:n,key:o}=e[e.length-1],l;ep(t)||Pi(t,{expectedNode:"StringLiteral"})?l="string":HL(n)&&o==="arguments"||XL(n)&&o==="arguments"||$L(n)&&o==="params"?l="param":JL(n)&&!Pi(t)?(l="statement",e=e.slice(0,-1)):GL(t)&&Pi(t)?l="statement":l="other";let{placeholders:u,placeholderNames:p}=a?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:P=>i3(P,e),isDuplicate:p.has(s)}),p.add(s);}function i3(t,e){let r=t;for(let a=0;a<e.length-1;a++){let{key:n,index:o}=e[a];o===void 0?r=r[n]:r=r[n][o];}let{key:i,index:s}=e[e.length-1];return {parent:r,key:i,index:s}}function s3(t,e,r){let i=(e.plugins||[]).slice();r!==!1&&i.push("placeholders"),e=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},e,{plugins:i});try{return (0,VL.parse)(t,e)}catch(s){let a=s.loc;throw a&&(s.message+=`
|
|
26
|
+
`+(0, YL.codeFrameColumns)(t,{start:a}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var Kn=v(qn=>{Object.defineProperty(qn,"__esModule",{value:!0});qn.default=c3;var a3=ve(),{blockStatement:n3,cloneNode:Un,emptyStatement:o3,expressionStatement:Rn,identifier:Ei,isStatement:tp,isStringLiteral:l3,stringLiteral:u3,validate:rp}=a3;function c3(t,e){let r=Un(t.ast);return e&&(t.placeholders.forEach(i=>{if(!Object.prototype.hasOwnProperty.call(e,i.name)){let s=i.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
|
|
27
|
+
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
28
|
+
- { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
|
|
29
|
+
- { placeholderPattern: /^${s}$/ }`)}}),Object.keys(e).forEach(i=>{if(!t.placeholderNames.has(i))throw new Error(`Unknown substitution "${i}" given`)})),t.placeholders.slice().reverse().forEach(i=>{try{p3(i,r,e&&e[i.name]||null);}catch(s){throw s.message=`@babel/template placeholder "${i.name}": ${s.message}`,s}}),r}function p3(t,e,r){t.isDuplicate&&(Array.isArray(r)?r=r.map(n=>Un(n)):typeof r=="object"&&(r=Un(r)));let{parent:i,key:s,index:a}=t.resolve(e);if(t.type==="string"){if(typeof r=="string"&&(r=u3(r)),!r||!l3(r))throw new Error("Expected string substitution")}else if(t.type==="statement")a===void 0?r?Array.isArray(r)?r=n3(r):typeof r=="string"?r=Rn(Ei(r)):tp(r)||(r=Rn(r)):r=o3():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=Ei(r)),tp(r)||(r=Rn(r)));else if(t.type==="param"){if(typeof r=="string"&&(r=Ei(r)),a===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=Ei(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");if(a===void 0)rp(i,s,r),i[s]=r;else {let n=i[s].slice();t.type==="statement"||t.type==="param"?r==null?n.splice(a,1):Array.isArray(r)?n.splice(a,1,...r):n[a]=r:n[a]=r,rp(i,s,n),i[s]=n;}}});var ip=v(Vn=>{Object.defineProperty(Vn,"__esModule",{value:!0});Vn.default=y3;var f3=ti(),d3=Fn(),h3=Kn();function y3(t,e,r){e=t.code(e);let i;return s=>{let a=(0, f3.normalizeReplacements)(s);return i||(i=(0, d3.default)(t,e,r)),t.unwrap((0, h3.default)(i,a))}}});var sp=v(Yn=>{Object.defineProperty(Yn,"__esModule",{value:!0});Yn.default=S3;var m3=ti(),T3=Fn(),b3=Kn();function S3(t,e,r){let{metadata:i,names:s}=x3(t,e,r);return a=>{let n={};return a.forEach((o,l)=>{n[s[l]]=o;}),o=>{let l=(0, m3.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(Object.prototype.hasOwnProperty.call(n,u))throw new Error("Unexpected replacement overlap.")}),t.unwrap((0, b3.default)(i,l?Object.assign(l,n):n))}}}function x3(t,e,r){let i="BABEL_TPL$",s=e.join("");do i="$$"+i;while(s.includes(i));let{names:a,code:n}=P3(e,i);return {metadata:(0, T3.default)(t,t.code(n),{parser:r.parser,placeholderWhitelist:new Set(a.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:a}}function P3(t,e){let r=[],i=t[0];for(let s=1;s<t.length;s++){let a=`${e}${s-1}`;r.push(a),i+=a+t[s];}return {names:r,code:i}}});var cp=v(Xn=>{Object.defineProperty(Xn,"__esModule",{value:!0});Xn.default=up;var qe=ti(),ap=ip(),np=sp(),op=(0, qe.validate)({placeholderPattern:!1});function up(t,e){let r=new WeakMap,i=new WeakMap,s=e||(0, qe.validate)(null);return Object.assign((a,...n)=>{if(typeof a=="string"){if(n.length>1)throw new Error("Unexpected extra params.");return lp((0,ap.default)(t,a,(0,qe.merge)(s,(0,qe.validate)(n[0]))))}else if(Array.isArray(a)){let o=r.get(a);return o||(o=(0, np.default)(t,a,s),r.set(a,o)),lp(o(n))}else if(typeof a=="object"&&a){if(n.length>0)throw new Error("Unexpected extra params.");return up(t,(0, qe.merge)(s,(0, qe.validate)(a)))}throw new Error(`Unexpected template param ${typeof a}`)},{ast:(a,...n)=>{if(typeof a=="string"){if(n.length>1)throw new Error("Unexpected extra params.");return (0, ap.default)(t,a,(0, qe.merge)((0, qe.merge)(s,(0, qe.validate)(n[0])),op))()}else if(Array.isArray(a)){let o=i.get(a);return o||(o=(0, np.default)(t,a,(0, qe.merge)(s,op)),i.set(a,o)),o(n)()}throw new Error(`Unexpected template param ${typeof a}`)}})}function lp(t){let e="";try{throw new Error}catch(r){r.stack&&(e=r.stack.split(`
|
|
30
|
+
`).slice(3).join(`
|
|
31
|
+
`));}return r=>{try{return t(r)}catch(i){throw i.stack+=`
|
|
32
|
+
=============
|
|
33
|
+
${e}`,i}}}});var yp=v(Ie=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.statements=Ie.statement=Ie.smart=Ie.program=Ie.expression=Ie.default=void 0;var Pr=_u(),Er=cp(),gi=(0, Er.default)(Pr.smart);Ie.smart=gi;var pp=(0, Er.default)(Pr.statement);Ie.statement=pp;var fp=(0, Er.default)(Pr.statements);Ie.statements=fp;var dp=(0, Er.default)(Pr.expression);Ie.expression=dp;var hp=(0, Er.default)(Pr.program);Ie.program=hp;var E3=Object.assign(gi.bind(void 0),{smart:gi,statement:pp,statements:fp,expression:dp,program:hp,ast:gi.ast});Ie.default=E3;});var Tp=v(gr=>{Object.defineProperty(gr,"__esModule",{value:!0});gr.declare=mp;gr.declarePreset=void 0;var Jn={assertVersion:t=>e=>{v3(e,t.version);}};Object.assign(Jn,{targets:()=>()=>({}),assumption:()=>()=>{}});function mp(t){return (e,r,i)=>{var s;let a;for(let o of Object.keys(Jn)){e[o]||((a)!=null||(a=A3(e)),a[o]=Jn[o](a));}return t((s=a)!=null?s:e,r||{},i)}}var g3=mp;gr.declarePreset=g3;function A3(t){let e=null;return typeof t.version=="string"&&/^7\./.test(t.version)&&(e=Object.getPrototypeOf(t),e&&(!Ai(e,"version")||!Ai(e,"transform")||!Ai(e,"template")||!Ai(e,"types"))&&(e=null)),Object.assign({},e,t)}function Ai(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function v3(t,e){if(typeof t=="number"){if(!Number.isInteger(t))throw new Error("Expected string or integer value.");t=`^${t}.0.0-0`;}if(typeof t!="string")throw new Error("Expected string or integer value.");let r=Error.stackTraceLimit;typeof r=="number"&&r<25&&(Error.stackTraceLimit=25);let i;throw e.slice(0,2)==="7."?i=new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${e}". You'll need to update your @babel/core version.`):i=new Error(`Requires Babel "${t}", but was loaded with "${e}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`),typeof r=="number"&&(Error.stackTraceLimit=r),Object.assign(i,{code:"BABEL_VERSION_UNSUPPORTED",version:e,range:t})}});var bp=v(vi=>{Object.defineProperty(vi,"__esModule",{value:!0});vi.default=void 0;var I3=Tp();vi.default=(0, I3.declare)(t=>(t.assertVersion(7),{name:"syntax-jsx",manipulateOptions(e,r){r.plugins.some(i=>(Array.isArray(i)?i[0]:i)==="typescript")||r.plugins.push("jsx");}}));});var $n=v((sB,xp)=>{var Sp=Object.prototype.toString;xp.exports=function(e){var r=Sp.call(e),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Sp.call(e.callee)==="[object Function]"),i};});var Np=v((aB,Op)=>{var wp;Object.keys||(Ar=Object.prototype.hasOwnProperty,Wn=Object.prototype.toString,Pp=$n(),zn=Object.prototype.propertyIsEnumerable,Ep=!zn.call({toString:null},"toString"),gp=zn.call(function(){},"prototype"),vr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ii=function(t){var e=t.constructor;return e&&e.prototype===t},Ap={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},vp=function(){if(typeof window>"u")return !1;for(var t in window)try{if(!Ap["$"+t]&&Ar.call(window,t)&&window[t]!==null&&typeof window[t]=="object")try{Ii(window[t]);}catch{return !0}}catch{return !0}return !1}(),Ip=function(t){if(typeof window>"u"||!vp)return Ii(t);try{return Ii(t)}catch{return !1}},wp=function(e){var r=e!==null&&typeof e=="object",i=Wn.call(e)==="[object Function]",s=Pp(e),a=r&&Wn.call(e)==="[object String]",n=[];if(!r&&!i&&!s)throw new TypeError("Object.keys called on a non-object");var o=gp&&i;if(a&&e.length>0&&!Ar.call(e,0))for(var l=0;l<e.length;++l)n.push(String(l));if(s&&e.length>0)for(var u=0;u<e.length;++u)n.push(String(u));else for(var p in e)!(o&&p==="prototype")&&Ar.call(e,p)&&n.push(String(p));if(Ep)for(var P=Ip(e),E=0;E<vr.length;++E)!(P&&vr[E]==="constructor")&&Ar.call(e,vr[E])&&n.push(vr[E]);return n});var Ar,Wn,Pp,zn,Ep,gp,vr,Ii,Ap,vp,Ip;Op.exports=wp;});var kp=v((nB,Lp)=>{var w3=Array.prototype.slice,O3=$n(),Cp=Object.keys,wi=Cp?function(e){return Cp(e)}:Np(),Dp=Object.keys;wi.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(i){return O3(i)?Dp(w3.call(i)):Dp(i)});}else Object.keys=wi;return Object.keys||wi};Lp.exports=wi;});var Hn=v((oB,_p)=>{_p.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return !1;if(typeof Symbol.iterator=="symbol")return !0;var e={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return !1;var s=42;e[r]=s;for(r in e)return !1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return !1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return !1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(e,r);if(n.value!==s||n.enumerable!==!0)return !1}return !0};});var Bp=v((lB,jp)=>{var Mp=typeof Symbol<"u"&&Symbol,N3=Hn();jp.exports=function(){return typeof Mp!="function"||typeof Symbol!="function"||typeof Mp("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:N3()};});var Up=v((uB,Rp)=>{var Fp={foo:{}},C3=Object;Rp.exports=function(){return {__proto__:Fp}.foo===Fp.foo&&!({__proto__:null}instanceof C3)};});var Kp=v((cB,qp)=>{var D3="Function.prototype.bind called on incompatible ",Gn=Array.prototype.slice,L3=Object.prototype.toString,k3="[object Function]";qp.exports=function(e){var r=this;if(typeof r!="function"||L3.call(r)!==k3)throw new TypeError(D3+r);for(var i=Gn.call(arguments,1),s,a=function(){if(this instanceof s){var p=r.apply(this,i.concat(Gn.call(arguments)));return Object(p)===p?p:this}else return r.apply(e,i.concat(Gn.call(arguments)))},n=Math.max(0,r.length-i.length),o=[],l=0;l<n;l++)o.push("$"+l);if(s=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var u=function(){};u.prototype=r.prototype,s.prototype=new u,u.prototype=null;}return s};});var Oi=v((pB,Vp)=>{var _3=Kp();Vp.exports=Function.prototype.bind||_3;});var Xp=v((fB,Yp)=>{var M3=Oi();Yp.exports=M3.call(Function.call,Object.prototype.hasOwnProperty);});var eo=v((dB,Hp)=>{var z,Ft=SyntaxError,zp=Function,Bt=TypeError,Qn=function(t){try{return zp('"use strict"; return ('+t+").constructor;")()}catch{}},St=Object.getOwnPropertyDescriptor;if(St)try{St({},"");}catch{St=null;}var Zn=function(){throw new Bt},j3=St?function(){try{return arguments.callee,Zn}catch{try{return St(arguments,"callee").get}catch{return Zn}}}():Zn,Mt=Bp()(),B3=Up()(),fe=Object.getPrototypeOf||(B3?function(t){return t.__proto__}:null),jt={},F3=typeof Uint8Array>"u"||!fe?z:fe(Uint8Array),xt={"%AggregateError%":typeof AggregateError>"u"?z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?z:ArrayBuffer,"%ArrayIteratorPrototype%":Mt&&fe?fe([][Symbol.iterator]()):z,"%AsyncFromSyncIteratorPrototype%":z,"%AsyncFunction%":jt,"%AsyncGenerator%":jt,"%AsyncGeneratorFunction%":jt,"%AsyncIteratorPrototype%":jt,"%Atomics%":typeof Atomics>"u"?z:Atomics,"%BigInt%":typeof BigInt>"u"?z:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?z:Float32Array,"%Float64Array%":typeof Float64Array>"u"?z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?z:FinalizationRegistry,"%Function%":zp,"%GeneratorFunction%":jt,"%Int8Array%":typeof Int8Array>"u"?z:Int8Array,"%Int16Array%":typeof Int16Array>"u"?z:Int16Array,"%Int32Array%":typeof Int32Array>"u"?z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Mt&&fe?fe(fe([][Symbol.iterator]())):z,"%JSON%":typeof JSON=="object"?JSON:z,"%Map%":typeof Map>"u"?z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Mt||!fe?z:fe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?z:Promise,"%Proxy%":typeof Proxy>"u"?z:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?z:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Mt||!fe?z:fe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Mt&&fe?fe(""[Symbol.iterator]()):z,"%Symbol%":Mt?Symbol:z,"%SyntaxError%":Ft,"%ThrowTypeError%":j3,"%TypedArray%":F3,"%TypeError%":Bt,"%Uint8Array%":typeof Uint8Array>"u"?z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?z:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?z:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?z:WeakMap,"%WeakRef%":typeof WeakRef>"u"?z:WeakRef,"%WeakSet%":typeof WeakSet>"u"?z:WeakSet};if(fe)try{null.error;}catch(t){Jp=fe(fe(t)),xt["%Error.prototype%"]=Jp;}var Jp,R3=function t(e){var r;if(e==="%AsyncFunction%")r=Qn("async function () {}");else if(e==="%GeneratorFunction%")r=Qn("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Qn("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(r=i.prototype);}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&fe&&(r=fe(s.prototype));}return xt[e]=r,r},$p={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ir=Oi(),Ni=Xp(),U3=Ir.call(Function.call,Array.prototype.concat),q3=Ir.call(Function.apply,Array.prototype.splice),Wp=Ir.call(Function.call,String.prototype.replace),Ci=Ir.call(Function.call,String.prototype.slice),K3=Ir.call(Function.call,RegExp.prototype.exec),V3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y3=/\\(\\)?/g,X3=function(e){var r=Ci(e,0,1),i=Ci(e,-1);if(r==="%"&&i!=="%")throw new Ft("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new Ft("invalid intrinsic syntax, expected opening `%`");var s=[];return Wp(e,V3,function(a,n,o,l){s[s.length]=o?Wp(l,Y3,"$1"):n||a;}),s},J3=function(e,r){var i=e,s;if(Ni($p,i)&&(s=$p[i],i="%"+s[0]+"%"),Ni(xt,i)){var a=xt[i];if(a===jt&&(a=R3(i)),typeof a>"u"&&!r)throw new Bt("intrinsic "+e+" exists, but is not available. Please file an issue!");return {alias:s,name:i,value:a}}throw new Ft("intrinsic "+e+" does not exist!")};Hp.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Bt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Bt('"allowMissing" argument must be a boolean');if(K3(/^%?[^%]*%?$/,e)===null)throw new Ft("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=X3(e),s=i.length>0?i[0]:"",a=J3("%"+s+"%",r),n=a.name,o=a.value,l=!1,u=a.alias;u&&(s=u[0],q3(i,U3([0,1],u)));for(var p=1,P=!0;p<i.length;p+=1){var E=i[p],A=Ci(E,0,1),I=Ci(E,-1);if((A==='"'||A==="'"||A==="`"||I==='"'||I==="'"||I==="`")&&A!==I)throw new Ft("property names with quotes must have matching quotes");if((E==="constructor"||!P)&&(l=!0),s+="."+E,n="%"+s+"%",Ni(xt,n))o=xt[n];else if(o!=null){if(!(E in o)){if(!r)throw new Bt("base intrinsic for "+e+" exists, but the property is not available.");return}if(St&&p+1>=i.length){var w=St(o,E);P=!!w,P&&"get"in w&&!("originalValue"in w.get)?o=w.get:o=o[E];}else P=Ni(o,E),o=o[E];P&&!l&&(xt[n]=o);}}return o};});var rf=v((hB,Di)=>{var to=Oi(),Rt=eo(),Zp=Rt("%Function.prototype.apply%"),ef=Rt("%Function.prototype.call%"),tf=Rt("%Reflect.apply%",!0)||to.call(ef,Zp),Gp=Rt("%Object.getOwnPropertyDescriptor%",!0),Pt=Rt("%Object.defineProperty%",!0),$3=Rt("%Math.max%");if(Pt)try{Pt({},"a",{value:1});}catch{Pt=null;}Di.exports=function(e){var r=tf(to,ef,arguments);if(Gp&&Pt){var i=Gp(r,"length");i.configurable&&Pt(r,"length",{value:1+$3(0,e.length-(arguments.length-1))});}return r};var Qp=function(){return tf(to,Zp,arguments)};Pt?Pt(Di.exports,"apply",{value:Qp}):Di.exports.apply=Qp;});var of=v((yB,nf)=>{var sf=eo(),af=rf(),W3=af(sf("String.prototype.indexOf"));nf.exports=function(e,r){var i=sf(e,!!r);return typeof i=="function"&&W3(e,".prototype.")>-1?af(i):i};});var df=v((mB,ff)=>{var z3=kp(),cf=Hn()(),pf=of(),lf=Object,H3=pf("Array.prototype.push"),uf=pf("Object.prototype.propertyIsEnumerable"),G3=cf?Object.getOwnPropertySymbols:null;ff.exports=function(e,r){if(e==null)throw new TypeError("target must be an object");var i=lf(e);if(arguments.length===1)return i;for(var s=1;s<arguments.length;++s){var a=lf(arguments[s]),n=z3(a),o=cf&&(Object.getOwnPropertySymbols||G3);if(o)for(var l=o(a),u=0;u<l.length;++u){var p=l[u];uf(a,p)&&H3(n,p);}for(var P=0;P<n.length;++P){var E=n[P];if(uf(a,E)){var A=a[E];i[E]=A;}}}return i};});var yf=v((TB,hf)=>{var ro=df(),Q3=function(){if(!Object.assign)return !1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},i=0;i<e.length;++i)r[e[i]]=e[i];var s=Object.assign({},r),a="";for(var n in s)a+=n;return t!==a},Z3=function(){if(!Object.assign||!Object.preventExtensions)return !1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy");}catch{return t[1]==="y"}return !1};hf.exports=function(){return !Object.assign||Q3()||Z3()?ro:Object.assign};});var Tf=v((bB,mf)=>{mf.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"};});var bf=v((SB,io)=>{typeof Object.create=="function"?io.exports=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});}:io.exports=function(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e;};});var Ef=v(se=>{var ek=/%[sdj%]/g;se.format=function(t){if(!Fi(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ot(arguments[r]));return e.join(" ")}for(var r=1,i=arguments,s=i.length,a=String(t).replace(ek,function(o){if(o==="%%")return "%";if(r>=s)return o;switch(o){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return "[Circular]"}default:return o}}),n=i[r];r<s;n=i[++r])Bi(n)||!Ut(n)?a+=" "+n:a+=" "+ot(n);return a};se.deprecate=function(t,e){if(He(global.process))return function(){return se.deprecate(t,e).apply(this,arguments)};if(process.noDeprecation===!0)return t;var r=!1;function i(){if(!r){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),r=!0;}return t.apply(this,arguments)}return i};var Li={},so;se.debuglog=function(t){if(He(so)&&(so=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!Li[t])if(new RegExp("\\b"+t+"\\b","i").test(so)){var e=process.pid;Li[t]=function(){var r=se.format.apply(se,arguments);console.error("%s %d: %s",t,e,r);};}else Li[t]=function(){};return Li[t]};function ot(t,e){var r={seen:[],stylize:rk};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),uo(e)?r.showHidden=e:e&&se._extend(r,e),He(r.showHidden)&&(r.showHidden=!1),He(r.depth)&&(r.depth=2),He(r.colors)&&(r.colors=!1),He(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=tk),ji(r,t,r.depth)}se.inspect=ot;ot.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ot.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function tk(t,e){var r=ot.styles[e];return r?"\x1B["+ot.colors[r][0]+"m"+t+"\x1B["+ot.colors[r][1]+"m":t}function rk(t,e){return t}function ik(t){var e={};return t.forEach(function(r,i){e[r]=!0;}),e}function ji(t,e,r){if(t.customInspect&&e&&Mi(e.inspect)&&e.inspect!==se.inspect&&!(e.constructor&&e.constructor.prototype===e)){var i=e.inspect(r,t);return Fi(i)||(i=ji(t,i,r)),i}var s=sk(t,e);if(s)return s;var a=Object.keys(e),n=ik(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),_i(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return ao(e);if(a.length===0){if(Mi(e)){var o=e.name?": "+e.name:"";return t.stylize("[Function"+o+"]","special")}if(ki(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(lo(e))return t.stylize(Date.prototype.toString.call(e),"date");if(_i(e))return ao(e)}var l="",u=!1,p=["{","}"];if(Sf(e)&&(u=!0,p=["[","]"]),Mi(e)){var P=e.name?": "+e.name:"";l=" [Function"+P+"]";}if(ki(e)&&(l=" "+RegExp.prototype.toString.call(e)),lo(e)&&(l=" "+Date.prototype.toUTCString.call(e)),_i(e)&&(l=" "+ao(e)),a.length===0&&(!u||e.length==0))return p[0]+l+p[1];if(r<0)return ki(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var E;return u?E=ak(t,e,r,n,a):E=a.map(function(A){return oo(t,e,r,n,A,u)}),t.seen.pop(),nk(E,l,p)}function sk(t,e){if(He(e))return t.stylize("undefined","undefined");if(Fi(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(xf(e))return t.stylize(""+e,"number");if(uo(e))return t.stylize(""+e,"boolean");if(Bi(e))return t.stylize("null","null")}function ao(t){return "["+Error.prototype.toString.call(t)+"]"}function ak(t,e,r,i,s){for(var a=[],n=0,o=e.length;n<o;++n)Pf(e,String(n))?a.push(oo(t,e,r,i,String(n),!0)):a.push("");return s.forEach(function(l){l.match(/^\d+$/)||a.push(oo(t,e,r,i,l,!0));}),a}function oo(t,e,r,i,s,a){var n,o,l;if(l=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},l.get?l.set?o=t.stylize("[Getter/Setter]","special"):o=t.stylize("[Getter]","special"):l.set&&(o=t.stylize("[Setter]","special")),Pf(i,s)||(n="["+s+"]"),o||(t.seen.indexOf(l.value)<0?(Bi(r)?o=ji(t,l.value,null):o=ji(t,l.value,r-1),o.indexOf(`
|
|
34
|
+
`)>-1&&(a?o=o.split(`
|
|
35
|
+
`).map(function(u){return " "+u}).join(`
|
|
36
|
+
`).substr(2):o=`
|
|
37
|
+
`+o.split(`
|
|
38
|
+
`).map(function(u){return " "+u}).join(`
|
|
39
|
+
`))):o=t.stylize("[Circular]","special")),He(n)){if(a&&s.match(/^\d+$/))return o;n=JSON.stringify(""+s),n.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(n=n.substr(1,n.length-2),n=t.stylize(n,"name")):(n=n.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),n=t.stylize(n,"string"));}return n+": "+o}function nk(t,e,r){var i=0,s=t.reduce(function(a,n){return i++,n.indexOf(`
|
|
40
|
+
`)>=0&&i++,a+n.replace(/\u001b\[\d\d?m/g,"").length+1},0);return s>60?r[0]+(e===""?"":e+`
|
|
41
|
+
`)+" "+t.join(`,
|
|
42
|
+
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function Sf(t){return Array.isArray(t)}se.isArray=Sf;function uo(t){return typeof t=="boolean"}se.isBoolean=uo;function Bi(t){return t===null}se.isNull=Bi;function ok(t){return t==null}se.isNullOrUndefined=ok;function xf(t){return typeof t=="number"}se.isNumber=xf;function Fi(t){return typeof t=="string"}se.isString=Fi;function lk(t){return typeof t=="symbol"}se.isSymbol=lk;function He(t){return t===void 0}se.isUndefined=He;function ki(t){return Ut(t)&&co(t)==="[object RegExp]"}se.isRegExp=ki;function Ut(t){return typeof t=="object"&&t!==null}se.isObject=Ut;function lo(t){return Ut(t)&&co(t)==="[object Date]"}se.isDate=lo;function _i(t){return Ut(t)&&(co(t)==="[object Error]"||t instanceof Error)}se.isError=_i;function Mi(t){return typeof t=="function"}se.isFunction=Mi;function uk(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}se.isPrimitive=uk;se.isBuffer=Tf();function co(t){return Object.prototype.toString.call(t)}function no(t){return t<10?"0"+t.toString(10):t.toString(10)}var ck=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pk(){var t=new Date,e=[no(t.getHours()),no(t.getMinutes()),no(t.getSeconds())].join(":");return [t.getDate(),ck[t.getMonth()],e].join(" ")}se.log=function(){console.log("%s - %s",pk(),se.format.apply(se,arguments));};se.inherits=bf();se._extend=function(t,e){if(!e||!Ut(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t};function Pf(t,e){return Object.prototype.hasOwnProperty.call(t,e)}});var po=v((PB,Ff)=>{var fk=yf()();function gf(t,e){if(t===e)return 0;for(var r=t.length,i=e.length,s=0,a=Math.min(r,i);s<a;++s)if(t[s]!==e[s]){r=t[s],i=e[s];break}return r<i?-1:i<r?1:0}function wr(t){return global.Buffer&&typeof global.Buffer.isBuffer=="function"?global.Buffer.isBuffer(t):!!(t!=null&&t._isBuffer)}var Me=Ef(),dk=Object.prototype.hasOwnProperty,Af=Array.prototype.slice,Lf=function(){return function(){}.name==="foo"}();function vf(t){return Object.prototype.toString.call(t)}function If(t){return wr(t)||typeof global.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t?!!(t instanceof DataView||t.buffer&&t.buffer instanceof ArrayBuffer):!1}var re=Ff.exports=_f,hk=/\s*function\s+([^\(\s]*)\s*/;function kf(t){if(Me.isFunction(t)){if(Lf)return t.name;var e=t.toString(),r=e.match(hk);return r&&r[1]}}re.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=yk(this),this.generatedMessage=!0);var r=e.stackStartFunction||we;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else {var i=new Error;if(i.stack){var s=i.stack,a=kf(r),n=s.indexOf(`
|
|
43
|
+
`+a);if(n>=0){var o=s.indexOf(`
|
|
44
|
+
`,n+1);s=s.substring(o+1);}this.stack=s;}}};Me.inherits(re.AssertionError,Error);function wf(t,e){return typeof t=="string"?t.length<e?t:t.slice(0,e):t}function Of(t){if(Lf||!Me.isFunction(t))return Me.inspect(t);var e=kf(t),r=e?": "+e:"";return "[Function"+r+"]"}function yk(t){return wf(Of(t.actual),128)+" "+t.operator+" "+wf(Of(t.expected),128)}function we(t,e,r,i,s){throw new re.AssertionError({message:r,actual:t,expected:e,operator:i,stackStartFunction:s})}re.fail=we;function _f(t,e){t||we(t,!0,e,"==",re.ok);}re.ok=_f;re.equal=function(e,r,i){e!=r&&we(e,r,i,"==",re.equal);};re.notEqual=function(e,r,i){e==r&&we(e,r,i,"!=",re.notEqual);};re.deepEqual=function(e,r,i){qt(e,r,!1)||we(e,r,i,"deepEqual",re.deepEqual);};re.deepStrictEqual=function(e,r,i){qt(e,r,!0)||we(e,r,i,"deepStrictEqual",re.deepStrictEqual);};function qt(t,e,r,i){if(t===e)return !0;if(wr(t)&&wr(e))return gf(t,e)===0;if(Me.isDate(t)&&Me.isDate(e))return t.getTime()===e.getTime();if(Me.isRegExp(t)&&Me.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if((t===null||typeof t!="object")&&(e===null||typeof e!="object"))return r?t===e:t==e;if(If(t)&&If(e)&&vf(t)===vf(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return gf(new Uint8Array(t.buffer),new Uint8Array(e.buffer))===0;if(wr(t)!==wr(e))return !1;i=i||{actual:[],expected:[]};var s=i.actual.indexOf(t);return s!==-1&&s===i.expected.indexOf(e)?!0:(i.actual.push(t),i.expected.push(e),mk(t,e,r,i))}function Nf(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function mk(t,e,r,i){if(t==null||e===null||e===void 0)return !1;if(Me.isPrimitive(t)||Me.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return !1;var s=Nf(t),a=Nf(e);if(s&&!a||!s&&a)return !1;if(s)return t=Af.call(t),e=Af.call(e),qt(t,e,r);var n=Df(t),o=Df(e),l,u;if(n.length!==o.length)return !1;for(n.sort(),o.sort(),u=n.length-1;u>=0;u--)if(n[u]!==o[u])return !1;for(u=n.length-1;u>=0;u--)if(l=n[u],!qt(t[l],e[l],r,i))return !1;return !0}re.notDeepEqual=function(e,r,i){qt(e,r,!1)&&we(e,r,i,"notDeepEqual",re.notDeepEqual);};re.notDeepStrictEqual=Mf;function Mf(t,e,r){qt(t,e,!0)&&we(t,e,r,"notDeepStrictEqual",Mf);}re.strictEqual=function(e,r,i){e!==r&&we(e,r,i,"===",re.strictEqual);};re.notStrictEqual=function(e,r,i){e===r&&we(e,r,i,"!==",re.notStrictEqual);};function Cf(t,e){if(!t||!e)return !1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(t);try{if(t instanceof e)return !0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},t)===!0}function Tk(t){var e;try{t();}catch(r){e=r;}return e}function jf(t,e,r,i){var s;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof r=="string"&&(i=r,r=null),s=Tk(e),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),t&&!s&&we(s,r,"Missing expected exception"+i);var a=typeof i=="string",n=!t&&Me.isError(s),o=!t&&s&&!r;if((n&&a&&Cf(s,r)||o)&&we(s,r,"Got unwanted exception"+i),t&&s&&r&&!Cf(s,r)||!t&&s)throw s}re.throws=function(t,e,r){jf(!0,t,e,r);};re.doesNotThrow=function(t,e,r){jf(!1,t,e,r);};re.ifError=function(t){if(t)throw t};function Bf(t,e){t||we(t,!0,e,"==",Bf);}re.strict=fk(Bf,re,{equal:re.strictEqual,deepEqual:re.deepStrictEqual,notEqual:re.notStrictEqual,notDeepEqual:re.notDeepStrictEqual});re.strict.strict=re.strict;var Df=Object.keys||function(t){var e=[];for(var r in t)dk.call(t,r)&&e.push(r);return e};});var qf=v(Ui=>{Object.defineProperty(Ui,"__esModule",{value:!0});Ui.default=void 0;var je=po(),bk=ve(),{callExpression:fo,cloneNode:Ri,expressionStatement:Rf,identifier:Or,importDeclaration:Sk,importDefaultSpecifier:xk,importNamespaceSpecifier:Pk,importSpecifier:Ek,memberExpression:ho,stringLiteral:Uf,variableDeclaration:gk,variableDeclarator:Ak}=bk,yo=class{constructor(e,r,i){this._statements=[],this._resultName=null,this._importedSource=void 0,this._scope=r,this._hub=i,this._importedSource=e;}done(){return {statements:this._statements,resultName:this._resultName}}import(){return this._statements.push(Sk([],Uf(this._importedSource))),this}require(){return this._statements.push(Rf(fo(Or("require"),[Uf(this._importedSource)]))),this}namespace(e="namespace"){let r=this._scope.generateUidIdentifier(e),i=this._statements[this._statements.length-1];return je(i.type==="ImportDeclaration"),je(i.specifiers.length===0),i.specifiers=[Pk(r)],this._resultName=Ri(r),this}default(e){let r=this._scope.generateUidIdentifier(e),i=this._statements[this._statements.length-1];return je(i.type==="ImportDeclaration"),je(i.specifiers.length===0),i.specifiers=[xk(r)],this._resultName=Ri(r),this}named(e,r){if(r==="default")return this.default(e);let i=this._scope.generateUidIdentifier(e),s=this._statements[this._statements.length-1];return je(s.type==="ImportDeclaration"),je(s.specifiers.length===0),s.specifiers=[Ek(i,Or(r))],this._resultName=Ri(i),this}var(e){let r=this._scope.generateUidIdentifier(e),i=this._statements[this._statements.length-1];return i.type!=="ExpressionStatement"&&(je(this._resultName),i=Rf(this._resultName),this._statements.push(i)),this._statements[this._statements.length-1]=gk("var",[Ak(r,i.expression)]),this._resultName=Ri(r),this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){let r=this._statements[this._statements.length-1];return r.type==="ExpressionStatement"?r.expression=fo(e,[r.expression]):r.type==="VariableDeclaration"?(je(r.declarations.length===1),r.declarations[0].init=fo(e,[r.declarations[0].init])):je.fail("Unexpected type."),this}prop(e){let r=this._statements[this._statements.length-1];return r.type==="ExpressionStatement"?r.expression=ho(r.expression,Or(e)):r.type==="VariableDeclaration"?(je(r.declarations.length===1),r.declarations[0].init=ho(r.declarations[0].init,Or(e))):je.fail("Unexpected type:"+r.type),this}read(e){this._resultName=ho(this._resultName,Or(e));}};Ui.default=yo;});var To=v(mo=>{Object.defineProperty(mo,"__esModule",{value:!0});mo.default=vk;function vk(t){return t.node.sourceType==="module"}});var Vf=v(qi=>{Object.defineProperty(qi,"__esModule",{value:!0});qi.default=void 0;var Kf=po(),Ik=ve(),wk=qf(),Ok=To(),{numericLiteral:Nk,sequenceExpression:Ck}=Ik,bo=class{constructor(e,r,i){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:!1,ensureNoContext:!1,importPosition:"before"};let s=e.find(a=>a.isProgram());this._programPath=s,this._programScope=s.scope,this._hub=s.hub,this._defaultOpts=this._applyDefaults(r,i,!0);}addDefault(e,r){return this.addNamed("default",e,r)}addNamed(e,r,i){return Kf(typeof e=="string"),this._generateImport(this._applyDefaults(r,i),e)}addNamespace(e,r){return this._generateImport(this._applyDefaults(e,r),null)}addSideEffect(e,r){return this._generateImport(this._applyDefaults(e,r),void 0)}_applyDefaults(e,r,i=!1){let s;return typeof e=="string"?s=Object.assign({},this._defaultOpts,{importedSource:e},r):(Kf(!r,"Unexpected secondary arguments."),s=Object.assign({},this._defaultOpts,e)),!i&&r&&(r.nameHint!==void 0&&(s.nameHint=r.nameHint),r.blockHoist!==void 0&&(s.blockHoist=r.blockHoist)),s}_generateImport(e,r){let i=r==="default",s=!!r&&!i,a=r===null,{importedSource:n,importedType:o,importedInterop:l,importingInterop:u,ensureLiveReference:p,ensureNoContext:P,nameHint:E,importPosition:A,blockHoist:I}=e,w=E||r,M=(0, Ok.default)(this._programPath),B=M&&u==="node",j=M&&u==="babel";if(A==="after"&&!M)throw new Error('"importPosition": "after" is only supported in modules');let k=new wk.default(n,this._programScope,this._hub);if(o==="es6"){if(!B&&!j)throw new Error("Cannot import an ES6 module from CommonJS");k.import(),a?k.namespace(E||n):(i||s)&&k.named(w,r);}else {if(o!=="commonjs")throw new Error(`Unexpected interopType "${o}"`);if(l==="babel")if(B){w=w!=="default"?w:n;let oe=`${n}$es6Default`;k.import(),a?k.default(oe).var(w||n).wildcardInterop():i?p?k.default(oe).var(w||n).defaultInterop().read("default"):k.default(oe).var(w).defaultInterop().prop(r):s&&k.default(oe).read(r);}else j?(k.import(),a?k.namespace(w||n):(i||s)&&k.named(w,r)):(k.require(),a?k.var(w||n).wildcardInterop():(i||s)&&p?i?(w=w!=="default"?w:n,k.var(w).read(r),k.defaultInterop()):k.var(n).read(r):i?k.var(w).defaultInterop().prop(r):s&&k.var(w).prop(r));else if(l==="compiled")B?(k.import(),a?k.default(w||n):(i||s)&&k.default(n).read(w)):j?(k.import(),a?k.namespace(w||n):(i||s)&&k.named(w,r)):(k.require(),a?k.var(w||n):(i||s)&&(p?k.var(n).read(w):k.prop(r).var(w)));else if(l==="uncompiled"){if(i&&p)throw new Error("No live reference for commonjs default");B?(k.import(),a?k.default(w||n):i?k.default(w):s&&k.default(n).read(w)):j?(k.import(),a?k.default(w||n):i?k.default(w):s&&k.named(w,r)):(k.require(),a?k.var(w||n):i?k.var(w):s&&(p?k.var(n).read(w):k.var(w).prop(r)));}else throw new Error(`Unknown importedInterop "${l}".`)}let{statements:H,resultName:ae}=k.done();return this._insertStatements(H,A,I),(i||s)&&P&&ae.type!=="Identifier"?Ck([Nk(0),ae]):ae}_insertStatements(e,r="before",i=3){let s=this._programPath.get("body");if(r==="after"){for(let a=s.length-1;a>=0;a--)if(s[a].isImportDeclaration()){s[a].insertAfter(e);return}}else {e.forEach(n=>{n._blockHoist=i;});let a=s.find(n=>{let o=n.node._blockHoist;return Number.isFinite(o)&&o<4});if(a){a.insertBefore(e);return}}this._programPath.unshiftContainer("body",e);}};qi.default=bo;});var So=v(lt=>{Object.defineProperty(lt,"__esModule",{value:!0});Object.defineProperty(lt,"ImportInjector",{enumerable:!0,get:function(){return Nr.default}});lt.addDefault=Lk;lt.addNamed=kk;lt.addNamespace=_k;lt.addSideEffect=Mk;Object.defineProperty(lt,"isModule",{enumerable:!0,get:function(){return Dk.default}});var Nr=Vf(),Dk=To();function Lk(t,e,r){return new Nr.default(t).addDefault(e,r)}function kk(t,e,r,i){return new Nr.default(t).addNamed(e,r,i)}function _k(t,e,r){return new Nr.default(t).addNamespace(e,r)}function Mk(t,e,r){return new Nr.default(t).addSideEffect(e,r)}});var Yf=v((IB,jk)=>{jk.exports=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];});var Jf=v((wB,Xf)=>{Xf.exports=Yf();});var $f=v((OB,Bk)=>{Bk.exports=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"];});var zf=v((NB,Wf)=>{Wf.exports=$f();});var hd=v((DB,dd)=>{function y_(t,e){for(;t.length<e;)t="0"+t;return t}function Ge(t,e){var r,i,s;if(e.length===0)return t;for(r=0,s=e.length;r<s;r++)i=e.charCodeAt(r),t=(t<<5)-t+i,t|=0;return t<0?t*-2:t}function m_(t,e,r){return Object.keys(e).sort().reduce(i,t);function i(s,a){return fd(s,e[a],a,r)}}function fd(t,e,r,i){var s=Ge(Ge(Ge(t,r),T_(e)),typeof e);if(e===null)return Ge(s,"null");if(e===void 0)return Ge(s,"undefined");if(typeof e=="object"||typeof e=="function"){if(i.indexOf(e)!==-1)return Ge(s,"[Circular]"+r);i.push(e);var a=m_(s,e,i);if(!("valueOf"in e)||typeof e.valueOf!="function")return a;try{return Ge(a,String(e.valueOf()))}catch(n){return Ge(a,"[valueOf exception]"+(n.stack||n.message))}}return Ge(s,e.toString())}function T_(t){return Object.prototype.toString.call(t)}function b_(t){return y_(fd(0,t,"",[]).toString(16),8)}dd.exports=b_;});var he=Ce(ve(),1),sd=Ce(yp(),1),ad=Ce(bp(),1),Kt=Ce(So(),1),O=Ce(ve(),1),nd=Ce(So(),1),V=Ce(ve(),1),go=Ce(Jf(),1),Ao=Ce(zf(),1),ie=Ce(ve(),1),Oe=Ce(ve(),1),Fk=Object.defineProperty,Rk=Object.defineProperties,Uk=Object.getOwnPropertyDescriptors,Hf=Object.getOwnPropertySymbols,qk=Object.prototype.hasOwnProperty,Kk=Object.prototype.propertyIsEnumerable,Gf=(t,e,r)=>e in t?Fk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Qf=(t,e)=>{for(var r in e||(e={}))qk.call(e,r)&&Gf(t,r,e[r]);if(Hf)for(var r of Hf(e))Kk.call(e,r)&&Gf(t,r,e[r]);return t},Vk=(t,e)=>Rk(t,Uk(e)),od=(t=>(t[t.STABLE=1]="STABLE",t[t.DYNAMIC=2]="DYNAMIC",t[t.FORWARDED=3]="FORWARDED",t))(od||{}),vo=od,Ki="Fragment",Yk="KeepAlive",Ee=(t,e)=>t.get(e)(),Zf=t=>t.startsWith("v-")||t.startsWith("v")&&t.length>=2&&t[1]>="A"&&t[1]<="Z",ed=t=>!(t.match(RegExp(`^_?${Ki}\\d*$`))||t===Yk),Xk=(t,e)=>{var r,i;let s=t.get("name");if(s.isJSXMemberExpression())return ed(s.node.property.name);let a=s.node.name;return !((i=(r=e.opts).isCustomElement)!=null&&i.call(r,a))&&ed(a)&&!go.default.includes(a)&&!Ao.default.includes(a)},ld=t=>{let e=t.node.object,r=t.node.property,i=V.isJSXMemberExpression(e)?ld(t.get("object")):V.isJSXIdentifier(e)?V.identifier(e.name):V.nullLiteral(),s=V.identifier(r.name);return V.memberExpression(i,s)},Jk=(t,e)=>{var r,i;let s=t.get("openingElement").get("name");if(s.isJSXIdentifier()){let{name:a}=s.node;return !go.default.includes(a)&&!Ao.default.includes(a)?a===Ki?Ee(e,Ki):t.scope.hasBinding(a)?V.identifier(a):(i=(r=e.opts).isCustomElement)!=null&&i.call(r,a)?V.stringLiteral(a):V.callExpression(Ee(e,"resolveComponent"),[V.stringLiteral(a)]):V.stringLiteral(a)}if(s.isJSXMemberExpression())return ld(s);throw new Error(`getTag: ${s.type} is not supported`)},$k=t=>{let e=t.node.name;return V.isJSXIdentifier(e)?e.name:`${e.namespace.name}:${e.name.name}`},Wk=t=>{let e=ud(t.node.value);return e!==""?V.stringLiteral(e):null},ud=t=>{let e=t.split(/\r\n|\n|\r/),r=0;for(let s=0;s<e.length;s++)e[s].match(/[^ \t]/)&&(r=s);let i="";for(let s=0;s<e.length;s++){let a=e[s],n=s===0,o=s===e.length-1,l=s===r,u=a.replace(/\t/g," ");n||(u=u.replace(/^[ ]+/,"")),o||(u=u.replace(/[ ]+$/,"")),u&&(l||(u+=" "),i+=u);}return i},cd=t=>t.get("expression").node,zk=t=>V.spreadElement(t.get("expression").node),Io=(t,e,r)=>{t.scope.hasBinding(e)&&t.parentPath&&(V.isJSXElement(t.parentPath.node)&&t.parentPath.setData("slotFlag",r),Io(t.parentPath,e,r));},xo=(t,e)=>{let{parentPath:r}=t;if(r.isAssignmentExpression()){let{left:i}=r.node;if(V.isIdentifier(i))return e.map(s=>{if(V.isIdentifier(s)&&s.name===i.name){let a=t.scope.generateUidIdentifier(s.name);return r.insertBefore(V.variableDeclaration("const",[V.variableDeclarator(a,V.callExpression(V.functionExpression(null,[],V.blockStatement([V.returnStatement(s)])),[]))])),a}return s})}return e},Hk=/^on[^a-z]/,Gk=t=>Hk.test(t),Qk=(t,e)=>{V.isArrayExpression(t.value)?t.value.elements.push(e.value):t.value=V.arrayExpression([t.value,e.value]);},Po=(t=[],e)=>{if(!e)return t;let r=new Map,i=[];return t.forEach(s=>{if(V.isStringLiteral(s.key)){let{value:a}=s.key,n=r.get(a);n?(a==="style"||a==="class"||a.startsWith("on"))&&Qk(n,s):(r.set(a,s),i.push(s));}else i.push(s);}),i},Eo=t=>{if(V.isIdentifier(t))return t.name==="undefined";if(V.isArrayExpression(t)){let{elements:e}=t;return e.every(r=>r&&Eo(r))}return V.isObjectExpression(t)?t.properties.every(e=>Eo(e.value)):!!V.isLiteral(t)},Zk=(t,e,r,i)=>{let s=e.get("argument"),a=V.isObjectExpression(s.node)?s.node.properties:void 0;a?r?i.push(V.objectExpression(a)):i.push(...a):(s.isIdentifier()&&Io(t,s.node.name,vo.DYNAMIC),i.push(r?s.node:V.spreadElement(s.node)));},e_=t=>{let e=t.get("attributes").find(r=>r.isJSXAttribute()?r.get("name").isJSXIdentifier()&&r.get("name").node.name==="type":!1);return e?e.get("value").node:null},td=t=>ie.isArrayExpression(t)?t.elements.map(e=>ie.isStringLiteral(e)?e.value:"").filter(Boolean):[],t_=t=>{var e,r;let{path:i,value:s,state:a,tag:n,isComponent:o}=t,l=[],u=[],p=[],P,E,A;if("namespace"in i.node.name)[P,E]=t.name.split(":"),P=i.node.name.namespace.name,E=i.node.name.name.name,A=E.split("_").slice(1);else {let j=t.name.split("_");P=j.shift()||"",A=j;}P=P.replace(/^v/,"").replace(/^-/,"").replace(/^\S/,j=>j.toLowerCase()),E&&l.push(ie.stringLiteral(E.split("_")[0]));let I=P==="models",w=P==="model";if(w&&!i.get("value").isJSXExpressionContainer())throw new Error("You have to use JSX Expression inside your v-model");if(I&&!o)throw new Error("v-models can only use in custom components");let M=!["html","text","model","models"].includes(P)||w&&!o,B=A;return ie.isArrayExpression(s)?(I?s.elements:[s]).forEach(k=>{if(I&&!ie.isArrayExpression(k))throw new Error("You should pass a Two-dimensional Arrays to v-models");let{elements:H}=k,[ae,oe,Be]=H;oe&&!ie.isArrayExpression(oe)&&!ie.isSpreadElement(oe)?(l.push(oe),B=td(Be)):ie.isArrayExpression(oe)?(M||l.push(ie.nullLiteral()),B=td(oe)):M||l.push(ie.nullLiteral()),p.push(new Set(B)),u.push(ae);}):w&&!M?(l.push(ie.nullLiteral()),p.push(new Set(A))):p.push(new Set(A)),{directiveName:P,modifiers:p,values:u.length?u:[s],args:l,directive:M?[r_(i,a,n,P),u[0]||s,(e=p[0])!=null&&e.size?l[0]||ie.unaryExpression("void",ie.numericLiteral(0),!0):l[0],!!((r=p[0])!=null&&r.size)&&ie.objectExpression([...p[0]].map(j=>ie.objectProperty(ie.identifier(j),ie.booleanLiteral(!0))))].filter(Boolean):void 0}},r_=(t,e,r,i)=>{if(i==="show")return Ee(e,"vShow");if(i==="model"){let s,a=e_(t.parentPath);switch(r.value){case"select":s=Ee(e,"vModelSelect");break;case"textarea":s=Ee(e,"vModelText");break;default:if(ie.isStringLiteral(a)||!a)switch(a?.value){case"checkbox":s=Ee(e,"vModelCheckbox");break;case"radio":s=Ee(e,"vModelRadio");break;default:s=Ee(e,"vModelText");}else s=Ee(e,"vModelDynamic");}return s}return ie.callExpression(Ee(e,"resolveDirective"),[ie.stringLiteral(i)])},i_=t_,rd=/^xlink([A-Z])/,s_=(t,e)=>{let r=t.get("value");return r.isJSXElement()?wo(r,e):r.isStringLiteral()?O.stringLiteral(ud(r.node.value)):r.isJSXExpressionContainer()?cd(r):null},a_=(t,e)=>{let r=Jk(t,e),i=Xk(t.get("openingElement"),e),s=t.get("openingElement").get("attributes"),a=[],n=new Set,o=null,l=0;if(s.length===0)return {tag:r,isComponent:i,slots:o,props:O.nullLiteral(),directives:a,patchFlag:l,dynamicPropNames:n};let u=[],p=!1,P=!1,E=!1,A=!1,I=!1,w=[],{mergeProps:M=!0}=e.opts;s.forEach(j=>{if(j.isJSXAttribute()){let k=$k(j),H=s_(j,e);if((!Eo(H)||k==="ref")&&(!i&&Gk(k)&&k.toLowerCase()!=="onclick"&&k!=="onUpdate:modelValue"&&(A=!0),k==="ref"?p=!0:k==="class"&&!i?P=!0:k==="style"&&!i?E=!0:k!=="key"&&!Zf(k)&&k!=="on"&&n.add(k)),e.opts.transformOn&&(k==="on"||k==="nativeOn")){e.get("transformOn")||e.set("transformOn",(0, nd.addDefault)(t,"@vue/babel-helper-vue-transform-on",{nameHint:"_transformOn"})),w.push(O.callExpression(e.get("transformOn"),[H||O.booleanLiteral(!0)]));return}if(Zf(k)){let{directive:ae,modifiers:oe,values:Be,args:Vi,directiveName:Cr}=i_({tag:r,isComponent:i,name:k,path:j,state:e,value:H});if(Cr==="slots"){o=H;return}ae?a.push(O.arrayExpression(ae)):Cr==="html"?(u.push(O.objectProperty(O.stringLiteral("innerHTML"),Be[0])),n.add("innerHTML")):Cr==="text"&&(u.push(O.objectProperty(O.stringLiteral("textContent"),Be[0])),n.add("textContent")),["models","model"].includes(Cr)&&Be.forEach((Co,Yi)=>{var Do;let Ne=Vi[Yi],ct=Ne&&!O.isStringLiteral(Ne)&&!O.isNullLiteral(Ne);ae||(u.push(O.objectProperty(O.isNullLiteral(Ne)?O.stringLiteral("modelValue"):Ne,Co,ct)),ct||n.add(Ne?.value||"modelValue"),(Do=oe[Yi])!=null&&Do.size&&u.push(O.objectProperty(ct?O.binaryExpression("+",Ne,O.stringLiteral("Modifiers")):O.stringLiteral(`${Ne?.value||"model"}Modifiers`),O.objectExpression([...oe[Yi]].map(Td=>O.objectProperty(O.stringLiteral(Td),O.booleanLiteral(!0)))),ct)));let Lo=ct?O.binaryExpression("+",O.stringLiteral("onUpdate"),Ne):O.stringLiteral(`onUpdate:${Ne?.value||"modelValue"}`);u.push(O.objectProperty(Lo,O.arrowFunctionExpression([O.identifier("$event")],O.assignmentExpression("=",Co,O.identifier("$event"))),ct)),ct?I=!0:n.add(Lo.value);});}else k.match(rd)&&(k=k.replace(rd,(ae,oe)=>`xlink:${oe.toLowerCase()}`)),u.push(O.objectProperty(O.stringLiteral(k),H||O.booleanLiteral(!0)));}else u.length&&M&&(w.push(O.objectExpression(Po(u,M))),u=[]),I=!0,Zk(t,j,M,M?w:u);}),I?l|=16:(P&&(l|=2),E&&(l|=4),n.size&&(l|=8),A&&(l|=32)),(l===0||l===32)&&(p||a.length>0)&&(l|=512);let B=O.nullLiteral();return w.length?(u.length&&w.push(O.objectExpression(Po(u,M))),w.length>1?B=O.callExpression(Ee(e,"mergeProps"),w):B=w[0]):u.length&&(u.length===1&&O.isSpreadElement(u[0])?B=u[0].argument:B=O.objectExpression(Po(u,M))),{tag:r,props:B,isComponent:i,slots:o,directives:a,patchFlag:l,dynamicPropNames:n}},n_=(t,e)=>t.map(r=>{if(r.isJSXText()){let i=Wk(r);return i&&O.callExpression(Ee(e,"createTextVNode"),[i])}if(r.isJSXExpressionContainer()){let i=cd(r);if(O.isIdentifier(i)){let{name:s}=i,{referencePaths:a=[]}=r.scope.getBinding(s)||{};a.forEach(n=>{Io(n,s,vo.DYNAMIC);});}return i}if(r.isJSXSpreadChild())return zk(r);if(r.isCallExpression())return r.node;if(r.isJSXElement())return wo(r,e);throw new Error(`getChildren: ${r.type} is not supported`)}).filter(r=>r!=null&&!O.isJSXEmptyExpression(r)),wo=(t,e)=>{let r=n_(t.get("children"),e),{tag:i,props:s,isComponent:a,directives:n,patchFlag:o,dynamicPropNames:l,slots:u}=a_(t,e),{optimize:p=!1}=e.opts,P=t.getData("slotFlag")||vo.STABLE,E;if(r.length>1||u)E=a?r.length?O.objectExpression([!!r.length&&O.objectProperty(O.identifier("default"),O.arrowFunctionExpression([],O.arrayExpression(xo(t,r)))),...u?O.isObjectExpression(u)?u.properties:[O.spreadElement(u)]:[],p&&O.objectProperty(O.identifier("_"),O.numericLiteral(P))].filter(Boolean)):u:O.arrayExpression(r);else if(r.length===1){let{enableObjectSlots:I=!0}=e.opts,w=r[0],M=O.objectExpression([O.objectProperty(O.identifier("default"),O.arrowFunctionExpression([],O.arrayExpression(xo(t,[w])))),p&&O.objectProperty(O.identifier("_"),O.numericLiteral(P))].filter(Boolean));if(O.isIdentifier(w)&&a)E=I?O.conditionalExpression(O.callExpression(e.get("@vue/babel-plugin-jsx/runtimeIsSlot")(),[w]),w,M):M;else if(O.isCallExpression(w)&&w.loc&&a)if(I){let{scope:B}=t,j=B.generateUidIdentifier("slot");B&&B.push({id:j,kind:"let"});let k=O.objectExpression([O.objectProperty(O.identifier("default"),O.arrowFunctionExpression([],O.arrayExpression(xo(t,[j])))),p&&O.objectProperty(O.identifier("_"),O.numericLiteral(P))].filter(Boolean)),H=O.assignmentExpression("=",j,w),ae=O.callExpression(e.get("@vue/babel-plugin-jsx/runtimeIsSlot")(),[H]);E=O.conditionalExpression(ae,j,k);}else E=M;else O.isFunctionExpression(w)||O.isArrowFunctionExpression(w)?E=O.objectExpression([O.objectProperty(O.identifier("default"),w)]):O.isObjectExpression(w)?E=O.objectExpression([...w.properties,p&&O.objectProperty(O.identifier("_"),O.numericLiteral(P))].filter(Boolean)):E=a?O.objectExpression([O.objectProperty(O.identifier("default"),O.arrowFunctionExpression([],O.arrayExpression([w])))]):O.arrayExpression([w]);}let A=O.callExpression(Ee(e,"createVNode"),[i,s,E||O.nullLiteral(),!!o&&p&&O.numericLiteral(o),!!l.size&&p&&O.arrayExpression([...l.keys()].map(I=>O.stringLiteral(I)))].filter(Boolean));return n.length?O.callExpression(Ee(e,"withDirectives"),[A,O.arrayExpression(n)]):A},o_={JSXElement:{exit(t,e){t.replaceWith(wo(t,e));}}},l_=o_,u_=(t,e)=>{let r=t.get("children")||[];return Oe.jsxElement(Oe.jsxOpeningElement(e,[]),Oe.jsxClosingElement(e),r.map(({node:i})=>i),!1)},c_={JSXFragment:{enter(t,e){let r=Ee(e,Ki);t.replaceWith(u_(t,Oe.isIdentifier(r)?Oe.jsxIdentifier(r.name):Oe.jsxMemberExpression(Oe.jsxIdentifier(r.object.name),Oe.jsxIdentifier(r.property.name))));}}},p_=c_,f_=t=>{let e=!1;return t.traverse({JSXElement(r){e=!0,r.stop();},JSXFragment(r){e=!0,r.stop();}}),e},d_=/\*?\s*@jsx\s+([^\s]+)/;function Oo(t){return t.default||t}var h_=Oo(ad.default),id=Oo(sd.default),pd=({types:t})=>({name:"babel-plugin-jsx",inherits:Oo(h_),visitor:Vk(Qf(Qf({},l_),p_),{Program:{enter(e,r){if(f_(e)){let i=["createVNode","Fragment","resolveComponent","withDirectives","vShow","vModelSelect","vModelText","vModelCheckbox","vModelRadio","vModelText","vModelDynamic","resolveDirective","mergeProps","createTextVNode","isVNode"];if((0, Kt.isModule)(e)){let n={};i.forEach(l=>{r.set(l,()=>{if(n[l])return t.cloneNode(n[l]);let u=(0, Kt.addNamed)(e,l,"vue",{ensureLiveReference:!0});return n[l]=u,u});});let{enableObjectSlots:o=!0}=r.opts;o&&r.set("@vue/babel-plugin-jsx/runtimeIsSlot",()=>{if(n.runtimeIsSlot)return n.runtimeIsSlot;let{name:l}=r.get("isVNode")(),u=e.scope.generateUidIdentifier("isSlot"),p=id.ast`
|
|
45
|
+
function ${u.name}(s) {
|
|
46
|
+
return typeof s === 'function' || (Object.prototype.toString.call(s) === '[object Object]' && !${l}(s));
|
|
47
|
+
}
|
|
48
|
+
`,P=e.get("body").filter(E=>E.isImportDeclaration()).pop();return P&&P.insertAfter(p),n.runtimeIsSlot=u,u});}else {let n;i.forEach(u=>{r.set(u,()=>(n||(n=(0, Kt.addNamespace)(e,"vue",{ensureLiveReference:!0})),he.memberExpression(n,he.identifier(u))));});let o={},{enableObjectSlots:l=!0}=r.opts;l&&r.set("@vue/babel-plugin-jsx/runtimeIsSlot",()=>{if(o.runtimeIsSlot)return o.runtimeIsSlot;let u=e.scope.generateUidIdentifier("isSlot"),{object:p}=r.get("isVNode")(),P=id.ast`
|
|
49
|
+
function ${u.name}(s) {
|
|
50
|
+
return typeof s === 'function' || (Object.prototype.toString.call(s) === '[object Object]' && !${p.name}.isVNode(s));
|
|
51
|
+
}
|
|
52
|
+
`,A=e.get("body").filter(I=>I.isVariableDeclaration()&&I.node.declarations.some(w=>{var M;return ((M=w.id)==null?void 0:M.name)===n.name})).pop();return A&&A.insertAfter(P),u});}let{opts:{pragma:s=""},file:a}=r;if(s&&r.set("createVNode",()=>he.identifier(s)),a.ast.comments)for(let n of a.ast.comments){let o=d_.exec(n.value);o&&r.set("createVNode",()=>he.identifier(o[1]));}}},exit(e){let r=e.get("body"),i=new Map;r.filter(a=>he.isImportDeclaration(a.node)&&a.node.source.value==="vue").forEach(a=>{let{specifiers:n}=a.node,o=!1;n.forEach(l=>{!l.loc&&he.isImportSpecifier(l)&&he.isIdentifier(l.imported)&&(i.set(l.imported.name,l),o=!0);}),o&&a.remove();});let s=[...i.keys()].map(a=>i.get(a));s.length&&e.unshiftContainer("body",he.importDeclaration(s,he.stringLiteral("vue")));}}})});var md=Ce(hd());function No(t){let[,e,r]=t.match(/([^.]+)\.([^.]+)$/)||[];return {basename:e,lang:r}}var ut="__sfc__";function yd({typescript:t,babel:e,availablePlugins:r={},availablePresets:i={}}){function s(u){return e.transformSync(u,{presets:[[i.env??"env",{modules:"cjs"}]]})}function a(u,p,P={}){let{lang:E,plugins:A=[],presets:I=[]}=P;if(E==="ts"||E==="tsx"){let j=E==="tsx";I.push([i.typescript??"typescript",{isTSX:j,allExtensions:j,onlyRemoveTypeImports:!0}]);}(E==="tsx"||E==="jsx")&&A.push(r["vue-jsx"]??"vue-jsx");let{basename:w}=No(p),M=u;if((E==="ts"||E==="tsx")&&t()){let j=t(),{outputText:k}=j.transpileModule(u,{compilerOptions:{module:j.ModuleKind.ESNext,target:j.ScriptTarget.ES2020,jsx:j.JsxEmit.Preserve,jsxImportSource:"vue",isolatedModules:!0,experimentalDecorators:!0,emitDecoratorMetadata:!0,useDefineForClassFields:!1,verbatimModuleSyntax:!0,inlineSourceMap:!0},fileName:w+"."+(E||"ts"),reportDiagnostics:!0});M=k;}return e.transformSync(M,{filename:w+"."+(E||"ts"),presets:I,plugins:A})?.code||""}function n(u,p,P,E){let{filename:A,template:I,scriptSetup:w,script:M}=p,B=I?.content,j=!!w,k=E==="ts"||E==="tsx",H=[];k&&H.push("typescript"),(E==="jsx"||E==="tsx")&&H.push("jsx");let ae="";if(M||w)try{let{content:oe}=compileScript(p,{id:u,inlineTemplate:j,templateOptions:{compilerOptions:{expressionPlugins:H}}});ae=a(rewriteDefault(oe,ut,H),A,{lang:E});}catch(oe){return [oe]}else ae=`const ${ut} = {};`;if(!j&&B){let{code:oe,errors:Be}=compileTemplate({id:u,filename:A,source:B,scoped:P,compilerOptions:{expressionPlugins:H}});if(Be.length)return Be;oe=a(oe,A,{lang:E}),ae+=`
|
|
53
|
+
${oe.replace(/\nexport (function|const) render/,"$1 render")}
|
|
54
|
+
${ut}.render = render;`;}return ae}function o(u,p){let{filename:P}=p,E=[];for(let A of p.styles){let{code:I,errors:w}=compileStyle({source:A.content,filename:P,id:u,scoped:A.scoped});if(w.length)return w;E.push(I);}return E.join(`
|
|
55
|
+
`)}function l(u){let{id:p,code:P,filename:E}=u,{descriptor:A,errors:I}=parse(P,{filename:E});if(I.length)return I;let w="",M=!1;(A.styles.some(ae=>ae.lang)||A.template&&A.template.lang)&&(M=!0,w+=`
|
|
56
|
+
console.warn("Custom preprocessors for <template> and <style> are not supported in the Codeblock.")`),A.styles.some(ae=>ae.module)&&(M=!0,w+=`
|
|
57
|
+
console.warn("<style module> is not supported in the the Codeblock.")`);let B=A.script&&A.script.lang||A.scriptSetup&&A.scriptSetup.lang,j=A.styles.some(ae=>ae.scoped),k=n(p,A,j,B||"");if(Array.isArray(k))return k;w+=`
|
|
58
|
+
${k}`,j&&(w+=`
|
|
59
|
+
${ut}.__scopeId = ${JSON.stringify(`data-v-${p}`)};`);let H="";if(!M){let ae=o(p,A);if(Array.isArray(ae))return ae;H=ae;}return {js:w,css:H}}return {toCommonJS:s,transformTS:a,compileSFC:l}}var{compileSFC:A_,transformTS:v_,toCommonJS:I_}=yd({typescript:()=>window.ts,babel:{transformSync(...t){return typeof window!==void 0&&"Babel"in window?Babel.transform(...t):(console.error("@babel/standablone is loading!"),null)}},availablePlugins:{"vue-jsx":pd}});function w_(t,{filename:e}){let{lang:r}=No(e);if(["js","jsx","ts","tsx"].includes(r))return v_(t,e,{lang:r,presets:[["env",{modules:"cjs"}]]});let i=(0, md.default)(e),s=A_({id:i,filename:e,code:t});if(Array.isArray(s))throw s[0];let{js:a,css:n}=s;return n&&(a+=`
|
|
60
|
+
${ut}.__css__ = ${JSON.stringify(n)};`),a+=`
|
|
61
|
+
${ut}.__id__ = "${i}";
|
|
62
|
+
export default ${ut};`,I_(a)?.code||""}/*! Bundled license information:
|
|
63
|
+
|
|
64
|
+
assert/assert.js:
|
|
65
|
+
(*!
|
|
66
|
+
* The buffer module from node.js, for the browser.
|
|
67
|
+
*
|
|
68
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
69
|
+
* @license MIT
|
|
70
|
+
*)
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
export { w_ as default };
|