@visulima/dev-toolbar 1.0.0-alpha.33 → 1.0.0-alpha.34

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/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## @visulima/dev-toolbar [1.0.0-alpha.34](https://github.com/visulima/visulima/compare/@visulima/dev-toolbar@1.0.0-alpha.33...@visulima/dev-toolbar@1.0.0-alpha.34) (2026-06-19)
2
+
1
3
  ## @visulima/dev-toolbar [1.0.0-alpha.33](https://github.com/visulima/visulima/compare/@visulima/dev-toolbar@1.0.0-alpha.32...@visulima/dev-toolbar@1.0.0-alpha.33) (2026-06-13)
2
4
 
3
5
  ### Bug Fixes
@@ -1,9 +1,7 @@
1
- import ks from"@babel/generator";import{parse as hl}from"@babel/parser";import Ks from"@babel/traverse";import{normalizePath as zl}from"vite";var Ds={},Ia={},ja={},Ra={},T={},Fa={},qs;function Cs(){if(qs)return Fa;qs=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.default=n;function n(a,i){const r=Object.keys(i);for(const d of r)if(a[d]!==i[d])return!1;return!0}return Fa}var ka={},Vs;function La(){if(Vs)return ka;Vs=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.default=a;const n=new Set;function a(r,d,c="",v=r){if(n.has(v))return;n.add(v);const{internal:E,trace:A}=i(1,2);E||console.warn(`${c}\`${r}\` has been deprecated, please migrate to \`${d}\`
2
- ${A}`)}function i(r,d){const{stackTraceLimit:c,prepareStackTrace:v}=Error;let E;if(Error.stackTraceLimit=1+r+d,Error.prepareStackTrace=function(P,b){E=b},Error.stackTraceLimit=c,Error.prepareStackTrace=v,!E)return{internal:!1,trace:""};const A=E.slice(1+r,1+r+d);return{internal:/[\\/]@babel[\\/]/.test(A[1].getFileName()),trace:A.map(P=>` at ${P}`).join(`
3
- `)}}return ka}var Ys;function ee(){if(Ys)return T;Ys=1,Object.defineProperty(T,"__esModule",{value:!0}),T.isAccessor=os,T.isAnyTypeAnnotation=ft,T.isArgumentPlaceholder=Xn,T.isArrayExpression=i,T.isArrayPattern=Ne,T.isArrayTypeAnnotation=Tt,T.isArrowFunctionExpression=_e,T.isAssignmentExpression=r,T.isAssignmentPattern=he,T.isAwaitExpression=tt,T.isBigIntLiteral=rt,T.isBinary=ba,T.isBinaryExpression=d,T.isBindExpression=Jn,T.isBlock=va,T.isBlockParent=Pa,T.isBlockStatement=A,T.isBooleanLiteral=ae,T.isBooleanLiteralTypeAnnotation=St,T.isBooleanTypeAnnotation=mt,T.isBreakStatement=P,T.isCallExpression=b,T.isCatchClause=I,T.isClass=as,T.isClassAccessorProperty=lt,T.isClassBody=Le,T.isClassDeclaration=Be,T.isClassExpression=Ce,T.isClassImplements=bt,T.isClassMethod=C,T.isClassPrivateMethod=ut,T.isClassPrivateProperty=pt,T.isClassProperty=ot,T.isCompletionStatement=o,T.isConditional=p,T.isConditionalExpression=g,T.isContinueStatement=D,T.isDebuggerStatement=R,T.isDecimalLiteral=Qn,T.isDeclaration=Ji,T.isDeclareClass=At,T.isDeclareExportAllDeclaration=Nt,T.isDeclareExportDeclaration=ht,T.isDeclareFunction=Pt,T.isDeclareInterface=vt,T.isDeclareModule=xt,T.isDeclareModuleExports=It,T.isDeclareOpaqueType=Ot,T.isDeclareTypeAlias=gt,T.isDeclareVariable=Dt,T.isDeclaredPredicate=_t,T.isDecorator=Un,T.isDirective=v,T.isDirectiveLiteral=E,T.isDoExpression=Wn,T.isDoWhileStatement=h,T.isEmptyStatement=L,T.isEmptyTypeAnnotation=qt,T.isEnumBody=fs,T.isEnumBooleanBody=mn,T.isEnumBooleanMember=An,T.isEnumDeclaration=Tn,T.isEnumDefaultedMember=xn,T.isEnumMember=Ts,T.isEnumNumberBody=Sn,T.isEnumNumberMember=Pn,T.isEnumStringBody=En,T.isEnumStringMember=vn,T.isEnumSymbolBody=bn,T.isExistsTypeAnnotation=Lt,T.isExportAllDeclaration=Me,T.isExportDeclaration=is,T.isExportDefaultDeclaration=we,T.isExportDefaultSpecifier=$n,T.isExportNamedDeclaration=je,T.isExportNamespaceSpecifier=at,T.isExportSpecifier=Re,T.isExpression=Ea,T.isExpressionStatement=N,T.isExpressionWrapper=x,T.isFile=_,T.isFlow=ps,T.isFlowBaseAnnotation=cs,T.isFlowDeclaration=ds,T.isFlowPredicate=ys,T.isFlowType=us,T.isFor=w,T.isForInStatement=M,T.isForOfStatement=Fe,T.isForStatement=V,T.isForXStatement=U,T.isFunction=Z,T.isFunctionDeclaration=G,T.isFunctionExpression=z,T.isFunctionParameter=Ui,T.isFunctionParent=pe,T.isFunctionTypeAnnotation=Ct,T.isFunctionTypeParam=Bt,T.isGenericTypeAnnotation=Mt,T.isIdentifier=Q,T.isIfStatement=H,T.isImmutable=Qi,T.isImport=nt,T.isImportAttribute=yt,T.isImportDeclaration=ke,T.isImportDefaultSpecifier=Ke,T.isImportExpression=Ve,T.isImportNamespaceSpecifier=qe,T.isImportOrExportDeclaration=wa,T.isImportSpecifier=Te,T.isIndexedAccessType=In,T.isInferredPredicate=wt,T.isInterfaceDeclaration=Rt,T.isInterfaceExtends=jt,T.isInterfaceTypeAnnotation=Ft,T.isInterpreterDirective=c,T.isIntersectionTypeAnnotation=kt,T.isJSX=ms,T.isJSXAttribute=On,T.isJSXClosingElement=Dn,T.isJSXClosingFragment=Kn,T.isJSXElement=hn,T.isJSXEmptyExpression=Nn,T.isJSXExpressionContainer=_n,T.isJSXFragment=Fn,T.isJSXIdentifier=Cn,T.isJSXMemberExpression=Bn,T.isJSXNamespacedName=Mn,T.isJSXOpeningElement=wn,T.isJSXOpeningFragment=kn,T.isJSXSpreadAttribute=jn,T.isJSXSpreadChild=Ln,T.isJSXText=Rn,T.isLVal=$i,T.isLabeledStatement=oe,T.isLiteral=zi,T.isLogicalExpression=ce,T.isLoop=y,T.isMemberExpression=B,T.isMetaProperty=Ye,T.isMethod=Zi,T.isMiscellaneous=Ss,T.isMixedTypeAnnotation=Kt,T.isModuleDeclaration=Os,T.isModuleExpression=Hn,T.isModuleSpecifier=ss,T.isNewExpression=F,T.isNoop=qn,T.isNullLiteral=ue,T.isNullLiteralTypeAnnotation=Et,T.isNullableTypeAnnotation=Vt,T.isNumberLiteral=vs,T.isNumberLiteralTypeAnnotation=Yt,T.isNumberTypeAnnotation=Xt,T.isNumericLiteral=te,T.isObjectExpression=j,T.isObjectMember=es,T.isObjectMethod=Y,T.isObjectPattern=Ge,T.isObjectProperty=$,T.isObjectTypeAnnotation=Jt,T.isObjectTypeCallProperty=Wt,T.isObjectTypeIndexer=$t,T.isObjectTypeInternalSlot=Ut,T.isObjectTypeProperty=Gt,T.isObjectTypeSpreadProperty=zt,T.isOpaqueType=Qt,T.isOptionalCallExpression=st,T.isOptionalIndexedAccessType=gn,T.isOptionalMemberExpression=it,T.isParenthesizedExpression=ie,T.isPattern=rs,T.isPatternLike=Wi,T.isPipelineBareFunction=tr,T.isPipelinePrimaryTopicReference=nr,T.isPipelineTopicExpression=er,T.isPlaceholder=Vn,T.isPrivate=ls,T.isPrivateName=ct,T.isProgram=K,T.isProperty=ts,T.isPureish=Xi,T.isQualifiedTypeIdentifier=Ht,T.isRecordExpression=Gn,T.isRegExpLiteral=fe,T.isRegexLiteral=xs,T.isRestElement=J,T.isRestProperty=Is,T.isReturnStatement=X,T.isScopable=Aa,T.isSequenceExpression=W,T.isSpreadElement=ze,T.isSpreadProperty=gs,T.isStandardized=Sa,T.isStatement=xa,T.isStaticBlock=dt,T.isStringLiteral=re,T.isStringLiteralTypeAnnotation=Zt,T.isStringTypeAnnotation=en,T.isSuper=Qe,T.isSwitchCase=se,T.isSwitchStatement=be,T.isSymbolTypeAnnotation=tn,T.isTSAnyKeyword=yr,T.isTSArrayType=Br,T.isTSAsExpression=Zr,T.isTSBaseType=Ps,T.isTSBigIntKeyword=Tr,T.isTSBooleanKeyword=fr,T.isTSCallSignatureDeclaration=lr,T.isTSConditionalType=Kr,T.isTSConstructSignatureDeclaration=pr,T.isTSConstructorType=hr,T.isTSDeclareFunction=ir,T.isTSDeclareMethod=sr,T.isTSEntityName=Gi,T.isTSEnumBody=na,T.isTSEnumDeclaration=ra,T.isTSEnumMember=aa,T.isTSExportAssignment=ca,T.isTSExpressionWithTypeArguments=$r,T.isTSExternalModuleReference=pa,T.isTSFunctionType=Dr,T.isTSImportEqualsDeclaration=la,T.isTSImportType=oa,T.isTSIndexSignature=dr,T.isTSIndexedAccessType=Xr,T.isTSInferType=qr,T.isTSInstantiationExpression=Hr,T.isTSInterfaceBody=zr,T.isTSInterfaceDeclaration=Gr,T.isTSIntersectionType=kr,T.isTSIntrinsicKeyword=mr,T.isTSLiteralType=Wr,T.isTSMappedType=Jr,T.isTSMethodSignature=cr,T.isTSModuleBlock=sa,T.isTSModuleDeclaration=ia,T.isTSNamedTupleMember=Rr,T.isTSNamespaceExportDeclaration=da,T.isTSNeverKeyword=Sr,T.isTSNonNullExpression=ua,T.isTSNullKeyword=Er,T.isTSNumberKeyword=br,T.isTSObjectKeyword=Ar,T.isTSOptionalType=wr,T.isTSParameterProperty=ar,T.isTSParenthesizedType=Vr,T.isTSPropertySignature=ur,T.isTSQualifiedName=or,T.isTSRestType=jr,T.isTSSatisfiesExpression=ea,T.isTSStringKeyword=Pr,T.isTSSymbolKeyword=vr,T.isTSTemplateLiteralType=Ur,T.isTSThisType=Or,T.isTSTupleType=Mr,T.isTSType=As,T.isTSTypeAliasDeclaration=Qr,T.isTSTypeAnnotation=ya,T.isTSTypeAssertion=ta,T.isTSTypeElement=bs,T.isTSTypeLiteral=Cr,T.isTSTypeOperator=Yr,T.isTSTypeParameter=ma,T.isTSTypeParameterDeclaration=Ta,T.isTSTypeParameterInstantiation=fa,T.isTSTypePredicate=_r,T.isTSTypeQuery=Lr,T.isTSTypeReference=Nr,T.isTSUndefinedKeyword=xr,T.isTSUnionType=Fr,T.isTSUnknownKeyword=Ir,T.isTSVoidKeyword=gr,T.isTaggedTemplateExpression=He,T.isTemplateElement=Ze,T.isTemplateLiteral=Ue,T.isTerminatorless=s,T.isThisExpression=Ae,T.isThisTypeAnnotation=nn,T.isThrowStatement=Pe,T.isTopicReference=Zn,T.isTryStatement=ye,T.isTupleExpression=zn,T.isTupleTypeAnnotation=rn,T.isTypeAlias=sn,T.isTypeAnnotation=on,T.isTypeCastExpression=ln,T.isTypeParameter=pn,T.isTypeParameterDeclaration=un,T.isTypeParameterInstantiation=cn,T.isTypeScript=Es,T.isTypeofTypeAnnotation=an,T.isUnaryExpression=ve,T.isUnaryLike=ns,T.isUnionTypeAnnotation=dn,T.isUpdateExpression=xe,T.isUserWhitespacable=Hi,T.isV8IntrinsicIdentifier=Yn,T.isVariableDeclaration=Ie,T.isVariableDeclarator=ge,T.isVariance=yn,T.isVoidPattern=rr,T.isVoidTypeAnnotation=fn,T.isWhile=S,T.isWhileStatement=Oe,T.isWithStatement=De,T.isYieldExpression=et;var n=Cs(),a=La();function i(t,e){return!t||t.type!=="ArrayExpression"?!1:e==null||(0,n.default)(t,e)}function r(t,e){return!t||t.type!=="AssignmentExpression"?!1:e==null||(0,n.default)(t,e)}function d(t,e){return!t||t.type!=="BinaryExpression"?!1:e==null||(0,n.default)(t,e)}function c(t,e){return!t||t.type!=="InterpreterDirective"?!1:e==null||(0,n.default)(t,e)}function v(t,e){return!t||t.type!=="Directive"?!1:e==null||(0,n.default)(t,e)}function E(t,e){return!t||t.type!=="DirectiveLiteral"?!1:e==null||(0,n.default)(t,e)}function A(t,e){return!t||t.type!=="BlockStatement"?!1:e==null||(0,n.default)(t,e)}function P(t,e){return!t||t.type!=="BreakStatement"?!1:e==null||(0,n.default)(t,e)}function b(t,e){return!t||t.type!=="CallExpression"?!1:e==null||(0,n.default)(t,e)}function I(t,e){return!t||t.type!=="CatchClause"?!1:e==null||(0,n.default)(t,e)}function g(t,e){return!t||t.type!=="ConditionalExpression"?!1:e==null||(0,n.default)(t,e)}function D(t,e){return!t||t.type!=="ContinueStatement"?!1:e==null||(0,n.default)(t,e)}function R(t,e){return!t||t.type!=="DebuggerStatement"?!1:e==null||(0,n.default)(t,e)}function h(t,e){return!t||t.type!=="DoWhileStatement"?!1:e==null||(0,n.default)(t,e)}function L(t,e){return!t||t.type!=="EmptyStatement"?!1:e==null||(0,n.default)(t,e)}function N(t,e){return!t||t.type!=="ExpressionStatement"?!1:e==null||(0,n.default)(t,e)}function _(t,e){return!t||t.type!=="File"?!1:e==null||(0,n.default)(t,e)}function M(t,e){return!t||t.type!=="ForInStatement"?!1:e==null||(0,n.default)(t,e)}function V(t,e){return!t||t.type!=="ForStatement"?!1:e==null||(0,n.default)(t,e)}function G(t,e){return!t||t.type!=="FunctionDeclaration"?!1:e==null||(0,n.default)(t,e)}function z(t,e){return!t||t.type!=="FunctionExpression"?!1:e==null||(0,n.default)(t,e)}function Q(t,e){return!t||t.type!=="Identifier"?!1:e==null||(0,n.default)(t,e)}function H(t,e){return!t||t.type!=="IfStatement"?!1:e==null||(0,n.default)(t,e)}function oe(t,e){return!t||t.type!=="LabeledStatement"?!1:e==null||(0,n.default)(t,e)}function re(t,e){return!t||t.type!=="StringLiteral"?!1:e==null||(0,n.default)(t,e)}function te(t,e){return!t||t.type!=="NumericLiteral"?!1:e==null||(0,n.default)(t,e)}function ue(t,e){return!t||t.type!=="NullLiteral"?!1:e==null||(0,n.default)(t,e)}function ae(t,e){return!t||t.type!=="BooleanLiteral"?!1:e==null||(0,n.default)(t,e)}function fe(t,e){return!t||t.type!=="RegExpLiteral"?!1:e==null||(0,n.default)(t,e)}function ce(t,e){return!t||t.type!=="LogicalExpression"?!1:e==null||(0,n.default)(t,e)}function B(t,e){return!t||t.type!=="MemberExpression"?!1:e==null||(0,n.default)(t,e)}function F(t,e){return!t||t.type!=="NewExpression"?!1:e==null||(0,n.default)(t,e)}function K(t,e){return!t||t.type!=="Program"?!1:e==null||(0,n.default)(t,e)}function j(t,e){return!t||t.type!=="ObjectExpression"?!1:e==null||(0,n.default)(t,e)}function Y(t,e){return!t||t.type!=="ObjectMethod"?!1:e==null||(0,n.default)(t,e)}function $(t,e){return!t||t.type!=="ObjectProperty"?!1:e==null||(0,n.default)(t,e)}function J(t,e){return!t||t.type!=="RestElement"?!1:e==null||(0,n.default)(t,e)}function X(t,e){return!t||t.type!=="ReturnStatement"?!1:e==null||(0,n.default)(t,e)}function W(t,e){return!t||t.type!=="SequenceExpression"?!1:e==null||(0,n.default)(t,e)}function ie(t,e){return!t||t.type!=="ParenthesizedExpression"?!1:e==null||(0,n.default)(t,e)}function se(t,e){return!t||t.type!=="SwitchCase"?!1:e==null||(0,n.default)(t,e)}function be(t,e){return!t||t.type!=="SwitchStatement"?!1:e==null||(0,n.default)(t,e)}function Ae(t,e){return!t||t.type!=="ThisExpression"?!1:e==null||(0,n.default)(t,e)}function Pe(t,e){return!t||t.type!=="ThrowStatement"?!1:e==null||(0,n.default)(t,e)}function ye(t,e){return!t||t.type!=="TryStatement"?!1:e==null||(0,n.default)(t,e)}function ve(t,e){return!t||t.type!=="UnaryExpression"?!1:e==null||(0,n.default)(t,e)}function xe(t,e){return!t||t.type!=="UpdateExpression"?!1:e==null||(0,n.default)(t,e)}function Ie(t,e){return!t||t.type!=="VariableDeclaration"?!1:e==null||(0,n.default)(t,e)}function ge(t,e){return!t||t.type!=="VariableDeclarator"?!1:e==null||(0,n.default)(t,e)}function Oe(t,e){return!t||t.type!=="WhileStatement"?!1:e==null||(0,n.default)(t,e)}function De(t,e){return!t||t.type!=="WithStatement"?!1:e==null||(0,n.default)(t,e)}function he(t,e){return!t||t.type!=="AssignmentPattern"?!1:e==null||(0,n.default)(t,e)}function Ne(t,e){return!t||t.type!=="ArrayPattern"?!1:e==null||(0,n.default)(t,e)}function _e(t,e){return!t||t.type!=="ArrowFunctionExpression"?!1:e==null||(0,n.default)(t,e)}function Le(t,e){return!t||t.type!=="ClassBody"?!1:e==null||(0,n.default)(t,e)}function Ce(t,e){return!t||t.type!=="ClassExpression"?!1:e==null||(0,n.default)(t,e)}function Be(t,e){return!t||t.type!=="ClassDeclaration"?!1:e==null||(0,n.default)(t,e)}function Me(t,e){return!t||t.type!=="ExportAllDeclaration"?!1:e==null||(0,n.default)(t,e)}function we(t,e){return!t||t.type!=="ExportDefaultDeclaration"?!1:e==null||(0,n.default)(t,e)}function je(t,e){return!t||t.type!=="ExportNamedDeclaration"?!1:e==null||(0,n.default)(t,e)}function Re(t,e){return!t||t.type!=="ExportSpecifier"?!1:e==null||(0,n.default)(t,e)}function Fe(t,e){return!t||t.type!=="ForOfStatement"?!1:e==null||(0,n.default)(t,e)}function ke(t,e){return!t||t.type!=="ImportDeclaration"?!1:e==null||(0,n.default)(t,e)}function Ke(t,e){return!t||t.type!=="ImportDefaultSpecifier"?!1:e==null||(0,n.default)(t,e)}function qe(t,e){return!t||t.type!=="ImportNamespaceSpecifier"?!1:e==null||(0,n.default)(t,e)}function Te(t,e){return!t||t.type!=="ImportSpecifier"?!1:e==null||(0,n.default)(t,e)}function Ve(t,e){return!t||t.type!=="ImportExpression"?!1:e==null||(0,n.default)(t,e)}function Ye(t,e){return!t||t.type!=="MetaProperty"?!1:e==null||(0,n.default)(t,e)}function C(t,e){return!t||t.type!=="ClassMethod"?!1:e==null||(0,n.default)(t,e)}function Ge(t,e){return!t||t.type!=="ObjectPattern"?!1:e==null||(0,n.default)(t,e)}function ze(t,e){return!t||t.type!=="SpreadElement"?!1:e==null||(0,n.default)(t,e)}function Qe(t,e){return!t||t.type!=="Super"?!1:e==null||(0,n.default)(t,e)}function He(t,e){return!t||t.type!=="TaggedTemplateExpression"?!1:e==null||(0,n.default)(t,e)}function Ze(t,e){return!t||t.type!=="TemplateElement"?!1:e==null||(0,n.default)(t,e)}function Ue(t,e){return!t||t.type!=="TemplateLiteral"?!1:e==null||(0,n.default)(t,e)}function et(t,e){return!t||t.type!=="YieldExpression"?!1:e==null||(0,n.default)(t,e)}function tt(t,e){return!t||t.type!=="AwaitExpression"?!1:e==null||(0,n.default)(t,e)}function nt(t,e){return!t||t.type!=="Import"?!1:e==null||(0,n.default)(t,e)}function rt(t,e){return!t||t.type!=="BigIntLiteral"?!1:e==null||(0,n.default)(t,e)}function at(t,e){return!t||t.type!=="ExportNamespaceSpecifier"?!1:e==null||(0,n.default)(t,e)}function it(t,e){return!t||t.type!=="OptionalMemberExpression"?!1:e==null||(0,n.default)(t,e)}function st(t,e){return!t||t.type!=="OptionalCallExpression"?!1:e==null||(0,n.default)(t,e)}function ot(t,e){return!t||t.type!=="ClassProperty"?!1:e==null||(0,n.default)(t,e)}function lt(t,e){return!t||t.type!=="ClassAccessorProperty"?!1:e==null||(0,n.default)(t,e)}function pt(t,e){return!t||t.type!=="ClassPrivateProperty"?!1:e==null||(0,n.default)(t,e)}function ut(t,e){return!t||t.type!=="ClassPrivateMethod"?!1:e==null||(0,n.default)(t,e)}function ct(t,e){return!t||t.type!=="PrivateName"?!1:e==null||(0,n.default)(t,e)}function dt(t,e){return!t||t.type!=="StaticBlock"?!1:e==null||(0,n.default)(t,e)}function yt(t,e){return!t||t.type!=="ImportAttribute"?!1:e==null||(0,n.default)(t,e)}function ft(t,e){return!t||t.type!=="AnyTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Tt(t,e){return!t||t.type!=="ArrayTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function mt(t,e){return!t||t.type!=="BooleanTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function St(t,e){return!t||t.type!=="BooleanLiteralTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Et(t,e){return!t||t.type!=="NullLiteralTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function bt(t,e){return!t||t.type!=="ClassImplements"?!1:e==null||(0,n.default)(t,e)}function At(t,e){return!t||t.type!=="DeclareClass"?!1:e==null||(0,n.default)(t,e)}function Pt(t,e){return!t||t.type!=="DeclareFunction"?!1:e==null||(0,n.default)(t,e)}function vt(t,e){return!t||t.type!=="DeclareInterface"?!1:e==null||(0,n.default)(t,e)}function xt(t,e){return!t||t.type!=="DeclareModule"?!1:e==null||(0,n.default)(t,e)}function It(t,e){return!t||t.type!=="DeclareModuleExports"?!1:e==null||(0,n.default)(t,e)}function gt(t,e){return!t||t.type!=="DeclareTypeAlias"?!1:e==null||(0,n.default)(t,e)}function Ot(t,e){return!t||t.type!=="DeclareOpaqueType"?!1:e==null||(0,n.default)(t,e)}function Dt(t,e){return!t||t.type!=="DeclareVariable"?!1:e==null||(0,n.default)(t,e)}function ht(t,e){return!t||t.type!=="DeclareExportDeclaration"?!1:e==null||(0,n.default)(t,e)}function Nt(t,e){return!t||t.type!=="DeclareExportAllDeclaration"?!1:e==null||(0,n.default)(t,e)}function _t(t,e){return!t||t.type!=="DeclaredPredicate"?!1:e==null||(0,n.default)(t,e)}function Lt(t,e){return!t||t.type!=="ExistsTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Ct(t,e){return!t||t.type!=="FunctionTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Bt(t,e){return!t||t.type!=="FunctionTypeParam"?!1:e==null||(0,n.default)(t,e)}function Mt(t,e){return!t||t.type!=="GenericTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function wt(t,e){return!t||t.type!=="InferredPredicate"?!1:e==null||(0,n.default)(t,e)}function jt(t,e){return!t||t.type!=="InterfaceExtends"?!1:e==null||(0,n.default)(t,e)}function Rt(t,e){return!t||t.type!=="InterfaceDeclaration"?!1:e==null||(0,n.default)(t,e)}function Ft(t,e){return!t||t.type!=="InterfaceTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function kt(t,e){return!t||t.type!=="IntersectionTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Kt(t,e){return!t||t.type!=="MixedTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function qt(t,e){return!t||t.type!=="EmptyTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Vt(t,e){return!t||t.type!=="NullableTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Yt(t,e){return!t||t.type!=="NumberLiteralTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Xt(t,e){return!t||t.type!=="NumberTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Jt(t,e){return!t||t.type!=="ObjectTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Ut(t,e){return!t||t.type!=="ObjectTypeInternalSlot"?!1:e==null||(0,n.default)(t,e)}function Wt(t,e){return!t||t.type!=="ObjectTypeCallProperty"?!1:e==null||(0,n.default)(t,e)}function $t(t,e){return!t||t.type!=="ObjectTypeIndexer"?!1:e==null||(0,n.default)(t,e)}function Gt(t,e){return!t||t.type!=="ObjectTypeProperty"?!1:e==null||(0,n.default)(t,e)}function zt(t,e){return!t||t.type!=="ObjectTypeSpreadProperty"?!1:e==null||(0,n.default)(t,e)}function Qt(t,e){return!t||t.type!=="OpaqueType"?!1:e==null||(0,n.default)(t,e)}function Ht(t,e){return!t||t.type!=="QualifiedTypeIdentifier"?!1:e==null||(0,n.default)(t,e)}function Zt(t,e){return!t||t.type!=="StringLiteralTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function en(t,e){return!t||t.type!=="StringTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function tn(t,e){return!t||t.type!=="SymbolTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function nn(t,e){return!t||t.type!=="ThisTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function rn(t,e){return!t||t.type!=="TupleTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function an(t,e){return!t||t.type!=="TypeofTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function sn(t,e){return!t||t.type!=="TypeAlias"?!1:e==null||(0,n.default)(t,e)}function on(t,e){return!t||t.type!=="TypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function ln(t,e){return!t||t.type!=="TypeCastExpression"?!1:e==null||(0,n.default)(t,e)}function pn(t,e){return!t||t.type!=="TypeParameter"?!1:e==null||(0,n.default)(t,e)}function un(t,e){return!t||t.type!=="TypeParameterDeclaration"?!1:e==null||(0,n.default)(t,e)}function cn(t,e){return!t||t.type!=="TypeParameterInstantiation"?!1:e==null||(0,n.default)(t,e)}function dn(t,e){return!t||t.type!=="UnionTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function yn(t,e){return!t||t.type!=="Variance"?!1:e==null||(0,n.default)(t,e)}function fn(t,e){return!t||t.type!=="VoidTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function Tn(t,e){return!t||t.type!=="EnumDeclaration"?!1:e==null||(0,n.default)(t,e)}function mn(t,e){return!t||t.type!=="EnumBooleanBody"?!1:e==null||(0,n.default)(t,e)}function Sn(t,e){return!t||t.type!=="EnumNumberBody"?!1:e==null||(0,n.default)(t,e)}function En(t,e){return!t||t.type!=="EnumStringBody"?!1:e==null||(0,n.default)(t,e)}function bn(t,e){return!t||t.type!=="EnumSymbolBody"?!1:e==null||(0,n.default)(t,e)}function An(t,e){return!t||t.type!=="EnumBooleanMember"?!1:e==null||(0,n.default)(t,e)}function Pn(t,e){return!t||t.type!=="EnumNumberMember"?!1:e==null||(0,n.default)(t,e)}function vn(t,e){return!t||t.type!=="EnumStringMember"?!1:e==null||(0,n.default)(t,e)}function xn(t,e){return!t||t.type!=="EnumDefaultedMember"?!1:e==null||(0,n.default)(t,e)}function In(t,e){return!t||t.type!=="IndexedAccessType"?!1:e==null||(0,n.default)(t,e)}function gn(t,e){return!t||t.type!=="OptionalIndexedAccessType"?!1:e==null||(0,n.default)(t,e)}function On(t,e){return!t||t.type!=="JSXAttribute"?!1:e==null||(0,n.default)(t,e)}function Dn(t,e){return!t||t.type!=="JSXClosingElement"?!1:e==null||(0,n.default)(t,e)}function hn(t,e){return!t||t.type!=="JSXElement"?!1:e==null||(0,n.default)(t,e)}function Nn(t,e){return!t||t.type!=="JSXEmptyExpression"?!1:e==null||(0,n.default)(t,e)}function _n(t,e){return!t||t.type!=="JSXExpressionContainer"?!1:e==null||(0,n.default)(t,e)}function Ln(t,e){return!t||t.type!=="JSXSpreadChild"?!1:e==null||(0,n.default)(t,e)}function Cn(t,e){return!t||t.type!=="JSXIdentifier"?!1:e==null||(0,n.default)(t,e)}function Bn(t,e){return!t||t.type!=="JSXMemberExpression"?!1:e==null||(0,n.default)(t,e)}function Mn(t,e){return!t||t.type!=="JSXNamespacedName"?!1:e==null||(0,n.default)(t,e)}function wn(t,e){return!t||t.type!=="JSXOpeningElement"?!1:e==null||(0,n.default)(t,e)}function jn(t,e){return!t||t.type!=="JSXSpreadAttribute"?!1:e==null||(0,n.default)(t,e)}function Rn(t,e){return!t||t.type!=="JSXText"?!1:e==null||(0,n.default)(t,e)}function Fn(t,e){return!t||t.type!=="JSXFragment"?!1:e==null||(0,n.default)(t,e)}function kn(t,e){return!t||t.type!=="JSXOpeningFragment"?!1:e==null||(0,n.default)(t,e)}function Kn(t,e){return!t||t.type!=="JSXClosingFragment"?!1:e==null||(0,n.default)(t,e)}function qn(t,e){return!t||t.type!=="Noop"?!1:e==null||(0,n.default)(t,e)}function Vn(t,e){return!t||t.type!=="Placeholder"?!1:e==null||(0,n.default)(t,e)}function Yn(t,e){return!t||t.type!=="V8IntrinsicIdentifier"?!1:e==null||(0,n.default)(t,e)}function Xn(t,e){return!t||t.type!=="ArgumentPlaceholder"?!1:e==null||(0,n.default)(t,e)}function Jn(t,e){return!t||t.type!=="BindExpression"?!1:e==null||(0,n.default)(t,e)}function Un(t,e){return!t||t.type!=="Decorator"?!1:e==null||(0,n.default)(t,e)}function Wn(t,e){return!t||t.type!=="DoExpression"?!1:e==null||(0,n.default)(t,e)}function $n(t,e){return!t||t.type!=="ExportDefaultSpecifier"?!1:e==null||(0,n.default)(t,e)}function Gn(t,e){return!t||t.type!=="RecordExpression"?!1:e==null||(0,n.default)(t,e)}function zn(t,e){return!t||t.type!=="TupleExpression"?!1:e==null||(0,n.default)(t,e)}function Qn(t,e){return!t||t.type!=="DecimalLiteral"?!1:e==null||(0,n.default)(t,e)}function Hn(t,e){return!t||t.type!=="ModuleExpression"?!1:e==null||(0,n.default)(t,e)}function Zn(t,e){return!t||t.type!=="TopicReference"?!1:e==null||(0,n.default)(t,e)}function er(t,e){return!t||t.type!=="PipelineTopicExpression"?!1:e==null||(0,n.default)(t,e)}function tr(t,e){return!t||t.type!=="PipelineBareFunction"?!1:e==null||(0,n.default)(t,e)}function nr(t,e){return!t||t.type!=="PipelinePrimaryTopicReference"?!1:e==null||(0,n.default)(t,e)}function rr(t,e){return!t||t.type!=="VoidPattern"?!1:e==null||(0,n.default)(t,e)}function ar(t,e){return!t||t.type!=="TSParameterProperty"?!1:e==null||(0,n.default)(t,e)}function ir(t,e){return!t||t.type!=="TSDeclareFunction"?!1:e==null||(0,n.default)(t,e)}function sr(t,e){return!t||t.type!=="TSDeclareMethod"?!1:e==null||(0,n.default)(t,e)}function or(t,e){return!t||t.type!=="TSQualifiedName"?!1:e==null||(0,n.default)(t,e)}function lr(t,e){return!t||t.type!=="TSCallSignatureDeclaration"?!1:e==null||(0,n.default)(t,e)}function pr(t,e){return!t||t.type!=="TSConstructSignatureDeclaration"?!1:e==null||(0,n.default)(t,e)}function ur(t,e){return!t||t.type!=="TSPropertySignature"?!1:e==null||(0,n.default)(t,e)}function cr(t,e){return!t||t.type!=="TSMethodSignature"?!1:e==null||(0,n.default)(t,e)}function dr(t,e){return!t||t.type!=="TSIndexSignature"?!1:e==null||(0,n.default)(t,e)}function yr(t,e){return!t||t.type!=="TSAnyKeyword"?!1:e==null||(0,n.default)(t,e)}function fr(t,e){return!t||t.type!=="TSBooleanKeyword"?!1:e==null||(0,n.default)(t,e)}function Tr(t,e){return!t||t.type!=="TSBigIntKeyword"?!1:e==null||(0,n.default)(t,e)}function mr(t,e){return!t||t.type!=="TSIntrinsicKeyword"?!1:e==null||(0,n.default)(t,e)}function Sr(t,e){return!t||t.type!=="TSNeverKeyword"?!1:e==null||(0,n.default)(t,e)}function Er(t,e){return!t||t.type!=="TSNullKeyword"?!1:e==null||(0,n.default)(t,e)}function br(t,e){return!t||t.type!=="TSNumberKeyword"?!1:e==null||(0,n.default)(t,e)}function Ar(t,e){return!t||t.type!=="TSObjectKeyword"?!1:e==null||(0,n.default)(t,e)}function Pr(t,e){return!t||t.type!=="TSStringKeyword"?!1:e==null||(0,n.default)(t,e)}function vr(t,e){return!t||t.type!=="TSSymbolKeyword"?!1:e==null||(0,n.default)(t,e)}function xr(t,e){return!t||t.type!=="TSUndefinedKeyword"?!1:e==null||(0,n.default)(t,e)}function Ir(t,e){return!t||t.type!=="TSUnknownKeyword"?!1:e==null||(0,n.default)(t,e)}function gr(t,e){return!t||t.type!=="TSVoidKeyword"?!1:e==null||(0,n.default)(t,e)}function Or(t,e){return!t||t.type!=="TSThisType"?!1:e==null||(0,n.default)(t,e)}function Dr(t,e){return!t||t.type!=="TSFunctionType"?!1:e==null||(0,n.default)(t,e)}function hr(t,e){return!t||t.type!=="TSConstructorType"?!1:e==null||(0,n.default)(t,e)}function Nr(t,e){return!t||t.type!=="TSTypeReference"?!1:e==null||(0,n.default)(t,e)}function _r(t,e){return!t||t.type!=="TSTypePredicate"?!1:e==null||(0,n.default)(t,e)}function Lr(t,e){return!t||t.type!=="TSTypeQuery"?!1:e==null||(0,n.default)(t,e)}function Cr(t,e){return!t||t.type!=="TSTypeLiteral"?!1:e==null||(0,n.default)(t,e)}function Br(t,e){return!t||t.type!=="TSArrayType"?!1:e==null||(0,n.default)(t,e)}function Mr(t,e){return!t||t.type!=="TSTupleType"?!1:e==null||(0,n.default)(t,e)}function wr(t,e){return!t||t.type!=="TSOptionalType"?!1:e==null||(0,n.default)(t,e)}function jr(t,e){return!t||t.type!=="TSRestType"?!1:e==null||(0,n.default)(t,e)}function Rr(t,e){return!t||t.type!=="TSNamedTupleMember"?!1:e==null||(0,n.default)(t,e)}function Fr(t,e){return!t||t.type!=="TSUnionType"?!1:e==null||(0,n.default)(t,e)}function kr(t,e){return!t||t.type!=="TSIntersectionType"?!1:e==null||(0,n.default)(t,e)}function Kr(t,e){return!t||t.type!=="TSConditionalType"?!1:e==null||(0,n.default)(t,e)}function qr(t,e){return!t||t.type!=="TSInferType"?!1:e==null||(0,n.default)(t,e)}function Vr(t,e){return!t||t.type!=="TSParenthesizedType"?!1:e==null||(0,n.default)(t,e)}function Yr(t,e){return!t||t.type!=="TSTypeOperator"?!1:e==null||(0,n.default)(t,e)}function Xr(t,e){return!t||t.type!=="TSIndexedAccessType"?!1:e==null||(0,n.default)(t,e)}function Jr(t,e){return!t||t.type!=="TSMappedType"?!1:e==null||(0,n.default)(t,e)}function Ur(t,e){return!t||t.type!=="TSTemplateLiteralType"?!1:e==null||(0,n.default)(t,e)}function Wr(t,e){return!t||t.type!=="TSLiteralType"?!1:e==null||(0,n.default)(t,e)}function $r(t,e){return!t||t.type!=="TSExpressionWithTypeArguments"?!1:e==null||(0,n.default)(t,e)}function Gr(t,e){return!t||t.type!=="TSInterfaceDeclaration"?!1:e==null||(0,n.default)(t,e)}function zr(t,e){return!t||t.type!=="TSInterfaceBody"?!1:e==null||(0,n.default)(t,e)}function Qr(t,e){return!t||t.type!=="TSTypeAliasDeclaration"?!1:e==null||(0,n.default)(t,e)}function Hr(t,e){return!t||t.type!=="TSInstantiationExpression"?!1:e==null||(0,n.default)(t,e)}function Zr(t,e){return!t||t.type!=="TSAsExpression"?!1:e==null||(0,n.default)(t,e)}function ea(t,e){return!t||t.type!=="TSSatisfiesExpression"?!1:e==null||(0,n.default)(t,e)}function ta(t,e){return!t||t.type!=="TSTypeAssertion"?!1:e==null||(0,n.default)(t,e)}function na(t,e){return!t||t.type!=="TSEnumBody"?!1:e==null||(0,n.default)(t,e)}function ra(t,e){return!t||t.type!=="TSEnumDeclaration"?!1:e==null||(0,n.default)(t,e)}function aa(t,e){return!t||t.type!=="TSEnumMember"?!1:e==null||(0,n.default)(t,e)}function ia(t,e){return!t||t.type!=="TSModuleDeclaration"?!1:e==null||(0,n.default)(t,e)}function sa(t,e){return!t||t.type!=="TSModuleBlock"?!1:e==null||(0,n.default)(t,e)}function oa(t,e){return!t||t.type!=="TSImportType"?!1:e==null||(0,n.default)(t,e)}function la(t,e){return!t||t.type!=="TSImportEqualsDeclaration"?!1:e==null||(0,n.default)(t,e)}function pa(t,e){return!t||t.type!=="TSExternalModuleReference"?!1:e==null||(0,n.default)(t,e)}function ua(t,e){return!t||t.type!=="TSNonNullExpression"?!1:e==null||(0,n.default)(t,e)}function ca(t,e){return!t||t.type!=="TSExportAssignment"?!1:e==null||(0,n.default)(t,e)}function da(t,e){return!t||t.type!=="TSNamespaceExportDeclaration"?!1:e==null||(0,n.default)(t,e)}function ya(t,e){return!t||t.type!=="TSTypeAnnotation"?!1:e==null||(0,n.default)(t,e)}function fa(t,e){return!t||t.type!=="TSTypeParameterInstantiation"?!1:e==null||(0,n.default)(t,e)}function Ta(t,e){return!t||t.type!=="TSTypeParameterDeclaration"?!1:e==null||(0,n.default)(t,e)}function ma(t,e){return!t||t.type!=="TSTypeParameter"?!1:e==null||(0,n.default)(t,e)}function Sa(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":case"ImportAttribute":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,n.default)(t,e)}function Ea(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,n.default)(t,e)}function ba(t,e){if(!t)return!1;switch(t.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return e==null||(0,n.default)(t,e)}function Aa(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,n.default)(t,e)}function Pa(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,n.default)(t,e)}function va(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,n.default)(t,e)}function xa(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,n.default)(t,e)}function s(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,n.default)(t,e)}function o(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,n.default)(t,e)}function p(t,e){if(!t)return!1;switch(t.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return e==null||(0,n.default)(t,e)}function y(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,n.default)(t,e)}function S(t,e){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return e==null||(0,n.default)(t,e)}function x(t,e){if(!t)return!1;switch(t.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return e==null||(0,n.default)(t,e)}function w(t,e){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,n.default)(t,e)}function U(t,e){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,n.default)(t,e)}function Z(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,n.default)(t,e)}function pe(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,n.default)(t,e)}function Xi(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,n.default)(t,e)}function Ji(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":case"TSImportEqualsDeclaration":break;case"Placeholder":if(t.expectedNode==="Declaration")break;default:return!1}return e==null||(0,n.default)(t,e)}function Ui(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(t.expectedNode==="Identifier")break;default:return!1}return e==null||(0,n.default)(t,e)}function Wi(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return e==null||(0,n.default)(t,e)}function $i(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,n.default)(t,e)}function Gi(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,n.default)(t,e)}function zi(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,n.default)(t,e)}function Qi(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,n.default)(t,e)}function Hi(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,n.default)(t,e)}function Zi(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return e==null||(0,n.default)(t,e)}function es(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return e==null||(0,n.default)(t,e)}function ts(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,n.default)(t,e)}function ns(t,e){if(!t)return!1;switch(t.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return e==null||(0,n.default)(t,e)}function rs(t,e){if(!t)return!1;switch(t.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(t.expectedNode==="Pattern")break;default:return!1}return e==null||(0,n.default)(t,e)}function as(t,e){if(!t)return!1;switch(t.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return e==null||(0,n.default)(t,e)}function wa(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,n.default)(t,e)}function is(t,e){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return e==null||(0,n.default)(t,e)}function ss(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,n.default)(t,e)}function os(t,e){return!t||t.type!=="ClassAccessorProperty"?!1:e==null||(0,n.default)(t,e)}function ls(t,e){if(!t)return!1;switch(t.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return e==null||(0,n.default)(t,e)}function ps(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,n.default)(t,e)}function us(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,n.default)(t,e)}function cs(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,n.default)(t,e)}function ds(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,n.default)(t,e)}function ys(t,e){if(!t)return!1;switch(t.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return e==null||(0,n.default)(t,e)}function fs(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,n.default)(t,e)}function Ts(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,n.default)(t,e)}function ms(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,n.default)(t,e)}function Ss(t,e){if(!t)return!1;switch(t.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return e==null||(0,n.default)(t,e)}function Es(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"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return e==null||(0,n.default)(t,e)}function bs(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,n.default)(t,e)}function As(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"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return e==null||(0,n.default)(t,e)}function Ps(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"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return e==null||(0,n.default)(t,e)}function vs(t,e){return(0,a.default)("isNumberLiteral","isNumericLiteral"),!t||t.type!=="NumberLiteral"?!1:e==null||(0,n.default)(t,e)}function xs(t,e){return(0,a.default)("isRegexLiteral","isRegExpLiteral"),!t||t.type!=="RegexLiteral"?!1:e==null||(0,n.default)(t,e)}function Is(t,e){return(0,a.default)("isRestProperty","isRestElement"),!t||t.type!=="RestProperty"?!1:e==null||(0,n.default)(t,e)}function gs(t,e){return(0,a.default)("isSpreadProperty","isSpreadElement"),!t||t.type!=="SpreadProperty"?!1:e==null||(0,n.default)(t,e)}function Os(t,e){return(0,a.default)("isModuleDeclaration","isImportOrExportDeclaration"),wa(t,e)}return T}var Xs;function Nl(){if(Xs)return Ra;Xs=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.default=i;var n=ee();function a(r){return(0,n.isMemberExpression)(r)||(0,n.isMetaProperty)(r)}function i(r,d,c){if(!a(r))return!1;const v=Array.isArray(d)?d:d.split("."),E=[];let A;for(A=r;a(A);A=(P=A.object)!=null?P:A.meta){var P;E.push(A.property)}if(E.push(A),E.length<v.length||!c&&E.length>v.length)return!1;for(let b=0,I=E.length-1;b<v.length;b++,I--){const g=E[I];let D;if((0,n.isIdentifier)(g))D=g.name;else if((0,n.isStringLiteral)(g))D=g.value;else if((0,n.isThisExpression)(g))D="this";else if((0,n.isSuper)(g))D="super";else if((0,n.isPrivateName)(g))D="#"+g.id.name;else return!1;if(v[b]!==D)return!1}return!0}return Ra}var Js;function _l(){if(Js)return ja;Js=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.default=a;var n=Nl();function a(i,r){const d=i.split(".");return c=>(0,n.default)(c,d,r)}return ja}var Us;function Ql(){if(Us)return Ia;Us=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.default=void 0;var n=_l();const a=(0,n.default)("React.Component");return Ia.default=a,Ia}var Ka={},Ws;function Hl(){if(Ws)return Ka;Ws=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=n;function n(a){return!!a&&/^[a-z]/.test(a)}return Ka}var qa={},Va={},hs={},f={},Xe={},Ns={},ne={},Ya={},Xa={},$s;function Bs(){if($s)return Xa;$s=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=a;var n=de();function a(i,r){if(i===r)return!0;if(i==null||n.ALIAS_KEYS[r])return!1;const d=n.FLIPPED_ALIAS_KEYS[r];return!!(d!=null&&d.includes(i))}return Xa}var Ja={},Gs;function Ll(){if(Gs)return Ja;Gs=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.default=a;var n=de();function a(i,r){if(i===r)return!0;const d=n.PLACEHOLDERS_ALIAS[i];return!!(d!=null&&d.includes(r))}return Ja}var zs;function Ca(){if(zs)return Ya;zs=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.default=d;var n=Cs(),a=Bs(),i=Ll(),r=de();function d(c,v,E){return v?(0,a.default)(v.type,c)?E===void 0?!0:(0,n.default)(v,E):!E&&v.type==="Placeholder"&&c in r.FLIPPED_ALIAS_KEYS?(0,i.default)(v.expectedNode,c):!1:!1}return Ya}var Ua={},_s={},We={},Qs;function Zl(){if(Qs)return We;Qs=1,Object.defineProperty(We,"__esModule",{value:!0}),We.isIdentifierChar=A,We.isIdentifierName=P,We.isIdentifierStart=E;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const i=new RegExp("["+n+"]"),r=new RegExp("["+n+a+"]");n=a=null;const d=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],c=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function v(b,I){let g=65536;for(let D=0,R=I.length;D<R;D+=2){if(g+=I[D],g>b)return!1;if(g+=I[D+1],g>=b)return!0}return!1}function E(b){return b<65?b===36:b<=90?!0:b<97?b===95:b<=122?!0:b<=65535?b>=170&&i.test(String.fromCharCode(b)):v(b,d)}function A(b){return b<48?b===36:b<58?!0:b<65?!1:b<=90?!0:b<97?b===95:b<=122?!0:b<=65535?b>=170&&r.test(String.fromCharCode(b)):v(b,d)||v(b,c)}function P(b){let I=!0;for(let g=0;g<b.length;g++){let D=b.charCodeAt(g);if((D&64512)===55296&&g+1<b.length){const R=b.charCodeAt(++g);(R&64512)===56320&&(D=65536+((D&1023)<<10)+(R&1023))}if(I){if(I=!1,!E(D))return!1}else if(!A(D))return!1}return!I}return We}var Ee={},Hs;function ep(){if(Hs)return Ee;Hs=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.isKeyword=A,Ee.isReservedWord=d,Ee.isStrictBindOnlyReservedWord=v,Ee.isStrictBindReservedWord=E,Ee.isStrictReservedWord=c;const n={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"]},a=new Set(n.keyword),i=new Set(n.strict),r=new Set(n.strictBind);function d(P,b){return b&&P==="await"||P==="enum"}function c(P,b){return d(P,b)||i.has(P)}function v(P){return r.has(P)}function E(P,b){return c(P,b)||v(P)}function A(P){return a.has(P)}return Ee}var Zs;function Ms(){return Zs||(Zs=1,(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isIdentifierChar",{enumerable:!0,get:function(){return a.isIdentifierChar}}),Object.defineProperty(n,"isIdentifierName",{enumerable:!0,get:function(){return a.isIdentifierName}}),Object.defineProperty(n,"isIdentifierStart",{enumerable:!0,get:function(){return a.isIdentifierStart}}),Object.defineProperty(n,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(n,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(n,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(n,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(n,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var a=Zl(),i=ep()})(_s)),_s}var eo;function Ba(){if(eo)return Ua;eo=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=a;var n=Ms();function a(i,r=!0){return typeof i!="string"||r&&((0,n.isKeyword)(i)||(0,n.isStrictReservedWord)(i,!0))?!1:(0,n.isIdentifierName)(i)}return Ua}var $e={},to;function tp(){if(to)return $e;to=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.readCodePoint=A,$e.readInt=E,$e.readStringContents=r;var n=function(P){return P>=48&&P<=57};const a={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},i={bin:P=>P===48||P===49,oct:P=>P>=48&&P<=55,dec:P=>P>=48&&P<=57,hex:P=>P>=48&&P<=57||P>=65&&P<=70||P>=97&&P<=102};function r(P,b,I,g,D,R){const h=I,L=g,N=D;let _="",M=null,V=I;const{length:G}=b;for(;;){if(I>=G){R.unterminated(h,L,N),_+=b.slice(V,I);break}const z=b.charCodeAt(I);if(d(P,z,b,I)){_+=b.slice(V,I);break}if(z===92){_+=b.slice(V,I);const Q=c(b,I,g,D,P==="template",R);Q.ch===null&&!M?M={pos:I,lineStart:g,curLine:D}:_+=Q.ch,{pos:I,lineStart:g,curLine:D}=Q,V=I}else z===8232||z===8233?(++I,++D,g=I):z===10||z===13?P==="template"?(_+=b.slice(V,I)+`
4
- `,++I,z===13&&b.charCodeAt(I)===10&&++I,++D,V=g=I):R.unterminated(h,L,N):++I}return{pos:I,str:_,firstInvalidLoc:M,lineStart:g,curLine:D,containsInvalid:!!M}}function d(P,b,I,g){return P==="template"?b===96||b===36&&I.charCodeAt(g+1)===123:b===(P==="double"?34:39)}function c(P,b,I,g,D,R){const h=!D;b++;const L=_=>({pos:b,ch:_,lineStart:I,curLine:g}),N=P.charCodeAt(b++);switch(N){case 110:return L(`
5
- `);case 114:return L("\r");case 120:{let _;return{code:_,pos:b}=v(P,b,I,g,2,!1,h,R),L(_===null?null:String.fromCharCode(_))}case 117:{let _;return{code:_,pos:b}=A(P,b,I,g,h,R),L(_===null?null:String.fromCodePoint(_))}case 116:return L(" ");case 98:return L("\b");case 118:return L("\v");case 102:return L("\f");case 13:P.charCodeAt(b)===10&&++b;case 10:I=b,++g;case 8232:case 8233:return L("");case 56:case 57:if(D)return L(null);R.strictNumericEscape(b-1,I,g);default:if(N>=48&&N<=55){const _=b-1;let M=/^[0-7]+/.exec(P.slice(_,b+2))[0],V=parseInt(M,8);V>255&&(M=M.slice(0,-1),V=parseInt(M,8)),b+=M.length-1;const G=P.charCodeAt(b);if(M!=="0"||G===56||G===57){if(D)return L(null);R.strictNumericEscape(_,I,g)}return L(String.fromCharCode(V))}return L(String.fromCharCode(N))}}function v(P,b,I,g,D,R,h,L){const N=b;let _;return{n:_,pos:b}=E(P,b,I,g,16,D,R,!1,L,!h),_===null&&(h?L.invalidEscapeSequence(N,I,g):b=N-1),{code:_,pos:b}}function E(P,b,I,g,D,R,h,L,N,_){const M=b,V=D===16?a.hex:a.decBinOct,G=D===16?i.hex:D===10?i.dec:D===8?i.oct:i.bin;let z=!1,Q=0;for(let H=0,oe=R??1/0;H<oe;++H){const re=P.charCodeAt(b);let te;if(re===95&&L!=="bail"){const ue=P.charCodeAt(b-1),ae=P.charCodeAt(b+1);if(L){if(Number.isNaN(ae)||!G(ae)||V.has(ue)||V.has(ae)){if(_)return{n:null,pos:b};N.unexpectedNumericSeparator(b,I,g)}}else{if(_)return{n:null,pos:b};N.numericSeparatorInEscapeSequence(b,I,g)}++b;continue}if(re>=97?te=re-97+10:re>=65?te=re-65+10:n(re)?te=re-48:te=1/0,te>=D){if(te<=9&&_)return{n:null,pos:b};if(te<=9&&N.invalidDigit(b,I,g,D))te=0;else if(h)te=0,z=!0;else break}++b,Q=Q*D+te}return b===M||R!=null&&b-M!==R||z?{n:null,pos:b}:{n:Q,pos:b}}function A(P,b,I,g,D,R){const h=P.charCodeAt(b);let L;if(h===123){if(++b,{code:L,pos:b}=v(P,b,I,g,P.indexOf("}",b)-b,!0,D,R),++b,L!==null&&L>1114111)if(D)R.invalidCodePoint(b,I,g);else return{code:null,pos:b}}else({code:L,pos:b}=v(P,b,I,g,4,!1,D,R));return{code:L,pos:b}}return $e}var k={},no;function Ma(){if(no)return k;no=1,Object.defineProperty(k,"__esModule",{value:!0}),k.UPDATE_OPERATORS=k.UNARY_OPERATORS=k.STRING_UNARY_OPERATORS=k.STATEMENT_OR_BLOCK_KEYS=k.NUMBER_UNARY_OPERATORS=k.NUMBER_BINARY_OPERATORS=k.LOGICAL_OPERATORS=k.INHERIT_KEYS=k.FOR_INIT_KEYS=k.FLATTENABLE_KEYS=k.EQUALITY_BINARY_OPERATORS=k.COMPARISON_BINARY_OPERATORS=k.COMMENT_KEYS=k.BOOLEAN_UNARY_OPERATORS=k.BOOLEAN_NUMBER_BINARY_OPERATORS=k.BOOLEAN_BINARY_OPERATORS=k.BINARY_OPERATORS=k.ASSIGNMENT_OPERATORS=void 0,k.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],k.FLATTENABLE_KEYS=["body","expressions"],k.FOR_INIT_KEYS=["left","init"],k.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const n=k.LOGICAL_OPERATORS=["||","&&","??"];k.UPDATE_OPERATORS=["++","--"];const a=k.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],i=k.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],r=k.COMPARISON_BINARY_OPERATORS=[...i,"in","instanceof"],d=k.BOOLEAN_BINARY_OPERATORS=[...r,...a],c=k.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];k.BINARY_OPERATORS=["+",...c,...d,"|>"],k.ASSIGNMENT_OPERATORS=["=","+=",...c.map(P=>P+"="),...n.map(P=>P+"=")];const v=k.BOOLEAN_UNARY_OPERATORS=["delete","!"],E=k.NUMBER_UNARY_OPERATORS=["+","-","~"],A=k.STRING_UNARY_OPERATORS=["typeof"];return k.UNARY_OPERATORS=["void","throw",...v,...E,...A],k.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},k.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),k.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding"),k}var q={},ro;function Se(){if(ro)return q;ro=1,Object.defineProperty(q,"__esModule",{value:!0}),q.allExpandedTypes=q.VISITOR_KEYS=q.NODE_UNION_SHAPES__PRIVATE=q.NODE_PARENT_VALIDATIONS=q.NODE_FIELDS=q.FLIPPED_ALIAS_KEYS=q.DEPRECATED_KEYS=q.BUILDER_KEYS=q.ALIAS_KEYS=void 0,q.arrayOf=h,q.arrayOfType=L,q.assertEach=_,q.assertNodeOrValueType=z,q.assertNodeType=G,q.assertOneOf=M,q.assertOptionalChainStart=oe,q.assertShape=H,q.assertValueType=Q,q.chain=re,q.default=ce,q.defineAliasedType=fe,q.validate=I,q.validateArrayOfType=N,q.validateOptional=D,q.validateOptionalType=R,q.validateType=g;var n=Ca(),a=ws();const i=q.VISITOR_KEYS={},r=q.ALIAS_KEYS={},d=q.FLIPPED_ALIAS_KEYS={},c=q.NODE_FIELDS={},v=q.BUILDER_KEYS={},E=q.DEPRECATED_KEYS={},A=q.NODE_PARENT_VALIDATIONS={},P=q.NODE_UNION_SHAPES__PRIVATE={};function b(B){return Array.isArray(B)?"array":B===null?"null":typeof B}function I(B){return{validate:B}}function g(...B){return I(G(...B))}function D(B){return{validate:B,optional:!0}}function R(...B){return{validate:G(...B),optional:!0}}function h(B){return re(Q("array"),_(B))}function L(...B){return h(G(...B))}function N(...B){return I(L(...B))}function _(B){const F=process.env.BABEL_TYPES_8_BREAKING?a.validateChild:()=>{};function K(j,Y,$){if(!Array.isArray($))return;let J=0;const X={toString(){return`${Y}[${J}]`}};for(;J<$.length;J++){const W=$[J];B(j,X,W),F(j,X,W)}}return K.each=B,K}function M(...B){function F(K,j,Y){if(!B.includes(Y))throw new TypeError(`Property ${j} expected value to be one of ${JSON.stringify(B)} but got ${JSON.stringify(Y)}`)}return F.oneOf=B,F}const V=q.allExpandedTypes=[];function G(...B){const F=new Set;V.push({types:B,set:F});function K(j,Y,$){const J=$?.type;if(J!=null){if(F.has(J)){(0,a.validateChild)(j,Y,$);return}if(J==="Placeholder"){for(const X of B)if((0,n.default)(X,$)){(0,a.validateChild)(j,Y,$);return}}}throw new TypeError(`Property ${Y} of ${j.type} expected node to be of a type ${JSON.stringify(B)} but instead got ${JSON.stringify(J)}`)}return K.oneOfNodeTypes=B,K}function z(...B){function F(K,j,Y){const $=b(Y);for(const J of B)if($===J||(0,n.default)(J,Y)){(0,a.validateChild)(K,j,Y);return}throw new TypeError(`Property ${j} of ${K.type} expected node to be of a type ${JSON.stringify(B)} but instead got ${JSON.stringify(Y?.type)}`)}return F.oneOfNodeOrValueTypes=B,F}function Q(B){function F(K,j,Y){if(b(Y)!==B)throw new TypeError(`Property ${j} expected type of ${B} but got ${b(Y)}`)}return F.type=B,F}function H(B){const F=Object.keys(B);function K(j,Y,$){const J=[];for(const X of F)try{(0,a.validateField)(j,X,$[X],B[X])}catch(W){if(W instanceof TypeError){J.push(W.message);continue}throw W}if(J.length)throw new TypeError(`Property ${Y} of ${j.type} expected to have the following:
6
- ${J.join(`
7
- `)}`)}return K.shapeOf=B,K}function oe(){function B(F){var K;let j=F;for(;F;){const{type:Y}=j;if(Y==="OptionalCallExpression"){if(j.optional)return;j=j.callee;continue}if(Y==="OptionalMemberExpression"){if(j.optional)return;j=j.object;continue}break}throw new TypeError(`Non-optional ${F.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(K=j)==null?void 0:K.type}`)}return B}function re(...B){function F(...K){for(const j of B)j(...K)}if(F.chainOf=B,B.length>=2&&"type"in B[0]&&B[0].type==="array"&&!("each"in B[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return F}const te=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),ue=new Set(["default","optional","deprecated","validate"]),ae={};function fe(...B){return(F,K={})=>{let j=K.aliases;if(!j){var Y;K.inherits&&(j=(Y=ae[K.inherits].aliases)==null?void 0:Y.slice()),j??(j=[]),K.aliases=j}const $=B.filter(J=>!j.includes(J));j.unshift(...$),ce(F,K)}}function ce(B,F={}){const K=F.inherits&&ae[F.inherits]||{};let j=F.fields;if(!j&&(j={},K.fields)){const X=Object.getOwnPropertyNames(K.fields);for(const W of X){const ie=K.fields[W],se=ie.default;if(Array.isArray(se)?se.length>0:se&&typeof se=="object")throw new Error("field defaults can only be primitives or empty arrays currently");j[W]={default:Array.isArray(se)?[]:se,optional:ie.optional,deprecated:ie.deprecated,validate:ie.validate}}}const Y=F.visitor||K.visitor||[],$=F.aliases||K.aliases||[],J=F.builder||K.builder||F.visitor||[];for(const X of Object.keys(F))if(!te.has(X))throw new Error(`Unknown type option "${X}" on ${B}`);F.deprecatedAlias&&(E[F.deprecatedAlias]=B);for(const X of Y.concat(J))j[X]=j[X]||{};for(const X of Object.keys(j)){const W=j[X];W.default!==void 0&&!J.includes(X)&&(W.optional=!0),W.default===void 0?W.default=null:!W.validate&&W.default!=null&&(W.validate=Q(b(W.default)));for(const ie of Object.keys(W))if(!ue.has(ie))throw new Error(`Unknown field key "${ie}" on ${B}.${X}`)}i[B]=F.visitor=Y,v[B]=F.builder=J,c[B]=F.fields=j,r[B]=F.aliases=$,$.forEach(X=>{d[X]=d[X]||[],d[X].push(B)}),F.validate&&(A[B]=F.validate),F.unionShape&&(P[B]=F.unionShape),ae[B]=F}return q}var ao;function Vi(){if(ao)return ne;ao=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.patternLikeCommon=ne.importAttributes=ne.functionTypeAnnotationCommon=ne.functionDeclarationCommon=ne.functionCommon=ne.classMethodOrPropertyUnionShapeCommon=ne.classMethodOrPropertyCommon=ne.classMethodOrDeclareMethodCommon=void 0;var n=Ca(),a=Ba(),i=Ms(),r=tp(),d=Ma(),c=Se();const v=(h=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,c.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:h?(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});ne.classMethodOrPropertyUnionShapeCommon=v;const E=(0,c.defineAliasedType)("Standardized");E("ArrayExpression",{fields:{elements:{validate:(0,c.arrayOf)((0,c.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),E("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){const h=(0,c.assertOneOf)(...d.ASSIGNMENT_OPERATORS),L=(0,c.assertOneOf)("=");return function(N,_,M){((0,n.default)("Pattern",N.left)?L:h)(N,_,M)}})(),{oneOf:d.ASSIGNMENT_OPERATORS}):(0,c.assertValueType)("string")},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"]}),E("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,c.assertOneOf)(...d.BINARY_OPERATORS)},left:{validate:(function(){const h=(0,c.assertNodeType)("Expression"),L=(0,c.assertNodeType)("Expression","PrivateName");return Object.assign(function(N,_,M){(N.operator==="in"?L:h)(N,_,M)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,c.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),E("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("string")}}}),E("Directive",{visitor:["value"],fields:{value:{validate:(0,c.assertNodeType)("DirectiveLiteral")}}}),E("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("string")}}}),E("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,c.arrayOfType)("Directive"),default:[]},body:(0,c.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),E("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,c.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),E("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,c.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,c.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,c.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,c.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,c.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),E("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,c.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),E("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"]}),E("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,c.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),E("DebuggerStatement",{aliases:["Statement"]}),E("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,c.assertNodeType)("Expression")},body:{validate:(0,c.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),E("EmptyStatement",{aliases:["Statement"]}),E("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,c.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),E("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}}}),E("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")}}}),E("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")}}});const A=()=>({params:(0,c.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});ne.functionCommon=A;const P=()=>({returnType:{validate:(0,c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,c.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});ne.functionTypeAnnotationCommon=P;const b=()=>Object.assign({},A(),{declare:{validate:(0,c.assertValueType)("boolean"),optional:!0},id:{validate:(0,c.assertNodeType)("Identifier"),optional:!0}});ne.functionDeclarationCommon=b,E("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},b(),P(),{body:{validate:(0,c.assertNodeType)("BlockStatement")},predicate:{validate:(0,c.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){const h=(0,c.assertNodeType)("Identifier");return function(L,N,_){(0,n.default)("ExportDefaultDeclaration",L)||h(_,"id",_.id)}})():void 0}),E("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},A(),P(),{id:{validate:(0,c.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,c.assertNodeType)("BlockStatement")},predicate:{validate:(0,c.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const I=()=>({typeAnnotation:{validate:(0,c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,c.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0}});ne.patternLikeCommon=I,E("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},I(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertValueType)("string"),Object.assign(function(h,L,N){if(!(0,a.default)(N,!1))throw new TypeError(`"${N}" is not a valid identifier name`)},{type:"string"})):(0,c.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(h,L,N){const _=/\.(\w+)$/.exec(L.toString());if(!_)return;const[,M]=_,V={computed:!1};if(M==="property"){if((0,n.default)("MemberExpression",h,V)||(0,n.default)("OptionalMemberExpression",h,V))return}else if(M==="key"){if((0,n.default)("Property",h,V)||(0,n.default)("Method",h,V))return}else if(M==="exported"){if((0,n.default)("ExportSpecifier",h))return}else if(M==="imported"){if((0,n.default)("ImportSpecifier",h,{imported:N}))return}else if(M==="meta"&&(0,n.default)("MetaProperty",h,{meta:N}))return;if(((0,i.isKeyword)(N.name)||(0,i.isReservedWord)(N.name,!1))&&N.name!=="this")throw new TypeError(`"${N.name}" is not a valid identifier`)}:void 0}),E("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")}}}),E("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,c.assertNodeType)("Identifier")},body:{validate:(0,c.assertNodeType)("Statement")}}}),E("StringLiteral",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),E("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,c.chain)((0,c.assertValueType)("number"),Object.assign(function(h,L,N){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),E("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),E("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),E("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,c.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertValueType)("string"),Object.assign(function(h,L,N){const _=/[^dgimsuvy]/.exec(N);if(_)throw new TypeError(`"${_[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,c.assertValueType)("string"),default:""}}}),E("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,c.assertOneOf)(...d.LOGICAL_OPERATORS)},left:{validate:(0,c.assertNodeType)("Expression")},right:{validate:(0,c.assertNodeType)("Expression")}}}),E("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,c.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,c.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,c.assertNodeType)("Expression","Super")},property:{validate:(function(){const h=(0,c.assertNodeType)("Identifier","PrivateName"),L=(0,c.assertNodeType)("Expression"),N=function(_,M,V){(_.computed?L:h)(_,M,V)};return N.oneOfNodeTypes=["Expression","Identifier","PrivateName"],N})()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,c.assertValueType)("boolean"),optional:!0}})}),E("NewExpression",{inherits:"CallExpression"}),E("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,c.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,c.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,c.arrayOfType)("Directive"),default:[]},body:(0,c.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),E("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,c.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),E("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},v(),{fields:Object.assign({},A(),P(),{kind:Object.assign({validate:(0,c.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){const h=(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),L=(0,c.assertNodeType)("Expression"),N=function(_,M,V){(_.computed?L:h)(_,M,V)};return N.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],N})()},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,c.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),E("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,c.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(function(){const h=(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),L=(0,c.assertNodeType)("Expression");return Object.assign(function(N,_,M){(N.computed?L:h)(N,_,M)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,c.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertValueType)("boolean"),Object.assign(function(h,L,N){if(N){if(h.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,n.default)("Identifier",h.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,c.assertValueType)("boolean"),default:!1},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){const h=(0,c.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),L=(0,c.assertNodeType)("Expression");return function(N,_,M){((0,n.default)("ObjectPattern",N)?h:L)(M,"value",M.value)}})():void 0}),E("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},I(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(h,L){const N=/(\w+)\[(\d+)\]/.exec(L.toString());if(!N)throw new Error("Internal Babel error: malformed key.");const[,_,M]=N;if(h[_].length>+M+1)throw new TypeError(`RestElement must be last element of ${_}`)}:void 0}),E("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,c.assertNodeType)("Expression"),optional:!0}}}),E("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,c.validateArrayOfType)("Expression")},aliases:["Expression"]}),E("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,c.assertNodeType)("Expression")}}}),E("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,c.assertNodeType)("Expression"),optional:!0},consequent:(0,c.validateArrayOfType)("Statement")}}),E("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,c.assertNodeType)("Expression")},cases:(0,c.validateArrayOfType)("SwitchCase")}}),E("ThisExpression",{aliases:["Expression"]}),E("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,c.assertNodeType)("Expression")}}}),E("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertNodeType)("BlockStatement"),Object.assign(function(h){if(!h.handler&&!h.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,c.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,c.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,c.assertNodeType)("BlockStatement")}}}),E("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,c.assertNodeType)("Expression")},operator:{validate:(0,c.assertOneOf)(...d.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),E("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)(...d.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),E("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:(0,c.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const h=(0,c.assertNodeType)("Identifier","Placeholder"),L=(0,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),N=(0,c.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(_,M,V){const{kind:G,declarations:z}=V,Q=(0,n.default)("ForXStatement",_,{left:V});if(Q&&z.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${_.type}`);for(const H of z)G==="const"||G==="let"||G==="var"?!Q&&!H.init?h(H,"id",H.id):L(H,"id",H.id):N(H,"id",H.id)}})():void 0}),E("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,c.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,c.assertValueType)("boolean")},init:{optional:!0,validate:(0,c.assertNodeType)("Expression")}}}),E("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,c.assertNodeType)("Expression")},body:{validate:(0,c.assertNodeType)("Statement")}}}),E("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,c.assertNodeType)("Expression")},body:{validate:(0,c.assertNodeType)("Statement")}}}),E("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},I(),{left:{validate:(0,c.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,c.assertNodeType)("Expression")},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0}})}),E("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},I(),{elements:{validate:(0,c.chain)((0,c.assertValueType)("array"),(0,c.assertEach)((0,c.assertNodeOrValueType)("null","PatternLike")))}})}),E("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},A(),P(),{expression:{validate:(0,c.assertValueType)("boolean")},body:{validate:(0,c.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,c.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),E("ClassBody",{visitor:["body"],fields:{body:(0,c.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),E("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],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.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,c.assertNodeType)("InterfaceExtends"),optional:!0}}}),E("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.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,c.arrayOfType)("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:process.env.BABEL_TYPES_8_BREAKING?(function(){const h=(0,c.assertNodeType)("Identifier");return function(L,N,_){(0,n.default)("ExportDefaultDeclaration",L)||h(_,"id",_.id)}})():void 0});const g=ne.importAttributes={attributes:{optional:!0,validate:(0,c.arrayOfType)("ImportAttribute")}};g.assertions={deprecated:!0,optional:!0,validate:(0,c.arrayOfType)("ImportAttribute")},E("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,c.assertNodeType)("StringLiteral")},exportKind:(0,c.validateOptional)((0,c.assertOneOf)("type","value"))},g)}),E("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,c.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,c.validateOptional)((0,c.assertOneOf)("value"))}}),E("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertNodeType)("Declaration"),Object.assign(function(h,L,N){if(N&&h.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(N&&h.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,c.assertNodeType)("Declaration")}},g,{specifiers:{default:[],validate:(0,c.arrayOf)((function(){const h=(0,c.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),L=(0,c.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(N,_,M){(N.source?h:L)(N,_,M)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):h})())},source:{validate:(0,c.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,c.validateOptional)((0,c.assertOneOf)("type","value"))})}),E("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}}}),E("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");const h=(0,c.assertNodeType)("VariableDeclaration"),L=(0,c.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(N,_,M){(0,n.default)("VariableDeclaration",M)?h(N,_,M):L(N,_,M)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,c.assertNodeType)("Expression")},body:{validate:(0,c.assertNodeType)("Statement")},await:{default:!1}}}),E("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},g,{module:{optional:!0,validate:(0,c.assertValueType)("boolean")},phase:{default:null,validate:(0,c.assertOneOf)("source","defer")},specifiers:(0,c.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,c.assertNodeType)("StringLiteral")},importKind:{validate:(0,c.assertOneOf)("type","typeof","value"),optional:!0}})}),E("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,c.assertNodeType)("Identifier")}}}),E("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,c.assertNodeType)("Identifier")}}}),E("ImportSpecifier",{visitor:["imported","local"],builder:["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}}}),E("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}}}),E("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertNodeType)("Identifier"),Object.assign(function(h,L,N){let _;switch(N.name){case"function":_="sent";break;case"new":_="target";break;case"import":_="meta";break}if(!(0,n.default)("Identifier",h.property,{name:_}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,c.assertNodeType)("Identifier")},property:{validate:(0,c.assertNodeType)("Identifier")}}});const D=()=>({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(){const h=(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),L=(0,c.assertNodeType)("Expression");return function(N,_,M){(N.computed?L:h)(N,_,M)}})(),(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});ne.classMethodOrPropertyCommon=D;const R=()=>Object.assign({},A(),D(),{params:(0,c.validateArrayOfType)("FunctionParameter","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.arrayOfType)("Decorator"),optional:!0}});return ne.classMethodOrDeclareMethodCommon=R,E("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},v(),{fields:Object.assign({},R(),P(),{body:{validate:(0,c.assertNodeType)("BlockStatement")}})})),E("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},I(),{properties:(0,c.validateArrayOfType)("RestElement","ObjectProperty")})}),E("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,c.assertNodeType)("Expression")}}}),E("Super",{aliases:["Expression"]}),E("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],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}}}),E("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(h){const L=h.value.raw;let N=!1;const _=()=>{throw new Error("Internal @babel/types error.")},{str:M,firstInvalidLoc:V}=(0,r.readStringContents)("template",L,0,0,0,{unterminated(){N=!0},strictNumericEscape:_,invalidEscapeSequence:_,numericSeparatorInEscapeSequence:_,unexpectedNumericSeparator:_,invalidDigit:_,invalidCodePoint:_});if(!N)throw new Error("Invalid raw");h.value.cooked=V?null:M})},tail:{default:!1}}}),E("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,c.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,c.chain)((0,c.assertValueType)("array"),(0,c.assertEach)((0,c.assertNodeType)("Expression","TSType")),function(h,L,N){if(h.quasis.length!==N.length+1)throw new TypeError(`Number of ${h.type} quasis should be exactly one more than the number of expressions.
8
- Expected ${N.length+1} quasis but got ${h.quasis.length}`)})}}}),E("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertValueType)("boolean"),Object.assign(function(h,L,N){if(N&&!h.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,c.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,c.assertNodeType)("Expression")}}}),E("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,c.assertNodeType)("Expression")}}}),E("Import",{aliases:["Expression"]}),E("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),E("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,c.assertNodeType)("Identifier")}}}),E("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,c.assertNodeType)("Expression")},property:{validate:(function(){const h=(0,c.assertNodeType)("Identifier"),L=(0,c.assertNodeType)("Expression");return Object.assign(function(N,_,M){(N.computed?L:h)(N,_,M)},{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")}}}),E("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,c.assertNodeType)("Expression")},arguments:(0,c.validateArrayOfType)("Expression","SpreadElement","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}})}),E("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},v(),{fields:Object.assign({},D(),{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.arrayOfType)("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}})})),E("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},v(!0),{fields:Object.assign({},D(),{key:{validate:(0,c.chain)((function(){const h=(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),L=(0,c.assertNodeType)("Expression");return function(N,_,M){(N.computed?L:h)(N,_,M)}})(),(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.arrayOfType)("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}})})),E("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],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.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,c.assertValueType)("boolean"),default:!1},readonly:{validate:(0,c.assertValueType)("boolean"),optional:!0},optional:{validate:(0,c.assertValueType)("boolean"),optional:!0},definite:{validate:(0,c.assertValueType)("boolean"),optional:!0},variance:{validate:(0,c.assertNodeType)("Variance"),optional:!0}}}),E("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},R(),P(),{kind:{validate:(0,c.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,c.assertNodeType)("PrivateName")},body:{validate:(0,c.assertNodeType)("BlockStatement")}})}),E("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,c.assertNodeType)("Identifier")}}}),E("StaticBlock",{visitor:["body"],fields:{body:(0,c.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),E("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,c.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,c.assertNodeType)("StringLiteral")}}}),ne}var io={},so;function np(){if(so)return io;so=1;var n=Vi(),a=Se();const i=(0,a.defineAliasedType)("Flow"),r=d=>{const c=d==="DeclareClass";i(d,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...c?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,a.validateType)("Identifier"),typeParameters:(0,a.validateOptionalType)("TypeParameterDeclaration"),extends:(0,a.validateOptional)((0,a.arrayOfType)("InterfaceExtends"))},c?{mixins:(0,a.validateOptional)((0,a.arrayOfType)("InterfaceExtends")),implements:(0,a.validateOptional)((0,a.arrayOfType)("ClassImplements"))}:{},{body:(0,a.validateType)("ObjectTypeAnnotation")})})};return i("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,a.validateType)("FlowType")}}),i("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,a.validate)((0,a.assertValueType)("boolean"))}}),i("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,a.validateType)("Identifier"),typeParameters:(0,a.validateOptionalType)("TypeParameterInstantiation")}}),r("DeclareClass"),i("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,a.validateType)("Identifier"),predicate:(0,a.validateOptionalType)("DeclaredPredicate")}}),r("DeclareInterface"),i("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,a.validateType)("Identifier","StringLiteral"),body:(0,a.validateType)("BlockStatement"),kind:(0,a.validateOptional)((0,a.assertOneOf)("CommonJS","ES"))}}),i("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,a.validateType)("TypeAnnotation")}}),i("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,a.validateType)("Identifier"),typeParameters:(0,a.validateOptionalType)("TypeParameterDeclaration"),right:(0,a.validateType)("FlowType")}}),i("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,a.validateType)("Identifier"),typeParameters:(0,a.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,a.validateOptionalType)("FlowType"),impltype:(0,a.validateOptionalType)("FlowType")}}),i("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,a.validateType)("Identifier")}}),i("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,a.validateOptionalType)("Flow"),specifiers:(0,a.validateOptional)((0,a.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,a.validateOptionalType)("StringLiteral"),default:(0,a.validateOptional)((0,a.assertValueType)("boolean"))},n.importAttributes)}),i("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,a.validateType)("StringLiteral"),exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))},n.importAttributes)}),i("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,a.validateType)("Flow")}}),i("ExistsTypeAnnotation",{aliases:["FlowType"]}),i("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,a.validateOptionalType)("TypeParameterDeclaration"),params:(0,a.validateArrayOfType)("FunctionTypeParam"),rest:(0,a.validateOptionalType)("FunctionTypeParam"),this:(0,a.validateOptionalType)("FunctionTypeParam"),returnType:(0,a.validateType)("FlowType")}}),i("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,a.validateOptionalType)("Identifier"),typeAnnotation:(0,a.validateType)("FlowType"),optional:(0,a.validateOptional)((0,a.assertValueType)("boolean"))}}),i("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,a.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,a.validateOptionalType)("TypeParameterInstantiation")}}),i("InferredPredicate",{aliases:["FlowPredicate"]}),i("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,a.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,a.validateOptionalType)("TypeParameterInstantiation")}}),r("InterfaceDeclaration"),i("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,a.validateOptional)((0,a.arrayOfType)("InterfaceExtends")),body:(0,a.validateType)("ObjectTypeAnnotation")}}),i("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,a.validate)((0,a.arrayOfType)("FlowType"))}}),i("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,a.validateType)("FlowType")}}),i("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,a.validate)((0,a.assertValueType)("number"))}}),i("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,a.validate)((0,a.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,a.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,a.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,a.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,a.assertValueType)("boolean"),default:!1},inexact:(0,a.validateOptional)((0,a.assertValueType)("boolean"))}}),i("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,a.validateType)("Identifier"),value:(0,a.validateType)("FlowType"),optional:(0,a.validate)((0,a.assertValueType)("boolean")),static:(0,a.validate)((0,a.assertValueType)("boolean")),method:(0,a.validate)((0,a.assertValueType)("boolean"))}}),i("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,a.validateType)("FlowType"),static:(0,a.validate)((0,a.assertValueType)("boolean"))}}),i("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,a.validateOptionalType)("Identifier"),key:(0,a.validateType)("FlowType"),value:(0,a.validateType)("FlowType"),static:(0,a.validate)((0,a.assertValueType)("boolean")),variance:(0,a.validateOptionalType)("Variance")}}),i("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,a.validateType)("Identifier","StringLiteral"),value:(0,a.validateType)("FlowType"),kind:(0,a.validate)((0,a.assertOneOf)("init","get","set")),static:(0,a.validate)((0,a.assertValueType)("boolean")),proto:(0,a.validate)((0,a.assertValueType)("boolean")),optional:(0,a.validate)((0,a.assertValueType)("boolean")),variance:(0,a.validateOptionalType)("Variance"),method:(0,a.validate)((0,a.assertValueType)("boolean"))}}),i("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,a.validateType)("FlowType")}}),i("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,a.validateType)("Identifier"),typeParameters:(0,a.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,a.validateOptionalType)("FlowType"),impltype:(0,a.validateType)("FlowType")}}),i("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,a.validateType)("Identifier"),qualification:(0,a.validateType)("Identifier","QualifiedTypeIdentifier")}}),i("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,a.validate)((0,a.assertValueType)("string"))}}),i("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,a.validate)((0,a.arrayOfType)("FlowType"))}}),i("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,a.validateType)("FlowType")}}),i("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,a.validateType)("Identifier"),typeParameters:(0,a.validateOptionalType)("TypeParameterDeclaration"),right:(0,a.validateType)("FlowType")}}),i("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,a.validateType)("FlowType")}}),i("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,a.validateType)("Expression"),typeAnnotation:(0,a.validateType)("TypeAnnotation")}}),i("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,a.validate)((0,a.assertValueType)("string")),bound:(0,a.validateOptionalType)("TypeAnnotation"),default:(0,a.validateOptionalType)("FlowType"),variance:(0,a.validateOptionalType)("Variance")}}),i("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,a.validate)((0,a.arrayOfType)("TypeParameter"))}}),i("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,a.validate)((0,a.arrayOfType)("FlowType"))}}),i("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,a.validate)((0,a.arrayOfType)("FlowType"))}}),i("Variance",{builder:["kind"],fields:{kind:(0,a.validate)((0,a.assertOneOf)("minus","plus"))}}),i("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,a.validateType)("Identifier"),body:(0,a.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),i("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,a.validate)((0,a.assertValueType)("boolean")),members:(0,a.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,a.validate)((0,a.assertValueType)("boolean"))}}),i("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,a.validate)((0,a.assertValueType)("boolean")),members:(0,a.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,a.validate)((0,a.assertValueType)("boolean"))}}),i("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,a.validate)((0,a.assertValueType)("boolean")),members:(0,a.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,a.validate)((0,a.assertValueType)("boolean"))}}),i("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,a.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,a.validate)((0,a.assertValueType)("boolean"))}}),i("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,a.validateType)("Identifier"),init:(0,a.validateType)("BooleanLiteral")}}),i("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,a.validateType)("Identifier"),init:(0,a.validateType)("NumericLiteral")}}),i("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,a.validateType)("Identifier"),init:(0,a.validateType)("StringLiteral")}}),i("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,a.validateType)("Identifier")}}),i("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,a.validateType)("FlowType"),indexType:(0,a.validateType)("FlowType")}}),i("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,a.validateType)("FlowType"),indexType:(0,a.validateType)("FlowType"),optional:(0,a.validate)((0,a.assertValueType)("boolean"))}}),io}var oo={},lo;function rp(){if(lo)return oo;lo=1;var n=Se();const a=(0,n.defineAliasedType)("JSX");return a("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,n.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),a("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),a("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,n.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,n.assertNodeType)("JSXClosingElement")},children:(0,n.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,n.assertValueType)("boolean"),optional:!0}})}),a("JSXEmptyExpression",{}),a("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,n.assertNodeType)("Expression","JSXEmptyExpression")}}}),a("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),a("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,n.assertValueType)("string")}}}),a("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,n.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,n.assertNodeType)("JSXIdentifier")}}}),a("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,n.assertNodeType)("JSXIdentifier")},name:{validate:(0,n.assertNodeType)("JSXIdentifier")}}}),a("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,n.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,n.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,n.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),a("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,n.assertNodeType)("Expression")}}}),a("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}}}),a("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,n.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,n.assertNodeType)("JSXClosingFragment")},children:(0,n.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),a("JSXOpeningFragment",{aliases:["Immutable"]}),a("JSXClosingFragment",{aliases:["Immutable"]}),oo}var po={},me={},uo;function Cl(){if(uo)return me;uo=1,Object.defineProperty(me,"__esModule",{value:!0}),me.PLACEHOLDERS_FLIPPED_ALIAS=me.PLACEHOLDERS_ALIAS=me.PLACEHOLDERS=void 0;var n=Se();const a=me.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],i=me.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const d of a){const c=n.ALIAS_KEYS[d];c!=null&&c.length&&(i[d]=c)}const r=me.PLACEHOLDERS_FLIPPED_ALIAS={};return Object.keys(i).forEach(d=>{i[d].forEach(c=>{hasOwnProperty.call(r,c)||(r[c]=[]),r[c].push(d)})}),me}var co;function ap(){if(co)return po;co=1;var n=Se(),a=Cl(),i=Vi();const r=(0,n.defineAliasedType)("Miscellaneous");return r("Noop",{visitor:[]}),r("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,n.assertNodeType)("Identifier")},expectedNode:{validate:(0,n.assertOneOf)(...a.PLACEHOLDERS)}},(0,i.patternLikeCommon)())}),r("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,n.assertValueType)("string")}}}),po}var yo={},fo;function ip(){if(fo)return yo;fo=1;var n=Se();return(0,n.default)("ArgumentPlaceholder",{}),(0,n.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,n.assertNodeType)("Expression")},callee:{validate:(0,n.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,n.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")},async:{validate:(0,n.assertValueType)("boolean"),default:!1}}}),(0,n.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,n.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,n.default)("TupleExpression",{fields:{elements:{validate:(0,n.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,n.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,n.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,n.assertNodeType)("Program")}},aliases:["Expression"]}),(0,n.default)("TopicReference",{aliases:["Expression"]}),(0,n.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,n.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,n.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,n.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]}),yo}var To={},mo;function sp(){if(mo)return To;mo=1;var n=Se(),a=Vi(),i=Ca();const r=(0,n.defineAliasedType)("TypeScript"),d=(0,n.assertValueType)("boolean"),c=()=>({returnType:{validate:(0,n.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,n.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});r("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.arrayOfType)("Decorator"),optional:!0}}}),r("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,a.functionDeclarationCommon)(),c())}),r("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,a.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,a.classMethodOrDeclareMethodCommon)(),c())})),r("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,n.validateType)("TSEntityName"),right:(0,n.validateType)("Identifier")}});const v=()=>({typeParameters:(0,n.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,n.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation")}),E={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:v()};r("TSCallSignatureDeclaration",E),r("TSConstructSignatureDeclaration",E);const A=()=>({key:(0,n.validateType)("Expression"),computed:{default:!1},optional:(0,n.validateOptional)(d)});r("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},A(),{readonly:(0,n.validateOptional)(d),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,n.assertOneOf)("get","set")}})}),r("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},v(),A(),{kind:{validate:(0,n.assertOneOf)("method","get","set")}})}),r("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,n.validateOptional)(d),static:(0,n.validateOptional)(d),parameters:(0,n.validateArrayOfType)("Identifier"),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation")}});const P=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const D of P)r(D,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});r("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const b={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};r("TSFunctionType",Object.assign({},b,{fields:v()})),r("TSConstructorType",Object.assign({},b,{fields:Object.assign({},v(),{abstract:(0,n.validateOptional)(d)})})),r("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,n.validateType)("TSEntityName"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}}),r("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)(d)}}),r("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,n.validateType)("TSEntityName","TSImportType"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}}),r("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,n.validateArrayOfType)("TSTypeElement")}}),r("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,n.validateType)("TSType")}}),r("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,n.validateArrayOfType)("TSType","TSNamedTupleMember")}}),r("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("TSType")}}),r("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("TSType")}}),r("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,n.validateType)("Identifier"),optional:{validate:d,default:!1},elementType:(0,n.validateType)("TSType")}});const I={aliases:["TSType"],visitor:["types"],fields:{types:(0,n.validateArrayOfType)("TSType")}};r("TSUnionType",I),r("TSIntersectionType",I),r("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")}}),r("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,n.validateType)("TSTypeParameter")}}),r("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("TSType")}}),r("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,n.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,n.validateType)("TSType")}}),r("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,n.validateType)("TSType"),indexType:(0,n.validateType)("TSType")}}),r("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,n.validateType)("TSTypeParameter")},{readonly:(0,n.validateOptional)((0,n.assertOneOf)(!0,!1,"+","-")),optional:(0,n.validateOptional)((0,n.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,n.validateOptionalType)("TSType"),nameType:(0,n.validateOptionalType)("TSType")})}),r("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,n.validateArrayOfType)("TemplateElement"),types:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("TSType")),function(D,R,h){if(D.quasis.length!==h.length+1)throw new TypeError(`Number of ${D.type} quasis should be exactly one more than the number of types.
9
- Expected ${h.length+1} quasis but got ${D.quasis.length}`)})}}}),r("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){const D=(0,n.assertNodeType)("NumericLiteral","BigIntLiteral"),R=(0,n.assertOneOf)("-"),h=(0,n.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),L=function(N,_,M){(0,i.default)("UnaryExpression",M)?(R(M,"operator",M.operator),D(M,"argument",M.argument)):h(N,_,M)};return L.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],L})()}}}),r("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,n.validateType)("TSEntityName"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}}),r("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,n.validateOptional)(d),id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,n.validateOptional)((0,n.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,n.validateType)("TSInterfaceBody")}}),r("TSInterfaceBody",{visitor:["body"],fields:{body:(0,n.validateArrayOfType)("TSTypeElement")}}),r("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,n.validateOptional)(d),id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,n.validateType)("TSType")}}),r("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,n.validateType)("Expression"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}});const g={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,n.validateType)("Expression"),typeAnnotation:(0,n.validateType)("TSType")}};return r("TSAsExpression",g),r("TSSatisfiesExpression",g),r("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,n.validateType)("TSType"),expression:(0,n.validateType)("Expression")}}),r("TSEnumBody",{visitor:["members"],fields:{members:(0,n.validateArrayOfType)("TSEnumMember")}}),r("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,n.validateOptional)(d),const:(0,n.validateOptional)(d),id:(0,n.validateType)("Identifier"),members:(0,n.validateArrayOfType)("TSEnumMember"),initializer:(0,n.validateOptionalType)("Expression"),body:(0,n.validateOptionalType)("TSEnumBody")}}),r("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,n.validateType)("Identifier","StringLiteral"),initializer:(0,n.validateOptionalType)("Expression")}}),r("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,n.assertOneOf)("global","module","namespace")},declare:(0,n.validateOptional)(d)},{global:(0,n.validateOptional)(d)},{id:(0,n.validateType)("Identifier","StringLiteral"),body:(0,n.validateType)("TSModuleBlock","TSModuleDeclaration")})}),r("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,n.validateArrayOfType)("Statement")}}),r("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,n.validateType)("StringLiteral")},{qualifier:(0,n.validateOptionalType)("TSEntityName")},{typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,n.assertNodeType)("ObjectExpression"),optional:!0}})}),r("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,n.validate)(d)},{id:(0,n.validateType)("Identifier"),moduleReference:(0,n.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,n.assertOneOf)("type","value"),optional:!0}})}),r("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,n.validateType)("StringLiteral")}}),r("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,n.validateType)("Expression")}}),r("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,n.validateType)("Expression")}}),r("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,n.validateType)("Identifier")}}),r("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,n.assertNodeType)("TSType")}}}),r("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,n.validateArrayOfType)("TSType")}}),r("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,n.validateArrayOfType)("TSTypeParameter")}}),r("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}}}),To}var ga={},So;function op(){return So||(So=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.DEPRECATED_ALIASES=void 0,ga.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}),ga}var Eo;function de(){return Eo||(Eo=1,(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ALIAS_KEYS",{enumerable:!0,get:function(){return a.ALIAS_KEYS}}),Object.defineProperty(n,"BUILDER_KEYS",{enumerable:!0,get:function(){return a.BUILDER_KEYS}}),Object.defineProperty(n,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return r.DEPRECATED_ALIASES}}),Object.defineProperty(n,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return a.DEPRECATED_KEYS}}),Object.defineProperty(n,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return a.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(n,"NODE_FIELDS",{enumerable:!0,get:function(){return a.NODE_FIELDS}}),Object.defineProperty(n,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return a.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(n,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return a.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(n,"PLACEHOLDERS",{enumerable:!0,get:function(){return i.PLACEHOLDERS}}),Object.defineProperty(n,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_ALIAS}}),Object.defineProperty(n,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_FLIPPED_ALIAS}}),n.TYPES=void 0,Object.defineProperty(n,"VISITOR_KEYS",{enumerable:!0,get:function(){return a.VISITOR_KEYS}}),Vi(),np(),rp(),ap(),ip(),sp();var a=Se(),i=Cl(),r=op();Object.keys(r.DEPRECATED_ALIASES).forEach(d=>{a.FLIPPED_ALIAS_KEYS[d]=a.FLIPPED_ALIAS_KEYS[r.DEPRECATED_ALIASES[d]]});for(const{types:d,set:c}of a.allExpandedTypes)for(const v of d){const E=a.FLIPPED_ALIAS_KEYS[v];E?E.forEach(c.add,c):c.add(v)}n.TYPES=[].concat(Object.keys(a.VISITOR_KEYS),Object.keys(a.FLIPPED_ALIAS_KEYS),Object.keys(a.DEPRECATED_KEYS))})(Ns)),Ns}var bo;function ws(){if(bo)return Xe;bo=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.default=a,Xe.validateChild=d,Xe.validateField=r,Xe.validateInternal=i;var n=de();function a(c,v,E){if(!c)return;const A=n.NODE_FIELDS[c.type];if(!A)return;const P=A[v];r(c,v,E,P),d(c,v,E)}function i(c,v,E,A,P){if(c!=null&&c.validate&&!(c.optional&&A==null)&&(c.validate(v,E,A),P)){var b;const I=A.type;if(I==null)return;(b=n.NODE_PARENT_VALIDATIONS[I])==null||b.call(n.NODE_PARENT_VALIDATIONS,v,E,A)}}function r(c,v,E,A){A!=null&&A.validate&&(A.optional&&E==null||A.validate(c,v,E))}function d(c,v,E){var A;const P=E?.type;P!=null&&((A=n.NODE_PARENT_VALIDATIONS[P])==null||A.call(n.NODE_PARENT_VALIDATIONS,c,v,E))}return Xe}var Ao;function Bl(){if(Ao)return f;Ao=1,Object.defineProperty(f,"__esModule",{value:!0}),f.anyTypeAnnotation=St,f.argumentPlaceholder=Wn,f.arrayExpression=v,f.arrayPattern=Be,f.arrayTypeAnnotation=Et,f.arrowFunctionExpression=Me,f.assignmentExpression=E,f.assignmentPattern=Ce,f.awaitExpression=it,f.bigIntLiteral=c,f.binaryExpression=A,f.bindExpression=$n,f.blockStatement=g,f.booleanLiteral=F,f.booleanLiteralTypeAnnotation=At,f.booleanTypeAnnotation=bt,f.breakStatement=D,f.callExpression=R,f.catchClause=h,f.classAccessorProperty=ct,f.classBody=we,f.classDeclaration=Re,f.classExpression=je,f.classImplements=vt,f.classMethod=He,f.classPrivateMethod=yt,f.classPrivateProperty=dt,f.classProperty=ut,f.conditionalExpression=L,f.continueStatement=N,f.debuggerStatement=_,f.decimalLiteral=er,f.declareClass=xt,f.declareExportAllDeclaration=Ct,f.declareExportDeclaration=Lt,f.declareFunction=It,f.declareInterface=gt,f.declareModule=Ot,f.declareModuleExports=Dt,f.declareOpaqueType=Nt,f.declareTypeAlias=ht,f.declareVariable=_t,f.declaredPredicate=Bt,f.decorator=Gn,f.directive=b,f.directiveLiteral=I,f.doExpression=zn,f.doWhileStatement=M,f.emptyStatement=V,f.emptyTypeAnnotation=Xt,f.enumBooleanBody=bn,f.enumBooleanMember=xn,f.enumDeclaration=En,f.enumDefaultedMember=On,f.enumNumberBody=An,f.enumNumberMember=In,f.enumStringBody=Pn,f.enumStringMember=gn,f.enumSymbolBody=vn,f.existsTypeAnnotation=Mt,f.exportAllDeclaration=Fe,f.exportDefaultDeclaration=ke,f.exportDefaultSpecifier=Qn,f.exportNamedDeclaration=Ke,f.exportNamespaceSpecifier=ot,f.exportSpecifier=qe,f.expressionStatement=G,f.file=z,f.forInStatement=Q,f.forOfStatement=Te,f.forStatement=H,f.functionDeclaration=oe,f.functionExpression=re,f.functionTypeAnnotation=wt,f.functionTypeParam=jt,f.genericTypeAnnotation=Rt,f.identifier=te,f.ifStatement=ue,f.import=st,f.importAttribute=mt,f.importDeclaration=Ve,f.importDefaultSpecifier=Ye,f.importExpression=ze,f.importNamespaceSpecifier=C,f.importSpecifier=Ge,f.indexedAccessType=Dn,f.inferredPredicate=Ft,f.interfaceDeclaration=Kt,f.interfaceExtends=kt,f.interfaceTypeAnnotation=qt,f.interpreterDirective=P,f.intersectionTypeAnnotation=Vt,f.jSXAttribute=f.jsxAttribute=Nn,f.jSXClosingElement=f.jsxClosingElement=_n,f.jSXClosingFragment=f.jsxClosingFragment=Yn,f.jSXElement=f.jsxElement=Ln,f.jSXEmptyExpression=f.jsxEmptyExpression=Cn,f.jSXExpressionContainer=f.jsxExpressionContainer=Bn,f.jSXFragment=f.jsxFragment=qn,f.jSXIdentifier=f.jsxIdentifier=wn,f.jSXMemberExpression=f.jsxMemberExpression=jn,f.jSXNamespacedName=f.jsxNamespacedName=Rn,f.jSXOpeningElement=f.jsxOpeningElement=Fn,f.jSXOpeningFragment=f.jsxOpeningFragment=Vn,f.jSXSpreadAttribute=f.jsxSpreadAttribute=kn,f.jSXSpreadChild=f.jsxSpreadChild=Mn,f.jSXText=f.jsxText=Kn,f.labeledStatement=ae,f.logicalExpression=j,f.memberExpression=Y,f.metaProperty=Qe,f.mixedTypeAnnotation=Yt,f.moduleExpression=tr,f.newExpression=$,f.noop=Xn,f.nullLiteral=B,f.nullLiteralTypeAnnotation=Pt,f.nullableTypeAnnotation=Jt,f.numberLiteral=Aa,f.numberLiteralTypeAnnotation=Ut,f.numberTypeAnnotation=Wt,f.numericLiteral=ce,f.objectExpression=X,f.objectMethod=W,f.objectPattern=Ze,f.objectProperty=ie,f.objectTypeAnnotation=$t,f.objectTypeCallProperty=zt,f.objectTypeIndexer=Qt,f.objectTypeInternalSlot=Gt,f.objectTypeProperty=Ht,f.objectTypeSpreadProperty=Zt,f.opaqueType=en,f.optionalCallExpression=pt,f.optionalIndexedAccessType=hn,f.optionalMemberExpression=lt,f.parenthesizedExpression=Pe,f.pipelineBareFunction=ar,f.pipelinePrimaryTopicReference=ir,f.pipelineTopicExpression=rr,f.placeholder=Jn,f.privateName=ft,f.program=J,f.qualifiedTypeIdentifier=tn,f.recordExpression=Hn,f.regExpLiteral=K,f.regexLiteral=Pa,f.restElement=se,f.restProperty=va,f.returnStatement=be,f.sequenceExpression=Ae,f.spreadElement=Ue,f.spreadProperty=xa,f.staticBlock=Tt,f.stringLiteral=fe,f.stringLiteralTypeAnnotation=nn,f.stringTypeAnnotation=rn,f.super=et,f.switchCase=ye,f.switchStatement=ve,f.symbolTypeAnnotation=an,f.taggedTemplateExpression=tt,f.templateElement=nt,f.templateLiteral=rt,f.thisExpression=xe,f.thisTypeAnnotation=sn,f.throwStatement=Ie,f.topicReference=nr,f.tryStatement=ge,f.tSAnyKeyword=f.tsAnyKeyword=mr,f.tSArrayType=f.tsArrayType=jr,f.tSAsExpression=f.tsAsExpression=na,f.tSBigIntKeyword=f.tsBigIntKeyword=Er,f.tSBooleanKeyword=f.tsBooleanKeyword=Sr,f.tSCallSignatureDeclaration=f.tsCallSignatureDeclaration=cr,f.tSConditionalType=f.tsConditionalType=Yr,f.tSConstructSignatureDeclaration=f.tsConstructSignatureDeclaration=dr,f.tSConstructorType=f.tsConstructorType=Lr,f.tSDeclareFunction=f.tsDeclareFunction=lr,f.tSDeclareMethod=f.tsDeclareMethod=pr,f.tSEnumBody=f.tsEnumBody=ia,f.tSEnumDeclaration=f.tsEnumDeclaration=sa,f.tSEnumMember=f.tsEnumMember=oa,f.tSExportAssignment=f.tsExportAssignment=fa,f.tSExpressionWithTypeArguments=f.tsExpressionWithTypeArguments=Qr,f.tSExternalModuleReference=f.tsExternalModuleReference=da,f.tSFunctionType=f.tsFunctionType=_r,f.tSImportEqualsDeclaration=f.tsImportEqualsDeclaration=ca,f.tSImportType=f.tsImportType=ua,f.tSIndexSignature=f.tsIndexSignature=Tr,f.tSIndexedAccessType=f.tsIndexedAccessType=Wr,f.tSInferType=f.tsInferType=Xr,f.tSInstantiationExpression=f.tsInstantiationExpression=ta,f.tSInterfaceBody=f.tsInterfaceBody=Zr,f.tSInterfaceDeclaration=f.tsInterfaceDeclaration=Hr,f.tSIntersectionType=f.tsIntersectionType=Vr,f.tSIntrinsicKeyword=f.tsIntrinsicKeyword=br,f.tSLiteralType=f.tsLiteralType=zr,f.tSMappedType=f.tsMappedType=$r,f.tSMethodSignature=f.tsMethodSignature=fr,f.tSModuleBlock=f.tsModuleBlock=pa,f.tSModuleDeclaration=f.tsModuleDeclaration=la,f.tSNamedTupleMember=f.tsNamedTupleMember=Kr,f.tSNamespaceExportDeclaration=f.tsNamespaceExportDeclaration=Ta,f.tSNeverKeyword=f.tsNeverKeyword=Ar,f.tSNonNullExpression=f.tsNonNullExpression=ya,f.tSNullKeyword=f.tsNullKeyword=Pr,f.tSNumberKeyword=f.tsNumberKeyword=vr,f.tSObjectKeyword=f.tsObjectKeyword=xr,f.tSOptionalType=f.tsOptionalType=Fr,f.tSParameterProperty=f.tsParameterProperty=or,f.tSParenthesizedType=f.tsParenthesizedType=Jr,f.tSPropertySignature=f.tsPropertySignature=yr,f.tSQualifiedName=f.tsQualifiedName=ur,f.tSRestType=f.tsRestType=kr,f.tSSatisfiesExpression=f.tsSatisfiesExpression=ra,f.tSStringKeyword=f.tsStringKeyword=Ir,f.tSSymbolKeyword=f.tsSymbolKeyword=gr,f.tSTemplateLiteralType=f.tsTemplateLiteralType=Gr,f.tSThisType=f.tsThisType=Nr,f.tSTupleType=f.tsTupleType=Rr,f.tSTypeAliasDeclaration=f.tsTypeAliasDeclaration=ea,f.tSTypeAnnotation=f.tsTypeAnnotation=ma,f.tSTypeAssertion=f.tsTypeAssertion=aa,f.tSTypeLiteral=f.tsTypeLiteral=wr,f.tSTypeOperator=f.tsTypeOperator=Ur,f.tSTypeParameter=f.tsTypeParameter=ba,f.tSTypeParameterDeclaration=f.tsTypeParameterDeclaration=Ea,f.tSTypeParameterInstantiation=f.tsTypeParameterInstantiation=Sa,f.tSTypePredicate=f.tsTypePredicate=Br,f.tSTypeQuery=f.tsTypeQuery=Mr,f.tSTypeReference=f.tsTypeReference=Cr,f.tSUndefinedKeyword=f.tsUndefinedKeyword=Or,f.tSUnionType=f.tsUnionType=qr,f.tSUnknownKeyword=f.tsUnknownKeyword=Dr,f.tSVoidKeyword=f.tsVoidKeyword=hr,f.tupleExpression=Zn,f.tupleTypeAnnotation=on,f.typeAlias=pn,f.typeAnnotation=un,f.typeCastExpression=cn,f.typeParameter=dn,f.typeParameterDeclaration=yn,f.typeParameterInstantiation=fn,f.typeofTypeAnnotation=ln,f.unaryExpression=Oe,f.unionTypeAnnotation=Tn,f.updateExpression=De,f.v8IntrinsicIdentifier=Un,f.variableDeclaration=he,f.variableDeclarator=Ne,f.variance=mn,f.voidPattern=sr,f.voidTypeAnnotation=Sn,f.whileStatement=_e,f.withStatement=Le,f.yieldExpression=at;var n=ws(),a=La(),i=Se();const{validateInternal:r}=n,{NODE_FIELDS:d}=i;function c(s){typeof s=="bigint"&&(s=s.toString());const o={type:"BigIntLiteral",value:s},p=d.BigIntLiteral;return r(p.value,o,"value",s),o}function v(s=[]){const o={type:"ArrayExpression",elements:s},p=d.ArrayExpression;return r(p.elements,o,"elements",s,1),o}function E(s,o,p){const y={type:"AssignmentExpression",operator:s,left:o,right:p},S=d.AssignmentExpression;return r(S.operator,y,"operator",s),r(S.left,y,"left",o,1),r(S.right,y,"right",p,1),y}function A(s,o,p){const y={type:"BinaryExpression",operator:s,left:o,right:p},S=d.BinaryExpression;return r(S.operator,y,"operator",s),r(S.left,y,"left",o,1),r(S.right,y,"right",p,1),y}function P(s){const o={type:"InterpreterDirective",value:s},p=d.InterpreterDirective;return r(p.value,o,"value",s),o}function b(s){const o={type:"Directive",value:s},p=d.Directive;return r(p.value,o,"value",s,1),o}function I(s){const o={type:"DirectiveLiteral",value:s},p=d.DirectiveLiteral;return r(p.value,o,"value",s),o}function g(s,o=[]){const p={type:"BlockStatement",body:s,directives:o},y=d.BlockStatement;return r(y.body,p,"body",s,1),r(y.directives,p,"directives",o,1),p}function D(s=null){const o={type:"BreakStatement",label:s},p=d.BreakStatement;return r(p.label,o,"label",s,1),o}function R(s,o){const p={type:"CallExpression",callee:s,arguments:o},y=d.CallExpression;return r(y.callee,p,"callee",s,1),r(y.arguments,p,"arguments",o,1),p}function h(s=null,o){const p={type:"CatchClause",param:s,body:o},y=d.CatchClause;return r(y.param,p,"param",s,1),r(y.body,p,"body",o,1),p}function L(s,o,p){const y={type:"ConditionalExpression",test:s,consequent:o,alternate:p},S=d.ConditionalExpression;return r(S.test,y,"test",s,1),r(S.consequent,y,"consequent",o,1),r(S.alternate,y,"alternate",p,1),y}function N(s=null){const o={type:"ContinueStatement",label:s},p=d.ContinueStatement;return r(p.label,o,"label",s,1),o}function _(){return{type:"DebuggerStatement"}}function M(s,o){const p={type:"DoWhileStatement",test:s,body:o},y=d.DoWhileStatement;return r(y.test,p,"test",s,1),r(y.body,p,"body",o,1),p}function V(){return{type:"EmptyStatement"}}function G(s){const o={type:"ExpressionStatement",expression:s},p=d.ExpressionStatement;return r(p.expression,o,"expression",s,1),o}function z(s,o=null,p=null){const y={type:"File",program:s,comments:o,tokens:p},S=d.File;return r(S.program,y,"program",s,1),r(S.comments,y,"comments",o,1),r(S.tokens,y,"tokens",p),y}function Q(s,o,p){const y={type:"ForInStatement",left:s,right:o,body:p},S=d.ForInStatement;return r(S.left,y,"left",s,1),r(S.right,y,"right",o,1),r(S.body,y,"body",p,1),y}function H(s=null,o=null,p=null,y){const S={type:"ForStatement",init:s,test:o,update:p,body:y},x=d.ForStatement;return r(x.init,S,"init",s,1),r(x.test,S,"test",o,1),r(x.update,S,"update",p,1),r(x.body,S,"body",y,1),S}function oe(s=null,o,p,y=!1,S=!1){const x={type:"FunctionDeclaration",id:s,params:o,body:p,generator:y,async:S},w=d.FunctionDeclaration;return r(w.id,x,"id",s,1),r(w.params,x,"params",o,1),r(w.body,x,"body",p,1),r(w.generator,x,"generator",y),r(w.async,x,"async",S),x}function re(s=null,o,p,y=!1,S=!1){const x={type:"FunctionExpression",id:s,params:o,body:p,generator:y,async:S},w=d.FunctionExpression;return r(w.id,x,"id",s,1),r(w.params,x,"params",o,1),r(w.body,x,"body",p,1),r(w.generator,x,"generator",y),r(w.async,x,"async",S),x}function te(s){const o={type:"Identifier",name:s},p=d.Identifier;return r(p.name,o,"name",s),o}function ue(s,o,p=null){const y={type:"IfStatement",test:s,consequent:o,alternate:p},S=d.IfStatement;return r(S.test,y,"test",s,1),r(S.consequent,y,"consequent",o,1),r(S.alternate,y,"alternate",p,1),y}function ae(s,o){const p={type:"LabeledStatement",label:s,body:o},y=d.LabeledStatement;return r(y.label,p,"label",s,1),r(y.body,p,"body",o,1),p}function fe(s){const o={type:"StringLiteral",value:s},p=d.StringLiteral;return r(p.value,o,"value",s),o}function ce(s){const o={type:"NumericLiteral",value:s},p=d.NumericLiteral;return r(p.value,o,"value",s),o}function B(){return{type:"NullLiteral"}}function F(s){const o={type:"BooleanLiteral",value:s},p=d.BooleanLiteral;return r(p.value,o,"value",s),o}function K(s,o=""){const p={type:"RegExpLiteral",pattern:s,flags:o},y=d.RegExpLiteral;return r(y.pattern,p,"pattern",s),r(y.flags,p,"flags",o),p}function j(s,o,p){const y={type:"LogicalExpression",operator:s,left:o,right:p},S=d.LogicalExpression;return r(S.operator,y,"operator",s),r(S.left,y,"left",o,1),r(S.right,y,"right",p,1),y}function Y(s,o,p=!1,y=null){const S={type:"MemberExpression",object:s,property:o,computed:p,optional:y},x=d.MemberExpression;return r(x.object,S,"object",s,1),r(x.property,S,"property",o,1),r(x.computed,S,"computed",p),r(x.optional,S,"optional",y),S}function $(s,o){const p={type:"NewExpression",callee:s,arguments:o},y=d.NewExpression;return r(y.callee,p,"callee",s,1),r(y.arguments,p,"arguments",o,1),p}function J(s,o=[],p="script",y=null){const S={type:"Program",body:s,directives:o,sourceType:p,interpreter:y},x=d.Program;return r(x.body,S,"body",s,1),r(x.directives,S,"directives",o,1),r(x.sourceType,S,"sourceType",p),r(x.interpreter,S,"interpreter",y,1),S}function X(s){const o={type:"ObjectExpression",properties:s},p=d.ObjectExpression;return r(p.properties,o,"properties",s,1),o}function W(s="method",o,p,y,S=!1,x=!1,w=!1){const U={type:"ObjectMethod",kind:s,key:o,params:p,body:y,computed:S,generator:x,async:w},Z=d.ObjectMethod;return r(Z.kind,U,"kind",s),r(Z.key,U,"key",o,1),r(Z.params,U,"params",p,1),r(Z.body,U,"body",y,1),r(Z.computed,U,"computed",S),r(Z.generator,U,"generator",x),r(Z.async,U,"async",w),U}function ie(s,o,p=!1,y=!1,S=null){const x={type:"ObjectProperty",key:s,value:o,computed:p,shorthand:y,decorators:S},w=d.ObjectProperty;return r(w.key,x,"key",s,1),r(w.value,x,"value",o,1),r(w.computed,x,"computed",p),r(w.shorthand,x,"shorthand",y),r(w.decorators,x,"decorators",S,1),x}function se(s){const o={type:"RestElement",argument:s},p=d.RestElement;return r(p.argument,o,"argument",s,1),o}function be(s=null){const o={type:"ReturnStatement",argument:s},p=d.ReturnStatement;return r(p.argument,o,"argument",s,1),o}function Ae(s){const o={type:"SequenceExpression",expressions:s},p=d.SequenceExpression;return r(p.expressions,o,"expressions",s,1),o}function Pe(s){const o={type:"ParenthesizedExpression",expression:s},p=d.ParenthesizedExpression;return r(p.expression,o,"expression",s,1),o}function ye(s=null,o){const p={type:"SwitchCase",test:s,consequent:o},y=d.SwitchCase;return r(y.test,p,"test",s,1),r(y.consequent,p,"consequent",o,1),p}function ve(s,o){const p={type:"SwitchStatement",discriminant:s,cases:o},y=d.SwitchStatement;return r(y.discriminant,p,"discriminant",s,1),r(y.cases,p,"cases",o,1),p}function xe(){return{type:"ThisExpression"}}function Ie(s){const o={type:"ThrowStatement",argument:s},p=d.ThrowStatement;return r(p.argument,o,"argument",s,1),o}function ge(s,o=null,p=null){const y={type:"TryStatement",block:s,handler:o,finalizer:p},S=d.TryStatement;return r(S.block,y,"block",s,1),r(S.handler,y,"handler",o,1),r(S.finalizer,y,"finalizer",p,1),y}function Oe(s,o,p=!0){const y={type:"UnaryExpression",operator:s,argument:o,prefix:p},S=d.UnaryExpression;return r(S.operator,y,"operator",s),r(S.argument,y,"argument",o,1),r(S.prefix,y,"prefix",p),y}function De(s,o,p=!1){const y={type:"UpdateExpression",operator:s,argument:o,prefix:p},S=d.UpdateExpression;return r(S.operator,y,"operator",s),r(S.argument,y,"argument",o,1),r(S.prefix,y,"prefix",p),y}function he(s,o){const p={type:"VariableDeclaration",kind:s,declarations:o},y=d.VariableDeclaration;return r(y.kind,p,"kind",s),r(y.declarations,p,"declarations",o,1),p}function Ne(s,o=null){const p={type:"VariableDeclarator",id:s,init:o},y=d.VariableDeclarator;return r(y.id,p,"id",s,1),r(y.init,p,"init",o,1),p}function _e(s,o){const p={type:"WhileStatement",test:s,body:o},y=d.WhileStatement;return r(y.test,p,"test",s,1),r(y.body,p,"body",o,1),p}function Le(s,o){const p={type:"WithStatement",object:s,body:o},y=d.WithStatement;return r(y.object,p,"object",s,1),r(y.body,p,"body",o,1),p}function Ce(s,o){const p={type:"AssignmentPattern",left:s,right:o},y=d.AssignmentPattern;return r(y.left,p,"left",s,1),r(y.right,p,"right",o,1),p}function Be(s){const o={type:"ArrayPattern",elements:s},p=d.ArrayPattern;return r(p.elements,o,"elements",s,1),o}function Me(s,o,p=!1){const y={type:"ArrowFunctionExpression",params:s,body:o,async:p,expression:null},S=d.ArrowFunctionExpression;return r(S.params,y,"params",s,1),r(S.body,y,"body",o,1),r(S.async,y,"async",p),y}function we(s){const o={type:"ClassBody",body:s},p=d.ClassBody;return r(p.body,o,"body",s,1),o}function je(s=null,o=null,p,y=null){const S={type:"ClassExpression",id:s,superClass:o,body:p,decorators:y},x=d.ClassExpression;return r(x.id,S,"id",s,1),r(x.superClass,S,"superClass",o,1),r(x.body,S,"body",p,1),r(x.decorators,S,"decorators",y,1),S}function Re(s=null,o=null,p,y=null){const S={type:"ClassDeclaration",id:s,superClass:o,body:p,decorators:y},x=d.ClassDeclaration;return r(x.id,S,"id",s,1),r(x.superClass,S,"superClass",o,1),r(x.body,S,"body",p,1),r(x.decorators,S,"decorators",y,1),S}function Fe(s,o=null){const p={type:"ExportAllDeclaration",source:s,attributes:o},y=d.ExportAllDeclaration;return r(y.source,p,"source",s,1),r(y.attributes,p,"attributes",o,1),p}function ke(s){const o={type:"ExportDefaultDeclaration",declaration:s},p=d.ExportDefaultDeclaration;return r(p.declaration,o,"declaration",s,1),o}function Ke(s=null,o=[],p=null,y=null){const S={type:"ExportNamedDeclaration",declaration:s,specifiers:o,source:p,attributes:y},x=d.ExportNamedDeclaration;return r(x.declaration,S,"declaration",s,1),r(x.specifiers,S,"specifiers",o,1),r(x.source,S,"source",p,1),r(x.attributes,S,"attributes",y,1),S}function qe(s,o){const p={type:"ExportSpecifier",local:s,exported:o},y=d.ExportSpecifier;return r(y.local,p,"local",s,1),r(y.exported,p,"exported",o,1),p}function Te(s,o,p,y=!1){const S={type:"ForOfStatement",left:s,right:o,body:p,await:y},x=d.ForOfStatement;return r(x.left,S,"left",s,1),r(x.right,S,"right",o,1),r(x.body,S,"body",p,1),r(x.await,S,"await",y),S}function Ve(s,o,p=null){const y={type:"ImportDeclaration",specifiers:s,source:o,attributes:p},S=d.ImportDeclaration;return r(S.specifiers,y,"specifiers",s,1),r(S.source,y,"source",o,1),r(S.attributes,y,"attributes",p,1),y}function Ye(s){const o={type:"ImportDefaultSpecifier",local:s},p=d.ImportDefaultSpecifier;return r(p.local,o,"local",s,1),o}function C(s){const o={type:"ImportNamespaceSpecifier",local:s},p=d.ImportNamespaceSpecifier;return r(p.local,o,"local",s,1),o}function Ge(s,o){const p={type:"ImportSpecifier",local:s,imported:o},y=d.ImportSpecifier;return r(y.local,p,"local",s,1),r(y.imported,p,"imported",o,1),p}function ze(s,o=null){const p={type:"ImportExpression",source:s,options:o},y=d.ImportExpression;return r(y.source,p,"source",s,1),r(y.options,p,"options",o,1),p}function Qe(s,o){const p={type:"MetaProperty",meta:s,property:o},y=d.MetaProperty;return r(y.meta,p,"meta",s,1),r(y.property,p,"property",o,1),p}function He(s="method",o,p,y,S=!1,x=!1,w=!1,U=!1){const Z={type:"ClassMethod",kind:s,key:o,params:p,body:y,computed:S,static:x,generator:w,async:U},pe=d.ClassMethod;return r(pe.kind,Z,"kind",s),r(pe.key,Z,"key",o,1),r(pe.params,Z,"params",p,1),r(pe.body,Z,"body",y,1),r(pe.computed,Z,"computed",S),r(pe.static,Z,"static",x),r(pe.generator,Z,"generator",w),r(pe.async,Z,"async",U),Z}function Ze(s){const o={type:"ObjectPattern",properties:s},p=d.ObjectPattern;return r(p.properties,o,"properties",s,1),o}function Ue(s){const o={type:"SpreadElement",argument:s},p=d.SpreadElement;return r(p.argument,o,"argument",s,1),o}function et(){return{type:"Super"}}function tt(s,o){const p={type:"TaggedTemplateExpression",tag:s,quasi:o},y=d.TaggedTemplateExpression;return r(y.tag,p,"tag",s,1),r(y.quasi,p,"quasi",o,1),p}function nt(s,o=!1){const p={type:"TemplateElement",value:s,tail:o},y=d.TemplateElement;return r(y.value,p,"value",s),r(y.tail,p,"tail",o),p}function rt(s,o){const p={type:"TemplateLiteral",quasis:s,expressions:o},y=d.TemplateLiteral;return r(y.quasis,p,"quasis",s,1),r(y.expressions,p,"expressions",o,1),p}function at(s=null,o=!1){const p={type:"YieldExpression",argument:s,delegate:o},y=d.YieldExpression;return r(y.argument,p,"argument",s,1),r(y.delegate,p,"delegate",o),p}function it(s){const o={type:"AwaitExpression",argument:s},p=d.AwaitExpression;return r(p.argument,o,"argument",s,1),o}function st(){return{type:"Import"}}function ot(s){const o={type:"ExportNamespaceSpecifier",exported:s},p=d.ExportNamespaceSpecifier;return r(p.exported,o,"exported",s,1),o}function lt(s,o,p=!1,y){const S={type:"OptionalMemberExpression",object:s,property:o,computed:p,optional:y},x=d.OptionalMemberExpression;return r(x.object,S,"object",s,1),r(x.property,S,"property",o,1),r(x.computed,S,"computed",p),r(x.optional,S,"optional",y),S}function pt(s,o,p){const y={type:"OptionalCallExpression",callee:s,arguments:o,optional:p},S=d.OptionalCallExpression;return r(S.callee,y,"callee",s,1),r(S.arguments,y,"arguments",o,1),r(S.optional,y,"optional",p),y}function ut(s,o=null,p=null,y=null,S=!1,x=!1){const w={type:"ClassProperty",key:s,value:o,typeAnnotation:p,decorators:y,computed:S,static:x},U=d.ClassProperty;return r(U.key,w,"key",s,1),r(U.value,w,"value",o,1),r(U.typeAnnotation,w,"typeAnnotation",p,1),r(U.decorators,w,"decorators",y,1),r(U.computed,w,"computed",S),r(U.static,w,"static",x),w}function ct(s,o=null,p=null,y=null,S=!1,x=!1){const w={type:"ClassAccessorProperty",key:s,value:o,typeAnnotation:p,decorators:y,computed:S,static:x},U=d.ClassAccessorProperty;return r(U.key,w,"key",s,1),r(U.value,w,"value",o,1),r(U.typeAnnotation,w,"typeAnnotation",p,1),r(U.decorators,w,"decorators",y,1),r(U.computed,w,"computed",S),r(U.static,w,"static",x),w}function dt(s,o=null,p=null,y=!1){const S={type:"ClassPrivateProperty",key:s,value:o,decorators:p,static:y},x=d.ClassPrivateProperty;return r(x.key,S,"key",s,1),r(x.value,S,"value",o,1),r(x.decorators,S,"decorators",p,1),r(x.static,S,"static",y),S}function yt(s="method",o,p,y,S=!1){const x={type:"ClassPrivateMethod",kind:s,key:o,params:p,body:y,static:S},w=d.ClassPrivateMethod;return r(w.kind,x,"kind",s),r(w.key,x,"key",o,1),r(w.params,x,"params",p,1),r(w.body,x,"body",y,1),r(w.static,x,"static",S),x}function ft(s){const o={type:"PrivateName",id:s},p=d.PrivateName;return r(p.id,o,"id",s,1),o}function Tt(s){const o={type:"StaticBlock",body:s},p=d.StaticBlock;return r(p.body,o,"body",s,1),o}function mt(s,o){const p={type:"ImportAttribute",key:s,value:o},y=d.ImportAttribute;return r(y.key,p,"key",s,1),r(y.value,p,"value",o,1),p}function St(){return{type:"AnyTypeAnnotation"}}function Et(s){const o={type:"ArrayTypeAnnotation",elementType:s},p=d.ArrayTypeAnnotation;return r(p.elementType,o,"elementType",s,1),o}function bt(){return{type:"BooleanTypeAnnotation"}}function At(s){const o={type:"BooleanLiteralTypeAnnotation",value:s},p=d.BooleanLiteralTypeAnnotation;return r(p.value,o,"value",s),o}function Pt(){return{type:"NullLiteralTypeAnnotation"}}function vt(s,o=null){const p={type:"ClassImplements",id:s,typeParameters:o},y=d.ClassImplements;return r(y.id,p,"id",s,1),r(y.typeParameters,p,"typeParameters",o,1),p}function xt(s,o=null,p=null,y){const S={type:"DeclareClass",id:s,typeParameters:o,extends:p,body:y},x=d.DeclareClass;return r(x.id,S,"id",s,1),r(x.typeParameters,S,"typeParameters",o,1),r(x.extends,S,"extends",p,1),r(x.body,S,"body",y,1),S}function It(s){const o={type:"DeclareFunction",id:s},p=d.DeclareFunction;return r(p.id,o,"id",s,1),o}function gt(s,o=null,p=null,y){const S={type:"DeclareInterface",id:s,typeParameters:o,extends:p,body:y},x=d.DeclareInterface;return r(x.id,S,"id",s,1),r(x.typeParameters,S,"typeParameters",o,1),r(x.extends,S,"extends",p,1),r(x.body,S,"body",y,1),S}function Ot(s,o,p=null){const y={type:"DeclareModule",id:s,body:o,kind:p},S=d.DeclareModule;return r(S.id,y,"id",s,1),r(S.body,y,"body",o,1),r(S.kind,y,"kind",p),y}function Dt(s){const o={type:"DeclareModuleExports",typeAnnotation:s},p=d.DeclareModuleExports;return r(p.typeAnnotation,o,"typeAnnotation",s,1),o}function ht(s,o=null,p){const y={type:"DeclareTypeAlias",id:s,typeParameters:o,right:p},S=d.DeclareTypeAlias;return r(S.id,y,"id",s,1),r(S.typeParameters,y,"typeParameters",o,1),r(S.right,y,"right",p,1),y}function Nt(s,o=null,p=null){const y={type:"DeclareOpaqueType",id:s,typeParameters:o,supertype:p},S=d.DeclareOpaqueType;return r(S.id,y,"id",s,1),r(S.typeParameters,y,"typeParameters",o,1),r(S.supertype,y,"supertype",p,1),y}function _t(s){const o={type:"DeclareVariable",id:s},p=d.DeclareVariable;return r(p.id,o,"id",s,1),o}function Lt(s=null,o=null,p=null,y=null){const S={type:"DeclareExportDeclaration",declaration:s,specifiers:o,source:p,attributes:y},x=d.DeclareExportDeclaration;return r(x.declaration,S,"declaration",s,1),r(x.specifiers,S,"specifiers",o,1),r(x.source,S,"source",p,1),r(x.attributes,S,"attributes",y,1),S}function Ct(s,o=null){const p={type:"DeclareExportAllDeclaration",source:s,attributes:o},y=d.DeclareExportAllDeclaration;return r(y.source,p,"source",s,1),r(y.attributes,p,"attributes",o,1),p}function Bt(s){const o={type:"DeclaredPredicate",value:s},p=d.DeclaredPredicate;return r(p.value,o,"value",s,1),o}function Mt(){return{type:"ExistsTypeAnnotation"}}function wt(s=null,o,p=null,y){const S={type:"FunctionTypeAnnotation",typeParameters:s,params:o,rest:p,returnType:y},x=d.FunctionTypeAnnotation;return r(x.typeParameters,S,"typeParameters",s,1),r(x.params,S,"params",o,1),r(x.rest,S,"rest",p,1),r(x.returnType,S,"returnType",y,1),S}function jt(s=null,o){const p={type:"FunctionTypeParam",name:s,typeAnnotation:o},y=d.FunctionTypeParam;return r(y.name,p,"name",s,1),r(y.typeAnnotation,p,"typeAnnotation",o,1),p}function Rt(s,o=null){const p={type:"GenericTypeAnnotation",id:s,typeParameters:o},y=d.GenericTypeAnnotation;return r(y.id,p,"id",s,1),r(y.typeParameters,p,"typeParameters",o,1),p}function Ft(){return{type:"InferredPredicate"}}function kt(s,o=null){const p={type:"InterfaceExtends",id:s,typeParameters:o},y=d.InterfaceExtends;return r(y.id,p,"id",s,1),r(y.typeParameters,p,"typeParameters",o,1),p}function Kt(s,o=null,p=null,y){const S={type:"InterfaceDeclaration",id:s,typeParameters:o,extends:p,body:y},x=d.InterfaceDeclaration;return r(x.id,S,"id",s,1),r(x.typeParameters,S,"typeParameters",o,1),r(x.extends,S,"extends",p,1),r(x.body,S,"body",y,1),S}function qt(s=null,o){const p={type:"InterfaceTypeAnnotation",extends:s,body:o},y=d.InterfaceTypeAnnotation;return r(y.extends,p,"extends",s,1),r(y.body,p,"body",o,1),p}function Vt(s){const o={type:"IntersectionTypeAnnotation",types:s},p=d.IntersectionTypeAnnotation;return r(p.types,o,"types",s,1),o}function Yt(){return{type:"MixedTypeAnnotation"}}function Xt(){return{type:"EmptyTypeAnnotation"}}function Jt(s){const o={type:"NullableTypeAnnotation",typeAnnotation:s},p=d.NullableTypeAnnotation;return r(p.typeAnnotation,o,"typeAnnotation",s,1),o}function Ut(s){const o={type:"NumberLiteralTypeAnnotation",value:s},p=d.NumberLiteralTypeAnnotation;return r(p.value,o,"value",s),o}function Wt(){return{type:"NumberTypeAnnotation"}}function $t(s,o=[],p=[],y=[],S=!1){const x={type:"ObjectTypeAnnotation",properties:s,indexers:o,callProperties:p,internalSlots:y,exact:S},w=d.ObjectTypeAnnotation;return r(w.properties,x,"properties",s,1),r(w.indexers,x,"indexers",o,1),r(w.callProperties,x,"callProperties",p,1),r(w.internalSlots,x,"internalSlots",y,1),r(w.exact,x,"exact",S),x}function Gt(s,o,p,y,S){const x={type:"ObjectTypeInternalSlot",id:s,value:o,optional:p,static:y,method:S},w=d.ObjectTypeInternalSlot;return r(w.id,x,"id",s,1),r(w.value,x,"value",o,1),r(w.optional,x,"optional",p),r(w.static,x,"static",y),r(w.method,x,"method",S),x}function zt(s){const o={type:"ObjectTypeCallProperty",value:s,static:null},p=d.ObjectTypeCallProperty;return r(p.value,o,"value",s,1),o}function Qt(s=null,o,p,y=null){const S={type:"ObjectTypeIndexer",id:s,key:o,value:p,variance:y,static:null},x=d.ObjectTypeIndexer;return r(x.id,S,"id",s,1),r(x.key,S,"key",o,1),r(x.value,S,"value",p,1),r(x.variance,S,"variance",y,1),S}function Ht(s,o,p=null){const y={type:"ObjectTypeProperty",key:s,value:o,variance:p,kind:null,method:null,optional:null,proto:null,static:null},S=d.ObjectTypeProperty;return r(S.key,y,"key",s,1),r(S.value,y,"value",o,1),r(S.variance,y,"variance",p,1),y}function Zt(s){const o={type:"ObjectTypeSpreadProperty",argument:s},p=d.ObjectTypeSpreadProperty;return r(p.argument,o,"argument",s,1),o}function en(s,o=null,p=null,y){const S={type:"OpaqueType",id:s,typeParameters:o,supertype:p,impltype:y},x=d.OpaqueType;return r(x.id,S,"id",s,1),r(x.typeParameters,S,"typeParameters",o,1),r(x.supertype,S,"supertype",p,1),r(x.impltype,S,"impltype",y,1),S}function tn(s,o){const p={type:"QualifiedTypeIdentifier",id:s,qualification:o},y=d.QualifiedTypeIdentifier;return r(y.id,p,"id",s,1),r(y.qualification,p,"qualification",o,1),p}function nn(s){const o={type:"StringLiteralTypeAnnotation",value:s},p=d.StringLiteralTypeAnnotation;return r(p.value,o,"value",s),o}function rn(){return{type:"StringTypeAnnotation"}}function an(){return{type:"SymbolTypeAnnotation"}}function sn(){return{type:"ThisTypeAnnotation"}}function on(s){const o={type:"TupleTypeAnnotation",types:s},p=d.TupleTypeAnnotation;return r(p.types,o,"types",s,1),o}function ln(s){const o={type:"TypeofTypeAnnotation",argument:s},p=d.TypeofTypeAnnotation;return r(p.argument,o,"argument",s,1),o}function pn(s,o=null,p){const y={type:"TypeAlias",id:s,typeParameters:o,right:p},S=d.TypeAlias;return r(S.id,y,"id",s,1),r(S.typeParameters,y,"typeParameters",o,1),r(S.right,y,"right",p,1),y}function un(s){const o={type:"TypeAnnotation",typeAnnotation:s},p=d.TypeAnnotation;return r(p.typeAnnotation,o,"typeAnnotation",s,1),o}function cn(s,o){const p={type:"TypeCastExpression",expression:s,typeAnnotation:o},y=d.TypeCastExpression;return r(y.expression,p,"expression",s,1),r(y.typeAnnotation,p,"typeAnnotation",o,1),p}function dn(s=null,o=null,p=null){const y={type:"TypeParameter",bound:s,default:o,variance:p,name:null},S=d.TypeParameter;return r(S.bound,y,"bound",s,1),r(S.default,y,"default",o,1),r(S.variance,y,"variance",p,1),y}function yn(s){const o={type:"TypeParameterDeclaration",params:s},p=d.TypeParameterDeclaration;return r(p.params,o,"params",s,1),o}function fn(s){const o={type:"TypeParameterInstantiation",params:s},p=d.TypeParameterInstantiation;return r(p.params,o,"params",s,1),o}function Tn(s){const o={type:"UnionTypeAnnotation",types:s},p=d.UnionTypeAnnotation;return r(p.types,o,"types",s,1),o}function mn(s){const o={type:"Variance",kind:s},p=d.Variance;return r(p.kind,o,"kind",s),o}function Sn(){return{type:"VoidTypeAnnotation"}}function En(s,o){const p={type:"EnumDeclaration",id:s,body:o},y=d.EnumDeclaration;return r(y.id,p,"id",s,1),r(y.body,p,"body",o,1),p}function bn(s){const o={type:"EnumBooleanBody",members:s,explicitType:null,hasUnknownMembers:null},p=d.EnumBooleanBody;return r(p.members,o,"members",s,1),o}function An(s){const o={type:"EnumNumberBody",members:s,explicitType:null,hasUnknownMembers:null},p=d.EnumNumberBody;return r(p.members,o,"members",s,1),o}function Pn(s){const o={type:"EnumStringBody",members:s,explicitType:null,hasUnknownMembers:null},p=d.EnumStringBody;return r(p.members,o,"members",s,1),o}function vn(s){const o={type:"EnumSymbolBody",members:s,hasUnknownMembers:null},p=d.EnumSymbolBody;return r(p.members,o,"members",s,1),o}function xn(s){const o={type:"EnumBooleanMember",id:s,init:null},p=d.EnumBooleanMember;return r(p.id,o,"id",s,1),o}function In(s,o){const p={type:"EnumNumberMember",id:s,init:o},y=d.EnumNumberMember;return r(y.id,p,"id",s,1),r(y.init,p,"init",o,1),p}function gn(s,o){const p={type:"EnumStringMember",id:s,init:o},y=d.EnumStringMember;return r(y.id,p,"id",s,1),r(y.init,p,"init",o,1),p}function On(s){const o={type:"EnumDefaultedMember",id:s},p=d.EnumDefaultedMember;return r(p.id,o,"id",s,1),o}function Dn(s,o){const p={type:"IndexedAccessType",objectType:s,indexType:o},y=d.IndexedAccessType;return r(y.objectType,p,"objectType",s,1),r(y.indexType,p,"indexType",o,1),p}function hn(s,o){const p={type:"OptionalIndexedAccessType",objectType:s,indexType:o,optional:null},y=d.OptionalIndexedAccessType;return r(y.objectType,p,"objectType",s,1),r(y.indexType,p,"indexType",o,1),p}function Nn(s,o=null){const p={type:"JSXAttribute",name:s,value:o},y=d.JSXAttribute;return r(y.name,p,"name",s,1),r(y.value,p,"value",o,1),p}function _n(s){const o={type:"JSXClosingElement",name:s},p=d.JSXClosingElement;return r(p.name,o,"name",s,1),o}function Ln(s,o=null,p,y=null){const S={type:"JSXElement",openingElement:s,closingElement:o,children:p,selfClosing:y},x=d.JSXElement;return r(x.openingElement,S,"openingElement",s,1),r(x.closingElement,S,"closingElement",o,1),r(x.children,S,"children",p,1),r(x.selfClosing,S,"selfClosing",y),S}function Cn(){return{type:"JSXEmptyExpression"}}function Bn(s){const o={type:"JSXExpressionContainer",expression:s},p=d.JSXExpressionContainer;return r(p.expression,o,"expression",s,1),o}function Mn(s){const o={type:"JSXSpreadChild",expression:s},p=d.JSXSpreadChild;return r(p.expression,o,"expression",s,1),o}function wn(s){const o={type:"JSXIdentifier",name:s},p=d.JSXIdentifier;return r(p.name,o,"name",s),o}function jn(s,o){const p={type:"JSXMemberExpression",object:s,property:o},y=d.JSXMemberExpression;return r(y.object,p,"object",s,1),r(y.property,p,"property",o,1),p}function Rn(s,o){const p={type:"JSXNamespacedName",namespace:s,name:o},y=d.JSXNamespacedName;return r(y.namespace,p,"namespace",s,1),r(y.name,p,"name",o,1),p}function Fn(s,o,p=!1){const y={type:"JSXOpeningElement",name:s,attributes:o,selfClosing:p},S=d.JSXOpeningElement;return r(S.name,y,"name",s,1),r(S.attributes,y,"attributes",o,1),r(S.selfClosing,y,"selfClosing",p),y}function kn(s){const o={type:"JSXSpreadAttribute",argument:s},p=d.JSXSpreadAttribute;return r(p.argument,o,"argument",s,1),o}function Kn(s){const o={type:"JSXText",value:s},p=d.JSXText;return r(p.value,o,"value",s),o}function qn(s,o,p){const y={type:"JSXFragment",openingFragment:s,closingFragment:o,children:p},S=d.JSXFragment;return r(S.openingFragment,y,"openingFragment",s,1),r(S.closingFragment,y,"closingFragment",o,1),r(S.children,y,"children",p,1),y}function Vn(){return{type:"JSXOpeningFragment"}}function Yn(){return{type:"JSXClosingFragment"}}function Xn(){return{type:"Noop"}}function Jn(s,o){const p={type:"Placeholder",expectedNode:s,name:o},y=d.Placeholder;return r(y.expectedNode,p,"expectedNode",s),r(y.name,p,"name",o,1),p}function Un(s){const o={type:"V8IntrinsicIdentifier",name:s},p=d.V8IntrinsicIdentifier;return r(p.name,o,"name",s),o}function Wn(){return{type:"ArgumentPlaceholder"}}function $n(s,o){const p={type:"BindExpression",object:s,callee:o},y=d.BindExpression;return r(y.object,p,"object",s,1),r(y.callee,p,"callee",o,1),p}function Gn(s){const o={type:"Decorator",expression:s},p=d.Decorator;return r(p.expression,o,"expression",s,1),o}function zn(s,o=!1){const p={type:"DoExpression",body:s,async:o},y=d.DoExpression;return r(y.body,p,"body",s,1),r(y.async,p,"async",o),p}function Qn(s){const o={type:"ExportDefaultSpecifier",exported:s},p=d.ExportDefaultSpecifier;return r(p.exported,o,"exported",s,1),o}function Hn(s){const o={type:"RecordExpression",properties:s},p=d.RecordExpression;return r(p.properties,o,"properties",s,1),o}function Zn(s=[]){const o={type:"TupleExpression",elements:s},p=d.TupleExpression;return r(p.elements,o,"elements",s,1),o}function er(s){const o={type:"DecimalLiteral",value:s},p=d.DecimalLiteral;return r(p.value,o,"value",s),o}function tr(s){const o={type:"ModuleExpression",body:s},p=d.ModuleExpression;return r(p.body,o,"body",s,1),o}function nr(){return{type:"TopicReference"}}function rr(s){const o={type:"PipelineTopicExpression",expression:s},p=d.PipelineTopicExpression;return r(p.expression,o,"expression",s,1),o}function ar(s){const o={type:"PipelineBareFunction",callee:s},p=d.PipelineBareFunction;return r(p.callee,o,"callee",s,1),o}function ir(){return{type:"PipelinePrimaryTopicReference"}}function sr(){return{type:"VoidPattern"}}function or(s){const o={type:"TSParameterProperty",parameter:s},p=d.TSParameterProperty;return r(p.parameter,o,"parameter",s,1),o}function lr(s=null,o=null,p,y=null){const S={type:"TSDeclareFunction",id:s,typeParameters:o,params:p,returnType:y},x=d.TSDeclareFunction;return r(x.id,S,"id",s,1),r(x.typeParameters,S,"typeParameters",o,1),r(x.params,S,"params",p,1),r(x.returnType,S,"returnType",y,1),S}function pr(s=null,o,p=null,y,S=null){const x={type:"TSDeclareMethod",decorators:s,key:o,typeParameters:p,params:y,returnType:S},w=d.TSDeclareMethod;return r(w.decorators,x,"decorators",s,1),r(w.key,x,"key",o,1),r(w.typeParameters,x,"typeParameters",p,1),r(w.params,x,"params",y,1),r(w.returnType,x,"returnType",S,1),x}function ur(s,o){const p={type:"TSQualifiedName",left:s,right:o},y=d.TSQualifiedName;return r(y.left,p,"left",s,1),r(y.right,p,"right",o,1),p}function cr(s=null,o,p=null){const y={type:"TSCallSignatureDeclaration",typeParameters:s,parameters:o,typeAnnotation:p},S=d.TSCallSignatureDeclaration;return r(S.typeParameters,y,"typeParameters",s,1),r(S.parameters,y,"parameters",o,1),r(S.typeAnnotation,y,"typeAnnotation",p,1),y}function dr(s=null,o,p=null){const y={type:"TSConstructSignatureDeclaration",typeParameters:s,parameters:o,typeAnnotation:p},S=d.TSConstructSignatureDeclaration;return r(S.typeParameters,y,"typeParameters",s,1),r(S.parameters,y,"parameters",o,1),r(S.typeAnnotation,y,"typeAnnotation",p,1),y}function yr(s,o=null){const p={type:"TSPropertySignature",key:s,typeAnnotation:o},y=d.TSPropertySignature;return r(y.key,p,"key",s,1),r(y.typeAnnotation,p,"typeAnnotation",o,1),p}function fr(s,o=null,p,y=null){const S={type:"TSMethodSignature",key:s,typeParameters:o,parameters:p,typeAnnotation:y,kind:null},x=d.TSMethodSignature;return r(x.key,S,"key",s,1),r(x.typeParameters,S,"typeParameters",o,1),r(x.parameters,S,"parameters",p,1),r(x.typeAnnotation,S,"typeAnnotation",y,1),S}function Tr(s,o=null){const p={type:"TSIndexSignature",parameters:s,typeAnnotation:o},y=d.TSIndexSignature;return r(y.parameters,p,"parameters",s,1),r(y.typeAnnotation,p,"typeAnnotation",o,1),p}function mr(){return{type:"TSAnyKeyword"}}function Sr(){return{type:"TSBooleanKeyword"}}function Er(){return{type:"TSBigIntKeyword"}}function br(){return{type:"TSIntrinsicKeyword"}}function Ar(){return{type:"TSNeverKeyword"}}function Pr(){return{type:"TSNullKeyword"}}function vr(){return{type:"TSNumberKeyword"}}function xr(){return{type:"TSObjectKeyword"}}function Ir(){return{type:"TSStringKeyword"}}function gr(){return{type:"TSSymbolKeyword"}}function Or(){return{type:"TSUndefinedKeyword"}}function Dr(){return{type:"TSUnknownKeyword"}}function hr(){return{type:"TSVoidKeyword"}}function Nr(){return{type:"TSThisType"}}function _r(s=null,o,p=null){const y={type:"TSFunctionType",typeParameters:s,parameters:o,typeAnnotation:p},S=d.TSFunctionType;return r(S.typeParameters,y,"typeParameters",s,1),r(S.parameters,y,"parameters",o,1),r(S.typeAnnotation,y,"typeAnnotation",p,1),y}function Lr(s=null,o,p=null){const y={type:"TSConstructorType",typeParameters:s,parameters:o,typeAnnotation:p},S=d.TSConstructorType;return r(S.typeParameters,y,"typeParameters",s,1),r(S.parameters,y,"parameters",o,1),r(S.typeAnnotation,y,"typeAnnotation",p,1),y}function Cr(s,o=null){const p={type:"TSTypeReference",typeName:s,typeParameters:o},y=d.TSTypeReference;return r(y.typeName,p,"typeName",s,1),r(y.typeParameters,p,"typeParameters",o,1),p}function Br(s,o=null,p=null){const y={type:"TSTypePredicate",parameterName:s,typeAnnotation:o,asserts:p},S=d.TSTypePredicate;return r(S.parameterName,y,"parameterName",s,1),r(S.typeAnnotation,y,"typeAnnotation",o,1),r(S.asserts,y,"asserts",p),y}function Mr(s,o=null){const p={type:"TSTypeQuery",exprName:s,typeParameters:o},y=d.TSTypeQuery;return r(y.exprName,p,"exprName",s,1),r(y.typeParameters,p,"typeParameters",o,1),p}function wr(s){const o={type:"TSTypeLiteral",members:s},p=d.TSTypeLiteral;return r(p.members,o,"members",s,1),o}function jr(s){const o={type:"TSArrayType",elementType:s},p=d.TSArrayType;return r(p.elementType,o,"elementType",s,1),o}function Rr(s){const o={type:"TSTupleType",elementTypes:s},p=d.TSTupleType;return r(p.elementTypes,o,"elementTypes",s,1),o}function Fr(s){const o={type:"TSOptionalType",typeAnnotation:s},p=d.TSOptionalType;return r(p.typeAnnotation,o,"typeAnnotation",s,1),o}function kr(s){const o={type:"TSRestType",typeAnnotation:s},p=d.TSRestType;return r(p.typeAnnotation,o,"typeAnnotation",s,1),o}function Kr(s,o,p=!1){const y={type:"TSNamedTupleMember",label:s,elementType:o,optional:p},S=d.TSNamedTupleMember;return r(S.label,y,"label",s,1),r(S.elementType,y,"elementType",o,1),r(S.optional,y,"optional",p),y}function qr(s){const o={type:"TSUnionType",types:s},p=d.TSUnionType;return r(p.types,o,"types",s,1),o}function Vr(s){const o={type:"TSIntersectionType",types:s},p=d.TSIntersectionType;return r(p.types,o,"types",s,1),o}function Yr(s,o,p,y){const S={type:"TSConditionalType",checkType:s,extendsType:o,trueType:p,falseType:y},x=d.TSConditionalType;return r(x.checkType,S,"checkType",s,1),r(x.extendsType,S,"extendsType",o,1),r(x.trueType,S,"trueType",p,1),r(x.falseType,S,"falseType",y,1),S}function Xr(s){const o={type:"TSInferType",typeParameter:s},p=d.TSInferType;return r(p.typeParameter,o,"typeParameter",s,1),o}function Jr(s){const o={type:"TSParenthesizedType",typeAnnotation:s},p=d.TSParenthesizedType;return r(p.typeAnnotation,o,"typeAnnotation",s,1),o}function Ur(s,o="keyof"){const p={type:"TSTypeOperator",typeAnnotation:s,operator:o},y=d.TSTypeOperator;return r(y.typeAnnotation,p,"typeAnnotation",s,1),r(y.operator,p,"operator",o),p}function Wr(s,o){const p={type:"TSIndexedAccessType",objectType:s,indexType:o},y=d.TSIndexedAccessType;return r(y.objectType,p,"objectType",s,1),r(y.indexType,p,"indexType",o,1),p}function $r(s,o=null,p=null){const y={type:"TSMappedType",typeParameter:s,typeAnnotation:o,nameType:p},S=d.TSMappedType;return r(S.typeParameter,y,"typeParameter",s,1),r(S.typeAnnotation,y,"typeAnnotation",o,1),r(S.nameType,y,"nameType",p,1),y}function Gr(s,o){const p={type:"TSTemplateLiteralType",quasis:s,types:o},y=d.TSTemplateLiteralType;return r(y.quasis,p,"quasis",s,1),r(y.types,p,"types",o,1),p}function zr(s){const o={type:"TSLiteralType",literal:s},p=d.TSLiteralType;return r(p.literal,o,"literal",s,1),o}function Qr(s,o=null){const p={type:"TSExpressionWithTypeArguments",expression:s,typeParameters:o},y=d.TSExpressionWithTypeArguments;return r(y.expression,p,"expression",s,1),r(y.typeParameters,p,"typeParameters",o,1),p}function Hr(s,o=null,p=null,y){const S={type:"TSInterfaceDeclaration",id:s,typeParameters:o,extends:p,body:y},x=d.TSInterfaceDeclaration;return r(x.id,S,"id",s,1),r(x.typeParameters,S,"typeParameters",o,1),r(x.extends,S,"extends",p,1),r(x.body,S,"body",y,1),S}function Zr(s){const o={type:"TSInterfaceBody",body:s},p=d.TSInterfaceBody;return r(p.body,o,"body",s,1),o}function ea(s,o=null,p){const y={type:"TSTypeAliasDeclaration",id:s,typeParameters:o,typeAnnotation:p},S=d.TSTypeAliasDeclaration;return r(S.id,y,"id",s,1),r(S.typeParameters,y,"typeParameters",o,1),r(S.typeAnnotation,y,"typeAnnotation",p,1),y}function ta(s,o=null){const p={type:"TSInstantiationExpression",expression:s,typeParameters:o},y=d.TSInstantiationExpression;return r(y.expression,p,"expression",s,1),r(y.typeParameters,p,"typeParameters",o,1),p}function na(s,o){const p={type:"TSAsExpression",expression:s,typeAnnotation:o},y=d.TSAsExpression;return r(y.expression,p,"expression",s,1),r(y.typeAnnotation,p,"typeAnnotation",o,1),p}function ra(s,o){const p={type:"TSSatisfiesExpression",expression:s,typeAnnotation:o},y=d.TSSatisfiesExpression;return r(y.expression,p,"expression",s,1),r(y.typeAnnotation,p,"typeAnnotation",o,1),p}function aa(s,o){const p={type:"TSTypeAssertion",typeAnnotation:s,expression:o},y=d.TSTypeAssertion;return r(y.typeAnnotation,p,"typeAnnotation",s,1),r(y.expression,p,"expression",o,1),p}function ia(s){const o={type:"TSEnumBody",members:s},p=d.TSEnumBody;return r(p.members,o,"members",s,1),o}function sa(s,o){const p={type:"TSEnumDeclaration",id:s,members:o},y=d.TSEnumDeclaration;return r(y.id,p,"id",s,1),r(y.members,p,"members",o,1),p}function oa(s,o=null){const p={type:"TSEnumMember",id:s,initializer:o},y=d.TSEnumMember;return r(y.id,p,"id",s,1),r(y.initializer,p,"initializer",o,1),p}function la(s,o){const p={type:"TSModuleDeclaration",id:s,body:o,kind:null},y=d.TSModuleDeclaration;return r(y.id,p,"id",s,1),r(y.body,p,"body",o,1),p}function pa(s){const o={type:"TSModuleBlock",body:s},p=d.TSModuleBlock;return r(p.body,o,"body",s,1),o}function ua(s,o=null,p=null){const y={type:"TSImportType",argument:s,qualifier:o,typeParameters:p},S=d.TSImportType;return r(S.argument,y,"argument",s,1),r(S.qualifier,y,"qualifier",o,1),r(S.typeParameters,y,"typeParameters",p,1),y}function ca(s,o){const p={type:"TSImportEqualsDeclaration",id:s,moduleReference:o,isExport:null},y=d.TSImportEqualsDeclaration;return r(y.id,p,"id",s,1),r(y.moduleReference,p,"moduleReference",o,1),p}function da(s){const o={type:"TSExternalModuleReference",expression:s},p=d.TSExternalModuleReference;return r(p.expression,o,"expression",s,1),o}function ya(s){const o={type:"TSNonNullExpression",expression:s},p=d.TSNonNullExpression;return r(p.expression,o,"expression",s,1),o}function fa(s){const o={type:"TSExportAssignment",expression:s},p=d.TSExportAssignment;return r(p.expression,o,"expression",s,1),o}function Ta(s){const o={type:"TSNamespaceExportDeclaration",id:s},p=d.TSNamespaceExportDeclaration;return r(p.id,o,"id",s,1),o}function ma(s){const o={type:"TSTypeAnnotation",typeAnnotation:s},p=d.TSTypeAnnotation;return r(p.typeAnnotation,o,"typeAnnotation",s,1),o}function Sa(s){const o={type:"TSTypeParameterInstantiation",params:s},p=d.TSTypeParameterInstantiation;return r(p.params,o,"params",s,1),o}function Ea(s){const o={type:"TSTypeParameterDeclaration",params:s},p=d.TSTypeParameterDeclaration;return r(p.params,o,"params",s,1),o}function ba(s=null,o=null,p){const y={type:"TSTypeParameter",constraint:s,default:o,name:p},S=d.TSTypeParameter;return r(S.constraint,y,"constraint",s,1),r(S.default,y,"default",o,1),r(S.name,y,"name",p),y}function Aa(s){return(0,a.default)("NumberLiteral","NumericLiteral","The node type "),ce(s)}function Pa(s,o=""){return(0,a.default)("RegexLiteral","RegExpLiteral","The node type "),K(s,o)}function va(s){return(0,a.default)("RestProperty","RestElement","The node type "),se(s)}function xa(s){return(0,a.default)("SpreadProperty","SpreadElement","The node type "),Ue(s)}return f}var u={},Po;function lp(){if(Po)return u;Po=1,Object.defineProperty(u,"__esModule",{value:!0}),u.JSXIdentifier=u.JSXFragment=u.JSXExpressionContainer=u.JSXEmptyExpression=u.JSXElement=u.JSXClosingFragment=u.JSXClosingElement=u.JSXAttribute=u.IntersectionTypeAnnotation=u.InterpreterDirective=u.InterfaceTypeAnnotation=u.InterfaceExtends=u.InterfaceDeclaration=u.InferredPredicate=u.IndexedAccessType=u.ImportSpecifier=u.ImportNamespaceSpecifier=u.ImportExpression=u.ImportDefaultSpecifier=u.ImportDeclaration=u.ImportAttribute=u.Import=u.IfStatement=u.Identifier=u.GenericTypeAnnotation=u.FunctionTypeParam=u.FunctionTypeAnnotation=u.FunctionExpression=u.FunctionDeclaration=u.ForStatement=u.ForOfStatement=u.ForInStatement=u.File=u.ExpressionStatement=u.ExportSpecifier=u.ExportNamespaceSpecifier=u.ExportNamedDeclaration=u.ExportDefaultSpecifier=u.ExportDefaultDeclaration=u.ExportAllDeclaration=u.ExistsTypeAnnotation=u.EnumSymbolBody=u.EnumStringMember=u.EnumStringBody=u.EnumNumberMember=u.EnumNumberBody=u.EnumDefaultedMember=u.EnumDeclaration=u.EnumBooleanMember=u.EnumBooleanBody=u.EmptyTypeAnnotation=u.EmptyStatement=u.DoWhileStatement=u.DoExpression=u.DirectiveLiteral=u.Directive=u.Decorator=u.DeclaredPredicate=u.DeclareVariable=u.DeclareTypeAlias=u.DeclareOpaqueType=u.DeclareModuleExports=u.DeclareModule=u.DeclareInterface=u.DeclareFunction=u.DeclareExportDeclaration=u.DeclareExportAllDeclaration=u.DeclareClass=u.DecimalLiteral=u.DebuggerStatement=u.ContinueStatement=u.ConditionalExpression=u.ClassProperty=u.ClassPrivateProperty=u.ClassPrivateMethod=u.ClassMethod=u.ClassImplements=u.ClassExpression=u.ClassDeclaration=u.ClassBody=u.ClassAccessorProperty=u.CatchClause=u.CallExpression=u.BreakStatement=u.BooleanTypeAnnotation=u.BooleanLiteralTypeAnnotation=u.BooleanLiteral=u.BlockStatement=u.BindExpression=u.BinaryExpression=u.BigIntLiteral=u.AwaitExpression=u.AssignmentPattern=u.AssignmentExpression=u.ArrowFunctionExpression=u.ArrayTypeAnnotation=u.ArrayPattern=u.ArrayExpression=u.ArgumentPlaceholder=u.AnyTypeAnnotation=void 0,u.TSNumberKeyword=u.TSNullKeyword=u.TSNonNullExpression=u.TSNeverKeyword=u.TSNamespaceExportDeclaration=u.TSNamedTupleMember=u.TSModuleDeclaration=u.TSModuleBlock=u.TSMethodSignature=u.TSMappedType=u.TSLiteralType=u.TSIntrinsicKeyword=u.TSIntersectionType=u.TSInterfaceDeclaration=u.TSInterfaceBody=u.TSInstantiationExpression=u.TSInferType=u.TSIndexedAccessType=u.TSIndexSignature=u.TSImportType=u.TSImportEqualsDeclaration=u.TSFunctionType=u.TSExternalModuleReference=u.TSExpressionWithTypeArguments=u.TSExportAssignment=u.TSEnumMember=u.TSEnumDeclaration=u.TSEnumBody=u.TSDeclareMethod=u.TSDeclareFunction=u.TSConstructorType=u.TSConstructSignatureDeclaration=u.TSConditionalType=u.TSCallSignatureDeclaration=u.TSBooleanKeyword=u.TSBigIntKeyword=u.TSAsExpression=u.TSArrayType=u.TSAnyKeyword=u.SymbolTypeAnnotation=u.SwitchStatement=u.SwitchCase=u.Super=u.StringTypeAnnotation=u.StringLiteralTypeAnnotation=u.StringLiteral=u.StaticBlock=u.SpreadProperty=u.SpreadElement=u.SequenceExpression=u.ReturnStatement=u.RestProperty=u.RestElement=u.RegexLiteral=u.RegExpLiteral=u.RecordExpression=u.QualifiedTypeIdentifier=u.Program=u.PrivateName=u.Placeholder=u.PipelineTopicExpression=u.PipelinePrimaryTopicReference=u.PipelineBareFunction=u.ParenthesizedExpression=u.OptionalMemberExpression=u.OptionalIndexedAccessType=u.OptionalCallExpression=u.OpaqueType=u.ObjectTypeSpreadProperty=u.ObjectTypeProperty=u.ObjectTypeInternalSlot=u.ObjectTypeIndexer=u.ObjectTypeCallProperty=u.ObjectTypeAnnotation=u.ObjectProperty=u.ObjectPattern=u.ObjectMethod=u.ObjectExpression=u.NumericLiteral=u.NumberTypeAnnotation=u.NumberLiteralTypeAnnotation=u.NumberLiteral=u.NullableTypeAnnotation=u.NullLiteralTypeAnnotation=u.NullLiteral=u.Noop=u.NewExpression=u.ModuleExpression=u.MixedTypeAnnotation=u.MetaProperty=u.MemberExpression=u.LogicalExpression=u.LabeledStatement=u.JSXText=u.JSXSpreadChild=u.JSXSpreadAttribute=u.JSXOpeningFragment=u.JSXOpeningElement=u.JSXNamespacedName=u.JSXMemberExpression=void 0,u.YieldExpression=u.WithStatement=u.WhileStatement=u.VoidTypeAnnotation=u.VoidPattern=u.Variance=u.VariableDeclarator=u.VariableDeclaration=u.V8IntrinsicIdentifier=u.UpdateExpression=u.UnionTypeAnnotation=u.UnaryExpression=u.TypeofTypeAnnotation=u.TypeParameterInstantiation=u.TypeParameterDeclaration=u.TypeParameter=u.TypeCastExpression=u.TypeAnnotation=u.TypeAlias=u.TupleTypeAnnotation=u.TupleExpression=u.TryStatement=u.TopicReference=u.ThrowStatement=u.ThisTypeAnnotation=u.ThisExpression=u.TemplateLiteral=u.TemplateElement=u.TaggedTemplateExpression=u.TSVoidKeyword=u.TSUnknownKeyword=u.TSUnionType=u.TSUndefinedKeyword=u.TSTypeReference=u.TSTypeQuery=u.TSTypePredicate=u.TSTypeParameterInstantiation=u.TSTypeParameterDeclaration=u.TSTypeParameter=u.TSTypeOperator=u.TSTypeLiteral=u.TSTypeAssertion=u.TSTypeAnnotation=u.TSTypeAliasDeclaration=u.TSTupleType=u.TSThisType=u.TSTemplateLiteralType=u.TSSymbolKeyword=u.TSStringKeyword=u.TSSatisfiesExpression=u.TSRestType=u.TSQualifiedName=u.TSPropertySignature=u.TSParenthesizedType=u.TSParameterProperty=u.TSOptionalType=u.TSObjectKeyword=void 0;var n=Bl();La();function a(i){return n[i]}return u.ArrayExpression=a("arrayExpression"),u.AssignmentExpression=a("assignmentExpression"),u.BinaryExpression=a("binaryExpression"),u.InterpreterDirective=a("interpreterDirective"),u.Directive=a("directive"),u.DirectiveLiteral=a("directiveLiteral"),u.BlockStatement=a("blockStatement"),u.BreakStatement=a("breakStatement"),u.CallExpression=a("callExpression"),u.CatchClause=a("catchClause"),u.ConditionalExpression=a("conditionalExpression"),u.ContinueStatement=a("continueStatement"),u.DebuggerStatement=a("debuggerStatement"),u.DoWhileStatement=a("doWhileStatement"),u.EmptyStatement=a("emptyStatement"),u.ExpressionStatement=a("expressionStatement"),u.File=a("file"),u.ForInStatement=a("forInStatement"),u.ForStatement=a("forStatement"),u.FunctionDeclaration=a("functionDeclaration"),u.FunctionExpression=a("functionExpression"),u.Identifier=a("identifier"),u.IfStatement=a("ifStatement"),u.LabeledStatement=a("labeledStatement"),u.StringLiteral=a("stringLiteral"),u.NumericLiteral=a("numericLiteral"),u.NullLiteral=a("nullLiteral"),u.BooleanLiteral=a("booleanLiteral"),u.RegExpLiteral=a("regExpLiteral"),u.LogicalExpression=a("logicalExpression"),u.MemberExpression=a("memberExpression"),u.NewExpression=a("newExpression"),u.Program=a("program"),u.ObjectExpression=a("objectExpression"),u.ObjectMethod=a("objectMethod"),u.ObjectProperty=a("objectProperty"),u.RestElement=a("restElement"),u.ReturnStatement=a("returnStatement"),u.SequenceExpression=a("sequenceExpression"),u.ParenthesizedExpression=a("parenthesizedExpression"),u.SwitchCase=a("switchCase"),u.SwitchStatement=a("switchStatement"),u.ThisExpression=a("thisExpression"),u.ThrowStatement=a("throwStatement"),u.TryStatement=a("tryStatement"),u.UnaryExpression=a("unaryExpression"),u.UpdateExpression=a("updateExpression"),u.VariableDeclaration=a("variableDeclaration"),u.VariableDeclarator=a("variableDeclarator"),u.WhileStatement=a("whileStatement"),u.WithStatement=a("withStatement"),u.AssignmentPattern=a("assignmentPattern"),u.ArrayPattern=a("arrayPattern"),u.ArrowFunctionExpression=a("arrowFunctionExpression"),u.ClassBody=a("classBody"),u.ClassExpression=a("classExpression"),u.ClassDeclaration=a("classDeclaration"),u.ExportAllDeclaration=a("exportAllDeclaration"),u.ExportDefaultDeclaration=a("exportDefaultDeclaration"),u.ExportNamedDeclaration=a("exportNamedDeclaration"),u.ExportSpecifier=a("exportSpecifier"),u.ForOfStatement=a("forOfStatement"),u.ImportDeclaration=a("importDeclaration"),u.ImportDefaultSpecifier=a("importDefaultSpecifier"),u.ImportNamespaceSpecifier=a("importNamespaceSpecifier"),u.ImportSpecifier=a("importSpecifier"),u.ImportExpression=a("importExpression"),u.MetaProperty=a("metaProperty"),u.ClassMethod=a("classMethod"),u.ObjectPattern=a("objectPattern"),u.SpreadElement=a("spreadElement"),u.Super=a("super"),u.TaggedTemplateExpression=a("taggedTemplateExpression"),u.TemplateElement=a("templateElement"),u.TemplateLiteral=a("templateLiteral"),u.YieldExpression=a("yieldExpression"),u.AwaitExpression=a("awaitExpression"),u.Import=a("import"),u.BigIntLiteral=a("bigIntLiteral"),u.ExportNamespaceSpecifier=a("exportNamespaceSpecifier"),u.OptionalMemberExpression=a("optionalMemberExpression"),u.OptionalCallExpression=a("optionalCallExpression"),u.ClassProperty=a("classProperty"),u.ClassAccessorProperty=a("classAccessorProperty"),u.ClassPrivateProperty=a("classPrivateProperty"),u.ClassPrivateMethod=a("classPrivateMethod"),u.PrivateName=a("privateName"),u.StaticBlock=a("staticBlock"),u.ImportAttribute=a("importAttribute"),u.AnyTypeAnnotation=a("anyTypeAnnotation"),u.ArrayTypeAnnotation=a("arrayTypeAnnotation"),u.BooleanTypeAnnotation=a("booleanTypeAnnotation"),u.BooleanLiteralTypeAnnotation=a("booleanLiteralTypeAnnotation"),u.NullLiteralTypeAnnotation=a("nullLiteralTypeAnnotation"),u.ClassImplements=a("classImplements"),u.DeclareClass=a("declareClass"),u.DeclareFunction=a("declareFunction"),u.DeclareInterface=a("declareInterface"),u.DeclareModule=a("declareModule"),u.DeclareModuleExports=a("declareModuleExports"),u.DeclareTypeAlias=a("declareTypeAlias"),u.DeclareOpaqueType=a("declareOpaqueType"),u.DeclareVariable=a("declareVariable"),u.DeclareExportDeclaration=a("declareExportDeclaration"),u.DeclareExportAllDeclaration=a("declareExportAllDeclaration"),u.DeclaredPredicate=a("declaredPredicate"),u.ExistsTypeAnnotation=a("existsTypeAnnotation"),u.FunctionTypeAnnotation=a("functionTypeAnnotation"),u.FunctionTypeParam=a("functionTypeParam"),u.GenericTypeAnnotation=a("genericTypeAnnotation"),u.InferredPredicate=a("inferredPredicate"),u.InterfaceExtends=a("interfaceExtends"),u.InterfaceDeclaration=a("interfaceDeclaration"),u.InterfaceTypeAnnotation=a("interfaceTypeAnnotation"),u.IntersectionTypeAnnotation=a("intersectionTypeAnnotation"),u.MixedTypeAnnotation=a("mixedTypeAnnotation"),u.EmptyTypeAnnotation=a("emptyTypeAnnotation"),u.NullableTypeAnnotation=a("nullableTypeAnnotation"),u.NumberLiteralTypeAnnotation=a("numberLiteralTypeAnnotation"),u.NumberTypeAnnotation=a("numberTypeAnnotation"),u.ObjectTypeAnnotation=a("objectTypeAnnotation"),u.ObjectTypeInternalSlot=a("objectTypeInternalSlot"),u.ObjectTypeCallProperty=a("objectTypeCallProperty"),u.ObjectTypeIndexer=a("objectTypeIndexer"),u.ObjectTypeProperty=a("objectTypeProperty"),u.ObjectTypeSpreadProperty=a("objectTypeSpreadProperty"),u.OpaqueType=a("opaqueType"),u.QualifiedTypeIdentifier=a("qualifiedTypeIdentifier"),u.StringLiteralTypeAnnotation=a("stringLiteralTypeAnnotation"),u.StringTypeAnnotation=a("stringTypeAnnotation"),u.SymbolTypeAnnotation=a("symbolTypeAnnotation"),u.ThisTypeAnnotation=a("thisTypeAnnotation"),u.TupleTypeAnnotation=a("tupleTypeAnnotation"),u.TypeofTypeAnnotation=a("typeofTypeAnnotation"),u.TypeAlias=a("typeAlias"),u.TypeAnnotation=a("typeAnnotation"),u.TypeCastExpression=a("typeCastExpression"),u.TypeParameter=a("typeParameter"),u.TypeParameterDeclaration=a("typeParameterDeclaration"),u.TypeParameterInstantiation=a("typeParameterInstantiation"),u.UnionTypeAnnotation=a("unionTypeAnnotation"),u.Variance=a("variance"),u.VoidTypeAnnotation=a("voidTypeAnnotation"),u.EnumDeclaration=a("enumDeclaration"),u.EnumBooleanBody=a("enumBooleanBody"),u.EnumNumberBody=a("enumNumberBody"),u.EnumStringBody=a("enumStringBody"),u.EnumSymbolBody=a("enumSymbolBody"),u.EnumBooleanMember=a("enumBooleanMember"),u.EnumNumberMember=a("enumNumberMember"),u.EnumStringMember=a("enumStringMember"),u.EnumDefaultedMember=a("enumDefaultedMember"),u.IndexedAccessType=a("indexedAccessType"),u.OptionalIndexedAccessType=a("optionalIndexedAccessType"),u.JSXAttribute=a("jsxAttribute"),u.JSXClosingElement=a("jsxClosingElement"),u.JSXElement=a("jsxElement"),u.JSXEmptyExpression=a("jsxEmptyExpression"),u.JSXExpressionContainer=a("jsxExpressionContainer"),u.JSXSpreadChild=a("jsxSpreadChild"),u.JSXIdentifier=a("jsxIdentifier"),u.JSXMemberExpression=a("jsxMemberExpression"),u.JSXNamespacedName=a("jsxNamespacedName"),u.JSXOpeningElement=a("jsxOpeningElement"),u.JSXSpreadAttribute=a("jsxSpreadAttribute"),u.JSXText=a("jsxText"),u.JSXFragment=a("jsxFragment"),u.JSXOpeningFragment=a("jsxOpeningFragment"),u.JSXClosingFragment=a("jsxClosingFragment"),u.Noop=a("noop"),u.Placeholder=a("placeholder"),u.V8IntrinsicIdentifier=a("v8IntrinsicIdentifier"),u.ArgumentPlaceholder=a("argumentPlaceholder"),u.BindExpression=a("bindExpression"),u.Decorator=a("decorator"),u.DoExpression=a("doExpression"),u.ExportDefaultSpecifier=a("exportDefaultSpecifier"),u.RecordExpression=a("recordExpression"),u.TupleExpression=a("tupleExpression"),u.DecimalLiteral=a("decimalLiteral"),u.ModuleExpression=a("moduleExpression"),u.TopicReference=a("topicReference"),u.PipelineTopicExpression=a("pipelineTopicExpression"),u.PipelineBareFunction=a("pipelineBareFunction"),u.PipelinePrimaryTopicReference=a("pipelinePrimaryTopicReference"),u.VoidPattern=a("voidPattern"),u.TSParameterProperty=a("tsParameterProperty"),u.TSDeclareFunction=a("tsDeclareFunction"),u.TSDeclareMethod=a("tsDeclareMethod"),u.TSQualifiedName=a("tsQualifiedName"),u.TSCallSignatureDeclaration=a("tsCallSignatureDeclaration"),u.TSConstructSignatureDeclaration=a("tsConstructSignatureDeclaration"),u.TSPropertySignature=a("tsPropertySignature"),u.TSMethodSignature=a("tsMethodSignature"),u.TSIndexSignature=a("tsIndexSignature"),u.TSAnyKeyword=a("tsAnyKeyword"),u.TSBooleanKeyword=a("tsBooleanKeyword"),u.TSBigIntKeyword=a("tsBigIntKeyword"),u.TSIntrinsicKeyword=a("tsIntrinsicKeyword"),u.TSNeverKeyword=a("tsNeverKeyword"),u.TSNullKeyword=a("tsNullKeyword"),u.TSNumberKeyword=a("tsNumberKeyword"),u.TSObjectKeyword=a("tsObjectKeyword"),u.TSStringKeyword=a("tsStringKeyword"),u.TSSymbolKeyword=a("tsSymbolKeyword"),u.TSUndefinedKeyword=a("tsUndefinedKeyword"),u.TSUnknownKeyword=a("tsUnknownKeyword"),u.TSVoidKeyword=a("tsVoidKeyword"),u.TSThisType=a("tsThisType"),u.TSFunctionType=a("tsFunctionType"),u.TSConstructorType=a("tsConstructorType"),u.TSTypeReference=a("tsTypeReference"),u.TSTypePredicate=a("tsTypePredicate"),u.TSTypeQuery=a("tsTypeQuery"),u.TSTypeLiteral=a("tsTypeLiteral"),u.TSArrayType=a("tsArrayType"),u.TSTupleType=a("tsTupleType"),u.TSOptionalType=a("tsOptionalType"),u.TSRestType=a("tsRestType"),u.TSNamedTupleMember=a("tsNamedTupleMember"),u.TSUnionType=a("tsUnionType"),u.TSIntersectionType=a("tsIntersectionType"),u.TSConditionalType=a("tsConditionalType"),u.TSInferType=a("tsInferType"),u.TSParenthesizedType=a("tsParenthesizedType"),u.TSTypeOperator=a("tsTypeOperator"),u.TSIndexedAccessType=a("tsIndexedAccessType"),u.TSMappedType=a("tsMappedType"),u.TSTemplateLiteralType=a("tsTemplateLiteralType"),u.TSLiteralType=a("tsLiteralType"),u.TSExpressionWithTypeArguments=a("tsExpressionWithTypeArguments"),u.TSInterfaceDeclaration=a("tsInterfaceDeclaration"),u.TSInterfaceBody=a("tsInterfaceBody"),u.TSTypeAliasDeclaration=a("tsTypeAliasDeclaration"),u.TSInstantiationExpression=a("tsInstantiationExpression"),u.TSAsExpression=a("tsAsExpression"),u.TSSatisfiesExpression=a("tsSatisfiesExpression"),u.TSTypeAssertion=a("tsTypeAssertion"),u.TSEnumBody=a("tsEnumBody"),u.TSEnumDeclaration=a("tsEnumDeclaration"),u.TSEnumMember=a("tsEnumMember"),u.TSModuleDeclaration=a("tsModuleDeclaration"),u.TSModuleBlock=a("tsModuleBlock"),u.TSImportType=a("tsImportType"),u.TSImportEqualsDeclaration=a("tsImportEqualsDeclaration"),u.TSExternalModuleReference=a("tsExternalModuleReference"),u.TSNonNullExpression=a("tsNonNullExpression"),u.TSExportAssignment=a("tsExportAssignment"),u.TSNamespaceExportDeclaration=a("tsNamespaceExportDeclaration"),u.TSTypeAnnotation=a("tsTypeAnnotation"),u.TSTypeParameterInstantiation=a("tsTypeParameterInstantiation"),u.TSTypeParameterDeclaration=a("tsTypeParameterDeclaration"),u.TSTypeParameter=a("tsTypeParameter"),u.NumberLiteral=n.numberLiteral,u.RegexLiteral=n.regexLiteral,u.RestProperty=n.restProperty,u.SpreadProperty=n.spreadProperty,u}var vo;function le(){return vo||(vo=1,(function(n){Object.defineProperty(n,"__esModule",{value:!0});var a=Bl();Object.keys(a).forEach(function(r){r==="default"||r==="__esModule"||r in n&&n[r]===a[r]||Object.defineProperty(n,r,{enumerable:!0,get:function(){return a[r]}})});var i=lp();Object.keys(i).forEach(function(r){r==="default"||r==="__esModule"||r in n&&n[r]===i[r]||Object.defineProperty(n,r,{enumerable:!0,get:function(){return i[r]}})})})(hs)),hs}var xo;function pp(){if(xo)return Va;xo=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.default=i;var n=le(),a=Rs();function i(r,d){const c=r.value.split(/\r\n|\n|\r/);let v=0;for(let A=0;A<c.length;A++)/[^ \t]/.exec(c[A])&&(v=A);let E="";for(let A=0;A<c.length;A++){const P=c[A],b=A===0,I=A===c.length-1,g=A===v;let D=P.replace(/\t/g," ");b||(D=D.replace(/^ +/,"")),I||(D=D.replace(/ +$/,"")),D&&(g||(D+=" "),E+=D)}E&&d.push((0,a.inherits)((0,n.stringLiteral)(E),r))}return Va}var Io;function up(){if(Io)return qa;Io=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.default=i;var n=ee(),a=pp();function i(r){const d=[];for(let c=0;c<r.children.length;c++){let v=r.children[c];if((0,n.isJSXText)(v)){(0,a.default)(v,d);continue}(0,n.isJSXExpressionContainer)(v)&&(v=v.expression),!(0,n.isJSXEmptyExpression)(v)&&d.push(v)}return d}return qa}var Wa={},$a={},go;function Ml(){if(go)return $a;go=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.default=a;var n=de();function a(i){return!!(i&&n.VISITOR_KEYS[i.type])}return $a}var Oo;function cp(){if(Oo)return Wa;Oo=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.default=a;var n=Ml();function a(i){if(!(0,n.default)(i)){var r;const d=(r=i?.type)!=null?r:JSON.stringify(i);throw new TypeError(`Not a valid node of type "${d}"`)}}return Wa}var m={},Do;function dp(){if(Do)return m;Do=1,Object.defineProperty(m,"__esModule",{value:!0}),m.assertAccessor=ls,m.assertAnyTypeAnnotation=Tt,m.assertArgumentPlaceholder=Jn,m.assertArrayExpression=r,m.assertArrayPattern=_e,m.assertArrayTypeAnnotation=mt,m.assertArrowFunctionExpression=Le,m.assertAssignmentExpression=d,m.assertAssignmentPattern=Ne,m.assertAwaitExpression=nt,m.assertBigIntLiteral=at,m.assertBinary=Aa,m.assertBinaryExpression=c,m.assertBindExpression=Un,m.assertBlock=xa,m.assertBlockParent=va,m.assertBlockStatement=P,m.assertBooleanLiteral=fe,m.assertBooleanLiteralTypeAnnotation=Et,m.assertBooleanTypeAnnotation=St,m.assertBreakStatement=b,m.assertCallExpression=I,m.assertCatchClause=g,m.assertClass=wa,m.assertClassAccessorProperty=pt,m.assertClassBody=Ce,m.assertClassDeclaration=Me,m.assertClassExpression=Be,m.assertClassImplements=At,m.assertClassMethod=Ge,m.assertClassPrivateMethod=ct,m.assertClassPrivateProperty=ut,m.assertClassProperty=lt,m.assertCompletionStatement=p,m.assertConditional=y,m.assertConditionalExpression=D,m.assertContinueStatement=R,m.assertDebuggerStatement=h,m.assertDecimalLiteral=Hn,m.assertDeclaration=Ui,m.assertDeclareClass=Pt,m.assertDeclareExportAllDeclaration=_t,m.assertDeclareExportDeclaration=Nt,m.assertDeclareFunction=vt,m.assertDeclareInterface=xt,m.assertDeclareModule=It,m.assertDeclareModuleExports=gt,m.assertDeclareOpaqueType=Dt,m.assertDeclareTypeAlias=Ot,m.assertDeclareVariable=ht,m.assertDeclaredPredicate=Lt,m.assertDecorator=Wn,m.assertDirective=E,m.assertDirectiveLiteral=A,m.assertDoExpression=$n,m.assertDoWhileStatement=L,m.assertEmptyStatement=N,m.assertEmptyTypeAnnotation=Vt,m.assertEnumBody=Ts,m.assertEnumBooleanBody=Sn,m.assertEnumBooleanMember=Pn,m.assertEnumDeclaration=mn,m.assertEnumDefaultedMember=In,m.assertEnumMember=ms,m.assertEnumNumberBody=En,m.assertEnumNumberMember=vn,m.assertEnumStringBody=bn,m.assertEnumStringMember=xn,m.assertEnumSymbolBody=An,m.assertExistsTypeAnnotation=Ct,m.assertExportAllDeclaration=we,m.assertExportDeclaration=ss,m.assertExportDefaultDeclaration=je,m.assertExportDefaultSpecifier=Gn,m.assertExportNamedDeclaration=Re,m.assertExportNamespaceSpecifier=it,m.assertExportSpecifier=Fe,m.assertExpression=ba,m.assertExpressionStatement=_,m.assertExpressionWrapper=w,m.assertFile=M,m.assertFlow=us,m.assertFlowBaseAnnotation=ds,m.assertFlowDeclaration=ys,m.assertFlowPredicate=fs,m.assertFlowType=cs,m.assertFor=U,m.assertForInStatement=V,m.assertForOfStatement=ke,m.assertForStatement=G,m.assertForXStatement=Z,m.assertFunction=pe,m.assertFunctionDeclaration=z,m.assertFunctionExpression=Q,m.assertFunctionParameter=Wi,m.assertFunctionParent=Xi,m.assertFunctionTypeAnnotation=Bt,m.assertFunctionTypeParam=Mt,m.assertGenericTypeAnnotation=wt,m.assertIdentifier=H,m.assertIfStatement=oe,m.assertImmutable=Hi,m.assertImport=rt,m.assertImportAttribute=ft,m.assertImportDeclaration=Ke,m.assertImportDefaultSpecifier=qe,m.assertImportExpression=Ye,m.assertImportNamespaceSpecifier=Te,m.assertImportOrExportDeclaration=is,m.assertImportSpecifier=Ve,m.assertIndexedAccessType=gn,m.assertInferredPredicate=jt,m.assertInterfaceDeclaration=Ft,m.assertInterfaceExtends=Rt,m.assertInterfaceTypeAnnotation=kt,m.assertInterpreterDirective=v,m.assertIntersectionTypeAnnotation=Kt,m.assertJSX=Ss,m.assertJSXAttribute=Dn,m.assertJSXClosingElement=hn,m.assertJSXClosingFragment=qn,m.assertJSXElement=Nn,m.assertJSXEmptyExpression=_n,m.assertJSXExpressionContainer=Ln,m.assertJSXFragment=kn,m.assertJSXIdentifier=Bn,m.assertJSXMemberExpression=Mn,m.assertJSXNamespacedName=wn,m.assertJSXOpeningElement=jn,m.assertJSXOpeningFragment=Kn,m.assertJSXSpreadAttribute=Rn,m.assertJSXSpreadChild=Cn,m.assertJSXText=Fn,m.assertLVal=Gi,m.assertLabeledStatement=re,m.assertLiteral=Qi,m.assertLogicalExpression=B,m.assertLoop=S,m.assertMemberExpression=F,m.assertMetaProperty=C,m.assertMethod=es,m.assertMiscellaneous=Es,m.assertMixedTypeAnnotation=qt,m.assertModuleDeclaration=t,m.assertModuleExpression=Zn,m.assertModuleSpecifier=os,m.assertNewExpression=K,m.assertNoop=Vn,m.assertNullLiteral=ae,m.assertNullLiteralTypeAnnotation=bt,m.assertNullableTypeAnnotation=Yt,m.assertNumberLiteral=xs,m.assertNumberLiteralTypeAnnotation=Xt,m.assertNumberTypeAnnotation=Jt,m.assertNumericLiteral=ue,m.assertObjectExpression=Y,m.assertObjectMember=ts,m.assertObjectMethod=$,m.assertObjectPattern=ze,m.assertObjectProperty=J,m.assertObjectTypeAnnotation=Ut,m.assertObjectTypeCallProperty=$t,m.assertObjectTypeIndexer=Gt,m.assertObjectTypeInternalSlot=Wt,m.assertObjectTypeProperty=zt,m.assertObjectTypeSpreadProperty=Qt,m.assertOpaqueType=Ht,m.assertOptionalCallExpression=ot,m.assertOptionalIndexedAccessType=On,m.assertOptionalMemberExpression=st,m.assertParenthesizedExpression=se,m.assertPattern=as,m.assertPatternLike=$i,m.assertPipelineBareFunction=nr,m.assertPipelinePrimaryTopicReference=rr,m.assertPipelineTopicExpression=tr,m.assertPlaceholder=Yn,m.assertPrivate=ps,m.assertPrivateName=dt,m.assertProgram=j,m.assertProperty=ns,m.assertPureish=Ji,m.assertQualifiedTypeIdentifier=Zt,m.assertRecordExpression=zn,m.assertRegExpLiteral=ce,m.assertRegexLiteral=Is,m.assertRestElement=X,m.assertRestProperty=gs,m.assertReturnStatement=W,m.assertScopable=Pa,m.assertSequenceExpression=ie,m.assertSpreadElement=Qe,m.assertSpreadProperty=Os,m.assertStandardized=Ea,m.assertStatement=s,m.assertStaticBlock=yt,m.assertStringLiteral=te,m.assertStringLiteralTypeAnnotation=en,m.assertStringTypeAnnotation=tn,m.assertSuper=He,m.assertSwitchCase=be,m.assertSwitchStatement=Ae,m.assertSymbolTypeAnnotation=nn,m.assertTSAnyKeyword=fr,m.assertTSArrayType=Mr,m.assertTSAsExpression=ea,m.assertTSBaseType=vs,m.assertTSBigIntKeyword=mr,m.assertTSBooleanKeyword=Tr,m.assertTSCallSignatureDeclaration=pr,m.assertTSConditionalType=qr,m.assertTSConstructSignatureDeclaration=ur,m.assertTSConstructorType=Nr,m.assertTSDeclareFunction=sr,m.assertTSDeclareMethod=or,m.assertTSEntityName=zi,m.assertTSEnumBody=ra,m.assertTSEnumDeclaration=aa,m.assertTSEnumMember=ia,m.assertTSExportAssignment=da,m.assertTSExpressionWithTypeArguments=Gr,m.assertTSExternalModuleReference=ua,m.assertTSFunctionType=hr,m.assertTSImportEqualsDeclaration=pa,m.assertTSImportType=la,m.assertTSIndexSignature=yr,m.assertTSIndexedAccessType=Jr,m.assertTSInferType=Vr,m.assertTSInstantiationExpression=Zr,m.assertTSInterfaceBody=Qr,m.assertTSInterfaceDeclaration=zr,m.assertTSIntersectionType=Kr,m.assertTSIntrinsicKeyword=Sr,m.assertTSLiteralType=$r,m.assertTSMappedType=Ur,m.assertTSMethodSignature=dr,m.assertTSModuleBlock=oa,m.assertTSModuleDeclaration=sa,m.assertTSNamedTupleMember=Fr,m.assertTSNamespaceExportDeclaration=ya,m.assertTSNeverKeyword=Er,m.assertTSNonNullExpression=ca,m.assertTSNullKeyword=br,m.assertTSNumberKeyword=Ar,m.assertTSObjectKeyword=Pr,m.assertTSOptionalType=jr,m.assertTSParameterProperty=ir,m.assertTSParenthesizedType=Yr,m.assertTSPropertySignature=cr,m.assertTSQualifiedName=lr,m.assertTSRestType=Rr,m.assertTSSatisfiesExpression=ta,m.assertTSStringKeyword=vr,m.assertTSSymbolKeyword=xr,m.assertTSTemplateLiteralType=Wr,m.assertTSThisType=Dr,m.assertTSTupleType=wr,m.assertTSType=Ps,m.assertTSTypeAliasDeclaration=Hr,m.assertTSTypeAnnotation=fa,m.assertTSTypeAssertion=na,m.assertTSTypeElement=As,m.assertTSTypeLiteral=Br,m.assertTSTypeOperator=Xr,m.assertTSTypeParameter=Sa,m.assertTSTypeParameterDeclaration=ma,m.assertTSTypeParameterInstantiation=Ta,m.assertTSTypePredicate=Lr,m.assertTSTypeQuery=Cr,m.assertTSTypeReference=_r,m.assertTSUndefinedKeyword=Ir,m.assertTSUnionType=kr,m.assertTSUnknownKeyword=gr,m.assertTSVoidKeyword=Or,m.assertTaggedTemplateExpression=Ze,m.assertTemplateElement=Ue,m.assertTemplateLiteral=et,m.assertTerminatorless=o,m.assertThisExpression=Pe,m.assertThisTypeAnnotation=rn,m.assertThrowStatement=ye,m.assertTopicReference=er,m.assertTryStatement=ve,m.assertTupleExpression=Qn,m.assertTupleTypeAnnotation=an,m.assertTypeAlias=on,m.assertTypeAnnotation=ln,m.assertTypeCastExpression=pn,m.assertTypeParameter=un,m.assertTypeParameterDeclaration=cn,m.assertTypeParameterInstantiation=dn,m.assertTypeScript=bs,m.assertTypeofTypeAnnotation=sn,m.assertUnaryExpression=xe,m.assertUnaryLike=rs,m.assertUnionTypeAnnotation=yn,m.assertUpdateExpression=Ie,m.assertUserWhitespacable=Zi,m.assertV8IntrinsicIdentifier=Xn,m.assertVariableDeclaration=ge,m.assertVariableDeclarator=Oe,m.assertVariance=fn,m.assertVoidPattern=ar,m.assertVoidTypeAnnotation=Tn,m.assertWhile=x,m.assertWhileStatement=De,m.assertWithStatement=he,m.assertYieldExpression=tt;var n=Ca(),a=La();function i(e,l,Fs){if(!(0,n.default)(e,l,Fs))throw new Error(`Expected type "${e}" with option ${JSON.stringify(Fs)}, but instead got "${l.type}".`)}function r(e,l){i("ArrayExpression",e,l)}function d(e,l){i("AssignmentExpression",e,l)}function c(e,l){i("BinaryExpression",e,l)}function v(e,l){i("InterpreterDirective",e,l)}function E(e,l){i("Directive",e,l)}function A(e,l){i("DirectiveLiteral",e,l)}function P(e,l){i("BlockStatement",e,l)}function b(e,l){i("BreakStatement",e,l)}function I(e,l){i("CallExpression",e,l)}function g(e,l){i("CatchClause",e,l)}function D(e,l){i("ConditionalExpression",e,l)}function R(e,l){i("ContinueStatement",e,l)}function h(e,l){i("DebuggerStatement",e,l)}function L(e,l){i("DoWhileStatement",e,l)}function N(e,l){i("EmptyStatement",e,l)}function _(e,l){i("ExpressionStatement",e,l)}function M(e,l){i("File",e,l)}function V(e,l){i("ForInStatement",e,l)}function G(e,l){i("ForStatement",e,l)}function z(e,l){i("FunctionDeclaration",e,l)}function Q(e,l){i("FunctionExpression",e,l)}function H(e,l){i("Identifier",e,l)}function oe(e,l){i("IfStatement",e,l)}function re(e,l){i("LabeledStatement",e,l)}function te(e,l){i("StringLiteral",e,l)}function ue(e,l){i("NumericLiteral",e,l)}function ae(e,l){i("NullLiteral",e,l)}function fe(e,l){i("BooleanLiteral",e,l)}function ce(e,l){i("RegExpLiteral",e,l)}function B(e,l){i("LogicalExpression",e,l)}function F(e,l){i("MemberExpression",e,l)}function K(e,l){i("NewExpression",e,l)}function j(e,l){i("Program",e,l)}function Y(e,l){i("ObjectExpression",e,l)}function $(e,l){i("ObjectMethod",e,l)}function J(e,l){i("ObjectProperty",e,l)}function X(e,l){i("RestElement",e,l)}function W(e,l){i("ReturnStatement",e,l)}function ie(e,l){i("SequenceExpression",e,l)}function se(e,l){i("ParenthesizedExpression",e,l)}function be(e,l){i("SwitchCase",e,l)}function Ae(e,l){i("SwitchStatement",e,l)}function Pe(e,l){i("ThisExpression",e,l)}function ye(e,l){i("ThrowStatement",e,l)}function ve(e,l){i("TryStatement",e,l)}function xe(e,l){i("UnaryExpression",e,l)}function Ie(e,l){i("UpdateExpression",e,l)}function ge(e,l){i("VariableDeclaration",e,l)}function Oe(e,l){i("VariableDeclarator",e,l)}function De(e,l){i("WhileStatement",e,l)}function he(e,l){i("WithStatement",e,l)}function Ne(e,l){i("AssignmentPattern",e,l)}function _e(e,l){i("ArrayPattern",e,l)}function Le(e,l){i("ArrowFunctionExpression",e,l)}function Ce(e,l){i("ClassBody",e,l)}function Be(e,l){i("ClassExpression",e,l)}function Me(e,l){i("ClassDeclaration",e,l)}function we(e,l){i("ExportAllDeclaration",e,l)}function je(e,l){i("ExportDefaultDeclaration",e,l)}function Re(e,l){i("ExportNamedDeclaration",e,l)}function Fe(e,l){i("ExportSpecifier",e,l)}function ke(e,l){i("ForOfStatement",e,l)}function Ke(e,l){i("ImportDeclaration",e,l)}function qe(e,l){i("ImportDefaultSpecifier",e,l)}function Te(e,l){i("ImportNamespaceSpecifier",e,l)}function Ve(e,l){i("ImportSpecifier",e,l)}function Ye(e,l){i("ImportExpression",e,l)}function C(e,l){i("MetaProperty",e,l)}function Ge(e,l){i("ClassMethod",e,l)}function ze(e,l){i("ObjectPattern",e,l)}function Qe(e,l){i("SpreadElement",e,l)}function He(e,l){i("Super",e,l)}function Ze(e,l){i("TaggedTemplateExpression",e,l)}function Ue(e,l){i("TemplateElement",e,l)}function et(e,l){i("TemplateLiteral",e,l)}function tt(e,l){i("YieldExpression",e,l)}function nt(e,l){i("AwaitExpression",e,l)}function rt(e,l){i("Import",e,l)}function at(e,l){i("BigIntLiteral",e,l)}function it(e,l){i("ExportNamespaceSpecifier",e,l)}function st(e,l){i("OptionalMemberExpression",e,l)}function ot(e,l){i("OptionalCallExpression",e,l)}function lt(e,l){i("ClassProperty",e,l)}function pt(e,l){i("ClassAccessorProperty",e,l)}function ut(e,l){i("ClassPrivateProperty",e,l)}function ct(e,l){i("ClassPrivateMethod",e,l)}function dt(e,l){i("PrivateName",e,l)}function yt(e,l){i("StaticBlock",e,l)}function ft(e,l){i("ImportAttribute",e,l)}function Tt(e,l){i("AnyTypeAnnotation",e,l)}function mt(e,l){i("ArrayTypeAnnotation",e,l)}function St(e,l){i("BooleanTypeAnnotation",e,l)}function Et(e,l){i("BooleanLiteralTypeAnnotation",e,l)}function bt(e,l){i("NullLiteralTypeAnnotation",e,l)}function At(e,l){i("ClassImplements",e,l)}function Pt(e,l){i("DeclareClass",e,l)}function vt(e,l){i("DeclareFunction",e,l)}function xt(e,l){i("DeclareInterface",e,l)}function It(e,l){i("DeclareModule",e,l)}function gt(e,l){i("DeclareModuleExports",e,l)}function Ot(e,l){i("DeclareTypeAlias",e,l)}function Dt(e,l){i("DeclareOpaqueType",e,l)}function ht(e,l){i("DeclareVariable",e,l)}function Nt(e,l){i("DeclareExportDeclaration",e,l)}function _t(e,l){i("DeclareExportAllDeclaration",e,l)}function Lt(e,l){i("DeclaredPredicate",e,l)}function Ct(e,l){i("ExistsTypeAnnotation",e,l)}function Bt(e,l){i("FunctionTypeAnnotation",e,l)}function Mt(e,l){i("FunctionTypeParam",e,l)}function wt(e,l){i("GenericTypeAnnotation",e,l)}function jt(e,l){i("InferredPredicate",e,l)}function Rt(e,l){i("InterfaceExtends",e,l)}function Ft(e,l){i("InterfaceDeclaration",e,l)}function kt(e,l){i("InterfaceTypeAnnotation",e,l)}function Kt(e,l){i("IntersectionTypeAnnotation",e,l)}function qt(e,l){i("MixedTypeAnnotation",e,l)}function Vt(e,l){i("EmptyTypeAnnotation",e,l)}function Yt(e,l){i("NullableTypeAnnotation",e,l)}function Xt(e,l){i("NumberLiteralTypeAnnotation",e,l)}function Jt(e,l){i("NumberTypeAnnotation",e,l)}function Ut(e,l){i("ObjectTypeAnnotation",e,l)}function Wt(e,l){i("ObjectTypeInternalSlot",e,l)}function $t(e,l){i("ObjectTypeCallProperty",e,l)}function Gt(e,l){i("ObjectTypeIndexer",e,l)}function zt(e,l){i("ObjectTypeProperty",e,l)}function Qt(e,l){i("ObjectTypeSpreadProperty",e,l)}function Ht(e,l){i("OpaqueType",e,l)}function Zt(e,l){i("QualifiedTypeIdentifier",e,l)}function en(e,l){i("StringLiteralTypeAnnotation",e,l)}function tn(e,l){i("StringTypeAnnotation",e,l)}function nn(e,l){i("SymbolTypeAnnotation",e,l)}function rn(e,l){i("ThisTypeAnnotation",e,l)}function an(e,l){i("TupleTypeAnnotation",e,l)}function sn(e,l){i("TypeofTypeAnnotation",e,l)}function on(e,l){i("TypeAlias",e,l)}function ln(e,l){i("TypeAnnotation",e,l)}function pn(e,l){i("TypeCastExpression",e,l)}function un(e,l){i("TypeParameter",e,l)}function cn(e,l){i("TypeParameterDeclaration",e,l)}function dn(e,l){i("TypeParameterInstantiation",e,l)}function yn(e,l){i("UnionTypeAnnotation",e,l)}function fn(e,l){i("Variance",e,l)}function Tn(e,l){i("VoidTypeAnnotation",e,l)}function mn(e,l){i("EnumDeclaration",e,l)}function Sn(e,l){i("EnumBooleanBody",e,l)}function En(e,l){i("EnumNumberBody",e,l)}function bn(e,l){i("EnumStringBody",e,l)}function An(e,l){i("EnumSymbolBody",e,l)}function Pn(e,l){i("EnumBooleanMember",e,l)}function vn(e,l){i("EnumNumberMember",e,l)}function xn(e,l){i("EnumStringMember",e,l)}function In(e,l){i("EnumDefaultedMember",e,l)}function gn(e,l){i("IndexedAccessType",e,l)}function On(e,l){i("OptionalIndexedAccessType",e,l)}function Dn(e,l){i("JSXAttribute",e,l)}function hn(e,l){i("JSXClosingElement",e,l)}function Nn(e,l){i("JSXElement",e,l)}function _n(e,l){i("JSXEmptyExpression",e,l)}function Ln(e,l){i("JSXExpressionContainer",e,l)}function Cn(e,l){i("JSXSpreadChild",e,l)}function Bn(e,l){i("JSXIdentifier",e,l)}function Mn(e,l){i("JSXMemberExpression",e,l)}function wn(e,l){i("JSXNamespacedName",e,l)}function jn(e,l){i("JSXOpeningElement",e,l)}function Rn(e,l){i("JSXSpreadAttribute",e,l)}function Fn(e,l){i("JSXText",e,l)}function kn(e,l){i("JSXFragment",e,l)}function Kn(e,l){i("JSXOpeningFragment",e,l)}function qn(e,l){i("JSXClosingFragment",e,l)}function Vn(e,l){i("Noop",e,l)}function Yn(e,l){i("Placeholder",e,l)}function Xn(e,l){i("V8IntrinsicIdentifier",e,l)}function Jn(e,l){i("ArgumentPlaceholder",e,l)}function Un(e,l){i("BindExpression",e,l)}function Wn(e,l){i("Decorator",e,l)}function $n(e,l){i("DoExpression",e,l)}function Gn(e,l){i("ExportDefaultSpecifier",e,l)}function zn(e,l){i("RecordExpression",e,l)}function Qn(e,l){i("TupleExpression",e,l)}function Hn(e,l){i("DecimalLiteral",e,l)}function Zn(e,l){i("ModuleExpression",e,l)}function er(e,l){i("TopicReference",e,l)}function tr(e,l){i("PipelineTopicExpression",e,l)}function nr(e,l){i("PipelineBareFunction",e,l)}function rr(e,l){i("PipelinePrimaryTopicReference",e,l)}function ar(e,l){i("VoidPattern",e,l)}function ir(e,l){i("TSParameterProperty",e,l)}function sr(e,l){i("TSDeclareFunction",e,l)}function or(e,l){i("TSDeclareMethod",e,l)}function lr(e,l){i("TSQualifiedName",e,l)}function pr(e,l){i("TSCallSignatureDeclaration",e,l)}function ur(e,l){i("TSConstructSignatureDeclaration",e,l)}function cr(e,l){i("TSPropertySignature",e,l)}function dr(e,l){i("TSMethodSignature",e,l)}function yr(e,l){i("TSIndexSignature",e,l)}function fr(e,l){i("TSAnyKeyword",e,l)}function Tr(e,l){i("TSBooleanKeyword",e,l)}function mr(e,l){i("TSBigIntKeyword",e,l)}function Sr(e,l){i("TSIntrinsicKeyword",e,l)}function Er(e,l){i("TSNeverKeyword",e,l)}function br(e,l){i("TSNullKeyword",e,l)}function Ar(e,l){i("TSNumberKeyword",e,l)}function Pr(e,l){i("TSObjectKeyword",e,l)}function vr(e,l){i("TSStringKeyword",e,l)}function xr(e,l){i("TSSymbolKeyword",e,l)}function Ir(e,l){i("TSUndefinedKeyword",e,l)}function gr(e,l){i("TSUnknownKeyword",e,l)}function Or(e,l){i("TSVoidKeyword",e,l)}function Dr(e,l){i("TSThisType",e,l)}function hr(e,l){i("TSFunctionType",e,l)}function Nr(e,l){i("TSConstructorType",e,l)}function _r(e,l){i("TSTypeReference",e,l)}function Lr(e,l){i("TSTypePredicate",e,l)}function Cr(e,l){i("TSTypeQuery",e,l)}function Br(e,l){i("TSTypeLiteral",e,l)}function Mr(e,l){i("TSArrayType",e,l)}function wr(e,l){i("TSTupleType",e,l)}function jr(e,l){i("TSOptionalType",e,l)}function Rr(e,l){i("TSRestType",e,l)}function Fr(e,l){i("TSNamedTupleMember",e,l)}function kr(e,l){i("TSUnionType",e,l)}function Kr(e,l){i("TSIntersectionType",e,l)}function qr(e,l){i("TSConditionalType",e,l)}function Vr(e,l){i("TSInferType",e,l)}function Yr(e,l){i("TSParenthesizedType",e,l)}function Xr(e,l){i("TSTypeOperator",e,l)}function Jr(e,l){i("TSIndexedAccessType",e,l)}function Ur(e,l){i("TSMappedType",e,l)}function Wr(e,l){i("TSTemplateLiteralType",e,l)}function $r(e,l){i("TSLiteralType",e,l)}function Gr(e,l){i("TSExpressionWithTypeArguments",e,l)}function zr(e,l){i("TSInterfaceDeclaration",e,l)}function Qr(e,l){i("TSInterfaceBody",e,l)}function Hr(e,l){i("TSTypeAliasDeclaration",e,l)}function Zr(e,l){i("TSInstantiationExpression",e,l)}function ea(e,l){i("TSAsExpression",e,l)}function ta(e,l){i("TSSatisfiesExpression",e,l)}function na(e,l){i("TSTypeAssertion",e,l)}function ra(e,l){i("TSEnumBody",e,l)}function aa(e,l){i("TSEnumDeclaration",e,l)}function ia(e,l){i("TSEnumMember",e,l)}function sa(e,l){i("TSModuleDeclaration",e,l)}function oa(e,l){i("TSModuleBlock",e,l)}function la(e,l){i("TSImportType",e,l)}function pa(e,l){i("TSImportEqualsDeclaration",e,l)}function ua(e,l){i("TSExternalModuleReference",e,l)}function ca(e,l){i("TSNonNullExpression",e,l)}function da(e,l){i("TSExportAssignment",e,l)}function ya(e,l){i("TSNamespaceExportDeclaration",e,l)}function fa(e,l){i("TSTypeAnnotation",e,l)}function Ta(e,l){i("TSTypeParameterInstantiation",e,l)}function ma(e,l){i("TSTypeParameterDeclaration",e,l)}function Sa(e,l){i("TSTypeParameter",e,l)}function Ea(e,l){i("Standardized",e,l)}function ba(e,l){i("Expression",e,l)}function Aa(e,l){i("Binary",e,l)}function Pa(e,l){i("Scopable",e,l)}function va(e,l){i("BlockParent",e,l)}function xa(e,l){i("Block",e,l)}function s(e,l){i("Statement",e,l)}function o(e,l){i("Terminatorless",e,l)}function p(e,l){i("CompletionStatement",e,l)}function y(e,l){i("Conditional",e,l)}function S(e,l){i("Loop",e,l)}function x(e,l){i("While",e,l)}function w(e,l){i("ExpressionWrapper",e,l)}function U(e,l){i("For",e,l)}function Z(e,l){i("ForXStatement",e,l)}function pe(e,l){i("Function",e,l)}function Xi(e,l){i("FunctionParent",e,l)}function Ji(e,l){i("Pureish",e,l)}function Ui(e,l){i("Declaration",e,l)}function Wi(e,l){i("FunctionParameter",e,l)}function $i(e,l){i("PatternLike",e,l)}function Gi(e,l){i("LVal",e,l)}function zi(e,l){i("TSEntityName",e,l)}function Qi(e,l){i("Literal",e,l)}function Hi(e,l){i("Immutable",e,l)}function Zi(e,l){i("UserWhitespacable",e,l)}function es(e,l){i("Method",e,l)}function ts(e,l){i("ObjectMember",e,l)}function ns(e,l){i("Property",e,l)}function rs(e,l){i("UnaryLike",e,l)}function as(e,l){i("Pattern",e,l)}function wa(e,l){i("Class",e,l)}function is(e,l){i("ImportOrExportDeclaration",e,l)}function ss(e,l){i("ExportDeclaration",e,l)}function os(e,l){i("ModuleSpecifier",e,l)}function ls(e,l){i("Accessor",e,l)}function ps(e,l){i("Private",e,l)}function us(e,l){i("Flow",e,l)}function cs(e,l){i("FlowType",e,l)}function ds(e,l){i("FlowBaseAnnotation",e,l)}function ys(e,l){i("FlowDeclaration",e,l)}function fs(e,l){i("FlowPredicate",e,l)}function Ts(e,l){i("EnumBody",e,l)}function ms(e,l){i("EnumMember",e,l)}function Ss(e,l){i("JSX",e,l)}function Es(e,l){i("Miscellaneous",e,l)}function bs(e,l){i("TypeScript",e,l)}function As(e,l){i("TSTypeElement",e,l)}function Ps(e,l){i("TSType",e,l)}function vs(e,l){i("TSBaseType",e,l)}function xs(e,l){(0,a.default)("assertNumberLiteral","assertNumericLiteral"),i("NumberLiteral",e,l)}function Is(e,l){(0,a.default)("assertRegexLiteral","assertRegExpLiteral"),i("RegexLiteral",e,l)}function gs(e,l){(0,a.default)("assertRestProperty","assertRestElement"),i("RestProperty",e,l)}function Os(e,l){(0,a.default)("assertSpreadProperty","assertSpreadElement"),i("SpreadProperty",e,l)}function t(e,l){(0,a.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),i("ModuleDeclaration",e,l)}return m}var Oa={},ho;function yp(){if(ho)return Oa;ho=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.default=void 0;var n=le();Oa.default=a;function a(i){switch(i){case"string":return(0,n.stringTypeAnnotation)();case"number":return(0,n.numberTypeAnnotation)();case"undefined":return(0,n.voidTypeAnnotation)();case"boolean":return(0,n.booleanTypeAnnotation)();case"function":return(0,n.genericTypeAnnotation)((0,n.identifier)("Function"));case"object":return(0,n.genericTypeAnnotation)((0,n.identifier)("Object"));case"symbol":return(0,n.genericTypeAnnotation)((0,n.identifier)("Symbol"));case"bigint":return(0,n.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+i)}return Oa}var Ga={},za={},No;function wl(){if(No)return za;No=1,Object.defineProperty(za,"__esModule",{value:!0}),za.default=i;var n=ee();function a(r){return(0,n.isIdentifier)(r)?r.name:`${r.id.name}.${a(r.qualification)}`}function i(r){const d=Array.from(r),c=new Map,v=new Map,E=new Set,A=[];for(let P=0;P<d.length;P++){const b=d[P];if(b&&!A.includes(b)){if((0,n.isAnyTypeAnnotation)(b))return[b];if((0,n.isFlowBaseAnnotation)(b)){v.set(b.type,b);continue}if((0,n.isUnionTypeAnnotation)(b)){E.has(b.types)||(d.push(...b.types),E.add(b.types));continue}if((0,n.isGenericTypeAnnotation)(b)){const I=a(b.id);if(c.has(I)){let g=c.get(I);g.typeParameters?b.typeParameters&&(g.typeParameters.params.push(...b.typeParameters.params),g.typeParameters.params=i(g.typeParameters.params)):g=b.typeParameters}else c.set(I,b);continue}A.push(b)}}for(const[,P]of v)A.push(P);for(const[,P]of c)A.push(P);return A}return za}var _o;function fp(){if(_o)return Ga;_o=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.default=i;var n=le(),a=wl();function i(r){const d=(0,a.default)(r);return d.length===1?d[0]:(0,n.unionTypeAnnotation)(d)}return Ga}var Qa={},Ha={},Lo;function Tp(){if(Lo)return Ha;Lo=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=i;var n=ee();function a(r){return(0,n.isIdentifier)(r)?r.name:(0,n.isThisExpression)(r)?"this":`${r.right.name}.${a(r.left)}`}function i(r){const d=Array.from(r),c=new Map,v=new Map,E=new Set,A=[];for(let P=0;P<d.length;P++){const b=d[P];if(!b||A.includes(b))continue;if((0,n.isTSAnyKeyword)(b))return[b];if((0,n.isTSBaseType)(b)){v.set(b.type,b);continue}if((0,n.isTSUnionType)(b)){E.has(b.types)||(d.push(...b.types),E.add(b.types));continue}const I="typeParameters";if((0,n.isTSTypeReference)(b)&&b[I]){const g=b[I],D=a(b.typeName);if(c.has(D)){let R=c.get(D);const h=R[I];h?(h.params.push(...g.params),h.params=i(h.params)):R=g}else c.set(D,b);continue}A.push(b)}for(const[,P]of v)A.push(P);for(const[,P]of c)A.push(P);return A}return Ha}var Co;function mp(){if(Co)return Qa;Co=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.default=r;var n=le(),a=Tp(),i=ee();function r(d){const c=d.map(E=>(0,i.isTSTypeAnnotation)(E)?E.typeAnnotation:E),v=(0,a.default)(c);return v.length===1?v[0]:(0,n.tsUnionType)(v)}return Qa}var Za={},Bo;function jl(){if(Bo)return Za;Bo=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.buildUndefinedNode=a;var n=le();function a(){return(0,n.unaryExpression)("void",(0,n.numericLiteral)(0),!0)}return Za}var ei={},Mo;function Je(){if(Mo)return ei;Mo=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=c;var n=de(),a=ee();const{hasOwn:i}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function r(A,P,b,I){return A&&typeof A.type=="string"?v(A,P,b,I):A}function d(A,P,b,I){return Array.isArray(A)?A.map(g=>r(g,P,b,I)):r(A,P,b,I)}function c(A,P=!0,b=!1){return v(A,P,b,new Map)}function v(A,P=!0,b=!1,I){if(!A)return A;const{type:g}=A,D={type:A.type};if((0,a.isIdentifier)(A))D.name=A.name,i(A,"optional")&&typeof A.optional=="boolean"&&(D.optional=A.optional),i(A,"typeAnnotation")&&(D.typeAnnotation=P?d(A.typeAnnotation,!0,b,I):A.typeAnnotation),i(A,"decorators")&&(D.decorators=P?d(A.decorators,!0,b,I):A.decorators);else if(i(n.NODE_FIELDS,g))for(const R of Object.keys(n.NODE_FIELDS[g]))i(A,R)&&(P?D[R]=(0,a.isFile)(A)&&R==="comments"?E(A.comments,P,b,I):d(A[R],!0,b,I):D[R]=A[R]);else throw new Error(`Unknown node type: "${g}"`);return i(A,"loc")&&(b?D.loc=null:D.loc=A.loc),i(A,"leadingComments")&&(D.leadingComments=E(A.leadingComments,P,b,I)),i(A,"innerComments")&&(D.innerComments=E(A.innerComments,P,b,I)),i(A,"trailingComments")&&(D.trailingComments=E(A.trailingComments,P,b,I)),i(A,"extra")&&(D.extra=Object.assign({},A.extra)),D}function E(A,P,b,I){return!A||!P?A:A.map(g=>{const D=I.get(g);if(D)return D;const{type:R,value:h,loc:L}=g,N={type:R,value:h,loc:L};return b&&(N.loc=null),I.set(g,N),N})}return ei}var ti={},wo;function Sp(){if(wo)return ti;wo=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.default=a;var n=Je();function a(i){return(0,n.default)(i,!1)}return ti}var ni={},jo;function Ep(){if(jo)return ni;jo=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=a;var n=Je();function a(i){return(0,n.default)(i)}return ni}var ri={},Ro;function bp(){if(Ro)return ri;Ro=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.default=a;var n=Je();function a(i){return(0,n.default)(i,!0,!0)}return ri}var ai={},Fo;function Ap(){if(Fo)return ai;Fo=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.default=a;var n=Je();function a(i){return(0,n.default)(i,!1,!0)}return ai}var ii={},si={},ko;function Rl(){if(ko)return si;ko=1,Object.defineProperty(si,"__esModule",{value:!0}),si.default=n;function n(a,i,r){if(!r||!a)return a;const d=`${i}Comments`;return a[d]?i==="leading"?a[d]=r.concat(a[d]):a[d].push(...r):a[d]=r,a}return si}var Ko;function Pp(){if(Ko)return ii;Ko=1,Object.defineProperty(ii,"__esModule",{value:!0}),ii.default=a;var n=Rl();function a(i,r,d,c){return(0,n.default)(i,r,[{type:c?"CommentLine":"CommentBlock",value:d}])}return ii}var oi={},li={},qo;function js(){if(qo)return li;qo=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=n;function n(a,i,r){i&&r&&(i[a]=Array.from(new Set([].concat(i[a],r[a]).filter(Boolean))))}return li}var Vo;function Fl(){if(Vo)return oi;Vo=1,Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=a;var n=js();function a(i,r){(0,n.default)("innerComments",i,r)}return oi}var pi={},Yo;function kl(){if(Yo)return pi;Yo=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.default=a;var n=js();function a(i,r){(0,n.default)("leadingComments",i,r)}return pi}var ui={},ci={},Xo;function Kl(){if(Xo)return ci;Xo=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.default=a;var n=js();function a(i,r){(0,n.default)("trailingComments",i,r)}return ci}var Jo;function ql(){if(Jo)return ui;Jo=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.default=r;var n=Kl(),a=kl(),i=Fl();function r(d,c){return(0,n.default)(d,c),(0,a.default)(d,c),(0,i.default)(d,c),d}return ui}var di={},Uo;function vp(){if(Uo)return di;Uo=1,Object.defineProperty(di,"__esModule",{value:!0}),di.default=a;var n=Ma();function a(i){return n.COMMENT_KEYS.forEach(r=>{i[r]=null}),i}return di}var O={},Wo;function xp(){if(Wo)return O;Wo=1,Object.defineProperty(O,"__esModule",{value:!0}),O.WHILE_TYPES=O.USERWHITESPACABLE_TYPES=O.UNARYLIKE_TYPES=O.TYPESCRIPT_TYPES=O.TSTYPE_TYPES=O.TSTYPEELEMENT_TYPES=O.TSENTITYNAME_TYPES=O.TSBASETYPE_TYPES=O.TERMINATORLESS_TYPES=O.STATEMENT_TYPES=O.STANDARDIZED_TYPES=O.SCOPABLE_TYPES=O.PUREISH_TYPES=O.PROPERTY_TYPES=O.PRIVATE_TYPES=O.PATTERN_TYPES=O.PATTERNLIKE_TYPES=O.OBJECTMEMBER_TYPES=O.MODULESPECIFIER_TYPES=O.MODULEDECLARATION_TYPES=O.MISCELLANEOUS_TYPES=O.METHOD_TYPES=O.LVAL_TYPES=O.LOOP_TYPES=O.LITERAL_TYPES=O.JSX_TYPES=O.IMPORTOREXPORTDECLARATION_TYPES=O.IMMUTABLE_TYPES=O.FUNCTION_TYPES=O.FUNCTIONPARENT_TYPES=O.FUNCTIONPARAMETER_TYPES=O.FOR_TYPES=O.FORXSTATEMENT_TYPES=O.FLOW_TYPES=O.FLOWTYPE_TYPES=O.FLOWPREDICATE_TYPES=O.FLOWDECLARATION_TYPES=O.FLOWBASEANNOTATION_TYPES=O.EXPRESSION_TYPES=O.EXPRESSIONWRAPPER_TYPES=O.EXPORTDECLARATION_TYPES=O.ENUMMEMBER_TYPES=O.ENUMBODY_TYPES=O.DECLARATION_TYPES=O.CONDITIONAL_TYPES=O.COMPLETIONSTATEMENT_TYPES=O.CLASS_TYPES=O.BLOCK_TYPES=O.BLOCKPARENT_TYPES=O.BINARY_TYPES=O.ACCESSOR_TYPES=void 0;var n=de();O.STANDARDIZED_TYPES=n.FLIPPED_ALIAS_KEYS.Standardized,O.EXPRESSION_TYPES=n.FLIPPED_ALIAS_KEYS.Expression,O.BINARY_TYPES=n.FLIPPED_ALIAS_KEYS.Binary,O.SCOPABLE_TYPES=n.FLIPPED_ALIAS_KEYS.Scopable,O.BLOCKPARENT_TYPES=n.FLIPPED_ALIAS_KEYS.BlockParent,O.BLOCK_TYPES=n.FLIPPED_ALIAS_KEYS.Block,O.STATEMENT_TYPES=n.FLIPPED_ALIAS_KEYS.Statement,O.TERMINATORLESS_TYPES=n.FLIPPED_ALIAS_KEYS.Terminatorless,O.COMPLETIONSTATEMENT_TYPES=n.FLIPPED_ALIAS_KEYS.CompletionStatement,O.CONDITIONAL_TYPES=n.FLIPPED_ALIAS_KEYS.Conditional,O.LOOP_TYPES=n.FLIPPED_ALIAS_KEYS.Loop,O.WHILE_TYPES=n.FLIPPED_ALIAS_KEYS.While,O.EXPRESSIONWRAPPER_TYPES=n.FLIPPED_ALIAS_KEYS.ExpressionWrapper,O.FOR_TYPES=n.FLIPPED_ALIAS_KEYS.For,O.FORXSTATEMENT_TYPES=n.FLIPPED_ALIAS_KEYS.ForXStatement,O.FUNCTION_TYPES=n.FLIPPED_ALIAS_KEYS.Function,O.FUNCTIONPARENT_TYPES=n.FLIPPED_ALIAS_KEYS.FunctionParent,O.PUREISH_TYPES=n.FLIPPED_ALIAS_KEYS.Pureish,O.DECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS.Declaration,O.FUNCTIONPARAMETER_TYPES=n.FLIPPED_ALIAS_KEYS.FunctionParameter,O.PATTERNLIKE_TYPES=n.FLIPPED_ALIAS_KEYS.PatternLike,O.LVAL_TYPES=n.FLIPPED_ALIAS_KEYS.LVal,O.TSENTITYNAME_TYPES=n.FLIPPED_ALIAS_KEYS.TSEntityName,O.LITERAL_TYPES=n.FLIPPED_ALIAS_KEYS.Literal,O.IMMUTABLE_TYPES=n.FLIPPED_ALIAS_KEYS.Immutable,O.USERWHITESPACABLE_TYPES=n.FLIPPED_ALIAS_KEYS.UserWhitespacable,O.METHOD_TYPES=n.FLIPPED_ALIAS_KEYS.Method,O.OBJECTMEMBER_TYPES=n.FLIPPED_ALIAS_KEYS.ObjectMember,O.PROPERTY_TYPES=n.FLIPPED_ALIAS_KEYS.Property,O.UNARYLIKE_TYPES=n.FLIPPED_ALIAS_KEYS.UnaryLike,O.PATTERN_TYPES=n.FLIPPED_ALIAS_KEYS.Pattern,O.CLASS_TYPES=n.FLIPPED_ALIAS_KEYS.Class;const a=O.IMPORTOREXPORTDECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;return O.EXPORTDECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS.ExportDeclaration,O.MODULESPECIFIER_TYPES=n.FLIPPED_ALIAS_KEYS.ModuleSpecifier,O.ACCESSOR_TYPES=n.FLIPPED_ALIAS_KEYS.Accessor,O.PRIVATE_TYPES=n.FLIPPED_ALIAS_KEYS.Private,O.FLOW_TYPES=n.FLIPPED_ALIAS_KEYS.Flow,O.FLOWTYPE_TYPES=n.FLIPPED_ALIAS_KEYS.FlowType,O.FLOWBASEANNOTATION_TYPES=n.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,O.FLOWDECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS.FlowDeclaration,O.FLOWPREDICATE_TYPES=n.FLIPPED_ALIAS_KEYS.FlowPredicate,O.ENUMBODY_TYPES=n.FLIPPED_ALIAS_KEYS.EnumBody,O.ENUMMEMBER_TYPES=n.FLIPPED_ALIAS_KEYS.EnumMember,O.JSX_TYPES=n.FLIPPED_ALIAS_KEYS.JSX,O.MISCELLANEOUS_TYPES=n.FLIPPED_ALIAS_KEYS.Miscellaneous,O.TYPESCRIPT_TYPES=n.FLIPPED_ALIAS_KEYS.TypeScript,O.TSTYPEELEMENT_TYPES=n.FLIPPED_ALIAS_KEYS.TSTypeElement,O.TSTYPE_TYPES=n.FLIPPED_ALIAS_KEYS.TSType,O.TSBASETYPE_TYPES=n.FLIPPED_ALIAS_KEYS.TSBaseType,O.MODULEDECLARATION_TYPES=a,O}var yi={},fi={},$o;function Vl(){if($o)return fi;$o=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.default=i;var n=ee(),a=le();function i(r,d){if((0,n.isBlockStatement)(r))return r;let c=[];return(0,n.isEmptyStatement)(r)?c=[]:((0,n.isStatement)(r)||((0,n.isFunction)(d)?r=(0,a.returnStatement)(r):r=(0,a.expressionStatement)(r)),c=[r]),(0,a.blockStatement)(c)}return fi}var Go;function Ip(){if(Go)return yi;Go=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=a;var n=Vl();function a(i,r="body"){const d=(0,n.default)(i[r],i);return i[r]=d,d}return yi}var Ti={},mi={},zo;function Yl(){if(zo)return mi;zo=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.default=i;var n=Ba(),a=Ms();function i(r){r=r+"";let d="";for(const c of r)d+=(0,a.isIdentifierChar)(c.codePointAt(0))?c:"-";return d=d.replace(/^[-0-9]+/,""),d=d.replace(/[-\s]+(.)?/g,function(c,v){return v?v.toUpperCase():""}),(0,n.default)(d)||(d=`_${d}`),d||"_"}return mi}var Qo;function gp(){if(Qo)return Ti;Qo=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=a;var n=Yl();function a(i){return i=(0,n.default)(i),(i==="eval"||i==="arguments")&&(i="_"+i),i}return Ti}var Si={},Ho;function Op(){if(Ho)return Si;Ho=1,Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=i;var n=ee(),a=le();function i(r,d=r.key||r.property){return!r.computed&&(0,n.isIdentifier)(d)&&(d=(0,a.stringLiteral)(d.name)),d}return Si}var Da={},Zo;function Dp(){if(Zo)return Da;Zo=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.default=void 0;var n=ee();Da.default=a;function a(i){if((0,n.isExpressionStatement)(i)&&(i=i.expression),(0,n.isExpression)(i))return i;if((0,n.isClass)(i)?(i.type="ClassExpression",i.abstract=!1):(0,n.isFunction)(i)&&(i.type="FunctionExpression"),!(0,n.isExpression)(i))throw new Error(`cannot turn ${i.type} to an expression`);return i}return Da}var Ei={},bi={},Ai={},el;function Xl(){if(el)return Ai;el=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=r;var n=de();const a=Symbol(),i=Symbol();function r(d,c,v){if(!d)return!1;const E=n.VISITOR_KEYS[d.type];if(!E)return!1;v=v||{};const A=c(d,v);if(A!==void 0)switch(A){case a:return!1;case i:return!0}for(const P of E){const b=d[P];if(b){if(Array.isArray(b)){for(const I of b)if(r(I,c,v))return!0}else if(r(b,c,v))return!0}}return!1}return r.skip=a,r.stop=i,Ai}var Pi={},tl;function Jl(){if(tl)return Pi;tl=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=r;var n=Ma();const a=["tokens","start","end","loc","raw","rawValue"],i=[...n.COMMENT_KEYS,"comments",...a];function r(d,c={}){const v=c.preserveComments?a:i;for(const A of v)d[A]!=null&&(d[A]=void 0);for(const A of Object.keys(d))A.startsWith("_")&&d[A]!=null&&(d[A]=void 0);const E=Object.getOwnPropertySymbols(d);for(const A of E)d[A]=null}return Pi}var nl;function Ul(){if(nl)return bi;nl=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=i;var n=Xl(),a=Jl();function i(r,d){return(0,n.default)(r,a.default,d),r}return bi}var rl;function hp(){if(rl)return Ei;rl=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=r;var n=ee(),a=Je(),i=Ul();function r(d,c=d.key){let v;return d.kind==="method"?r.increment()+"":((0,n.isIdentifier)(c)?v=c.name:(0,n.isStringLiteral)(c)?v=JSON.stringify(c.value):v=JSON.stringify((0,i.default)((0,a.default)(c))),d.computed&&(v=`[${v}]`),d.static&&(v=`static:${v}`),v)}return r.uid=0,r.increment=function(){return r.uid>=Number.MAX_SAFE_INTEGER?r.uid=0:r.uid++},Ei}var ha={},al;function Np(){if(al)return ha;al=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.default=void 0;var n=ee(),a=le();ha.default=i;function i(r,d){if((0,n.isStatement)(r))return r;let c=!1,v;if((0,n.isClass)(r))c=!0,v="ClassDeclaration";else if((0,n.isFunction)(r))c=!0,v="FunctionDeclaration";else if((0,n.isAssignmentExpression)(r))return(0,a.expressionStatement)(r);if(c&&!r.id&&(v=!1),!v){if(d)return!1;throw new Error(`cannot turn ${r.type} to a statement`)}return r.type=v,r}return ha}var Na={},il;function _p(){if(il)return Na;il=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.default=void 0;var n=Ba(),a=le();Na.default=c;const i=Function.call.bind(Object.prototype.toString);function r(v){return i(v)==="[object RegExp]"}function d(v){if(typeof v!="object"||v===null||Object.prototype.toString.call(v)!=="[object Object]")return!1;const E=Object.getPrototypeOf(v);return E===null||Object.getPrototypeOf(E)===null}function c(v){if(v===void 0)return(0,a.identifier)("undefined");if(v===!0||v===!1)return(0,a.booleanLiteral)(v);if(v===null)return(0,a.nullLiteral)();if(typeof v=="string")return(0,a.stringLiteral)(v);if(typeof v=="number"){let E;if(Number.isFinite(v))E=(0,a.numericLiteral)(Math.abs(v));else{let A;Number.isNaN(v)?A=(0,a.numericLiteral)(0):A=(0,a.numericLiteral)(1),E=(0,a.binaryExpression)("/",A,(0,a.numericLiteral)(0))}return(v<0||Object.is(v,-0))&&(E=(0,a.unaryExpression)("-",E)),E}if(typeof v=="bigint")return v<0?(0,a.unaryExpression)("-",(0,a.bigIntLiteral)(-v)):(0,a.bigIntLiteral)(v);if(r(v)){const E=v.source,A=/\/([a-z]*)$/.exec(v.toString())[1];return(0,a.regExpLiteral)(E,A)}if(Array.isArray(v))return(0,a.arrayExpression)(v.map(c));if(d(v)){const E=[];for(const A of Object.keys(v)){let P,b=!1;(0,n.default)(A)?A==="__proto__"?(b=!0,P=(0,a.stringLiteral)(A)):P=(0,a.identifier)(A):P=(0,a.stringLiteral)(A),E.push((0,a.objectProperty)(P,c(v[A]),b))}return(0,a.objectExpression)(E)}throw new Error("don't know how to turn this value into a node")}return Na}var vi={},sl;function Lp(){if(sl)return vi;sl=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=a;var n=le();function a(i,r,d=!1){return i.object=(0,n.memberExpression)(i.object,i.property,i.computed),i.property=r,i.computed=!!d,i}return vi}var xi={},ol;function Cp(){if(ol)return xi;ol=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.default=i;var n=Ma(),a=ql();function i(r,d){if(!r||!d)return r;for(const c of n.INHERIT_KEYS.optional)r[c]==null&&(r[c]=d[c]);for(const c of Object.keys(d))c.startsWith("_")&&c!=="__clone"&&(r[c]=d[c]);for(const c of n.INHERIT_KEYS.force)r[c]=d[c];return(0,a.default)(r,d),r}return xi}var Ii={},ll;function Bp(){if(ll)return Ii;ll=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=i;var n=le(),a=Rs();function i(r,d){if((0,a.isSuper)(r.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return r.object=(0,n.memberExpression)(d,r.object),r}return Ii}var gi={},pl;function Mp(){if(pl)return gi;pl=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.default=n;function n(a){const i=[].concat(a),r=Object.create(null);for(;i.length;){const d=i.pop();if(d)switch(d.type){case"ArrayPattern":i.push(...d.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":i.push(d.left);break;case"ObjectPattern":i.push(...d.properties);break;case"ObjectProperty":i.push(d.value);break;case"RestElement":case"UpdateExpression":i.push(d.argument);break;case"UnaryExpression":d.operator==="delete"&&i.push(d.argument);break;case"Identifier":r[d.name]=d;break}}return r}return gi}var Oi={},ul;function Yi(){if(ul)return Oi;ul=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.default=a;var n=ee();function a(r,d,c,v){const E=[].concat(r),A=Object.create(null);for(;E.length;){const P=E.shift();if(!P||v&&((0,n.isAssignmentExpression)(P)||(0,n.isUnaryExpression)(P)||(0,n.isUpdateExpression)(P)))continue;if((0,n.isIdentifier)(P)){d?(A[P.name]=A[P.name]||[]).push(P):A[P.name]=P;continue}if((0,n.isExportDeclaration)(P)&&!(0,n.isExportAllDeclaration)(P)){(0,n.isDeclaration)(P.declaration)&&E.push(P.declaration);continue}if(c){if((0,n.isFunctionDeclaration)(P)){E.push(P.id);continue}if((0,n.isFunctionExpression)(P))continue}const b=a.keys[P.type];if(b)for(let I=0;I<b.length;I++){const g=b[I],D=P[g];D&&(Array.isArray(D)?E.push(...D):E.push(D))}}return A}const i={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};return a.keys=i,Oi}var _a={},cl;function wp(){if(cl)return _a;cl=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=void 0;var n=Yi();_a.default=a;function a(i,r){return(0,n.default)(i,r,!0)}return _a}var Di={},dl;function jp(){if(dl)return Di;dl=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=r;var n=ee();function a(d){return(0,n.isNullLiteral)(d)?"null":(0,n.isRegExpLiteral)(d)?`/${d.pattern}/${d.flags}`:(0,n.isTemplateLiteral)(d)?d.quasis.map(c=>c.value.raw).join(""):d.value!==void 0?String(d.value):null}function i(d){if(!d.computed||(0,n.isLiteral)(d.key))return d.key}function r(d,c){if("id"in d&&d.id)return{name:d.id.name,originalNode:d.id};let v="",E;if((0,n.isObjectProperty)(c,{value:d})?E=i(c):(0,n.isObjectMethod)(d)||(0,n.isClassMethod)(d)?(E=i(d),d.kind==="get"?v="get ":d.kind==="set"&&(v="set ")):(0,n.isVariableDeclarator)(c,{init:d})?E=c.id:(0,n.isAssignmentExpression)(c,{operator:"=",right:d})&&(E=c.left),!E)return null;const A=(0,n.isLiteral)(E)?a(E):(0,n.isIdentifier)(E)?E.name:(0,n.isPrivateName)(E)?E.id.name:null;return A==null?null:{name:v+A,originalNode:E}}return Di}var hi={},yl;function Rp(){if(yl)return hi;yl=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=a;var n=de();function a(r,d,c){typeof d=="function"&&(d={enter:d});const{enter:v,exit:E}=d;i(r,v,E,c,[])}function i(r,d,c,v,E){const A=n.VISITOR_KEYS[r.type];if(A){d&&d(r,E,v);for(const P of A){const b=r[P];if(Array.isArray(b))for(let I=0;I<b.length;I++){const g=b[I];g&&(E.push({node:r,key:P,index:I}),i(g,d,c,v,E),E.pop())}else b&&(E.push({node:r,key:P}),i(b,d,c,v,E),E.pop())}c&&c(r,E,v)}}return hi}var Ni={},fl;function Fp(){if(fl)return Ni;fl=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=a;var n=Yi();function a(i,r,d){if(d&&i.type==="Identifier"&&r.type==="ObjectProperty"&&d.type==="ObjectExpression")return!1;const c=n.default.keys[r.type];if(c)for(let v=0;v<c.length;v++){const E=c[v],A=r[E];if(Array.isArray(A)){if(A.includes(i))return!0}else if(A===i)return!0}return!1}return Ni}var _i={},Li={},Tl;function Wl(){if(Tl)return Li;Tl=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.default=i;var n=ee(),a=Symbol.for("var used to be block scoped");function i(r){return(0,n.isVariableDeclaration)(r)&&(r.kind!=="var"||r[a])}return Li}var ml;function kp(){if(ml)return _i;ml=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.default=i;var n=ee(),a=Wl();function i(r){return(0,n.isFunctionDeclaration)(r)||(0,n.isClassDeclaration)(r)||(0,a.default)(r)}return _i}var Ci={},Sl;function Kp(){if(Sl)return Ci;Sl=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=i;var n=Bs(),a=ee();function i(r){return(0,n.default)(r.type,"Immutable")?!0:(0,a.isIdentifier)(r)?r.name==="undefined":!1}return Ci}var Bi={},El;function qp(){if(El)return Bi;El=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.default=a;var n=de();function a(i,r){if(typeof i!="object"||typeof r!="object"||i==null||r==null)return i===r;if(i.type!==r.type)return!1;const d=Object.keys(n.NODE_FIELDS[i.type]||i.type),c=n.VISITOR_KEYS[i.type];for(const v of d){const E=i[v],A=r[v];if(typeof E!=typeof A)return!1;if(!(E==null&&A==null)){if(E==null||A==null)return!1;if(Array.isArray(E)){if(!Array.isArray(A)||E.length!==A.length)return!1;for(let P=0;P<E.length;P++)if(!a(E[P],A[P]))return!1;continue}if(typeof E=="object"&&!(c!=null&&c.includes(v))){for(const P of Object.keys(E))if(E[P]!==A[P])return!1;continue}if(!a(E,A))return!1}}return!0}return Bi}var Mi={},bl;function Vp(){if(bl)return Mi;bl=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=n;function n(a,i,r){switch(i.type){case"MemberExpression":case"OptionalMemberExpression":return i.property===a?!!i.computed:i.object===a;case"JSXMemberExpression":return i.object===a;case"VariableDeclarator":return i.init===a;case"ArrowFunctionExpression":return i.body===a;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return i.key===a?!!i.computed:!1;case"ObjectProperty":return i.key===a?!!i.computed:r?.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return i.key===a?!!i.computed:!0;case"ClassPrivateProperty":return i.key!==a;case"ClassDeclaration":case"ClassExpression":return i.superClass===a;case"AssignmentExpression":return i.right===a;case"AssignmentPattern":return i.right===a;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:i.local===a;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 i.key!==a;case"TSEnumMember":return i.id!==a;case"TSPropertySignature":return i.key===a?!!i.computed:!0}return!0}return Mi}var wi={},Al;function Yp(){if(Al)return wi;Al=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.default=a;var n=ee();function a(i,r){return(0,n.isBlockStatement)(i)&&((0,n.isFunction)(r)||(0,n.isCatchClause)(r))?!1:(0,n.isPattern)(i)&&((0,n.isFunction)(r)||(0,n.isCatchClause)(r))?!0:(0,n.isScopable)(i)}return wi}var ji={},Pl;function Xp(){if(Pl)return ji;Pl=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=a;var n=ee();function a(i){return(0,n.isImportDefaultSpecifier)(i)||(0,n.isIdentifier)(i.imported||i.exported,{name:"default"})}return ji}var Ri={},vl;function Jp(){if(vl)return Ri;vl=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.default=i;var n=Ba();const a=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 i(r){return(0,n.default)(r)&&!a.has(r)}return Ri}var Fi={},xl;function Up(){if(xl)return Fi;xl=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=i;var n=ee(),a=Symbol.for("var used to be block scoped");function i(r){return(0,n.isVariableDeclaration)(r,{kind:"var"})&&!r[a]}return Fi}var ki={},Ki={},Il;function Wp(){if(Il)return Ki;Il=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=c;var n=Yi(),a=ee(),i=le(),r=jl(),d=Je();function c(v,E){const A=[];let P=!0;for(const b of v)if((0,a.isEmptyStatement)(b)||(P=!1),(0,a.isExpression)(b))A.push(b);else if((0,a.isExpressionStatement)(b))A.push(b.expression);else if((0,a.isVariableDeclaration)(b)){if(b.kind!=="var")return;for(const I of b.declarations){const g=(0,n.default)(I);for(const D of Object.keys(g))E.push({kind:b.kind,id:(0,d.default)(g[D])});I.init&&A.push((0,i.assignmentExpression)("=",I.id,I.init))}P=!0}else if((0,a.isIfStatement)(b)){const I=b.consequent?c([b.consequent],E):(0,r.buildUndefinedNode)(),g=b.alternate?c([b.alternate],E):(0,r.buildUndefinedNode)();if(!I||!g)return;A.push((0,i.conditionalExpression)(b.test,I,g))}else if((0,a.isBlockStatement)(b)){const I=c(b.body,E);if(!I)return;A.push(I)}else if((0,a.isEmptyStatement)(b))v.indexOf(b)===0&&(P=!0);else return;return P&&A.push((0,r.buildUndefinedNode)()),A.length===1?A[0]:(0,i.sequenceExpression)(A)}return Ki}var gl;function $p(){if(gl)return ki;gl=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=a;var n=Wp();function a(i,r){if(!(i!=null&&i.length))return;const d=[],c=(0,n.default)(i,d);if(c){for(const v of d)r.push(v);return c}}return ki}var Ol;function Rs(){return Ol||(Ol=1,(function(n){Object.defineProperty(n,"__esModule",{value:!0});var a={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(n,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Ve.default}}),Object.defineProperty(n,"addComment",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(n,"addComments",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(n,"appendToMemberExpression",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(n,"assertNode",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"buildMatchMemberExpression",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(n,"clone",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(n,"cloneDeep",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(n,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"cloneNode",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(n,"cloneWithoutLoc",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(n,"createFlowUnionType",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(n,"createTSUnionType",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(n,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(n,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(n,"ensureBlock",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(n,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(n,"getBindingIdentifiers",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(n,"getFunctionName",{enumerable:!0,get:function(){return Pe.default}}),Object.defineProperty(n,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(n,"inheritInnerComments",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(n,"inheritLeadingComments",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(n,"inheritTrailingComments",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(n,"inherits",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(n,"inheritsComments",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(n,"is",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(n,"isBinding",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(n,"isBlockScoped",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(n,"isImmutable",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(n,"isLet",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(n,"isNode",{enumerable:!0,get:function(){return Ne.default}}),Object.defineProperty(n,"isNodesEquivalent",{enumerable:!0,get:function(){return _e.default}}),Object.defineProperty(n,"isPlaceholderType",{enumerable:!0,get:function(){return Le.default}}),Object.defineProperty(n,"isReferenced",{enumerable:!0,get:function(){return Ce.default}}),Object.defineProperty(n,"isScope",{enumerable:!0,get:function(){return Be.default}}),Object.defineProperty(n,"isSpecifierDefault",{enumerable:!0,get:function(){return Me.default}}),Object.defineProperty(n,"isType",{enumerable:!0,get:function(){return we.default}}),Object.defineProperty(n,"isValidES3Identifier",{enumerable:!0,get:function(){return je.default}}),Object.defineProperty(n,"isValidIdentifier",{enumerable:!0,get:function(){return Re.default}}),Object.defineProperty(n,"isVar",{enumerable:!0,get:function(){return Fe.default}}),Object.defineProperty(n,"matchesPattern",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(n,"prependToMemberExpression",{enumerable:!0,get:function(){return J.default}}),n.react=void 0,Object.defineProperty(n,"removeComments",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(n,"removeProperties",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(n,"removePropertiesDeep",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(n,"removeTypeDuplicates",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(n,"shallowEqual",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(n,"toBindingIdentifierName",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(n,"toBlock",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(n,"toComputedKey",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(n,"toExpression",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(n,"toIdentifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(n,"toKeyAlias",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(n,"toStatement",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(n,"traverse",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(n,"traverseFast",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return Ke.default}}),Object.defineProperty(n,"valueToNode",{enumerable:!0,get:function(){return K.default}});var i=Ql(),r=Hl(),d=up(),c=cp(),v=dp();Object.keys(v).forEach(function(C){C==="default"||C==="__esModule"||Object.prototype.hasOwnProperty.call(a,C)||C in n&&n[C]===v[C]||Object.defineProperty(n,C,{enumerable:!0,get:function(){return v[C]}})});var E=yp(),A=fp(),P=mp(),b=jl();Object.keys(b).forEach(function(C){C==="default"||C==="__esModule"||Object.prototype.hasOwnProperty.call(a,C)||C in n&&n[C]===b[C]||Object.defineProperty(n,C,{enumerable:!0,get:function(){return b[C]}})});var I=le();Object.keys(I).forEach(function(C){C==="default"||C==="__esModule"||Object.prototype.hasOwnProperty.call(a,C)||C in n&&n[C]===I[C]||Object.defineProperty(n,C,{enumerable:!0,get:function(){return I[C]}})});var g=Je(),D=Sp(),R=Ep(),h=bp(),L=Ap(),N=Pp(),_=Rl(),M=Fl(),V=kl(),G=ql(),z=Kl(),Q=vp(),H=xp();Object.keys(H).forEach(function(C){C==="default"||C==="__esModule"||Object.prototype.hasOwnProperty.call(a,C)||C in n&&n[C]===H[C]||Object.defineProperty(n,C,{enumerable:!0,get:function(){return H[C]}})});var oe=Ma();Object.keys(oe).forEach(function(C){C==="default"||C==="__esModule"||Object.prototype.hasOwnProperty.call(a,C)||C in n&&n[C]===oe[C]||Object.defineProperty(n,C,{enumerable:!0,get:function(){return oe[C]}})});var re=Ip(),te=gp(),ue=Vl(),ae=Op(),fe=Dp(),ce=Yl(),B=hp(),F=Np(),K=_p(),j=de();Object.keys(j).forEach(function(C){C==="default"||C==="__esModule"||Object.prototype.hasOwnProperty.call(a,C)||C in n&&n[C]===j[C]||Object.defineProperty(n,C,{enumerable:!0,get:function(){return j[C]}})});var Y=Lp(),$=Cp(),J=Bp(),X=Jl(),W=Ul(),ie=wl(),se=Mp(),be=Yi(),Ae=wp(),Pe=jp(),ye=Rp();Object.keys(ye).forEach(function(C){C==="default"||C==="__esModule"||Object.prototype.hasOwnProperty.call(a,C)||C in n&&n[C]===ye[C]||Object.defineProperty(n,C,{enumerable:!0,get:function(){return ye[C]}})});var ve=Xl(),xe=Cs(),Ie=Ca(),ge=Fp(),Oe=kp(),De=Kp(),he=Wl(),Ne=Ml(),_e=qp(),Le=Ll(),Ce=Vp(),Be=Yp(),Me=Xp(),we=Bs(),je=Jp(),Re=Ba(),Fe=Up(),ke=Nl(),Ke=ws(),qe=_l(),Te=ee();Object.keys(Te).forEach(function(C){C==="default"||C==="__esModule"||Object.prototype.hasOwnProperty.call(a,C)||C in n&&n[C]===Te[C]||Object.defineProperty(n,C,{enumerable:!0,get:function(){return Te[C]}})});var Ve=La(),Ye=$p();n.react={isReactComponent:i.default,isCompatTag:r.default,buildChildren:d.default},n.toSequenceExpression=Ye.default,process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")})(Ds)),Ds}var Ls=Rs();const Gp=/[.+^${}()|[\]\\]/g,zp=n=>n.replaceAll(Gp,String.raw`\$&`),$l=n=>{const a=n.split("**").map(i=>i.split("*").map(r=>zp(r)).join("[^/]*")).join(".*");return new RegExp(`^${a}$`)},Qp=(n,a)=>n.some(i=>i instanceof RegExp?i.test(a):$l(i).test(a)),Hp=n=>{const a=n.map(i=>i instanceof RegExp?i:$l(i));return i=>a.some(r=>r.test(i))},Gl=Ks.default??Ks,Zp=ks.default??ks,Dl="data-vdt-source",eu=n=>{let a;const i=n.params[0];if(i)return i.type==="Identifier"&&(a=i.name),i.type==="ObjectPattern"&&i.properties.forEach(r=>{r.type==="RestElement"&&r.argument.type==="Identifier"&&(a=r.argument.name)}),a},qi=n=>n.type==="JSXIdentifier"?n.name:n.type==="JSXMemberExpression"?`${qi(n.object)}.${qi(n.property)}`:`${n.namespace.name}:${n.name.name}`,tu=n=>{const a=new Map,i=new Map;try{const r=hl(n,{plugins:["jsx","typescript"],sourceType:"module"});Gl(r,{JSXOpeningElement(d){const c=qi(d.node.name),v=i.get(c)??0;i.set(c,v+1),d.node.loc&&a.set(`${c}:${v}`,{col:d.node.loc.start.column,line:d.node.loc.start.line})}})}catch{}return a},nu=(n,a,i,r,d,c)=>{const{loc:v}=n.node;if(!v)return!1;const E=qi(n.node.name);let A;if(d&&c){const g=c.get(E)??0;c.set(E,g+1),A=d.get(`${E}:${g}`)}if(E==="Fragment"||E==="React.Fragment"||E==="html"||E==="head"||E==="body"||r(E))return!1;const P=n.node.attributes.some(g=>g.type==="JSXAttribute"&&g.name.type==="JSXIdentifier"&&g.name.name===Dl);if(n.node.attributes.some(g=>g.type==="JSXSpreadAttribute"&&g.argument.type==="Identifier"&&g.argument.name===a)||P)return!1;const b=A?.line??v.start.line,I=A?.col??v.start.column;return n.node.attributes.push(Ls.jsxAttribute(Ls.jsxIdentifier(Dl),Ls.stringLiteral(`${i}:${b}:${I+1}`))),!0},ru=(n,a,i,r)=>{let d=!1;const c=r?new Map:void 0,v=Hp(i),E=P=>b=>{nu(b,P,a,v,r,c)&&(d=!0)},A=P=>{const b=eu(P.node);P.traverse({ArrowFunctionExpression(I){A(I),I.skip()},FunctionDeclaration(I){A(I),I.skip()},FunctionExpression(I){A(I),I.skip()},JSXOpeningElement:E(b)})};return Gl(n,{ArrowFunctionExpression(P){A(P),P.skip()},FunctionDeclaration(P){A(P),P.skip()},FunctionExpression(P){A(P),P.skip()}}),d},lu=(n,a,i={},r)=>{const[d]=a.split("?"),c=d.replace(`${zl(process.cwd())}/`,"");if(!Qp(i.files??[],c))try{const v=hl(n,{plugins:["jsx","typescript"],sourceType:"module"}),E=r&&r!==n?tu(r):void 0;return ru(v,c,i.components??[],E)?Zp(v,{filename:a,retainLines:!0,sourceFileName:d,sourceMaps:!0}):void 0}catch{return}};export{Dl as SOURCE_ATTR,lu as addSourceToJsx};
1
+ import me from"@babel/generator";import{parse as Ee}from"@babel/parser";import ye from"@babel/traverse";import{normalizePath as Ue}from"vite";const xe="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u037f\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u052f\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05d0-\\u05ea\\u05ef-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086a\\u0870-\\u0887\\u0889-\\u088f\\u08a0-\\u08c9\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u09fc\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0af9\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c39\\u0c3d\\u0c58-\\u0c5a\\u0c5c\\u0c5d\\u0c60\\u0c61\\u0c80\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cdc-\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d04-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d54-\\u0d56\\u0d5f-\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e86-\\u0e8a\\u0e8c-\\u0ea3\\u0ea5\\u0ea7-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f5\\u13f8-\\u13fd\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f8\\u1700-\\u1711\\u171f-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1878\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191e\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19b0-\\u19c9\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4c\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1c80-\\u1c8a\\u1c90-\\u1cba\\u1cbd-\\u1cbf\\u1ce9-\\u1cec\\u1cee-\\u1cf3\\u1cf5\\u1cf6\\u1cfa\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2118-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309b-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u31a0-\\u31bf\\u31f0-\\u31ff\\u3400-\\u4dbf\\u4e00-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua69d\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua7dc\\ua7f1-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua8fd\\ua8fe\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\ua9e0-\\ua9e4\\ua9e6-\\ua9ef\\ua9fa-\\ua9fe\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa7e-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uab30-\\uab5a\\uab5c-\\uab69\\uab70-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",Ke="\\xb7\\u0300-\\u036f\\u0387\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u0669\\u0670\\u06d6-\\u06dc\\u06df-\\u06e4\\u06e7\\u06e8\\u06ea-\\u06ed\\u06f0-\\u06f9\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07c0-\\u07c9\\u07eb-\\u07f3\\u07fd\\u0816-\\u0819\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0859-\\u085b\\u0897-\\u089f\\u08ca-\\u08e1\\u08e3-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09cb-\\u09cd\\u09d7\\u09e2\\u09e3\\u09e6-\\u09ef\\u09fe\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2\\u0ae3\\u0ae6-\\u0aef\\u0afa-\\u0aff\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b55-\\u0b57\\u0b62\\u0b63\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c00-\\u0c04\\u0c3c\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0c66-\\u0c6f\\u0c81-\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0ce6-\\u0cef\\u0cf3\\u0d00-\\u0d03\\u0d3b\\u0d3c\\u0d3e-\\u0d44\\u0d46-\\u0d48\\u0d4a-\\u0d4d\\u0d57\\u0d62\\u0d63\\u0d66-\\u0d6f\\u0d81-\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0de6-\\u0def\\u0df2\\u0df3\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0e50-\\u0e59\\u0eb1\\u0eb4-\\u0ebc\\u0ec8-\\u0ece\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f3e\\u0f3f\\u0f71-\\u0f84\\u0f86\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102b-\\u103e\\u1040-\\u1049\\u1056-\\u1059\\u105e-\\u1060\\u1062-\\u1064\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b4-\\u17d3\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u180f-\\u1819\\u18a9\\u1920-\\u192b\\u1930-\\u193b\\u1946-\\u194f\\u19d0-\\u19da\\u1a17-\\u1a1b\\u1a55-\\u1a5e\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1ab0-\\u1abd\\u1abf-\\u1add\\u1ae0-\\u1aeb\\u1b00-\\u1b04\\u1b34-\\u1b44\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1b80-\\u1b82\\u1ba1-\\u1bad\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c24-\\u1c37\\u1c40-\\u1c49\\u1c50-\\u1c59\\u1cd0-\\u1cd2\\u1cd4-\\u1ce8\\u1ced\\u1cf4\\u1cf7-\\u1cf9\\u1dc0-\\u1dff\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2cef-\\u2cf1\\u2d7f\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\u30fb\\ua620-\\ua629\\ua66f\\ua674-\\ua67d\\ua69e\\ua69f\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua823-\\ua827\\ua82c\\ua880\\ua881\\ua8b4-\\ua8c5\\ua8d0-\\ua8d9\\ua8e0-\\ua8f1\\ua8ff-\\ua909\\ua926-\\ua92d\\ua947-\\ua953\\ua980-\\ua983\\ua9b3-\\ua9c0\\ua9d0-\\ua9d9\\ua9e5\\ua9f0-\\ua9f9\\uaa29-\\uaa36\\uaa43\\uaa4c\\uaa4d\\uaa50-\\uaa59\\uaa7b-\\uaa7d\\uaab0\\uaab2-\\uaab4\\uaab7\\uaab8\\uaabe\\uaabf\\uaac1\\uaaeb-\\uaaef\\uaaf5\\uaaf6\\uabe3-\\uabea\\uabec\\uabed\\uabf0-\\uabf9\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe2f\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f\\uff65",ge=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],_e=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],We=new RegExp("["+xe+"]"),ze=new RegExp("["+xe+Ke+"]");function te(e,t){let a=65536;for(let r=0,n=t.length;r<n;r+=2){if(a+=t[r],a>e)return!1;if(a+=t[r+1],a>=e)return!0}return!1}function Ye(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&We.test(String.fromCharCode(e)):te(e,ge)}function Qe(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&ze.test(String.fromCharCode(e)):te(e,ge)||te(e,_e)}function He(e){let t=!0;for(let a=0;a<e.length;a++){let r=e.charCodeAt(a);if((r&64512)===55296&&a+1<e.length){const n=e.charCodeAt(++a);(n&64512)===56320&&(r=65536+((r&1023)<<10)+(n&1023))}if(t){if(t=!1,!Ye(r))return!1}else if(!Qe(r))return!1}return!t}const re={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"]},Ge=new Set(re.keyword),Ze=new Set(re.strict);new Set(re.strictBind);function Pe(e,t){return t&&e==="await"||e==="enum"}function et(e,t){return Pe(e,t)||Ze.has(e)}function he(e){return Ge.has(e)}var tt=function(e){return e>=48&&e<=57};function at(e,t,a,r,n,d){const m=a,u=r,y=n;let c="",x=null,g=a;const{length:I}=t;for(;;){if(a>=I){d.unterminated(m,u,y),c+=t.slice(g,a);break}const L=t.charCodeAt(a);if(it(e,L,t,a)){c+=t.slice(g,a);break}if(L===92){c+=t.slice(g,a);const q=rt(t,a,r,n,e==="template",d);q.ch===null&&!x?x={pos:a,lineStart:r,curLine:n}:c+=q.ch,{pos:a,lineStart:r,curLine:n}=q,g=a}else L===8232||L===8233?(++a,++n,r=a):L===10||L===13?(c+=t.slice(g,a)+`
2
+ `,++a,L===13&&t.charCodeAt(a)===10&&++a,++n,g=r=a):++a}return{pos:a,str:c,firstInvalidLoc:x,lineStart:r,curLine:n}}function it(e,t,a,r){return t===96||t===36&&a.charCodeAt(r+1)===123}function rt(e,t,a,r,n,d){t++;const u=c=>({pos:t,ch:c,lineStart:a,curLine:r}),y=e.charCodeAt(t++);switch(y){case 110:return u(`
3
+ `);case 114:return u("\r");case 120:{let c;return{code:c,pos:t}=ae(e,t,a,r,2,!1,!1,d),u(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=ot(e,t,a,r,!1,d),u(c===null?null:String.fromCodePoint(c))}case 116:return u(" ");case 98:return u("\b");case 118:return u("\v");case 102:return u("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:a=t,++r;case 8232:case 8233:return u("");case 56:case 57:return u(null);default:if(y>=48&&y<=55){const c=t-1;let x=/^[0-7]+/.exec(e.slice(c,t+2))[0],g=parseInt(x,8);g>255&&(x=x.slice(0,-1),g=parseInt(x,8)),t+=x.length-1;const I=e.charCodeAt(t);return u(x!=="0"||I===56||I===57?null:String.fromCharCode(g))}return u(String.fromCharCode(y))}}function ae(e,t,a,r,n,d,m,u){const y=t;let c;return{n:c,pos:t}=nt(e,t,a,r,16,n,d,!1,u,!0),c===null&&(t=y-1),{code:c,pos:t}}function nt(e,t,a,r,n,d,m,u,y,c){const x=t;let g=!1,I=0;for(let L=0,q=d??1/0;L<q;++L){const B=e.charCodeAt(t);let O;if(B===95&&u!=="bail")return e.charCodeAt(t-1),e.charCodeAt(t+1),{n:null,pos:t};if(B>=97?O=B-97+10:B>=65?O=B-65+10:tt(B)?O=B-48:O=1/0,O>=n){if(O<=9&&c)return{n:null,pos:t};if(O<=9&&y.invalidDigit(t,a,r,n))O=0;else if(m)O=0,g=!0;else break}++t,I=I*n+O}return t===x||d!=null&&t-x!==d||g?{n:null,pos:t}:{n:I,pos:t}}function ot(e,t,a,r,n,d){const m=e.charCodeAt(t);let u;if(m===123){if(++t,{code:u,pos:t}=ae(e,t,a,r,e.indexOf("}",t)-t,!0,n,d),++t,u!==null&&u>1114111)return{code:null,pos:t}}else({code:u,pos:t}=ae(e,t,a,r,4,!1,n,d));return{code:u,pos:t}}function st(e,t){const a=Object.keys(t);for(const r of a)if(e[r]!==t[r])return!1;return!0}function lt(e,t){return e===t?!0:e==null||Y[t]?!1:!!C[t]?.includes(e)}function ut(e,t){return!!(e===t||_[e]?.includes(t))}function A(e,t,a){return t?lt(t.type,e)?a===void 0?!0:st(t,a):!a&&t.type==="Placeholder"&&e in C?ut(t.expectedNode,e):!1:!1}function dt(e,t=!0){return typeof e!="string"||t&&(he(e)||et(e,!0))?!1:He(e)}const Ie=["||","&&","??"],pt=["++","--"],ct=[">","<",">=","<="],ft=["==","===","!=","!=="],mt=[...ft,"in","instanceof"],yt=[...mt,...ct],Ae=["-","/","%","*","**","&","|",">>",">>>","<<","^"],be=["+",...Ae,...yt,"|>"],ve=["=","+=",...Ae.map(e=>e+"="),...Ie.map(e=>e+"=")],bt=["delete","!"],vt=["+","-","~"],Tt=["typeof"],St=["void","throw",...bt,...vt,...Tt],we={},Y={},C={},ne={},De={},Fe={},Q={},ke={};function K(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function P(e,...t){return Object.assign(e,...t)}function w(e){return{validate:e}}function o(...e){return w(i(...e))}function E(e){return{validate:e,optional:!0}}function k(e,t){return{validate:e,default:t,optional:!1}}function b(...e){return{validate:i(...e),optional:!0}}function H(e){return h(l("array"),M(e))}function S(...e){return H(i(...e))}function v(...e){return w(S(...e))}function M(e){const t=$;function a(r,n,d){if(!Array.isArray(d))return;let m=0;const u={toString(){return`${n}[${m}]`}};for(;m<d.length;m++){const y=d[m];e(r,u,y),t(r,u,y)}}return a.each=e,a}function T(...e){function t(a,r,n){if(!e.includes(n))throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(n)}`)}return t.oneOf=e,t}const oe=[];function i(...e){const t=new Set;oe.push({types:e,set:t});function a(r,n,d){const m=d?.type;if(m!=null){if(t.has(m)){$(r,n,d);return}if(m==="Placeholder"){for(const u of e)if(A(u,d)){$(r,n,d);return}}}throw new TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(m)}`)}return a.oneOfNodeTypes=e,a}function G(...e){function t(a,r,n){const d=K(n);for(const m of e)if(d===m||A(m,n)){$(a,r,n);return}throw new TypeError(`Property ${r} of ${a.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(n?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function l(e){function t(a,r,n){if(K(n)!==e)throw new TypeError(`Property ${r} expected type of ${e} but got ${K(n)}`)}return t.type=e,t}function Ne(e){const t=Object.keys(e);function a(r,n,d){const m=[];for(const u of t)try{ce(r,u,d[u],e[u])}catch(y){if(y instanceof TypeError){m.push(y.message);continue}throw y}if(m.length)throw new TypeError(`Property ${n} of ${r.type} expected to have the following:
4
+ ${m.join(`
5
+ `)}`)}return a.shapeOf=e,a}function se(){function e(t){let a=t;for(;t;){const{type:r}=a;if(r==="OptionalCallExpression"){if(a.optional)return;a=a.callee;continue}if(r==="OptionalMemberExpression"){if(a.optional)return;a=a.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${a?.type}`)}return e}function h(...e){function t(...a){for(const r of e)r(...a)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}const Et=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),xt=new Set(["default","optional","deprecated","validate"]),ie={};function j(...e){return(t,a={})=>{let r=a.aliases;r||(a.inherits&&(r=ie[a.inherits].aliases?.slice()),r??=[],a.aliases=r);const n=e.filter(d=>!r.includes(d));r.unshift(...n),N(t,a)}}function N(e,t={}){const a=t.inherits&&ie[t.inherits]||{},r=t.visitor||a.visitor||[],n=t.aliases||a.aliases||[],d=t.builder||a.builder||t.visitor||[];let m=t.fields;if(!m&&(m={},a.fields)){const u=Object.getOwnPropertyNames(a.fields);for(const y of u){const c=a.fields[y],x=c.default;if(Array.isArray(x)?x.length>0:x&&typeof x=="object")throw new Error("field defaults can only be primitives or empty arrays currently");m[y]={default:Array.isArray(x)?[]:x,optional:c.optional,deprecated:c.deprecated,validate:c.validate}}}for(const u of Object.keys(t))if(!Et.has(u))throw new Error(`Unknown type option "${u}" on ${e}`);t.deprecatedAlias&&(Fe[t.deprecatedAlias]=e);for(const u of r.concat(d))m[u]=m[u]||{};for(const u of Object.keys(m)){const y=m[u];y.default===null&&(y.optional??=!0),y.default===void 0?(y.default=null,y.optional??=!1):!y.validate&&y.default!=null&&(y.validate=l(K(y.default)));for(const c of Object.keys(y))if(!xt.has(c))throw new Error(`Unknown field key "${c}" on ${e}.${u}`)}we[e]=t.visitor=r,De[e]=t.builder=d,ne[e]=t.fields=m,Y[e]=t.aliases=n,n.forEach(u=>{C[u]=C[u]||[],C[u].push(e)}),t.validate&&(Q[e]=t.validate),t.unionShape&&(ke[e]=t.unionShape),ie[e]=t}const gt=Object.defineProperty({__proto__:null,ALIAS_KEYS:Y,BUILDER_KEYS:De,DEPRECATED_KEYS:Fe,FLIPPED_ALIAS_KEYS:C,NODE_FIELDS:ne,NODE_PARENT_VALIDATIONS:Q,NODE_UNION_SHAPES__PRIVATE:ke,VISITOR_KEYS:we,allExpandedTypes:oe,arrayOf:H,arrayOfType:S,assertEach:M,assertNodeOrValueType:G,assertNodeType:i,assertOneOf:T,assertOptionalChainStart:se,assertShape:Ne,assertValueType:l,chain:h,combine:P,default:N,defineAliasedType:j,validate:w,validateArrayOfType:v,validateDefault:k,validateOptional:E,validateOptionalType:b,validateType:o},Symbol.toStringTag,{value:"Module"}),J=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:i("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?i("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):i("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}}),Le={unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:i("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:i("Identifier","PrivateName")}}}]}},s=j("Standardized");s("ArrayExpression",{fields:{elements:{validate:H(G("null","Expression","SpreadElement")),default:void 0}},visitor:["elements"],aliases:["Expression"]});s("AssignmentExpression",{fields:{operator:{validate:P((function(){const e=T(...ve),t=T("=");return function(a,r,n){(A("Pattern",a.left)?t:e)(a,r,n)}})(),{oneOf:ve})},left:{validate:i("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:i("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});s("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:T(...be)},left:{validate:(function(){const e=i("Expression"),t=i("Expression","PrivateName");return P(function(a,r,n){(a.operator==="in"?t:e)(a,r,n)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:i("Expression")}},unionShape:{discriminator:"operator",shapes:[{name:"in",value:["in"],properties:{left:{validate:i("Expression","PrivateName")}}},{name:"notIn",value:be.filter(e=>e!=="in"),properties:{left:{validate:i("Expression")}}}]},visitor:["left","right"],aliases:["Binary","Expression"]});s("InterpreterDirective",{builder:["value"],fields:{value:{validate:l("string")}}});s("Directive",{visitor:["value"],fields:{value:{validate:i("DirectiveLiteral")}}});s("DirectiveLiteral",{builder:["value"],fields:{value:{validate:l("string")}}});s("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:S("Directive"),default:[]},body:v("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});s("BreakStatement",{visitor:["label"],fields:{label:{validate:i("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});s("CallExpression",{visitor:["callee","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:{callee:{validate:i("Expression","Super","Import","V8IntrinsicIdentifier")},arguments:v("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:i("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});s("CatchClause",{visitor:["param","body"],fields:{param:{validate:i("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:i("BlockStatement")}},aliases:["Scopable","BlockParent"]});s("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:i("Expression")},consequent:{validate:i("Expression")},alternate:{validate:i("Expression")}},aliases:["Expression","Conditional"]});s("ContinueStatement",{visitor:["label"],fields:{label:{validate:i("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});s("DebuggerStatement",{aliases:["Statement"]});s("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:i("Expression")},body:{validate:i("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});s("EmptyStatement",{aliases:["Statement"]});s("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:i("Expression")}},aliases:["Statement","ExpressionWrapper"]});s("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:i("Program")},comments:{validate:M(i("CommentBlock","CommentLine")),optional:!0},tokens:{validate:M(Object.assign(()=>{},{type:"any"})),optional:!0}}});s("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:i("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:i("Expression")},body:{validate:i("Statement")}}});s("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:i("VariableDeclaration","Expression"),optional:!0},test:{validate:i("Expression"),optional:!0},update:{validate:i("Expression"),optional:!0},body:{validate:i("Statement")}}});const R=()=>({params:v("FunctionParameter"),generator:{default:!1},async:{default:!1}}),X=()=>({returnType:{validate:i("TypeAnnotation","TSTypeAnnotation"),optional:!0},typeParameters:{validate:i("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0}}),Oe=()=>({...R(),declare:{validate:l("boolean"),optional:!0},id:{validate:i("Identifier"),optional:!0}});s("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:{...Oe(),...X(),body:{validate:i("BlockStatement")},predicate:{validate:i("FlowPredicate"),optional:!0}},aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:(function(){const e=i("Identifier");return function(t,a,r){A("ExportDefaultDeclaration",t)||e(r,"id",r.id)}})()});s("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{...R(),...X(),id:{validate:i("Identifier"),optional:!0},body:{validate:i("BlockStatement")},predicate:{validate:i("FlowPredicate"),optional:!0}}});const V=()=>({typeAnnotation:{validate:i("TypeAnnotation","TSTypeAnnotation"),optional:!0},optional:{validate:l("boolean"),optional:!0},decorators:{validate:S("Decorator"),optional:!0}});s("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:{...V(),name:{validate:h(l("string"),P(function(e,t,a){if(!dt(a,!1))throw new TypeError(`"${a}" is not a valid identifier name`)},{type:"string"}))}},validate:function(e,t,a){const r=/\.(\w+)$/.exec(t.toString());if(!r)return;const[,n]=r,d={computed:!1};if(n==="property"){if(A("MemberExpression",e,d)||A("OptionalMemberExpression",e,d))return}else if(n==="key"){if(A("Property",e,d)||A("Method",e,d))return}else if(n==="exported"){if(A("ExportSpecifier",e))return}else if(n==="imported"){if(A("ImportSpecifier",e,{imported:a}))return}else if(n==="meta"&&A("MetaProperty",e,{meta:a}))return;if((he(a.name)||Pe(a.name,!1))&&a.name!=="this")throw new TypeError(`"${a.name}" is not a valid identifier`)}});s("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:i("Expression")},consequent:{validate:i("Statement")},alternate:{optional:!0,validate:i("Statement")}}});s("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:i("Identifier")},body:{validate:i("Statement")}}});s("StringLiteral",{builder:["value"],fields:{value:{validate:l("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});s("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:h(l("number"),P(function(e,t,a){if(1/a<0||!Number.isFinite(a)){const r=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${a}) instead.`);if(!new Error().stack.includes("regenerator"))throw r}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});s("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});s("BooleanLiteral",{builder:["value"],fields:{value:{validate:l("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});s("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:l("string")},flags:{validate:h(l("string"),P(function(e,t,a){const r=/[^dgimsuvy]/.exec(a);if(r)throw new TypeError(`"${r[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}});s("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:T(...Ie)},left:{validate:i("Expression")},right:{validate:i("Expression")}}});s("MemberExpression",{builder:["object","property","computed"],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],...Le,fields:{object:{validate:i("Expression","Super")},property:{validate:(function(){const e=i("Identifier","PrivateName"),t=i("Expression");return P(function(a,r,n){(a.computed?t:e)(a,r,n)},{oneOfNodeTypes:["Expression","Identifier","PrivateName"]})})()},computed:{default:!1}}});s("NewExpression",{inherits:"CallExpression",fields:{callee:{validate:i("Expression")},arguments:v("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:i("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});s("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:T("script","module"),default:"script"},interpreter:{validate:i("InterpreterDirective"),default:null,optional:!0},directives:{validate:S("Directive"),default:[]},body:v("Statement")},aliases:["Scopable","BlockParent","Block"]});s("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:v("ObjectMethod","ObjectProperty","SpreadElement")}});s("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],...J(),fields:{...R(),...X(),kind:{validate:T("method","get","set")},computed:{default:!1},key:{validate:(function(){const e=i("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=i("Expression");return P(function(a,r,n){(a.computed?t:e)(a,r,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"]})})()},decorators:{validate:S("Decorator"),optional:!0},body:{validate:i("BlockStatement")}},aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});s("ObjectProperty",{builder:["key","value","computed","shorthand"],...J(!0),fields:{computed:{default:!1},key:{validate:(function(){const e=i("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=i("Expression");return P(function(a,r,n){(a.computed?t:e)(a,r,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"]})})()},value:{validate:i("Expression","PatternLike")},shorthand:{validate:h(l("boolean"),P(function(e,t,a){if(a){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!A("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})),default:!1},decorators:{validate:S("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:(function(){const e=i("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=i("Expression");return function(a,r,n){(A("ObjectPattern",a)?e:t)(n,"value",n.value)}})()});s("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike"],deprecatedAlias:"RestProperty",fields:{...V(),argument:{validate:i("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}},validate:function(e,t){const a=/(\w+)\[(\d+)\]/.exec(t.toString());if(!a)throw new Error("Internal Babel error: malformed key.");const[,r,n]=a;if(e[r].length>+n+1)throw new TypeError(`RestElement must be last element of ${r}`)}});s("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:i("Expression"),optional:!0}}});s("SequenceExpression",{visitor:["expressions"],fields:{expressions:v("Expression")},aliases:["Expression"]});s("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:i("Expression")}}});s("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:i("Expression"),optional:!0},consequent:v("Statement")}});s("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:i("Expression")},cases:v("SwitchCase")}});s("ThisExpression",{aliases:["Expression","TSEntityName"]});s("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:i("Expression")}}});s("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:h(i("BlockStatement"),P(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:i("CatchClause")},finalizer:{optional:!0,validate:i("BlockStatement")}}});s("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:i("Expression")},operator:{validate:T(...St)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});s("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:i("Identifier","MemberExpression")},operator:{validate:T(...pt)}},visitor:["argument"],aliases:["Expression"]});s("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:l("boolean"),optional:!0},kind:{validate:T("var","let","const","using","await using")},declarations:v("VariableDeclarator")},validate:(()=>{const e=i("Identifier","Placeholder"),t=i("Identifier","ArrayPattern","ObjectPattern","Placeholder"),a=i("Identifier","VoidPattern","Placeholder");return function(r,n,d){const{kind:m,declarations:u}=d,y=A("ForXStatement",r,{left:d});if(y&&u.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${r.type}`);for(const c of u)m==="const"||m==="let"||m==="var"?!y&&!c.init?e(c,"id",c.id):t(c,"id",c.id):a(c,"id",c.id)}})()});s("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:i("Identifier","ArrayPattern","ObjectPattern","VoidPattern")},definite:{optional:!0,validate:l("boolean")},init:{optional:!0,validate:i("Expression")}}});s("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:i("Expression")},body:{validate:i("Statement")}}});s("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:i("Expression")},body:{validate:i("Statement")}}});s("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike"],fields:{...V(),left:{validate:i("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:i("Expression")},decorators:{validate:S("Decorator"),optional:!0}}});s("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:{...V(),elements:{validate:h(l("array"),M(G("null","PatternLike")))}}});s("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{...R(),generator:{default:null,optional:!0,validate:P((e,t,a)=>{if(a)throw new TypeError("ArrowFunctionExpression cannot be a generator")},{type:"boolean"})},...X(),expression:{optional:!0,validate:l("boolean")},body:{validate:i("BlockStatement","Expression")},predicate:{validate:i("FlowPredicate"),optional:!0}}});s("ClassBody",{visitor:["body"],fields:{body:v("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});s("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:i("Identifier"),optional:!0},typeParameters:{validate:i("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0},body:{validate:i("ClassBody")},superClass:{optional:!0,validate:i("Expression")},superTypeArguments:{validate:i("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:S("TSClassImplements","ClassImplements"),optional:!0},decorators:{validate:S("Decorator"),optional:!0},mixins:{validate:i("InterfaceExtends"),optional:!0}}});s("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:i("Identifier"),optional:!0},typeParameters:{validate:i("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0},body:{validate:i("ClassBody")},superClass:{optional:!0,validate:i("Expression")},superTypeArguments:{validate:i("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:S("TSClassImplements","ClassImplements"),optional:!0},decorators:{validate:S("Decorator"),optional:!0},mixins:{validate:i("InterfaceExtends"),optional:!0},declare:{validate:l("boolean"),optional:!0},abstract:{validate:l("boolean"),optional:!0}},validate:(function(){const e=i("Identifier");return function(t,a,r){A("ExportDefaultDeclaration",t)||e(r,"id",r.id)}})()});const U={attributes:{optional:!0,validate:S("ImportAttribute")}};s("ExportAllDeclaration",{visitor:["source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:i("StringLiteral")},exportKind:E(T("type","value")),...U}});s("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:o("FunctionDeclaration","ClassDeclaration","Expression","TSDeclareFunction","TSInterfaceDeclaration","EnumDeclaration"),exportKind:E(T("value"))}});s("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:h(i("Declaration"),P(function(e,t,a){if(a&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(a&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["VariableDeclaration","FunctionDeclaration","ClassDeclaration","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSTypeAliasDeclaration","EnumDeclaration","InterfaceDeclaration","OpaqueType","TypeAlias"]}))},...U,specifiers:{default:[],validate:H((function(){const e=i("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=i("ExportSpecifier");return P(function(a,r,n){(a.source?e:t)(a,r,n)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})})())},source:{validate:i("StringLiteral"),optional:!0},exportKind:E(T("type","value"))}});s("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:i("Identifier")},exported:{validate:i("Identifier","StringLiteral")},exportKind:{validate:T("type","value"),optional:!0}}});s("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(function(){const e=i("VariableDeclaration"),t=i("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return P(function(a,r,n){A("VariableDeclaration",n)?e(a,r,n):t(a,r,n)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:i("Expression")},body:{validate:i("Statement")},await:{default:!1}}});s("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{...U,module:{optional:!0,validate:l("boolean")},phase:{default:null,validate:T("source","defer")},specifiers:v("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:i("StringLiteral")},importKind:{validate:T("type","typeof","value"),optional:!0}}});s("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:i("Identifier")}}});s("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:i("Identifier")}}});s("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:i("Identifier")},imported:{validate:i("Identifier","StringLiteral")},importKind:{validate:T("type","typeof","value"),optional:!0}}});s("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:h(i("Identifier"),P(function(e,t,a){let r;switch(a.name){case"function":r="sent";break;case"new":r="target";break;case"import":r="meta";break}if(!A("Identifier",e.property,{name:r}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:i("Identifier")}}});const le=()=>({abstract:{validate:l("boolean"),default:!1,optional:!0},accessibility:{validate:T("public","private","protected"),optional:!0},static:{default:!1},override:{optional:!0,validate:l("boolean"),default:!1},computed:{default:!1},optional:{validate:l("boolean"),optional:!0},key:{validate:h((function(){const e=i("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=i("Expression");return function(a,r,n){(a.computed?t:e)(a,r,n)}})(),i("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}),ue=(e=!0)=>({...R(),...le(),params:v("FunctionParameter","TSParameterProperty"),kind:{validate:T("get","set","method","constructor"),default:"method"},access:{validate:h(l("string"),T("public","private","protected")),optional:!0},...e?{decorators:{validate:S("Decorator"),optional:!0}}:{}});s("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],...J(),fields:{...ue(),...X(),body:{validate:i("BlockStatement")}}});s("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:{...V(),properties:v("RestElement","ObjectProperty")}});s("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:i("Expression")}}});s("Super");s("TaggedTemplateExpression",{visitor:["tag","typeArguments","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:i("Expression")},quasi:{validate:i("TemplateLiteral")},typeArguments:{validate:i("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});s("TemplateElement",{builder:["value","tail"],fields:{value:{validate:h(Ne({raw:{validate:l("string")},cooked:{validate:l("string"),optional:!0}}),function(e){const t=e.value.raw;let a=!1;const r=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:d}=at("template",t,0,0,0,{unterminated(){a=!0},strictNumericEscape:r,invalidEscapeSequence:r,numericSeparatorInEscapeSequence:r,unexpectedNumericSeparator:r,invalidDigit:r,invalidCodePoint:r});if(!a)throw new Error("Invalid raw");e.value.cooked=d?null:n})},tail:{default:!1}}});s("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:v("TemplateElement"),expressions:{validate:h(l("array"),M(i("Expression","TSType")),function(e,t,a){if(e.quasis.length!==a.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
6
+ Expected ${a.length+1} quasis but got ${e.quasis.length}`)})}}});s("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:h(l("boolean"),P(function(e,t,a){if(a&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:i("Expression")}}});s("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:i("Expression")}}});s("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:T("source","defer")},source:{validate:i("Expression")},options:{validate:i("Expression"),optional:!0}}});s("Import");s("BigIntLiteral",{builder:["value"],fields:{value:{validate:l("bigint")}},aliases:["Expression","Pureish","Literal","Immutable"]});s("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:i("Identifier","StringLiteral")}}});s("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],...Le,fields:{object:{validate:i("Expression")},property:{validate:(function(){const e=i("Identifier","PrivateName"),t=i("Expression");return P(function(a,r,n){(a.computed?t:e)(a,r,n)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},computed:{default:!1},optional:{validate:h(l("boolean"),se())}}});s("OptionalCallExpression",{visitor:["callee","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:i("Expression")},arguments:v("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:h(l("boolean"),se())},typeArguments:{validate:i("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});s("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],...J(),fields:{...le(),value:{validate:i("Expression"),optional:!0},definite:{validate:l("boolean"),optional:!0},typeAnnotation:{validate:i("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:S("Decorator"),optional:!0},readonly:{validate:l("boolean"),optional:!0},declare:{validate:l("boolean"),optional:!0},variance:{validate:i("Variance"),optional:!0}}});s("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:i("PrivateName")},value:{validate:i("Expression"),optional:!0},typeAnnotation:{validate:i("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:S("Decorator"),optional:!0},static:{validate:l("boolean"),default:!1},readonly:{validate:l("boolean"),optional:!0},optional:{validate:l("boolean"),optional:!0},definite:{validate:l("boolean"),optional:!0},variance:{validate:i("Variance"),optional:!0}}});s("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:{...ue(),...X(),kind:{validate:T("get","set","method"),default:"method"},key:{validate:i("PrivateName")},body:{validate:i("BlockStatement")}}});s("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:i("Identifier")}}});s("StaticBlock",{visitor:["body"],fields:{body:v("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});s("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:i("Identifier","StringLiteral")},value:{validate:i("StringLiteral")}}});const p=j("Flow"),de=e=>{const t=e==="DeclareClass";p(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:o("Identifier"),typeParameters:b("TypeParameterDeclaration"),extends:E(S("InterfaceExtends")),...t?{mixins:E(S("InterfaceExtends")),implements:E(S("ClassImplements"))}:{},body:o("ObjectTypeAnnotation")}})};p("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:o("FlowType")}});p("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:w(l("boolean"))}});p("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("ClassImplements",{visitor:["id","typeParameters"],fields:{id:o("Identifier"),typeParameters:b("TypeParameterInstantiation")}});de("DeclareClass");p("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:o("Identifier"),predicate:b("FlowPredicate")}});de("DeclareInterface");p("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:o("Identifier","StringLiteral"),body:o("BlockStatement"),kind:E(T("CommonJS","ES"))}});p("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:o("TypeAnnotation")}});p("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:o("Identifier"),typeParameters:b("TypeParameterDeclaration"),right:o("FlowType")}});p("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:o("Identifier"),typeParameters:b("TypeParameterDeclaration"),supertype:b("FlowType"),impltype:b("FlowType")}});p("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:o("Identifier")}});p("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:b("Flow"),specifiers:E(S("ExportSpecifier","ExportNamespaceSpecifier")),source:b("StringLiteral"),default:E(l("boolean")),...U}});p("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:o("StringLiteral"),exportKind:E(T("type","value")),...U}});p("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:o("Expression")}});p("ExistsTypeAnnotation",{aliases:["FlowType"]});p("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:b("TypeParameterDeclaration"),params:v("FunctionTypeParam"),rest:b("FunctionTypeParam"),this:b("FunctionTypeParam"),returnType:o("FlowType")}});p("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:b("Identifier"),typeAnnotation:o("FlowType"),optional:E(l("boolean"))}});p("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:o("Identifier","QualifiedTypeIdentifier"),typeParameters:b("TypeParameterInstantiation")}});p("InferredPredicate",{aliases:["FlowPredicate"]});p("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:o("Identifier","QualifiedTypeIdentifier"),typeParameters:b("TypeParameterInstantiation")}});de("InterfaceDeclaration");p("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:E(S("InterfaceExtends")),body:o("ObjectTypeAnnotation")}});p("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:w(S("FlowType"))}});p("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:o("FlowType")}});p("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:w(l("number"))}});p("BigIntLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:w(l("bigint"))}});p("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:w(S("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:S("ObjectTypeIndexer"),optional:!1,default:[]},callProperties:{validate:S("ObjectTypeCallProperty"),optional:!1,default:[]},internalSlots:{validate:S("ObjectTypeInternalSlot"),optional:!1,default:[]},exact:{validate:l("boolean"),default:!1},inexact:E(l("boolean"))}});p("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:o("Identifier"),value:o("FlowType"),optional:w(l("boolean")),static:w(l("boolean")),method:w(l("boolean"))}});p("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:o("FlowType"),static:k(l("boolean"),!1)}});p("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:b("Identifier"),key:o("FlowType"),value:o("FlowType"),static:k(l("boolean"),!1),variance:b("Variance")}});p("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:o("Identifier","StringLiteral","NumericLiteral"),value:o("FlowType"),kind:{validate:T("init","get","set"),default:"init",optional:!1},static:k(l("boolean"),!1),proto:k(l("boolean"),!1),optional:k(l("boolean"),!1),variance:b("Variance"),method:k(l("boolean"),!1)}});p("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:o("FlowType")}});p("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:o("Identifier"),typeParameters:b("TypeParameterDeclaration"),supertype:b("FlowType"),impltype:o("FlowType")}});p("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:o("Identifier"),qualification:o("Identifier","QualifiedTypeIdentifier")}});p("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:w(l("string"))}});p("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:w(S("FlowType"))}});p("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:o("FlowType")}});p("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:o("Identifier"),typeParameters:b("TypeParameterDeclaration"),right:o("FlowType")}});p("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:o("FlowType")}});p("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:o("Expression"),typeAnnotation:o("TypeAnnotation")}});p("TypeParameter",{builder:["name","bound","default","variance"],visitor:["bound","default","variance"],fields:{name:w(l("string")),bound:b("TypeAnnotation"),default:b("FlowType"),variance:b("Variance")}});p("TypeParameterDeclaration",{visitor:["params"],fields:{params:w(S("TypeParameter"))}});p("TypeParameterInstantiation",{visitor:["params"],fields:{params:w(S("FlowType"))}});p("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:w(S("FlowType"))}});p("Variance",{builder:["kind"],fields:{kind:w(T("minus","plus"))}});p("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});p("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:o("Identifier"),body:o("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});const pe={explicitType:k(l("boolean"),!1),hasUnknownMembers:k(l("boolean"),!1)};p("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{...pe,members:v("EnumBooleanMember")}});p("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{...pe,members:v("EnumNumberMember")}});p("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{...pe,members:v("EnumStringMember","EnumDefaultedMember")}});p("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:v("EnumDefaultedMember"),hasUnknownMembers:k(l("boolean"),!1)}});p("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:o("Identifier"),init:o("BooleanLiteral")}});p("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:o("Identifier"),init:o("NumericLiteral")}});p("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:o("Identifier"),init:o("StringLiteral")}});p("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:o("Identifier")}});p("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:o("FlowType"),indexType:o("FlowType")}});p("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:o("FlowType"),indexType:o("FlowType"),optional:k(l("boolean"),!1)}});const D=j("JSX");D("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:i("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:i("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});D("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:i("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});D("JSXElement",{builder:["openingElement","closingElement","children"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:{openingElement:{validate:i("JSXOpeningElement")},closingElement:{optional:!0,validate:i("JSXClosingElement")},children:v("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});D("JSXEmptyExpression",{});D("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:i("Expression","JSXEmptyExpression")}}});D("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:i("Expression")}}});D("JSXIdentifier",{builder:["name"],fields:{name:{validate:l("string")}}});D("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:i("JSXMemberExpression","JSXIdentifier")},property:{validate:i("JSXIdentifier")}}});D("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:i("JSXIdentifier")},name:{validate:i("JSXIdentifier")}}});D("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeArguments","attributes"],aliases:["Immutable"],fields:{name:{validate:i("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:v("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:i("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});D("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:i("Expression")}}});D("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:l("string")}}});D("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:i("JSXOpeningFragment")},closingFragment:{validate:i("JSXClosingFragment")},children:v("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});D("JSXOpeningFragment",{aliases:["Immutable"]});D("JSXClosingFragment",{aliases:["Immutable"]});const Ce=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],_={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const e of Ce){const t=Y[e];t?.length&&(_[e]=t)}const ee={};Object.keys(_).forEach(e=>{_[e].forEach(t=>{Object.hasOwn(ee,t)||(ee[t]=[]),ee[t].push(e)})});const Be=j("Miscellaneous");Be("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:i("Identifier")},expectedNode:{validate:T(...Ce)},...V()}});Be("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:l("string")}}});N("ArgumentPlaceholder",{});N("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{object:{validate:G("null","Expression")},callee:{validate:i("Expression")}}});N("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],...J(!0),fields:{...le(),key:{validate:h((function(){const e=i("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=i("Expression");return function(a,r,n){(a.computed?t:e)(a,r,n)}})(),i("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:i("Expression"),optional:!0},definite:{validate:l("boolean"),optional:!0},typeAnnotation:{validate:i("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:S("Decorator"),optional:!0},readonly:{validate:l("boolean"),optional:!0},declare:{validate:l("boolean"),optional:!0},variance:{validate:i("Variance"),optional:!0}}});N("Decorator",{visitor:["expression"],fields:{expression:{validate:i("Expression")}}});N("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:i("BlockStatement")},async:{validate:l("boolean"),default:!1}}});N("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:i("Identifier")}}});N("ModuleExpression",{visitor:["body"],fields:{body:{validate:i("Program")}},aliases:["Expression"]});N("TopicReference",{aliases:["Expression"]});N("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]});const f=j("TypeScript"),F=l("boolean"),Me=()=>({returnType:{validate:i("TSTypeAnnotation"),optional:!0},typeParameters:{validate:i("TSTypeParameterDeclaration"),optional:!0}});f("TSParameterProperty",{aliases:[],visitor:["parameter"],fields:{accessibility:{validate:T("public","private","protected"),optional:!0},readonly:{validate:l("boolean"),optional:!0},parameter:{validate:i("Identifier","AssignmentPattern")},override:{validate:l("boolean"),optional:!0},decorators:{validate:S("Decorator"),optional:!0}}});f("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:{...Oe(),...Me()}});f("TSDeclareMethod",{visitor:["key","typeParameters","params","returnType"],...J(),fields:{...ue(!1),...Me()}});f("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:o("TSEntityName"),right:o("Identifier")}});const Z=()=>({typeParameters:b("TSTypeParameterDeclaration"),params:v("ArrayPattern","Identifier","ObjectPattern","RestElement"),returnType:b("TSTypeAnnotation")}),$e={aliases:["TSTypeElement"],visitor:["typeParameters","params","returnType"],fields:Z()};f("TSCallSignatureDeclaration",$e);f("TSConstructSignatureDeclaration",$e);const je=()=>({key:o("Expression"),computed:{default:!1},optional:E(F)});f("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:{...je(),readonly:E(F),typeAnnotation:b("TSTypeAnnotation"),kind:{optional:!0,validate:T("get","set")}}});f("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","params","returnType"],fields:{...Z(),...je(),kind:{validate:T("method","get","set"),default:"method"}}});f("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:E(F),static:E(F),parameters:v("Identifier"),typeAnnotation:b("TSTypeAnnotation")}});const Pt=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of Pt)f(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});f("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const Je={aliases:["TSType"],visitor:["typeParameters","params","returnType"]};f("TSFunctionType",{...Je,fields:Z()});f("TSConstructorType",{...Je,fields:{...Z(),abstract:E(F)}});f("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeArguments"],fields:{typeName:o("TSEntityName"),typeArguments:b("TSTypeParameterInstantiation")}});f("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:o("Identifier","TSThisType"),typeAnnotation:b("TSTypeAnnotation"),asserts:E(F)}});f("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeArguments"],fields:{exprName:o("TSEntityName","TSImportType"),typeArguments:b("TSTypeParameterInstantiation")}});f("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:v("TSTypeElement")}});f("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:o("TSType")}});f("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:v("TSType","TSNamedTupleMember")}});f("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:o("TSType")}});f("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:o("TSType")}});f("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:o("Identifier"),optional:{validate:F,default:!1},elementType:o("TSType")}});const Xe={aliases:["TSType"],visitor:["types"],fields:{types:v("TSType")}};f("TSUnionType",Xe);f("TSIntersectionType",Xe);f("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:o("TSType"),extendsType:o("TSType"),trueType:o("TSType"),falseType:o("TSType")}});f("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:o("TSTypeParameter")}});f("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:o("TSType")}});f("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:T("keyof","readonly","unique"),default:void 0},typeAnnotation:o("TSType")}});f("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:o("TSType"),indexType:o("TSType")}});f("TSMappedType",{aliases:["TSType"],visitor:["key","constraint","nameType","typeAnnotation"],builder:["key","constraint","nameType","typeAnnotation"],fields:{key:o("Identifier"),constraint:o("TSType"),readonly:E(T(!0,!1,"+","-")),optional:E(T(!0,!1,"+","-")),typeAnnotation:b("TSType"),nameType:b("TSType")}});f("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:v("TemplateElement"),types:{validate:h(l("array"),M(i("TSType")),function(e,t,a){if(e.quasis.length!==a.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
7
+ Expected ${a.length+1} quasis but got ${e.quasis.length}`)})}}});f("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){const e=i("NumericLiteral","BigIntLiteral"),t=T("-"),a=i("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");return P(function(r,n,d){A("UnaryExpression",d)?(t(d,"operator",d.operator),e(d,"argument",d.argument)):a(r,n,d)},{oneOfNodeTypes:["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"]})})()}}});f("TSClassImplements",{aliases:["TSType"],visitor:["expression","typeArguments"],fields:{expression:o("Expression"),typeArguments:b("TSTypeParameterInstantiation")}});f("TSInterfaceHeritage",{aliases:["TSType"],visitor:["expression","typeArguments"],fields:{expression:o("Expression"),typeArguments:b("TSTypeParameterInstantiation")}});f("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:E(F),id:o("Identifier"),typeParameters:b("TSTypeParameterDeclaration"),extends:E(S("TSInterfaceHeritage")),body:o("TSInterfaceBody")}});f("TSInterfaceBody",{visitor:["body"],fields:{body:v("TSTypeElement")}});f("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:E(F),id:o("Identifier"),typeParameters:b("TSTypeParameterDeclaration"),typeAnnotation:o("TSType")}});f("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeArguments"],fields:{expression:o("Expression"),typeArguments:b("TSTypeParameterInstantiation")}});const Ve={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:o("Expression"),typeAnnotation:o("TSType")}};f("TSAsExpression",Ve);f("TSSatisfiesExpression",Ve);f("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:o("TSType"),expression:o("Expression")}});f("TSEnumBody",{visitor:["members"],fields:{members:v("TSEnumMember")}});f("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:E(F),const:E(F),id:o("Identifier"),body:o("TSEnumBody")}});f("TSEnumMember",{visitor:["id","initializer"],fields:{id:o("Identifier","StringLiteral"),initializer:b("Expression")}});f("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{kind:{validate:T("global","namespace","module"),default:"namespace"},declare:E(F),id:{validate:h(i("TSEntityName","StringLiteral"),P(function(e,t,a){if(e.kind==="namespace"&&A("StringLiteral",a))throw new TypeError("TSModuleDeclaration of kind 'namespace' cannot have a StringLiteral id.")},{oneOfNodeTypes:["TSEntityName","StringLiteral"]}))},body:o("TSModuleBlock")}});f("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:v("Statement")}});f("TSImportType",{aliases:["TSType"],builder:["source","qualifier","typeArguments"],visitor:["source","options","qualifier","typeArguments"],fields:{source:o("StringLiteral"),qualifier:b("TSEntityName"),typeArguments:b("TSTypeParameterInstantiation"),options:{validate:i("ObjectExpression"),optional:!0}}});f("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:{id:o("Identifier"),moduleReference:o("TSEntityName","TSExternalModuleReference"),importKind:{validate:T("type","value"),optional:!0}}});f("TSExternalModuleReference",{visitor:["expression"],fields:{expression:o("StringLiteral")}});f("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:o("Expression")}});f("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:o("Expression")}});f("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:o("Identifier")}});f("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:i("TSType")}}});f("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:v("TSType")}});f("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:v("TSTypeParameter")}});f("TSTypeParameter",{builder:["constraint","default","name"],visitor:["name","constraint","default"],fields:{name:{validate:i("Identifier")},in:{validate:l("boolean"),optional:!0},out:{validate:l("boolean"),optional:!0},const:{validate:l("boolean"),optional:!0},constraint:{validate:i("TSType"),optional:!0},default:{validate:i("TSType"),optional:!0}}});const Te={ModuleDeclaration:"ImportOrExportDeclaration"};Object.keys(Te).forEach(e=>{C[e]=C[Te[e]]});for(const{types:e,set:t}of oe)for(const a of e){const r=C[a];r?r.forEach(t.add,t):t.add(a)}function ht(e,t,a){if(!e)return;const r=ne[e.type];if(!r)return;const n=r[t];ce(e,t,a,n),$(e,t,a)}function It(e,t,a,r,n){if(e?.validate&&!(e.optional&&r==null)&&(e.validate(t,a,r),n)){const d=r.type;if(d==null)return;Q[d]?.(t,a,r)}}function ce(e,t,a,r){r?.validate&&(r.optional&&a==null||r.validate(e,t,a))}function $(e,t,a){const r=a?.type;r!=null&&Q[r]?.(e,t,a)}const At=Object.defineProperty({__proto__:null,default:ht,validateChild:$,validateField:ce,validateInternal:It},Symbol.toStringTag,{value:"Module"}),{validateInternal:W}=At,{NODE_FIELDS:fe}=gt;function wt(e){const t={type:"StringLiteral",value:e},a=fe.StringLiteral;return W(a.value,t,"value",e),t}function Dt(e,t=null){const a={type:"JSXAttribute",name:e,value:t},r=fe.JSXAttribute;return W(r.name,a,"name",e,1),W(r.value,a,"value",t,1),a}function Ft(e){const t={type:"JSXIdentifier",name:e},a=fe.JSXIdentifier;return W(a.name,t,"name",e),t}Function.call.bind(Object.prototype.toString);const kt=/[.+^${}()|[\]\\]/g,Nt=e=>e.replaceAll(kt,String.raw`\$&`),qe=e=>{const t=e.split("**").map(a=>a.split("*").map(r=>Nt(r)).join("[^/]*")).join(".*");return new RegExp(`^${t}$`)},Lt=(e,t)=>e.some(a=>a instanceof RegExp?a.test(t):qe(a).test(t)),Ot=e=>{const t=e.map(a=>a instanceof RegExp?a:qe(a));return a=>t.some(r=>r.test(a))},Re=ye.default??ye,Ct=me.default??me,Se="data-vdt-source",Bt=e=>{let t;const a=e.params[0];if(a)return a.type==="Identifier"&&(t=a.name),a.type==="ObjectPattern"&&a.properties.forEach(r=>{r.type==="RestElement"&&r.argument.type==="Identifier"&&(t=r.argument.name)}),t},z=e=>e.type==="JSXIdentifier"?e.name:e.type==="JSXMemberExpression"?`${z(e.object)}.${z(e.property)}`:`${e.namespace.name}:${e.name.name}`,Mt=e=>{const t=new Map,a=new Map;try{const r=Ee(e,{plugins:["jsx","typescript"],sourceType:"module"});Re(r,{JSXOpeningElement(n){const d=z(n.node.name),m=a.get(d)??0;a.set(d,m+1),n.node.loc&&t.set(`${d}:${m}`,{col:n.node.loc.start.column,line:n.node.loc.start.line})}})}catch{}return t},$t=(e,t,a,r,n,d)=>{const{loc:m}=e.node;if(!m)return!1;const u=z(e.node.name);let y;if(n&&d){const I=d.get(u)??0;d.set(u,I+1),y=n.get(`${u}:${I}`)}if(u==="Fragment"||u==="React.Fragment"||u==="html"||u==="head"||u==="body"||r(u))return!1;const c=e.node.attributes.some(I=>I.type==="JSXAttribute"&&I.name.type==="JSXIdentifier"&&I.name.name===Se);if(e.node.attributes.some(I=>I.type==="JSXSpreadAttribute"&&I.argument.type==="Identifier"&&I.argument.name===t)||c)return!1;const x=y?.line??m.start.line,g=y?.col??m.start.column;return e.node.attributes.push(Dt(Ft(Se),wt(`${a}:${x}:${g+1}`))),!0},jt=(e,t,a,r)=>{let n=!1;const d=r?new Map:void 0,m=Ot(a),u=c=>x=>{$t(x,c,t,m,r,d)&&(n=!0)},y=c=>{const x=Bt(c.node);c.traverse({ArrowFunctionExpression(g){y(g),g.skip()},FunctionDeclaration(g){y(g),g.skip()},FunctionExpression(g){y(g),g.skip()},JSXOpeningElement:u(x)})};return Re(e,{ArrowFunctionExpression(c){y(c),c.skip()},FunctionDeclaration(c){y(c),c.skip()},FunctionExpression(c){y(c),c.skip()}}),n},Rt=(e,t,a={},r)=>{const[n]=t.split("?"),d=n.replace(`${Ue(process.cwd())}/`,"");if(!Lt(a.files??[],d))try{const m=Ee(e,{plugins:["jsx","typescript"],sourceType:"module"}),u=r&&r!==e?Mt(r):void 0;return jt(m,d,a.components??[],u)?Ct(m,{filename:t,retainLines:!0,sourceFileName:n,sourceMaps:!0}):void 0}catch{return}};export{Se as SOURCE_ATTR,Rt as addSourceToJsx};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/dev-toolbar",
3
- "version": "1.0.0-alpha.33",
3
+ "version": "1.0.0-alpha.34",
4
4
  "description": "Devtools is a set of tools for building advanced devtools for your application",
5
5
  "keywords": [
6
6
  "dev-toolbar",
@@ -111,9 +111,9 @@
111
111
  "CHANGELOG.md"
112
112
  ],
113
113
  "dependencies": {
114
- "@babel/generator": "^7.29.7",
114
+ "@babel/generator": "^8.0.0",
115
115
  "@babel/parser": "7.29.7",
116
- "@babel/traverse": "^7.29.7",
116
+ "@babel/traverse": "^8.0.0",
117
117
  "@floating-ui/dom": "^1.7.6",
118
118
  "launch-editor": "2.14.1",
119
119
  "preact": "^10.29.2"