style-zx 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/plugin.cjs +6 -55
- package/dist/plugin.js +96 -28978
- package/package.json +14 -6
- package/dist/vite.svg +0 -1
package/dist/plugin.cjs
CHANGED
|
@@ -1,55 +1,6 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
|
|
3
|
-
- Did you mean \`import { "${g}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:g})=>`Expected number in radix ${g}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:g})=>`Escape sequence in keyword ${g}.`,InvalidIdentifier:({identifierName:g})=>`Invalid identifier ${g}.`,InvalidLhs:({ancestor:g})=>`Invalid left-hand side in ${b(g)}.`,InvalidLhsBinding:({ancestor:g})=>`Binding invalid left-hand side in ${b(g)}.`,InvalidLhsOptionalChaining:({ancestor:g})=>`Invalid optional chaining in the left-hand side of ${b(g)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:g})=>`Unexpected character '${g}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:g})=>`Private name #${g} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:g})=>`Label '${g}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:g})=>`This experimental syntax requires enabling the parser plugin: ${g.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:g})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${g.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:g})=>`Duplicate key "${g}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:g})=>`An export name cannot include a lone surrogate, found '\\u${g.toString(16)}'.`,ModuleExportUndefined:({localName:g})=>`Export '${g}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:g})=>`Private names are only allowed in property accesses (\`obj.#${g}\`) or in \`in\` expressions (\`#${g} in obj\`).`,PrivateNameRedeclaration:({identifierName:g})=>`Duplicate private name #${g}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:g})=>`Unexpected keyword '${g}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:g})=>`Unexpected reserved word '${g}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:g,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${g?`, expected "${g}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:g,onlyValidPropertyName:t})=>`The only valid meta property for ${g} is ${g}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:g})=>`Identifier '${g}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},C={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:g})=>`Assigning to '${g}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:g})=>`Binding '${g}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},x={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:g})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(g)}\`.`};const N=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var P=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:g})=>`Invalid topic token ${g}. In order to use ${g} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${g}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:g})=>`Hack-style pipe body cannot be an unparenthesized ${b({type:g})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const T=["message"];function F(g,t,e){Object.defineProperty(g,t,{enumerable:!1,configurable:!0,value:e})}function V({toMessage:g,code:t,reasonCode:e,syntaxPlugin:r}){const n=e==="MissingPlugin"||e==="MissingOneOfPlugins";{const c={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};c[e]&&(e=c[e])}return function c(v,L){const Y=new SyntaxError;return Y.code=t,Y.reasonCode=e,Y.loc=v,Y.pos=v.index,Y.syntaxPlugin=r,n&&(Y.missingPlugin=L.missingPlugin),F(Y,"clone",function(oe={}){var be;const{line:Fe,column:je,index:Ye}=(be=oe.loc)!=null?be:v;return c(new l(Fe,je,Ye),Object.assign({},L,oe.details))}),F(Y,"details",L),Object.defineProperty(Y,"message",{configurable:!0,get(){const se=`${g(L)} (${v.line}:${v.column})`;return this.message=se,se},set(se){Object.defineProperty(this,"message",{value:se,writable:!0})}}),Y}}function k(g,t){if(Array.isArray(g))return r=>k(r,g[0]);const e={};for(const r of Object.keys(g)){const n=g[r],c=typeof n=="string"?{message:()=>n}:typeof n=="function"?{message:n}:n,{message:v}=c,L=s(c,T),Y=typeof v=="string"?()=>v:v;e[r]=V(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:r,toMessage:Y},t?{syntaxPlugin:t}:{},L))}return e}const S=Object.assign({},k(p),k(E),k(C),k(x),k`pipelineOperator`(P));function G(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function X(g){const t=G();if(g==null)return t;if(g.annexB!=null&&g.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(const e of Object.keys(t))g[e]!=null&&(t[e]=g[e]);if(t.startLine===1)g.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:g.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((g.startColumn==null||g.startIndex==null)&&g.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(g.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(g.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(g.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}const{defineProperty:W}=Object,ee=(g,t)=>{g&&W(g,t,{enumerable:!1,value:g[t]})};function M(g){return ee(g.loc.start,"index"),ee(g.loc.end,"index"),g}var I=g=>class extends g{parse(){const e=M(super.parse());return this.optionFlags&256&&(e.tokens=e.tokens.map(M)),e}parseRegExpLiteral({pattern:e,flags:r}){let n=null;try{n=new RegExp(e,r)}catch{}const c=this.estreeParseLiteral(n);return c.regex={pattern:e,flags:r},c}parseBigIntLiteral(e){let r;try{r=BigInt(e)}catch{r=null}const n=this.estreeParseLiteral(r);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){const n=this.estreeParseLiteral(null);return n.decimal=String(n.value||e),n}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,r){const n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAt(n,"ChainExpression",r)}directiveToStmt(e){const r=e.value;delete e.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;const n=this.castNodeTo(e,"ExpressionStatement");return n.expression=r,n.directive=r.extra.rawValue,delete r.extra,n}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:r,end:n,loc:c,range:v,raw:L,value:Y}=e,se=Object.create(e.constructor.prototype);return se.type="Literal",se.start=r,se.end=n,se.loc=c,se.range=v,se.raw=L,se.value=Y,se}initFunction(e,r){super.initFunction(e,r),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var r;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((r=e.expression.extra)!=null&&r.parenthesized)}parseBlockBody(e,r,n,c,v){super.parseBlockBody(e,r,n,c,v);const L=e.directives.map(Y=>this.directiveToStmt(Y));e.body=L.concat(e.body),delete e.directives}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const r=super.getPrivateNameSV(e);return delete e.id,e.name=r,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,r){const n=super.parseLiteral(e,r);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,r,n=!1){super.parseFunctionBody(e,r,n),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,r,n,c,v,L,Y=!1){let se=this.startNode();se.kind=e.kind,se=super.parseMethod(se,r,n,c,v,L,Y),delete se.kind;const{typeParameters:oe}=e;oe&&(delete e.typeParameters,se.typeParameters=oe,this.resetStartLocationFromNode(se,oe));const be=this.castNodeTo(se,"FunctionExpression");return e.value=be,L==="ClassPrivateMethod"&&(e.computed=!1),L==="ObjectMethod"?(e.kind==="method"&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){const r=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...e){const r=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(r,"PropertyDefinition"),r.computed=!1),r}parseClassAccessorProperty(e){const r=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")&&(r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty")),r}parseObjectProperty(e,r,n,c){const v=super.parseObjectProperty(e,r,n,c);return v&&(v.kind="init",this.castNodeTo(v,"Property")),v}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,r,n,c){return e==="Property"?"value":super.isValidLVal(e,r,n,c)}isAssignable(e,r){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,r):super.isAssignable(e,r)}toAssignable(e,r=!1){if(e!=null&&this.isObjectProperty(e)){const{key:n,value:c}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(c,r)}else super.toAssignable(e,r)}toAssignableObjectExpressionProp(e,r,n){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(S.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(S.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,r,n)}finishCallExpression(e,r){const n=super.finishCallExpression(e,r);if(n.callee.type==="Import"){var c;this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=(c=n.arguments[1])!=null?c:null;{var v;n.attributes=(v=n.arguments[1])!=null?v:null}delete n.arguments,delete n.callee}else n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1;return n}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,r){const n=this.state.lastTokStartLoc,c=super.parseExport(e,r);switch(c.type){case"ExportAllDeclaration":c.exported=null;break;case"ExportNamedDeclaration":c.specifiers.length===1&&c.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(c,"ExportAllDeclaration"),c.exported=c.specifiers[0].exported,delete c.specifiers);case"ExportDefaultDeclaration":{var v;const{declaration:L}=c;L?.type==="ClassDeclaration"&&((v=L.decorators)==null?void 0:v.length)>0&&L.start===c.start&&this.resetStartLocation(c,n)}break}return c}stopParseSubscript(e,r){const n=super.stopParseSubscript(e,r);return r.optionalChainMember?this.estreeParseChainExpression(n,e.loc.end):n}parseMember(e,r,n,c,v){const L=super.parseMember(e,r,n,c,v);return L.type==="OptionalMemberExpression"?this.castNodeTo(L,"MemberExpression"):L.optional=!1,L}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}castNodeTo(e,r){const n=super.castNodeTo(e,r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(e){const r=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(e){return e.type==="Literal"?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,r,n){return M(super.finishNodeAt(e,r,n))}finishNode(e,r){const n=super.finishNode(e,r);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(e,r){super.resetStartLocation(e,r),M(e)}resetEndLocation(e,r=this.state.lastTokEndLoc){super.resetEndLocation(e,r),M(e)}};class U{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}}const B={brace:new U("{"),j_oTag:new U("<tag"),j_cTag:new U("</tag"),j_expr:new U("<tag>...</tag>",!0)};B.template=new U("`",!0);const R=!0,$=!0,ae=!0,ge=!0,Se=!0,Ae=!0;class ne{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}}const Z=new Map;function D(g,t={}){t.keyword=g;const e=ve(g,t);return Z.set(g,e),e}function J(g,t){return ve(g,{beforeExpr:R,binop:t})}let ie=-1;const Q=[],fe=[],ue=[],Pe=[],_e=[],Ke=[];function ve(g,t={}){var e,r,n,c;return++ie,fe.push(g),ue.push((e=t.binop)!=null?e:-1),Pe.push((r=t.beforeExpr)!=null?r:!1),_e.push((n=t.startsExpr)!=null?n:!1),Ke.push((c=t.prefix)!=null?c:!1),Q.push(new ne(g,t)),ie}function Ce(g,t={}){var e,r,n,c;return++ie,Z.set(g,ie),fe.push(g),ue.push((e=t.binop)!=null?e:-1),Pe.push((r=t.beforeExpr)!=null?r:!1),_e.push((n=t.startsExpr)!=null?n:!1),Ke.push((c=t.prefix)!=null?c:!1),Q.push(new ne("name",t)),ie}const me={bracketL:ve("[",{beforeExpr:R,startsExpr:$}),bracketHashL:ve("#[",{beforeExpr:R,startsExpr:$}),bracketBarL:ve("[|",{beforeExpr:R,startsExpr:$}),bracketR:ve("]"),bracketBarR:ve("|]"),braceL:ve("{",{beforeExpr:R,startsExpr:$}),braceBarL:ve("{|",{beforeExpr:R,startsExpr:$}),braceHashL:ve("#{",{beforeExpr:R,startsExpr:$}),braceR:ve("}"),braceBarR:ve("|}"),parenL:ve("(",{beforeExpr:R,startsExpr:$}),parenR:ve(")"),comma:ve(",",{beforeExpr:R}),semi:ve(";",{beforeExpr:R}),colon:ve(":",{beforeExpr:R}),doubleColon:ve("::",{beforeExpr:R}),dot:ve("."),question:ve("?",{beforeExpr:R}),questionDot:ve("?."),arrow:ve("=>",{beforeExpr:R}),template:ve("template"),ellipsis:ve("...",{beforeExpr:R}),backQuote:ve("`",{startsExpr:$}),dollarBraceL:ve("${",{beforeExpr:R,startsExpr:$}),templateTail:ve("...`",{startsExpr:$}),templateNonTail:ve("...${",{beforeExpr:R,startsExpr:$}),at:ve("@"),hash:ve("#",{startsExpr:$}),interpreterDirective:ve("#!..."),eq:ve("=",{beforeExpr:R,isAssign:ge}),assign:ve("_=",{beforeExpr:R,isAssign:ge}),slashAssign:ve("_=",{beforeExpr:R,isAssign:ge}),xorAssign:ve("_=",{beforeExpr:R,isAssign:ge}),moduloAssign:ve("_=",{beforeExpr:R,isAssign:ge}),incDec:ve("++/--",{prefix:Se,postfix:Ae,startsExpr:$}),bang:ve("!",{beforeExpr:R,prefix:Se,startsExpr:$}),tilde:ve("~",{beforeExpr:R,prefix:Se,startsExpr:$}),doubleCaret:ve("^^",{startsExpr:$}),doubleAt:ve("@@",{startsExpr:$}),pipeline:J("|>",0),nullishCoalescing:J("??",1),logicalOR:J("||",1),logicalAND:J("&&",2),bitwiseOR:J("|",3),bitwiseXOR:J("^",4),bitwiseAND:J("&",5),equality:J("==/!=/===/!==",6),lt:J("</>/<=/>=",7),gt:J("</>/<=/>=",7),relational:J("</>/<=/>=",7),bitShift:J("<</>>/>>>",8),bitShiftL:J("<</>>/>>>",8),bitShiftR:J("<</>>/>>>",8),plusMin:ve("+/-",{beforeExpr:R,binop:9,prefix:Se,startsExpr:$}),modulo:ve("%",{binop:10,startsExpr:$}),star:ve("*",{binop:10}),slash:J("/",10),exponent:ve("**",{beforeExpr:R,binop:11,rightAssociative:!0}),_in:D("in",{beforeExpr:R,binop:7}),_instanceof:D("instanceof",{beforeExpr:R,binop:7}),_break:D("break"),_case:D("case",{beforeExpr:R}),_catch:D("catch"),_continue:D("continue"),_debugger:D("debugger"),_default:D("default",{beforeExpr:R}),_else:D("else",{beforeExpr:R}),_finally:D("finally"),_function:D("function",{startsExpr:$}),_if:D("if"),_return:D("return",{beforeExpr:R}),_switch:D("switch"),_throw:D("throw",{beforeExpr:R,prefix:Se,startsExpr:$}),_try:D("try"),_var:D("var"),_const:D("const"),_with:D("with"),_new:D("new",{beforeExpr:R,startsExpr:$}),_this:D("this",{startsExpr:$}),_super:D("super",{startsExpr:$}),_class:D("class",{startsExpr:$}),_extends:D("extends",{beforeExpr:R}),_export:D("export"),_import:D("import",{startsExpr:$}),_null:D("null",{startsExpr:$}),_true:D("true",{startsExpr:$}),_false:D("false",{startsExpr:$}),_typeof:D("typeof",{beforeExpr:R,prefix:Se,startsExpr:$}),_void:D("void",{beforeExpr:R,prefix:Se,startsExpr:$}),_delete:D("delete",{beforeExpr:R,prefix:Se,startsExpr:$}),_do:D("do",{isLoop:ae,beforeExpr:R}),_for:D("for",{isLoop:ae}),_while:D("while",{isLoop:ae}),_as:Ce("as",{startsExpr:$}),_assert:Ce("assert",{startsExpr:$}),_async:Ce("async",{startsExpr:$}),_await:Ce("await",{startsExpr:$}),_defer:Ce("defer",{startsExpr:$}),_from:Ce("from",{startsExpr:$}),_get:Ce("get",{startsExpr:$}),_let:Ce("let",{startsExpr:$}),_meta:Ce("meta",{startsExpr:$}),_of:Ce("of",{startsExpr:$}),_sent:Ce("sent",{startsExpr:$}),_set:Ce("set",{startsExpr:$}),_source:Ce("source",{startsExpr:$}),_static:Ce("static",{startsExpr:$}),_using:Ce("using",{startsExpr:$}),_yield:Ce("yield",{startsExpr:$}),_asserts:Ce("asserts",{startsExpr:$}),_checks:Ce("checks",{startsExpr:$}),_exports:Ce("exports",{startsExpr:$}),_global:Ce("global",{startsExpr:$}),_implements:Ce("implements",{startsExpr:$}),_intrinsic:Ce("intrinsic",{startsExpr:$}),_infer:Ce("infer",{startsExpr:$}),_is:Ce("is",{startsExpr:$}),_mixins:Ce("mixins",{startsExpr:$}),_proto:Ce("proto",{startsExpr:$}),_require:Ce("require",{startsExpr:$}),_satisfies:Ce("satisfies",{startsExpr:$}),_keyof:Ce("keyof",{startsExpr:$}),_readonly:Ce("readonly",{startsExpr:$}),_unique:Ce("unique",{startsExpr:$}),_abstract:Ce("abstract",{startsExpr:$}),_declare:Ce("declare",{startsExpr:$}),_enum:Ce("enum",{startsExpr:$}),_module:Ce("module",{startsExpr:$}),_namespace:Ce("namespace",{startsExpr:$}),_interface:Ce("interface",{startsExpr:$}),_type:Ce("type",{startsExpr:$}),_opaque:Ce("opaque",{startsExpr:$}),name:ve("name",{startsExpr:$}),placeholder:ve("%%",{startsExpr:$}),string:ve("string",{startsExpr:$}),num:ve("num",{startsExpr:$}),bigint:ve("bigint",{startsExpr:$}),decimal:ve("decimal",{startsExpr:$}),regexp:ve("regexp",{startsExpr:$}),privateName:ve("#name",{startsExpr:$}),eof:ve("eof"),jsxName:ve("jsxName"),jsxText:ve("jsxText",{beforeExpr:R}),jsxTagStart:ve("jsxTagStart",{startsExpr:$}),jsxTagEnd:ve("jsxTagEnd")};function le(g){return g>=93&&g<=133}function de(g){return g<=92}function qe(g){return g>=58&&g<=133}function $e(g){return g>=58&&g<=137}function Ze(g){return Pe[g]}function it(g){return _e[g]}function He(g){return g>=29&&g<=33}function we(g){return g>=129&&g<=131}function Oe(g){return g>=90&&g<=92}function ke(g){return g>=58&&g<=92}function Le(g){return g>=39&&g<=59}function Ve(g){return g===34}function Qe(g){return Ke[g]}function et(g){return g>=121&&g<=123}function ht(g){return g>=124&&g<=130}function Te(g){return fe[g]}function Ue(g){return ue[g]}function Be(g){return g===57}function pe(g){return g>=24&&g<=25}function j(g){return Q[g]}Q[8].updateContext=g=>{g.pop()},Q[5].updateContext=Q[7].updateContext=Q[23].updateContext=g=>{g.push(B.brace)},Q[22].updateContext=g=>{g[g.length-1]===B.template?g.pop():g.push(B.template)},Q[143].updateContext=g=>{g.push(B.j_expr,B.j_oTag)};let te="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ye="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const Ie=new RegExp("["+te+"]"),Re=new RegExp("["+te+ye+"]");te=ye=null;const Ee=[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],st=[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 ot(g,t){let e=65536;for(let r=0,n=t.length;r<n;r+=2){if(e+=t[r],e>g)return!1;if(e+=t[r+1],e>=g)return!0}return!1}function he(g){return g<65?g===36:g<=90?!0:g<97?g===95:g<=122?!0:g<=65535?g>=170&&Ie.test(String.fromCharCode(g)):ot(g,Ee)}function q(g){return g<48?g===36:g<58?!0:g<65?!1:g<=90?!0:g<97?g===95:g<=122?!0:g<=65535?g>=170&&Re.test(String.fromCharCode(g)):ot(g,Ee)||ot(g,st)}const _={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"]},ce=new Set(_.keyword),Ne=new Set(_.strict),Me=new Set(_.strictBind);function Ge(g,t){return t&&g==="await"||g==="enum"}function ut(g,t){return Ge(g,t)||Ne.has(g)}function rt(g){return Me.has(g)}function dt(g,t){return ut(g,t)||rt(g)}function yt(g){return ce.has(g)}function gt(g,t,e){return g===64&&t===64&&he(e)}const At=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function wt(g){return At.has(g)}class Nt{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}}class Ot{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(e&128)return!0;if(e&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Nt(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,e,r){let n=this.currentScope();if(e&8||e&16){this.checkRedeclarationInScope(n,t,e,r);let c=n.names.get(t)||0;e&16?c=c|4:(n.firstLexicalName||(n.firstLexicalName=t),c=c|2),n.names.set(t,c),e&8&&this.maybeExportDefined(n,t)}else if(e&4)for(let c=this.scopeStack.length-1;c>=0&&(n=this.scopeStack[c],this.checkRedeclarationInScope(n,t,e,r),n.names.set(t,(n.names.get(t)||0)|1),this.maybeExportDefined(n,t),!(n.flags&1667));--c);this.parser.inModule&&n.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,r,n){this.isRedeclaredInScope(t,e,r)&&this.parser.raise(S.VarRedeclaration,n,{identifierName:e})}isRedeclaredInScope(t,e,r){if(!(r&1))return!1;if(r&8)return t.names.has(e);const n=t.names.get(e)||0;return r&16?(n&2)>0||!this.treatFunctionsAsVarInScope(t)&&(n&1)>0:(n&2)>0&&!(t.flags&8&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(n&4)>0}checkLocalExport(t){const{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(e&1667)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(e&1731&&!(e&4))return e}}}class Lt extends Nt{constructor(...t){super(...t),this.declareFunctions=new Set}}class qt extends Ot{createScope(t){return new Lt(t)}declareName(t,e,r){const n=this.currentScope();if(e&2048){this.checkRedeclarationInScope(n,t,e,r),this.maybeExportDefined(n,t),n.declareFunctions.add(t);return}super.declareName(t,e,r)}isRedeclaredInScope(t,e,r){if(super.isRedeclaredInScope(t,e,r))return!0;if(r&2048&&!t.declareFunctions.has(e)){const n=t.names.get(e);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}const sr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Je=k`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:g})=>`Cannot overwrite reserved type ${g}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:g,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${g} = true,\` or \`${g} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:g,enumName:t})=>`Enum member names need to be unique, but the name \`${g}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:g})=>`Enum \`${g}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:g,enumName:t})=>`Enum type \`${g}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:g})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${g}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:g,memberName:t,explicitType:e})=>`Enum \`${g}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:g,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${g}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:g,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${g}\`.`,EnumInvalidMemberName:({enumName:g,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${g}\`.`,EnumNumberMemberNotInitialized:({enumName:g,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${g}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:g})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${g}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:g})=>`Unexpected reserved type ${g}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:g,suggestion:t})=>`\`declare export ${g}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function nr(g){return g.type==="DeclareExportAllDeclaration"||g.type==="DeclareExportDeclaration"&&(!g.declaration||g.declaration.type!=="TypeAlias"&&g.declaration.type!=="InterfaceDeclaration")}function ar(g){return g.importKind==="type"||g.importKind==="typeof"}const Ar={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function dr(g,t){const e=[],r=[];for(let n=0;n<g.length;n++)(t(g[n],n,g)?e:r).push(g[n]);return[e,r]}const or=/\*?\s*@((?:no)?flow)\b/;var Ft=g=>class extends g{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return qt}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,r){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,r)}addComment(e){if(this.flowPragma===void 0){const r=or.exec(e.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){const r=this.state.inType;this.state.inType=!0,this.expect(e||14);const n=this.flowParseType();return this.state.inType=r,n}flowParsePredicate(){const e=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(Je.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let r=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(r=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[r,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const r=e.id=this.parseIdentifier(),n=this.startNode(),c=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const v=this.flowParseFunctionTypeParams();return n.params=v.params,n.rest=v.rest,n.this=v._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),c.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(c,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,r){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(r&&this.raise(Je.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,r);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const r=e.body=this.startNode(),n=r.body=[];for(this.expect(5);!this.match(8);){const L=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Je.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(L))):(this.expectContextual(125,Je.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(L,!0)))}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let c=null,v=!1;return n.forEach(L=>{nr(L)?(c==="CommonJS"&&this.raise(Je.AmbiguousDeclareModuleKind,L),c="ES"):L.type==="DeclareModuleExports"&&(v&&this.raise(Je.DuplicateDeclareModuleExports,L),c==="ES"&&this.raise(Je.AmbiguousDeclareModuleKind,L),c="CommonJS",v=!0)}),e.kind=c||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,r){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!r){const n=this.state.value;throw this.raise(Je.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:Ar[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const r=this.flowParseTypeAlias(e);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(e){this.next();const r=this.flowParseOpaqueType(e,!0);return this.castNodeTo(r,"DeclareOpaqueType"),r}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,r){if(e.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(e.id.name,r?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(12));if(r){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(Je.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,r,n){sr.has(e)&&this.raise(n?Je.AssignReservedType:Je.UnexpectedReservedType,r,{reservedType:e})}flowParseRestrictedIdentifier(e,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,r){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,r||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const r=this.state.startLoc,n=this.startNode(),c=this.flowParseVariance(),v=this.flowParseTypeAnnotatableIdentifier();return n.name=v.name,n.variance=c,n.bound=v.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(Je.MissingTypeParamDefault,r),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{const c=this.flowParseTypeParameter(n);r.params.push(c),c.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==B.brace){const r=this.state.context;this.state.context=[r[0]];try{return e()}finally{this.state.context=r}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode(),r=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=r,!this.state.inType&&this.curContext()===B.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;const e=this.startNode(),r=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=r,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,r,n){return e.static=r,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,r){return e.static=r,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,r){const n=this.startNode();return e.static=r,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:r,allowSpread:n,allowProto:c,allowInexact:v}){const L=this.state.inType;this.state.inType=!0;const Y=this.startNode();Y.callProperties=[],Y.properties=[],Y.indexers=[],Y.internalSlots=[];let se,oe,be=!1;for(r&&this.match(6)?(this.expect(6),se=9,oe=!0):(this.expect(5),se=8,oe=!1),Y.exact=oe;!this.match(se);){let je=!1,Ye=null,ct=null;const Tt=this.startNode();if(c&&this.isContextual(118)){const mt=this.lookahead();mt.type!==14&&mt.type!==17&&(this.next(),Ye=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const mt=this.lookahead();mt.type!==14&&mt.type!==17&&(this.next(),je=!0)}const tt=this.flowParseVariance();if(this.eat(0))Ye!=null&&this.unexpected(Ye),this.eat(0)?(tt&&this.unexpected(tt.loc.start),Y.internalSlots.push(this.flowParseObjectTypeInternalSlot(Tt,je))):Y.indexers.push(this.flowParseObjectTypeIndexer(Tt,je,tt));else if(this.match(10)||this.match(47))Ye!=null&&this.unexpected(Ye),tt&&this.unexpected(tt.loc.start),Y.callProperties.push(this.flowParseObjectTypeCallProperty(Tt,je));else{let mt="init";if(this.isContextual(99)||this.isContextual(104)){const Wt=this.lookahead();$e(Wt.type)&&(mt=this.state.value,this.next())}const Ht=this.flowParseObjectTypeProperty(Tt,je,Ye,tt,mt,n,v??!oe);Ht===null?(be=!0,ct=this.state.lastTokStartLoc):Y.properties.push(Ht)}this.flowObjectTypeSemicolon(),ct&&!this.match(8)&&!this.match(9)&&this.raise(Je.UnexpectedExplicitInexactInObject,ct)}this.expect(se),n&&(Y.inexact=be);const Fe=this.finishNode(Y,"ObjectTypeAnnotation");return this.state.inType=L,Fe}flowParseObjectTypeProperty(e,r,n,c,v,L,Y){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(L?Y||this.raise(Je.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Je.InexactInsideNonObject,this.state.lastTokStartLoc),c&&this.raise(Je.InexactVariance,c),null):(L||this.raise(Je.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),c&&this.raise(Je.SpreadVariance,c),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=r,e.proto=n!=null,e.kind=v;let se=!1;return this.match(47)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),c&&this.unexpected(c.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(v==="get"||v==="set")&&this.flowCheckGetterSetterParams(e),!L&&e.key.name==="constructor"&&e.value.this&&this.raise(Je.ThisParamBannedInConstructor,e.value.this)):(v!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(se=!0),e.value=this.flowParseTypeInitialiser(),e.variance=c),e.optional=se,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const r=e.kind==="get"?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?Je.GetterMayNotHaveThisParam:Je.SetterMayNotHaveThisParam,e.value.this),n!==r&&this.raise(e.kind==="get"?S.BadGetterArity:S.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(S.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,r){e??(e=this.state.startLoc);let n=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const c=this.startNodeAt(e);c.qualification=n,c.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(c,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,r){const n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,r),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let r=null,n=!1,c=null;const v=this.startNode(),L=this.lookahead(),Y=this.state.type===78;return L.type===14||L.type===17?(Y&&!e&&this.raise(Je.ThisParamMustBeFirst,v),r=this.parseIdentifier(Y),this.eat(17)&&(n=!0,Y&&this.raise(Je.ThisParamMayNotBeOptional,v)),c=this.flowParseTypeInitialiser()):c=this.flowParseType(),v.name=r,v.optional=n,v.typeAnnotation=c,this.finishNode(v,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const r=this.startNodeAt(e.loc.start);return r.name=null,r.optional=!1,r.typeAnnotation=e,this.finishNode(r,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let r=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r=this.flowParseFunctionTypeParam(!1)),{params:e,rest:r,_this:n}}flowIdentToTypeAnnotation(e,r,n){switch(n.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){const e=this.state.startLoc,r=this.startNode();let n,c,v=!1;const L=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,c=this.flowParseTupleType(),this.state.noAnonFunctionType=L,c;case 47:{const Y=this.startNode();return Y.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),Y.params=n.params,Y.rest=n.rest,Y.this=n._this,this.expect(11),this.expect(19),Y.returnType=this.flowParseType(),this.finishNode(Y,"FunctionTypeAnnotation")}case 10:{const Y=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(le(this.state.type)||this.match(78)){const se=this.lookahead().type;v=se!==17&&se!==14}else v=!0;if(v){if(this.state.noAnonFunctionType=!1,c=this.flowParseType(),this.state.noAnonFunctionType=L,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),c;this.eat(12)}return c?n=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(c)]):n=this.flowParseFunctionTypeParams(),Y.params=n.params,Y.rest=n.rest,Y.this=n._this,this.expect(11),this.expect(19),Y.returnType=this.flowParseType(),Y.typeParameters=null,this.finishNode(Y,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return r.value=this.match(85),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(Je.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(ke(this.state.type)){const Y=Te(this.state.type);return this.next(),super.createIdentifier(r,Y)}else if(le(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,r,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let r=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const c=this.startNodeAt(e),v=this.eat(18);n=n||v,this.expect(0),!v&&this.match(3)?(c.elementType=r,this.next(),r=this.finishNode(c,"ArrayTypeAnnotation")):(c.objectType=r,c.indexType=this.flowParseType(),this.expect(3),n?(c.optional=v,r=this.finishNode(c,"OptionalIndexedAccessType")):r=this.finishNode(c,"IndexedAccessType"))}return r}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const r=this.startNodeAt(e.loc.start);return r.params=[this.reinterpretTypeAsFunctionTypeParam(e)],r.rest=null,r.this=null,r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const r=this.flowParseAnonFunctionWithoutParens();for(e.types=[r];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?r:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const r=this.flowParseIntersectionType();for(e.types=[r];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?r:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const r=this.flowParseUnionType();return this.state.inType=e,r}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const e=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,r)}else return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const r=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r)),r}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value==="+"?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,r,n=!1){if(r){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n));return}super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,r,n=!1){if(this.match(14)){const c=this.startNode();[c.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=c.typeAnnotation?this.finishNode(c,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,r,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){const n=this.lookahead();if(qe(n.type)){const c=this.startNode();return this.next(),this.flowParseInterface(c)}}else if(this.isContextual(126)){const n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}const r=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(e,r,n){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(80)||le(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(le(this.state.type)){if(r.name==="interface")return this.flowParseInterface(e);if(r.name==="type")return this.flowParseTypeAlias(e);if(r.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,r,n)}shouldParseExportDeclaration(){const{type:e}=this.state;return e===126||we(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return e===126||we(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,r,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const Fe=this.lookaheadCharCode();if(Fe===44||Fe===61||Fe===58||Fe===41)return this.setOptionalParametersError(n),e}this.expect(17);const c=this.state.clone(),v=this.state.noArrowAt,L=this.startNodeAt(r);let{consequent:Y,failed:se}=this.tryParseConditionalConsequent(),[oe,be]=this.getArrowLikeExpressions(Y);if(se||be.length>0){const Fe=[...v];if(be.length>0){this.state=c,this.state.noArrowAt=Fe;for(let je=0;je<be.length;je++)Fe.push(be[je].start);({consequent:Y,failed:se}=this.tryParseConditionalConsequent()),[oe,be]=this.getArrowLikeExpressions(Y)}se&&oe.length>1&&this.raise(Je.AmbiguousConditionalArrow,c.startLoc),se&&oe.length===1&&(this.state=c,Fe.push(oe[0].start),this.state.noArrowAt=Fe,{consequent:Y,failed:se}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(Y,!0),this.state.noArrowAt=v,this.expect(14),L.test=e,L.consequent=Y,L.alternate=this.forwardNoArrowParamsConversionAt(L,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(L,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),r=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:r}}getArrowLikeExpressions(e,r){const n=[e],c=[];for(;n.length!==0;){const v=n.pop();v.type==="ArrowFunctionExpression"&&v.body.type!=="BlockStatement"?(v.typeParameters||!v.returnType?this.finishArrowValidation(v):c.push(v),n.push(v.body)):v.type==="ConditionalExpression"&&(n.push(v.consequent),n.push(v.alternate))}return r?(c.forEach(v=>this.finishArrowValidation(v)),[c,[]]):dr(c,v=>v.params.every(L=>this.isAssignable(L,!0)))}finishArrowValidation(e){var r;this.toAssignableList(e.params,(r=e.extra)==null?void 0:r.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,r){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=r(),this.state.noArrowParamsConversionAt.pop()):n=r(),n}parseParenItem(e,r){const n=super.parseParenItem(e,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const c=this.startNodeAt(r);return c.expression=n,c.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(c,"TypeCastExpression")}return n}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const r=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(r)}else if(this.isContextual(131)){e.exportKind="type";const r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(129)){e.exportKind="type";const r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(126)){e.exportKind="value";const r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){const{startLoc:r}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind==="type"&&this.unexpected(r),n}parseClassId(e,r,n){super.parseClassId(e,r,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,r,n){const{startLoc:c}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,r))return;r.declare=!0}super.parseClassMember(e,r,n),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(Je.DeclareClassElement,c):r.value&&this.raise(Je.DeclareClassFieldInitializer,r.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){const e=super.readWord1(),r="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(S.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}getTokenFromCode(e){const r=this.input.charCodeAt(this.state.pos+1);e===123&&r===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?r===46?this.finishOp(18,2):this.finishOp(17,1):gt(e,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,r){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,r):super.isAssignable(e,r)}toAssignable(e,r=!1){!r&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,r)}toAssignableList(e,r,n){for(let c=0;c<e.length;c++){const v=e[c];v?.type==="TypeCastExpression"&&(e[c]=this.typeCastToParameter(v))}super.toAssignableList(e,r,n)}toReferencedList(e,r){for(let c=0;c<e.length;c++){var n;const v=e[c];v&&v.type==="TypeCastExpression"&&!((n=v.extra)!=null&&n.parenthesized)&&(e.length>1||!r)&&this.raise(Je.TypeCastInPattern,v.typeAnnotation)}return e}parseArrayLike(e,r,n){const c=super.parseArrayLike(e,r,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(c.elements),c}isValidLVal(e,r,n,c){return e==="TypeCastExpression"||super.isValidLVal(e,r,n,c)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,r,n,c,v,L){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,r,n,c,v,L),r.params&&v){const Y=r.params;Y.length>0&&this.isThisParam(Y[0])&&this.raise(Je.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&v&&r.value.params){const Y=r.value.params;Y.length>0&&this.isThisParam(Y[0])&&this.raise(Je.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(e,r,n,c){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,r,n,c)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const r=e.implements=[];do{const n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const r=this.getObjectOrClassMethodParams(e);if(r.length>0){const n=r[0];this.isThisParam(n)&&e.kind==="get"?this.raise(Je.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Je.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,r,n,c,v,L,Y){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let se;this.match(47)&&!L&&(se=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const oe=super.parseObjPropValue(e,r,n,c,v,L,Y);return se&&((oe.value||oe).typeParameters=se),oe}parseFunctionParamType(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(Je.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Je.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Je.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Je.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,r){const n=super.parseMaybeDefault(e,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Je.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(Je.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,r,n){r.local=ar(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const r=this.lookaheadCharCode();return r===123||r===42}return!e&&this.isContextual(87)}applyImportPhase(e,r,n,c){if(super.applyImportPhase(e,r,n,c),r){if(!n&&this.match(65))return;e.exportKind=n==="type"?n:"value"}else n==="type"&&this.match(55)&&this.unexpected(),e.importKind=n==="type"||n==="typeof"?n:"value"}parseImportSpecifier(e,r,n,c,v){const L=e.imported;let Y=null;L.type==="Identifier"&&(L.name==="type"?Y="type":L.name==="typeof"&&(Y="typeof"));let se=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const be=this.parseIdentifier(!0);Y!==null&&!qe(this.state.type)?(e.imported=be,e.importKind=Y,e.local=this.cloneIdentifier(be)):(e.imported=L,e.importKind=null,e.local=this.parseIdentifier())}else{if(Y!==null&&qe(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=Y;else{if(r)throw this.raise(S.ImportBindingIsString,e,{importName:L.value});e.imported=L,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(se=!0,e.local=this.cloneIdentifier(e.imported))}const oe=ar(e);return n&&oe&&this.raise(Je.ImportTypeShorthandOnlyInPureImport,e),(n||oe)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),se&&!n&&!oe&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,r){const n=e.kind;n!=="get"&&n!=="set"&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,r)}parseVarId(e,r){super.parseVarId(e,r),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,r){if(this.match(14)){const n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=n}return super.parseAsyncArrowFromCallExpression(e,r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,r){var n;let c=null,v;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),v=this.tryParse(()=>super.parseMaybeAssign(e,r),c),!v.error)return v.node;const{context:se}=this.state,oe=se[se.length-1];(oe===B.j_oTag||oe===B.j_expr)&&se.pop()}if((n=v)!=null&&n.error||this.match(47)){var L,Y;c=c||this.state.clone();let se;const oe=this.tryParse(Fe=>{var je;se=this.flowParseTypeParameterDeclaration();const Ye=this.forwardNoArrowParamsConversionAt(se,()=>{const Tt=super.parseMaybeAssign(e,r);return this.resetStartLocationFromNode(Tt,se),Tt});(je=Ye.extra)!=null&&je.parenthesized&&Fe();const ct=this.maybeUnwrapTypeCastExpression(Ye);return ct.type!=="ArrowFunctionExpression"&&Fe(),ct.typeParameters=se,this.resetStartLocationFromNode(ct,se),Ye},c);let be=null;if(oe.node&&this.maybeUnwrapTypeCastExpression(oe.node).type==="ArrowFunctionExpression"){if(!oe.error&&!oe.aborted)return oe.node.async&&this.raise(Je.UnexpectedTypeParameterBeforeAsyncArrowFunction,se),oe.node;be=oe.node}if((L=v)!=null&&L.node)return this.state=v.failState,v.node;if(be)return this.state=oe.failState,be;throw(Y=v)!=null&&Y.thrown?v.error:oe.thrown?oe.error:this.raise(Je.UnexpectedTokenAfterTypeParameter,se)}return super.parseMaybeAssign(e,r)}parseArrow(e){if(this.match(14)){const r=this.tryParse(()=>{const n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const c=this.startNode();return[c.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),c});if(r.thrown)return null;r.error&&(this.state=r.failState),e.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=r:super.setArrowFunctionParameters(e,r)}checkParams(e,r,n,c=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let v=0;v<e.params.length;v++)this.isThisParam(e.params[v])&&v>0&&this.raise(Je.ThisParamMustBeFirst,e.params[v]);super.checkParams(e,r,n,c)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,r,n){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();const c=this.startNodeAt(r);c.callee=e,c.arguments=super.parseCallExpressionArguments(),e=this.finishNode(c,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){const c=this.state.clone(),v=this.tryParse(Y=>this.parseAsyncArrowWithTypeParameters(r)||Y(),c);if(!v.error&&!v.aborted)return v.node;const L=this.tryParse(()=>super.parseSubscripts(e,r,n),c);if(L.node&&!L.error)return L.node;if(v.node)return this.state=v.failState,v.node;if(L.node)return this.state=L.failState,L.node;throw v.error||L.error}return super.parseSubscripts(e,r,n)}parseSubscript(e,r,n,c){if(this.match(18)&&this.isLookaheadToken_lt()){if(c.optionalChainMember=!0,n)return c.stop=!0,e;this.next();const v=this.startNodeAt(r);return v.callee=e,v.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),v.arguments=this.parseCallExpressionArguments(),v.optional=!0,this.finishCallExpression(v,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const v=this.startNodeAt(r);v.callee=e;const L=this.tryParse(()=>(v.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),v.arguments=super.parseCallExpressionArguments(),c.optionalChainMember&&(v.optional=!1),this.finishCallExpression(v,c.optionalChainMember)));if(L.node)return L.error&&(this.state=L.failState),L.node}return super.parseSubscript(e,r,n,c)}parseNewCallee(e){super.parseNewCallee(e);let r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=r}parseAsyncArrowWithTypeParameters(e){const r=this.startNodeAt(e);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(e){const r=this.input.charCodeAt(this.state.pos+1);if(e===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const r=this.input.charCodeAt(this.state.pos+1);if(e===124&&r===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,r){const n=super.parseTopLevel(e,r);return this.state.hasFlowComment&&this.raise(Je.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Je.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let r=2;for(;[32,9].includes(this.input.charCodeAt(e+r));)r++;const n=this.input.charCodeAt(r+e),c=this.input.charCodeAt(r+e+1);return n===58&&c===58?r+2:this.input.slice(r+e,r+e+12)==="flow-include"?r+12:n===58&&c!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(S.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:r,memberName:n}){this.raise(Je.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(e,r){return this.raise(r.explicitType?r.explicitType==="symbol"?Je.EnumInvalidMemberInitializerSymbolType:Je.EnumInvalidMemberInitializerPrimaryType:Je.EnumInvalidMemberInitializerUnknownType,e,r)}flowEnumErrorNumberMemberNotInitialized(e,r){this.raise(Je.EnumNumberMemberNotInitialized,e,r)}flowEnumErrorStringMemberInconsistentlyInitialized(e,r){this.raise(Je.EnumStringMemberInconsistentlyInitialized,e,r)}flowEnumMemberInit(){const e=this.state.startLoc,r=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const n=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 134:{const n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc,r=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:r,init:n}}flowEnumCheckExplicitTypeMismatch(e,r,n){const{explicitType:c}=r;c!==null&&c!==n&&this.flowEnumErrorInvalidMemberInitializer(e,r)}flowEnumMembers({enumName:e,explicitType:r}){const n=new Set,c={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let v=!1;for(;!this.match(8);){if(this.eat(21)){v=!0;break}const L=this.startNode(),{id:Y,init:se}=this.flowEnumMemberRaw(),oe=Y.name;if(oe==="")continue;/^[a-z]/.test(oe)&&this.raise(Je.EnumInvalidMemberName,Y,{memberName:oe,suggestion:oe[0].toUpperCase()+oe.slice(1),enumName:e}),n.has(oe)&&this.raise(Je.EnumDuplicateMemberName,Y,{memberName:oe,enumName:e}),n.add(oe);const be={enumName:e,explicitType:r,memberName:oe};switch(L.id=Y,se.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(se.loc,be,"boolean"),L.init=se.value,c.booleanMembers.push(this.finishNode(L,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(se.loc,be,"number"),L.init=se.value,c.numberMembers.push(this.finishNode(L,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(se.loc,be,"string"),L.init=se.value,c.stringMembers.push(this.finishNode(L,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(se.loc,be);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(se.loc,be);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(se.loc,be);break;default:c.defaultedMembers.push(this.finishNode(L,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:c,hasUnknownMembers:v}}flowEnumStringMembers(e,r,{enumName:n}){if(e.length===0)return r;if(r.length===0)return e;if(r.length>e.length){for(const c of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(c,{enumName:n});return r}else{for(const c of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(c,{enumName:n});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!le(this.state.type))throw this.raise(Je.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(Je.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:r}),r}flowEnumBody(e,r){const n=r.name,c=r.loc.start,v=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:L,hasUnknownMembers:Y}=this.flowEnumMembers({enumName:n,explicitType:v});switch(e.hasUnknownMembers=Y,v){case"boolean":return e.explicitType=!0,e.members=L.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=L.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(L.stringMembers,L.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=L.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const se=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const oe=L.booleanMembers.length,be=L.numberMembers.length,Fe=L.stringMembers.length,je=L.defaultedMembers.length;if(!oe&&!be&&!Fe&&!je)return se();if(!oe&&!be)return e.members=this.flowEnumStringMembers(L.stringMembers,L.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!be&&!Fe&&oe>=je){for(const Ye of L.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Ye.loc.start,{enumName:n,memberName:Ye.id.name});return e.members=L.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!oe&&!Fe&&be>=je){for(const Ye of L.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Ye.loc.start,{enumName:n,memberName:Ye.id.name});return e.members=L.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(Je.EnumInconsistentMemberValues,c,{enumName:n}),se()}}}flowParseEnumDeclaration(e){const r=this.parseIdentifier();return e.id=r,e.body=this.flowEnumBody(this.startNode(),r),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){const r=this.input.charCodeAt(e+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){const{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}};const tr={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},mr=/\r\n|[\r\n\u2028\u2029]/,Xt=new RegExp(mr.source,"g");function Rt(g){switch(g){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function jr(g,t,e){for(let r=t;r<e;r++)if(Rt(g.charCodeAt(r)))return!0;return!1}const vr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Cr=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Bi(g){switch(g){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const Yt=k`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:g})=>`Expected corresponding JSX closing tag for <${g}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:g,HTMLEntity:t})=>`Unexpected token \`${g}\`. Did you mean \`${t}\` or \`{'${g}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Ut(g){return g?g.type==="JSXOpeningFragment"||g.type==="JSXClosingFragment":!1}function rr(g){if(g.type==="JSXIdentifier")return g.name;if(g.type==="JSXNamespacedName")return g.namespace.name+":"+g.name.name;if(g.type==="JSXMemberExpression")return rr(g.object)+"."+rr(g.property);throw new Error("Node had unexpected type: "+g.type)}var Fi=g=>class extends g{jsxReadToken(){let e="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Yt.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}e+=this.input.slice(r,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:default:Rt(n)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const r=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
|
|
4
|
-
|
|
5
|
-
`):n=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let r="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(S.UnterminatedString,this.state.startLoc);const c=this.input.charCodeAt(this.state.pos);if(c===e)break;c===38?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos):Rt(c)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}r+=this.input.slice(n,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){const e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);const n=this.readInt(r,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let r=0,n=!1;for(;r++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){const c=this.input.slice(e,this.state.pos),v=tr[c];if(++this.state.pos,v)return v}}return this.state.pos=e,"&"}jsxReadWord(){let e;const r=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(q(e)||e===45);this.finishToken(141,this.input.slice(r,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(141)?e.name=this.state.value:ke(this.state.type)?e.name=Te(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(14))return r;const n=this.startNodeAt(e);return n.namespace=r,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let r=this.jsxParseNamespacedName();if(r.type==="JSXNamespacedName")return r;for(;this.eat(16);){const n=this.startNodeAt(e);n.object=r,n.property=this.jsxParseIdentifier(),r=this.finishNode(n,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(B.brace),this.next(),e=this.jsxParseExpressionContainer(e,B.j_oTag),e.expression.type==="JSXEmptyExpression"&&this.raise(Yt.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Yt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(B.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,r){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const n=this.parseExpression();e.expression=n}return this.setContext(r),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(B.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(B.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const r=this.startNodeAt(e);return this.eat(144)?this.finishNode(r,"JSXOpeningFragment"):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(e){const r=[];for(;!this.match(56)&&!this.match(144);)r.push(this.jsxParseAttribute());return e.attributes=r,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const r=this.startNodeAt(e);return this.eat(144)?this.finishNode(r,"JSXClosingFragment"):(r.name=this.jsxParseElementName(),this.expect(144),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(e){const r=this.startNodeAt(e),n=[],c=this.jsxParseOpeningElementAt(e);let v=null;if(!c.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){v=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const L=this.startNode();this.setContext(B.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(L)):n.push(this.jsxParseExpressionContainer(L,B.j_expr));break}default:this.unexpected()}Ut(c)&&!Ut(v)&&v!==null?this.raise(Yt.MissingClosingTagFragment,v):!Ut(c)&&Ut(v)?this.raise(Yt.MissingClosingTagElement,v,{openingTagName:rr(c.name)}):!Ut(c)&&!Ut(v)&&rr(v.name)!==rr(c.name)&&this.raise(Yt.MissingClosingTagElement,v,{openingTagName:rr(c.name)})}if(Ut(c)?(r.openingFragment=c,r.closingFragment=v):(r.openingElement=c,r.closingElement=v),r.children=n,this.match(47))throw this.raise(Yt.UnwrappedAdjacentJSXElements,this.state.startLoc);return Ut(c)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:r}=this.state;r[r.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const r=this.curContext();if(r===B.j_expr){this.jsxReadToken();return}if(r===B.j_oTag||r===B.j_cTag){if(he(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&r===B.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){const{context:r,type:n}=this.state;if(n===56&&e===143)r.splice(-2,2,B.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)r.push(B.j_oTag);else if(n===144){const c=r[r.length-1];c===B.j_oTag&&e===56||c===B.j_cTag?(r.pop(),this.state.canStartJSXElement=r[r.length-1]===B.j_expr):(this.setContext(B.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=Ze(n)}};class Ri extends Nt{constructor(...t){super(...t),this.tsNames=new Map}}class ji extends Ot{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new Ri(t)}enter(t){t===1024&&this.importsStack.push(new Set),super.enter(t)}exit(){const t=super.exit();return t===1024&&this.importsStack.pop(),t}hasImport(t,e){const r=this.importsStack.length;if(this.importsStack[r-1].has(t))return!0;if(!e&&r>1){for(let n=0;n<r-1;n++)if(this.importsStack[n].has(t))return!0}return!1}declareName(t,e,r){if(e&4096){this.hasImport(t,!0)&&this.parser.raise(S.VarRedeclaration,r,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}const n=this.currentScope();let c=n.tsNames.get(t)||0;if(e&1024){this.maybeExportDefined(n,t),n.tsNames.set(t,c|16);return}super.declareName(t,e,r),e&2&&(e&1||(this.checkRedeclarationInScope(n,t,e,r),this.maybeExportDefined(n,t)),c=c|1),e&256&&(c=c|2),e&512&&(c=c|4),e&128&&(c=c|8),c&&n.tsNames.set(t,c)}isRedeclaredInScope(t,e,r){const n=t.tsNames.get(e);if((n&2)>0){if(r&256){const c=!!(r&512),v=(n&4)>0;return c!==v}return!0}return r&128&&(n&8)>0?t.names.get(e)&2?!!(r&1):!1:r&2&&(n&1)>0?!0:super.isRedeclaredInScope(t,e,r)}checkLocalExport(t){const{name:e}=t;if(this.hasImport(e))return;const r=this.scopeStack.length;for(let n=r-1;n>=0;n--){const v=this.scopeStack[n].tsNames.get(e);if((v&1)>0||(v&16)>0)return}super.checkLocalExport(t)}}class qi{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function yr(g,t){return(g?2:0)|(t?1:0)}class Ui{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{const[e,r]=t;if(!this.hasPlugin(e))return!1;const n=this.plugins.get(e);for(const c of Object.keys(r))if(n?.[c]!==r[c])return!1;return!0}}getPluginOption(t,e){var r;return(r=this.plugins.get(t))==null?void 0:r[e]}}function qr(g,t){g.trailingComments===void 0?g.trailingComments=t:g.trailingComments.unshift(...t)}function Ki(g,t){g.leadingComments===void 0?g.leadingComments=t:g.leadingComments.unshift(...t)}function lr(g,t){g.innerComments===void 0?g.innerComments=t:g.innerComments.unshift(...t)}function Kt(g,t,e){let r=null,n=t.length;for(;r===null&&n>0;)r=t[--n];r===null||r.start>e.start?lr(g,e.comments):qr(r,e.comments)}class Vi extends Ui{addComment(t){this.filename&&(t.loc.filename=this.filename);const{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){const{commentStack:e}=this.state,r=e.length;if(r===0)return;let n=r-1;const c=e[n];c.start===t.end&&(c.leadingNode=t,n--);const{start:v}=t;for(;n>=0;n--){const L=e[n],Y=L.end;if(Y>v)L.containingNode=t,this.finalizeComment(L),e.splice(n,1);else{Y===v&&(L.trailingNode=t);break}}}finalizeComment(t){var e;const{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&qr(t.leadingNode,r),t.trailingNode!==null&&Ki(t.trailingNode,r);else{const n=t.containingNode,c=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(c)-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Kt(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":Kt(n,n.arguments,t);break;case"ImportExpression":Kt(n,[n.source,(e=n.options)!=null?e:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Kt(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Kt(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Kt(n,n.specifiers,t);break;case"TSEnumDeclaration":Kt(n,n.members,t);break;case"TSEnumBody":Kt(n,n.members,t);break;default:lr(n,r)}else lr(n,r)}}finalizeRemainingComments(){const{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){const{commentStack:e}=this.state,{length:r}=e;if(r===0)return;const n=e[r-1];n.leadingNode===t&&(n.leadingNode=null)}takeSurroundingComments(t,e,r){const{commentStack:n}=this.state,c=n.length;if(c===0)return;let v=c-1;for(;v>=0;v--){const L=n[v],Y=L.end;if(L.start===r)L.leadingNode=t;else if(Y===e)L.trailingNode=t;else if(Y<e)break}}}class Ir{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[B.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startIndex:r,startLine:n,startColumn:c}){this.strict=t===!1?!1:t===!0?!0:e==="module",this.startIndex=r,this.curLine=n,this.lineStart=-c,this.startLoc=this.endLoc=new l(n,c,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new l(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const t=new Ir;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}var Wi=function(t){return t>=48&&t<=57};const Ur={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Tr={bin:g=>g===48||g===49,oct:g=>g>=48&&g<=55,dec:g=>g>=48&&g<=57,hex:g=>g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102};function Kr(g,t,e,r,n,c){const v=e,L=r,Y=n;let se="",oe=null,be=e;const{length:Fe}=t;for(;;){if(e>=Fe){c.unterminated(v,L,Y),se+=t.slice(be,e);break}const je=t.charCodeAt(e);if(Ji(g,je,t,e)){se+=t.slice(be,e);break}if(je===92){se+=t.slice(be,e);const Ye=Xi(t,e,r,n,g==="template",c);Ye.ch===null&&!oe?oe={pos:e,lineStart:r,curLine:n}:se+=Ye.ch,{pos:e,lineStart:r,curLine:n}=Ye,be=e}else je===8232||je===8233?(++e,++n,r=e):je===10||je===13?g==="template"?(se+=t.slice(be,e)+`
|
|
6
|
-
|
|
7
|
-
`);case 114:return L("\r");case 120:{let se;return{code:se,pos:t}=wr(g,t,e,r,2,!1,v,c),L(se===null?null:String.fromCharCode(se))}case 117:{let se;return{code:se,pos:t}=Wr(g,t,e,r,v,c),L(se===null?null:String.fromCodePoint(se))}case 116:return L(" ");case 98:return L("\b");case 118:return L("\v");case 102:return L("\f");case 13:g.charCodeAt(t)===10&&++t;case 10:e=t,++r;case 8232:case 8233:return L("");case 56:case 57:if(n)return L(null);c.strictNumericEscape(t-1,e,r);default:if(Y>=48&&Y<=55){const se=t-1;let be=/^[0-7]+/.exec(g.slice(se,t+2))[0],Fe=parseInt(be,8);Fe>255&&(be=be.slice(0,-1),Fe=parseInt(be,8)),t+=be.length-1;const je=g.charCodeAt(t);if(be!=="0"||je===56||je===57){if(n)return L(null);c.strictNumericEscape(se,e,r)}return L(String.fromCharCode(Fe))}return L(String.fromCharCode(Y))}}function wr(g,t,e,r,n,c,v,L){const Y=t;let se;return{n:se,pos:t}=Vr(g,t,e,r,16,n,c,!1,L,!v),se===null&&(v?L.invalidEscapeSequence(Y,e,r):t=Y-1),{code:se,pos:t}}function Vr(g,t,e,r,n,c,v,L,Y,se){const oe=t,be=n===16?Ur.hex:Ur.decBinOct,Fe=n===16?Tr.hex:n===10?Tr.dec:n===8?Tr.oct:Tr.bin;let je=!1,Ye=0;for(let ct=0,Tt=c??1/0;ct<Tt;++ct){const tt=g.charCodeAt(t);let mt;if(tt===95&&L!=="bail"){const Ht=g.charCodeAt(t-1),Wt=g.charCodeAt(t+1);if(L){if(Number.isNaN(Wt)||!Fe(Wt)||be.has(Ht)||be.has(Wt)){if(se)return{n:null,pos:t};Y.unexpectedNumericSeparator(t,e,r)}}else{if(se)return{n:null,pos:t};Y.numericSeparatorInEscapeSequence(t,e,r)}++t;continue}if(tt>=97?mt=tt-97+10:tt>=65?mt=tt-65+10:Wi(tt)?mt=tt-48:mt=1/0,mt>=n){if(mt<=9&&se)return{n:null,pos:t};if(mt<=9&&Y.invalidDigit(t,e,r,n))mt=0;else if(v)mt=0,je=!0;else break}++t,Ye=Ye*n+mt}return t===oe||c!=null&&t-oe!==c||je?{n:null,pos:t}:{n:Ye,pos:t}}function Wr(g,t,e,r,n,c){const v=g.charCodeAt(t);let L;if(v===123){if(++t,{code:L,pos:t}=wr(g,t,e,r,g.indexOf("}",t)-t,!0,n,c),++t,L!==null&&L>1114111)if(n)c.invalidCodePoint(t,e,r);else return{code:null,pos:t}}else({code:L,pos:t}=wr(g,t,e,r,4,!1,n,c));return{code:L,pos:t}}function ur(g,t,e){return new l(e,g-t,g)}const Yi=new Set([103,109,115,105,121,117,100,118]);class Vt{constructor(t){const e=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=e+t.start,this.end=e+t.end,this.loc=new u(t.startLoc,t.endLoc)}}class Hi extends Vi{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(r,n,c,v)=>this.optionFlags&2048?(this.raise(S.InvalidDigit,ur(r,n,c),{radix:v}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(S.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(S.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(S.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(S.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,n,c)=>{this.recordStrictModeErrors(S.StrictNumericEscape,ur(r,n,c))},unterminated:(r,n,c)=>{throw this.raise(S.UnterminatedString,ur(r-1,n,c))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(S.StrictNumericEscape),unterminated:(r,n,c)=>{throw this.raise(S.UnterminatedTemplate,ur(r,n,c))}}),this.state=new Ir,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Vt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){const t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return vr.lastIndex=t,vr.test(this.input)?vr.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Cr.lastIndex=t,Cr.test(this.input)?Cr.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++t<this.input.length){const r=this.input.charCodeAt(t);(r&64512)===56320&&(e=65536+((e&1023)<<10)+(r&1023))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([e,r])=>this.raise(e,r)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());const r=this.state.pos,n=this.input.indexOf(t,r+2);if(n===-1)throw this.raise(S.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+t.length,Xt.lastIndex=r+2;Xt.test(this.input)&&Xt.lastIndex<=n;)++this.state.curLine,this.state.lineStart=Xt.lastIndex;if(this.isLookahead)return;const c={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+t.length),loc:new u(e,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(c),c}skipLineComment(t){const e=this.state.pos;let r;this.isLookahead||(r=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!Rt(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const c=this.state.pos,L={type:"CommentLine",value:this.input.slice(e+t,c),start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(c),loc:new u(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(L),L}skipSpace(){const t=this.state.pos,e=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const n=this.skipBlockComment("*/");n!==void 0&&(this.addComment(n),e?.push(n));break}case 47:{const n=this.skipLineComment(2);n!==void 0&&(this.addComment(n),e?.push(n));break}default:break e}break;default:if(Bi(r))++this.state.pos;else if(r===45&&!this.inModule&&this.optionFlags&8192){const n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(t===0||this.state.lineStart>t)){const c=this.skipLineComment(3);c!==void 0&&(this.addComment(c),e?.push(c))}else break e}else if(r===60&&!this.inModule&&this.optionFlags&8192){const n=this.state.pos;if(this.input.charCodeAt(n+1)===33&&this.input.charCodeAt(n+2)===45&&this.input.charCodeAt(n+3)===45){const c=this.skipLineComment(4);c!==void 0&&(this.addComment(c),e?.push(c))}else break e}else break e}}if(e?.length>0){const r=this.state.pos,n={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(r),comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(r)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;const t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(S.UnexpectedDigitAfterHash,this.state.curPosition());if(e===123||e===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(e===123?S.RecordExpressionHashIncorrectStartSyntaxType:S.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,e===123?this.finishToken(7):this.finishToken(1)}else he(e)?(++this.state.pos,this.finishToken(139,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;const e=this.state.pos;for(this.state.pos+=1;!Rt(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);const r=this.input.slice(e+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(t){let e=t===42?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);t===42&&n===42&&(r++,n=this.input.charCodeAt(this.state.pos+2),e=57),n===61&&!this.state.inType&&(r++,e=t===37?33:30),this.finishOp(e,r)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);if(e===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(e===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&e===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(S.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&e===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(S.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(e===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){const t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){const e=this.input.charCodeAt(this.state.pos+1);if(e===t){this.finishOp(34,2);return}e===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(e===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(e===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(e===62){const r=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+r)===61){this.finishOp(30,r+1);return}this.finishOp(52,r);return}if(e===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){const e=this.input.charCodeAt(this.state.pos+1);if(e===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&e===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);t===63?e===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(e>=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(S.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(S.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(he(t)){this.readWord(t);return}}throw this.raise(S.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){const r=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,r)}readRegexp(){const t=this.state.startLoc,e=this.state.start+1;let r,n,{pos:c}=this.state;for(;;++c){if(c>=this.length)throw this.raise(S.UnterminatedRegExp,o(t,1));const se=this.input.charCodeAt(c);if(Rt(se))throw this.raise(S.UnterminatedRegExp,o(t,1));if(r)r=!1;else{if(se===91)n=!0;else if(se===93&&n)n=!1;else if(se===47&&!n)break;r=se===92}}const v=this.input.slice(e,c);++c;let L="";const Y=()=>o(t,c+2-e);for(;c<this.length;){const se=this.codePointAtPos(c),oe=String.fromCharCode(se);if(Yi.has(se))se===118?L.includes("u")&&this.raise(S.IncompatibleRegExpUVFlags,Y()):se===117&&L.includes("v")&&this.raise(S.IncompatibleRegExpUVFlags,Y()),L.includes(oe)&&this.raise(S.DuplicateRegExpFlags,Y());else if(q(se)||se===92)this.raise(S.MalformedRegExpFlags,Y());else break;++c,L+=oe}this.state.pos=c,this.finishToken(138,{pattern:v,flags:L})}readInt(t,e,r=!1,n=!0){const{n:c,pos:v}=Vr(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,e,r,n,this.errorHandlers_readInt,!1);return this.state.pos=v,c}readRadixNumber(t){const e=this.state.pos,r=this.state.curPosition();let n=!1;this.state.pos+=2;const c=this.readInt(t);c==null&&this.raise(S.InvalidDigit,o(r,2),{radix:t});const v=this.input.charCodeAt(this.state.pos);if(v===110)++this.state.pos,n=!0;else if(v===109)throw this.raise(S.InvalidDecimal,r);if(he(this.codePointAtPos(this.state.pos)))throw this.raise(S.NumberIdentifier,this.state.curPosition());if(n){const L=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,L);return}this.finishToken(135,c)}readNumber(t){const e=this.state.pos,r=this.state.curPosition();let n=!1,c=!1,v=!1,L=!1;!t&&this.readInt(10)===null&&this.raise(S.InvalidNumber,this.state.curPosition());const Y=this.state.pos-e>=2&&this.input.charCodeAt(e)===48;if(Y){const je=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(S.StrictOctalLiteral,r),!this.state.strict){const Ye=je.indexOf("_");Ye>0&&this.raise(S.ZeroDigitNumericSeparator,o(r,Ye))}L=Y&&!/[89]/.test(je)}let se=this.input.charCodeAt(this.state.pos);if(se===46&&!L&&(++this.state.pos,this.readInt(10),n=!0,se=this.input.charCodeAt(this.state.pos)),(se===69||se===101)&&!L&&(se=this.input.charCodeAt(++this.state.pos),(se===43||se===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(S.InvalidOrMissingExponent,r),n=!0,v=!0,se=this.input.charCodeAt(this.state.pos)),se===110&&((n||Y)&&this.raise(S.InvalidBigIntLiteral,r),++this.state.pos,c=!0),se===109){this.expectPlugin("decimal",this.state.curPosition()),(v||Y)&&this.raise(S.InvalidDecimal,r),++this.state.pos;var oe=!0}if(he(this.codePointAtPos(this.state.pos)))throw this.raise(S.NumberIdentifier,this.state.curPosition());const be=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(c){this.finishToken(136,be);return}if(oe){this.finishToken(137,be);return}const Fe=L?parseInt(be,8):parseFloat(be);this.finishToken(135,Fe)}readCodePoint(t){const{code:e,pos:r}=Wr(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=r,e}readString(t){const{str:e,pos:r,curLine:n,lineStart:c}=Kr(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=c,this.state.curLine=n,this.finishToken(134,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const t=this.input[this.state.pos],{str:e,firstInvalidLoc:r,pos:n,curLine:c,lineStart:v}=Kr("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=v,this.state.curLine=c,r&&(this.state.firstInvalidTemplateEscapePos=new l(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(n)===96?this.finishToken(24,r?null:t+e+"`"):(this.state.pos++,this.finishToken(25,r?null:t+e+"${"))}recordStrictModeErrors(t,e){const r=e.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(t,e):this.state.strictErrors.set(r,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="";const r=this.state.pos;let n=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){const c=this.codePointAtPos(this.state.pos);if(q(c))this.state.pos+=c<=65535?1:2;else if(c===92){this.state.containsEsc=!0,e+=this.input.slice(n,this.state.pos);const v=this.state.curPosition(),L=this.state.pos===r?he:q;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(S.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;const Y=this.readCodePoint(!0);Y!==null&&(L(Y)||this.raise(S.EscapedCharNotAnIdentifier,v),e+=String.fromCodePoint(Y)),n=this.state.pos}else break}return e+this.input.slice(n,this.state.pos)}readWord(t){const e=this.readWord1(t),r=Z.get(e);r!==void 0?this.finishToken(r,Te(r)):this.finishToken(132,e)}checkKeywordEscapes(){const{type:t}=this.state;ke(t)&&this.state.containsEsc&&this.raise(S.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Te(t)})}raise(t,e,r={}){const n=e instanceof l?e:e.loc.start,c=t(n,r);if(!(this.optionFlags&2048))throw c;return this.isLookahead||this.state.errors.push(c),c}raiseOverwrite(t,e,r={}){const n=e instanceof l?e:e.loc.start,c=n.index,v=this.state.errors;for(let L=v.length-1;L>=0;L--){const Y=v[L];if(Y.loc.index===c)return v[L]=t(n,r);if(Y.loc.index<c)break}return this.raise(t,e,r)}updateContext(t){}unexpected(t,e){throw this.raise(S.UnexpectedToken,t??this.state.startLoc,{expected:e?Te(e):null})}expectPlugin(t,e){if(this.hasPlugin(t))return!0;throw this.raise(S.MissingPlugin,e??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(e=>this.hasPlugin(e)))throw this.raise(S.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,r,n)=>{this.raise(t,ur(e,r,n))}}}class zi{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class $i{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new zi)}exit(){const t=this.stack.pop(),e=this.current();for(const[r,n]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(r)||e.undefinedPrivateNames.set(r,n):this.parser.raise(S.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(t,e,r){const{privateNames:n,loneAccessors:c,undefinedPrivateNames:v}=this.current();let L=n.has(t);if(e&3){const Y=L&&c.get(t);if(Y){const se=Y&4,oe=e&4,be=Y&3,Fe=e&3;L=be===Fe||se!==oe,L||c.delete(t)}else L||c.set(t,e)}L&&this.parser.raise(S.PrivateNameRedeclaration,r,{identifierName:t}),n.add(t),v.delete(t)}usePrivateName(t,e){let r;for(r of this.stack)if(r.privateNames.has(t))return;r?r.undefinedPrivateNames.set(t,e):this.parser.raise(S.InvalidPrivateFieldResolution,e,{identifierName:t})}}class Sr{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class Jr extends Sr{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){const r=e.index;this.declarationErrors.set(r,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}}class Gi{constructor(t){this.parser=void 0,this.stack=[new Sr],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){const r=e.loc.start,{stack:n}=this;let c=n.length-1,v=n[c];for(;!v.isCertainlyParameterDeclaration();){if(v.canBeArrowParameterDeclaration())v.recordDeclarationError(t,r);else return;v=n[--c]}this.parser.raise(t,r)}recordArrowParameterBindingError(t,e){const{stack:r}=this,n=r[r.length-1],c=e.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(t,c);else if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,c);else return}recordAsyncArrowParametersError(t){const{stack:e}=this;let r=e.length-1,n=e[r];for(;n.canBeArrowParameterDeclaration();)n.type===2&&n.recordDeclarationError(S.AwaitBindingIdentifier,t),n=e[--r]}validateAsPattern(){const{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([r,n])=>{this.parser.raise(r,n);let c=t.length-2,v=t[c];for(;v.canBeArrowParameterDeclaration();)v.clearDeclarationError(n.index),v=t[--c]})}}function Qi(){return new Sr(3)}function Zi(){return new Jr(1)}function es(){return new Jr(2)}function Xr(){return new Sr}class ts extends Hi{addExtra(t,e,r,n=!0){if(!t)return;let{extra:c}=t;c==null&&(c={},t.extra=c),n?c[e]=r:Object.defineProperty(c,e,{enumerable:n,value:r})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){if(this.input.startsWith(e,t)){const r=this.input.charCodeAt(t+e.length);return!(q(r)||(r&64512)===55296)}return!1}isLookaheadContextual(t){const e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return jr(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return jr(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(S.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){const r={node:null};try{const n=t((c=null)=>{throw r.node=c,r});if(this.state.errors.length>e.errors.length){const c=this.state;return this.state=e,this.state.tokensLength=c.tokensLength,{node:n,error:c.errors[e.errors.length],thrown:!1,aborted:!1,failState:c}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(n){const c=this.state;if(this.state=e,n instanceof SyntaxError)return{node:null,error:n,thrown:!0,aborted:!1,failState:c};if(n===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:c};throw n}}checkExpressionErrors(t,e){if(!t)return!1;const{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:c,optionalParametersLoc:v,voidPatternLoc:L}=t,Y=!!r||!!n||!!v||!!c||!!L;if(!e)return Y;r!=null&&this.raise(S.InvalidCoverInitializedName,r),n!=null&&this.raise(S.DuplicateProto,n),c!=null&&this.raise(S.UnexpectedPrivateField,c),v!=null&&this.unexpected(v),L!=null&&this.raise(S.InvalidCoverDiscardElement,L)}isLiteralPropertyName(){return $e(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){const e=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const n=this.inModule;this.inModule=t;const c=this.scope,v=this.getScopeHandler();this.scope=new v(this,t);const L=this.prodParam;this.prodParam=new qi;const Y=this.classScope;this.classScope=new $i(this);const se=this.expressionScope;return this.expressionScope=new Gi(this),()=>{this.state.labels=e,this.exportedIdentifiers=r,this.inModule=n,this.scope=c,this.prodParam=L,this.classScope=Y,this.expressionScope=se}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);const e=!this.inModule&&this.options.sourceType==="commonjs";(e||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let r=e?514:1;this.optionFlags&4&&(r|=512),this.scope.enter(r)}checkDestructuringPrivate(t){const{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}}class gr{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class xr{constructor(t,e,r){this.type="",this.start=e,this.end=0,this.loc=new u(r),t?.optionFlags&128&&(this.range=[e,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}}const Nr=xr.prototype;Nr.__clone=function(){const g=new xr(void 0,this.start,this.loc.start),t=Object.keys(this);for(let e=0,r=t.length;e<r;e++){const n=t[e];n!=="leadingComments"&&n!=="trailingComments"&&n!=="innerComments"&&(g[n]=this[n])}return g};class rs extends ts{startNode(){const t=this.state.startLoc;return new xr(this,t.index,t)}startNodeAt(t){return new xr(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,e){return this.finishNodeAt(t,e,this.state.lastTokEndLoc)}finishNodeAt(t,e,r){return t.type=e,t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,e){t.start=e.index,t.loc.start=e,this.optionFlags&128&&(t.range[0]=e.index)}resetEndLocation(t,e=this.state.lastTokEndLoc){t.end=e.index,t.loc.end=e,this.optionFlags&128&&(t.range[1]=e.index)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.loc.start)}castNodeTo(t,e){return t.type=e,t}cloneIdentifier(t){const{type:e,start:r,end:n,loc:c,range:v,name:L}=t,Y=Object.create(Nr);return Y.type=e,Y.start=r,Y.end=n,Y.loc=c,Y.range=v,Y.name=L,t.extra&&(Y.extra=t.extra),Y}cloneStringLiteral(t){const{type:e,start:r,end:n,loc:c,range:v,extra:L}=t,Y=Object.create(Nr);return Y.type=e,Y.start=r,Y.end=n,Y.loc=c,Y.range=v,Y.extra=L,Y.value=t.value,Y}}const Or=g=>g.type==="ParenthesizedExpression"?Or(g.expression):g;class is extends rs{toAssignable(t,e=!1){var r,n;let c;switch((t.type==="ParenthesizedExpression"||(r=t.extra)!=null&&r.parenthesized)&&(c=Or(t),e?c.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(S.InvalidParenthesizedAssignment,t):c.type!=="CallExpression"&&c.type!=="MemberExpression"&&!this.isOptionalMemberExpression(c)&&this.raise(S.InvalidParenthesizedAssignment,t):this.raise(S.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let L=0,Y=t.properties.length,se=Y-1;L<Y;L++){var v;const oe=t.properties[L],be=L===se;this.toAssignableObjectExpressionProp(oe,be,e),be&&oe.type==="RestElement"&&(v=t.extra)!=null&&v.trailingCommaLoc&&this.raise(S.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:L,value:Y}=t;this.isPrivateName(L)&&this.classScope.usePrivateName(this.getPrivateNameSV(L),L.loc.start),this.toAssignable(Y,e);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,(n=t.extra)==null?void 0:n.trailingCommaLoc,e);break;case"AssignmentExpression":t.operator!=="="&&this.raise(S.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,t.left.type==="VoidPattern"&&this.raise(S.VoidPatternInitializer,t.left),this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(c,e);break}}toAssignableObjectExpressionProp(t,e,r){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?S.PatternHasAccessor:S.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){this.castNodeTo(t,"RestElement");const n=t.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),e||this.raise(S.RestTrailingComma,t)}else this.toAssignable(t,r)}toAssignableList(t,e,r){const n=t.length-1;for(let c=0;c<=n;c++){const v=t[c];v&&(this.toAssignableListItem(t,c,r),v.type==="RestElement"&&(c<n?this.raise(S.RestTrailingComma,v):e&&this.raise(S.RestTrailingComma,e)))}}toAssignableListItem(t,e,r){const n=t[e];if(n.type==="SpreadElement"){this.castNodeTo(n,"RestElement");const c=n.argument;this.checkToRestConversion(c,!0),this.toAssignable(c,r)}else this.toAssignable(n,r)}isAssignable(t,e){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{const r=t.properties.length-1;return t.properties.every((n,c)=>n.type!=="ObjectMethod"&&(c===r||n.type!=="SpreadElement")&&this.isAssignable(n))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(r=>r===null||this.isAssignable(r));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(const r of t)r?.type==="ArrayExpression"&&this.toReferencedListDeep(r.elements)}parseSpread(t){const e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){const t=this.startNode();this.next();const e=this.parseBindingAtom();return e.type==="VoidPattern"&&this.raise(S.UnexpectedVoidPattern,e),t.argument=e,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,e,r){const n=r&1,c=[];let v=!0;for(;!this.eat(t);)if(v?v=!1:this.expect(12),n&&this.match(12))c.push(null);else{if(this.eat(t))break;if(this.match(21)){let L=this.parseRestBinding();if((this.hasPlugin("flow")||r&2)&&(L=this.parseFunctionParamType(L)),c.push(L),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{const L=[];if(r&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(S.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)L.push(this.parseDecorator());c.push(this.parseBindingElement(r,L))}}return c}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(S.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){const{type:t,startLoc:e}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());const r=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,e,!1,!1,!0,!1)}parseBindingElement(t,e){const r=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(r),e.length&&(r.decorators=e,this.resetStartLocationFromNode(r,e[0])),this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(t){return t}parseMaybeDefault(t,e){if(t??(t=this.state.startLoc),e=e??this.parseBindingAtom(),!this.eat(29))return e;const r=this.startNodeAt(t);return e.type==="VoidPattern"&&this.raise(S.VoidPatternInitializer,e),r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,r,n){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!e&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,e,r=64,n=!1,c=!1,v=!1,L=!1){var Y;const se=t.type;if(this.isObjectMethod(t))return;const oe=this.isOptionalMemberExpression(t);if(oe||se==="MemberExpression"){oe&&(this.expectPlugin("optionalChainingAssign",t.loc.start),e.type!=="AssignmentExpression"&&this.raise(S.InvalidLhsOptionalChaining,t,{ancestor:e})),r!==64&&this.raise(S.InvalidPropertyBindingPattern,t);return}if(se==="Identifier"){this.checkIdentifier(t,r,c);const{name:tt}=t;n&&(n.has(tt)?this.raise(S.ParamDupe,t):n.add(tt));return}else se==="VoidPattern"&&e.type==="CatchClause"&&this.raise(S.VoidPatternCatchClauseParam,t);const be=Or(t);L||(L=be.type==="CallExpression"&&(be.callee.type==="Import"||be.callee.type==="Super"));const Fe=this.isValidLVal(se,L,!(v||(Y=t.extra)!=null&&Y.parenthesized)&&e.type==="AssignmentExpression",r);if(Fe===!0)return;if(Fe===!1){const tt=r===64?S.InvalidLhs:S.InvalidLhsBinding;this.raise(tt,t,{ancestor:e});return}let je,Ye;typeof Fe=="string"?(je=Fe,Ye=se==="ParenthesizedExpression"):[je,Ye]=Fe;const ct=se==="ArrayPattern"||se==="ObjectPattern"?{type:se}:e,Tt=t[je];if(Array.isArray(Tt))for(const tt of Tt)tt&&this.checkLVal(tt,ct,r,n,c,Ye,!0);else Tt&&this.checkLVal(Tt,ct,r,n,c,Ye,L)}checkIdentifier(t,e,r=!1){this.state.strict&&(r?dt(t.name,this.inModule):rt(t.name))&&(e===64?this.raise(S.StrictEvalArguments,t,{referenceName:t.name}):this.raise(S.StrictEvalArgumentsBinding,t,{bindingName:t.name})),e&8192&&t.name==="let"&&this.raise(S.LetInLexicalBinding,t),e&64||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(S.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?S.RestTrailingComma:S.ElementAfterRest,this.state.startLoc),!0):!1}}const _r=/in(?:stanceof)?|as|satisfies/y;function ss(g){if(g==null)throw new Error(`Unexpected ${g} value.`);return g}function Yr(g){if(!g)throw new Error("Assert fail")}const Xe=k`typescript`({AbstractMethodHasImplementation:({methodName:g})=>`Method '${g}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:g})=>`Property '${g}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:g})=>`'declare' is not allowed in ${g}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:g})=>`Accessibility modifier already seen: '${g}'.`,DuplicateModifier:({modifier:g})=>`Duplicate modifier: '${g}'.`,EmptyHeritageClauseType:({token:g})=>`'${g}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:g})=>`'${g[0]}' modifier cannot be used with '${g[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:g})=>`Index signatures cannot have an accessibility modifier ('${g}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:g})=>`'${g}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:g=>`'${g}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:g})=>`'${g}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:g})=>`'${g}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:g})=>`'${g}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:g=>`'${g}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:g})=>`'${g[0]}' modifier must precede '${g[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:g})=>`Private elements cannot have an accessibility modifier ('${g}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:g})=>`Single type parameter ${g} should have a trailing comma. Example usage: <${g},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:g})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${g}.`,UsingDeclarationInAmbientContext:g=>`'${g}' declarations are not allowed in ambient contexts.`});function ns(g){switch(g){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Hr(g){return g==="private"||g==="public"||g==="protected"}function as(g){return g==="in"||g==="out"}var os=g=>class extends g{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Xe.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Xe.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Xe.InvalidModifierOnTypeParameter})}getScopeHandler(){return ji}tsIsIdentifier(){return le(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,r,n){if(!le(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;const c=this.state.value;if(e.includes(c)){if(n&&this.match(106)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return c}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:r,stopOnStartOfClassStaticBlock:n,errorTemplate:c=Xe.InvalidModifierOnTypeMember},v){const L=(se,oe,be,Fe)=>{oe===be&&v[Fe]&&this.raise(Xe.InvalidModifiersOrder,se,{orderedModifiers:[be,Fe]})},Y=(se,oe,be,Fe)=>{(v[be]&&oe===Fe||v[Fe]&&oe===be)&&this.raise(Xe.IncompatibleModifiers,se,{modifiers:[be,Fe]})};for(;;){const{startLoc:se}=this.state,oe=this.tsParseModifier(e.concat(r??[]),n,v.static);if(!oe)break;Hr(oe)?v.accessibility?this.raise(Xe.DuplicateAccessibilityModifier,se,{modifier:oe}):(L(se,oe,oe,"override"),L(se,oe,oe,"static"),L(se,oe,oe,"readonly"),v.accessibility=oe):as(oe)?(v[oe]&&this.raise(Xe.DuplicateModifier,se,{modifier:oe}),v[oe]=!0,L(se,oe,"in","out")):(hasOwnProperty.call(v,oe)?this.raise(Xe.DuplicateModifier,se,{modifier:oe}):(L(se,oe,"static","readonly"),L(se,oe,"static","override"),L(se,oe,"override","readonly"),L(se,oe,"abstract","override"),Y(se,oe,"declare","override"),Y(se,oe,"static","abstract")),v[oe]=!0),r!=null&&r.includes(oe)&&this.raise(c,se,{modifier:oe})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,r){const n=[];for(;!this.tsIsListTerminator(e);)n.push(r());return n}tsParseDelimitedList(e,r,n){return ss(this.tsParseDelimitedListWorker(e,r,!0,n))}tsParseDelimitedListWorker(e,r,n,c){const v=[];let L=-1;for(;!this.tsIsListTerminator(e);){L=-1;const Y=r();if(Y==null)return;if(v.push(Y),this.eat(12)){L=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}return c&&(c.value=L),v}tsParseBracketedList(e,r,n,c,v){c||(n?this.expect(0):this.expect(47));const L=this.tsParseDelimitedList(e,r,v);return n?this.expect(3):this.expect(48),L}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(Xe.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const r=this.startNode();return this.isContextual(76)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,76),this.expect(14),r.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(r)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode(),r=[];for(this.expect(5);!this.match(8);){const n=this.state.type;le(n)||n===134?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=r,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let r;if(e&1&&this.match(78))if(e&2)r=this.parseIdentifier(!0);else{const n=this.startNode();this.next(),r=this.finishNode(n,"ThisExpression")}else r=this.parseIdentifier(!!(e&1));for(;this.eat(16);){const n=this.startNodeAtNode(r);n.left=r,n.right=this.parseIdentifier(!!(e&1)),r=this.finishNode(n,"TSQualifiedName")}return r}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const r=this.startNodeAtNode(e);return r.parameterName=e,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const r=this.startNode();return e(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(81),r.default=this.tsEatThenParseType(29),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const r=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const n={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),r.params.length===0&&this.raise(Xe.EmptyTypeParameters,r),n.value!==-1&&this.addExtra(r,"trailingComma",n.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(e,r){const n=e===19,c="parameters",v="typeAnnotation";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[c]=this.tsParseBindingListForSignature(),n?r[v]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(r[v]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const r of e){const{type:n}=r;(n==="AssignmentPattern"||n==="TSParameterProperty")&&this.raise(Xe.UnsupportedSignatureParameterKind,r,{type:n})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,r){return this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),le(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);const r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(3),e.parameters=[r];const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,r){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){r&&this.raise(Xe.ReadonlyForMethodSignature,e);const n=e;n.kind&&this.match(47)&&this.raise(Xe.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();const c="parameters",v="typeAnnotation";if(n.kind==="get")n[c].length>0&&(this.raise(S.BadGetterArity,this.state.curPosition()),this.isThisParam(n[c][0])&&this.raise(Xe.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[c].length!==1)this.raise(S.BadSetterArity,this.state.curPosition());else{const L=n[c][0];this.isThisParam(L)&&this.raise(Xe.AccessorCannotDeclareThisParameter,this.state.curPosition()),L.type==="Identifier"&&L.optional&&this.raise(Xe.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),L.type==="RestElement"&&this.raise(Xe.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[v]&&this.raise(Xe.SetAccessorCannotHaveReturnType,n[v])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{const n=e;r&&(n.readonly=!0);const c=this.tsTryParseTypeAnnotation();return c&&(n.typeAnnotation=c),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const n=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const r=this.tsTryParseIndexSignature(e);return r||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){const e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{const r=this.startNode();r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(r,"TSTypeParameter")}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return e.elementTypes.forEach(n=>{const{type:c}=n;r&&c!=="TSRestType"&&c!=="TSOptionalType"&&!(c==="TSNamedTupleMember"&&n.optional)&&this.raise(Xe.OptionalTypeBeforeRequired,n),r||(r=c==="TSNamedTupleMember"&&n.optional||c==="TSOptionalType")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,r=this.eat(21),{startLoc:n}=this.state;let c,v,L,Y;const oe=qe(this.state.type)?this.lookaheadCharCode():null;if(oe===58)c=!0,L=!1,v=this.parseIdentifier(!0),this.expect(14),Y=this.tsParseType();else if(oe===63){L=!0;const be=this.state.value,Fe=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(c=!0,v=this.createIdentifier(this.startNodeAt(n),be),this.expect(17),this.expect(14),Y=this.tsParseType()):(c=!1,Y=Fe,this.expect(17))}else Y=this.tsParseType(),L=this.eat(17),c=this.eat(14);if(c){let be;v?(be=this.startNodeAt(n),be.optional=L,be.label=v,be.elementType=Y,this.eat(17)&&(be.optional=!0,this.raise(Xe.TupleOptionalAfterType,this.state.lastTokStartLoc))):(be=this.startNodeAt(n),be.optional=L,this.raise(Xe.InvalidTupleMemberLabel,Y),be.label=Y,be.elementType=this.tsParseType()),Y=this.finishNode(be,"TSNamedTupleMember")}else if(L){const be=this.startNodeAt(n);be.typeAnnotation=Y,Y=this.finishNode(be,"TSOptionalType")}if(r){const be=this.startNodeAt(e);be.typeAnnotation=Y,Y=this.finishNode(be,"TSRestType")}return Y}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,r){const n=this.startNode();return e==="TSConstructorType"&&(n.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const e=this.startNode(),r=this.lookahead();return r.type!==135&&r.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(le(e)||e===88||e===84){const r=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":ns(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){const n=this.startNode();return this.next(),this.finishNode(n,r)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const n=this.startNodeAt(e);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType")}else{const n=this.startNodeAt(e);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType")}return r}tsParseTypeOperator(){const e=this.startNode(),r=this.state.value;return this.next(),e.operator=r,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Xe.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return et(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,r,n){const c=this.startNode(),v=this.eat(n),L=[];do L.push(r());while(this.eat(n));return L.length===1&&!v?L[0]:(c.types=L,this.finishNode(c,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(le(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,r=e.length;try{return this.parseObjectLike(8,!0),e.length===r}catch{return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,r=e.length;try{return super.parseBindingList(3,93,1),e.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const r=this.startNode();this.expect(e);const n=this.startNode(),c=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(c&&this.match(78)){let Y=this.tsParseThisTypeOrThisTypePredicate();return Y.type==="TSThisType"?(n.parameterName=Y,n.asserts=!0,n.typeAnnotation=null,Y=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(Y,n),Y.asserts=!0),r.typeAnnotation=Y,this.finishNode(r,"TSTypeAnnotation")}const v=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!v)return c?(n.parameterName=this.parseIdentifier(),n.asserts=c,n.typeAnnotation=null,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);const L=this.tsParseTypeAnnotation(!1);return n.parameterName=v,n.typeAnnotation=L,n.asserts=c,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;const e=this.state.containsEsc;return this.next(),!le(this.state.type)&&!this.match(78)?!1:(e&&this.raise(S.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,r=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){Yr(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const r=this.startNodeAtNode(e);return r.checkType=e,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Xe.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const r=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{const c=this.startNode();return c.expression=this.tsParseEntityName(3),this.match(47)&&(c.typeParameters=this.tsParseTypeArguments()),this.finishNode(c,"TSExpressionWithTypeArguments")}});return n.length||this.raise(Xe.EmptyHeritageClauseType,r,{token:e}),n}tsParseInterfaceDeclaration(e,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(e.declare=!0),le(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Xe.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){const r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()!==B.brace){const r=this.state.context;this.state.context=[r[0]];try{return e()}finally{this.state.context=r}}else return e()}tsInType(e){const r=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(e){const r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(e){const r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,r={}){return r.const&&(e.const=!0),r.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,r=!1){if(e.id=this.parseIdentifier(),r||this.checkIdentifier(e.id,1024),this.eat(16)){const n=this.startNode();this.tsParseModuleOrNamespaceDeclaration(n,!0),e.body=n}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,r,n){e.isExport=n||!1,e.id=r||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const c=this.tsParseModuleReference();return e.importKind==="type"&&c.type!=="TSExternalModuleReference"&&this.raise(Xe.ImportAliasHasImportType,c),e.moduleReference=c,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const r=this.state.clone(),n=e();return this.state=r,n}tsTryParseAndCatch(e){const r=this.tryParse(n=>e()||n());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(e){const r=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=r}tsTryParseDeclare(e){if(this.isLineTerminator())return;const r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(Xe.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(Xe.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{const n=this.tsParseInterfaceDeclaration(e,{declare:!0});if(n)return n}default:if(le(r))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,r,n,c){switch(r){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||le(this.state.type)))return this.tsParseAbstractDeclaration(e,c);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(le(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(n)&&le(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(n)&&le(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch(()=>{const c=this.startNodeAt(e);return c.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(c),c.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),c});if(this.state.maybeInArrowParameters=r,!!n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(Xe.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===B.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return ht(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(e,r){const n=r.length?r[0].loc.start:this.state.startLoc,c={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},c);const v=c.accessibility,L=c.override,Y=c.readonly;!(e&4)&&(v||Y||L)&&this.raise(Xe.UnexpectedParameterModifier,n);const se=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(se);const oe=this.parseMaybeDefault(se.loc.start,se);if(v||Y||L){const be=this.startNodeAt(n);return r.length&&(be.decorators=r),v&&(be.accessibility=v),Y&&(be.readonly=Y),L&&(be.override=L),oe.type!=="Identifier"&&oe.type!=="AssignmentPattern"&&this.raise(Xe.UnsupportedParameterPropertyKind,be),be.parameter=oe,this.finishNode(be,"TSParameterProperty")}return r.length&&(se.decorators=r),oe}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const r of e.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(Xe.PatternIsOptional,r)}setArrowFunctionParameters(e,r,n){super.setArrowFunctionParameters(e,r,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,r,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const c=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return c&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,c):c==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Xe.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,c,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,r,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(Xe.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(e,r){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,r,n){const c=super.parseArrayLike(e,r,n);return c.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(c.elements),c}parseSubscript(e,r,n,c){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const L=this.startNodeAt(r);return L.expression=e,this.finishNode(L,"TSNonNullExpression")}let v=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return c.stop=!0,e;c.optionalChainMember=v=!0,this.next()}if(this.match(47)||this.match(51)){let L;const Y=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){const Fe=this.tsTryParseGenericAsyncArrowFunction(r);if(Fe)return c.stop=!0,Fe}const se=this.tsParseTypeArgumentsInExpression();if(!se)return;if(v&&!this.match(10)){L=this.state.curPosition();return}if(pe(this.state.type)){const Fe=super.parseTaggedTemplateExpression(e,r,c);return Fe.typeParameters=se,Fe}if(!n&&this.eat(10)){const Fe=this.startNodeAt(r);return Fe.callee=e,Fe.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(Fe.arguments),Fe.typeParameters=se,c.optionalChainMember&&(Fe.optional=v),this.finishCallExpression(Fe,c.optionalChainMember)}const oe=this.state.type;if(oe===48||oe===52||oe!==10&&it(oe)&&!this.hasPrecedingLineBreak())return;const be=this.startNodeAt(r);return be.expression=e,be.typeParameters=se,this.finishNode(be,"TSInstantiationExpression")});if(L&&this.unexpected(L,10),Y)return Y.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Xe.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(Y.expression=super.stopParseSubscript(e,c))),Y}return super.parseSubscript(e,r,n,c)}parseNewCallee(e){var r;super.parseNewCallee(e);const{callee:n}=e;n.type==="TSInstantiationExpression"&&!((r=n.extra)!=null&&r.parenthesized)&&(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,r,n){let c;if(Ue(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(c=this.isContextual(120)))){const v=this.startNodeAt(r);return v.expression=e,v.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(c&&this.raise(S.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(v,c?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(v,r,n)}return super.parseExprOp(e,r,n)}checkReservedWord(e,r,n,c){this.state.isAmbientContext||super.checkReservedWord(e,r,n,c)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(Xe.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const r=this.lookaheadCharCode();return e?r===123||r===42:r!==61}return!e&&this.isContextual(87)}applyImportPhase(e,r,n,c){super.applyImportPhase(e,r,n,c),r?e.exportKind=n==="type"?"type":"value":e.importKind=n==="type"||n==="typeof"?n:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let r;if(le(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,n);r=super.parseImportSpecifiersAndAfter(e,n)}else r=super.parseImport(e);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Xe.TypeImportCannotSpecifyDefaultAndNamed,r),r}parseExport(e,r){if(this.match(83)){const n=e;this.next();let c=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?c=this.parseMaybeImportPhase(n,!1):n.importKind="value",this.tsParseImportEqualsDeclaration(n,c,!0)}else if(this.eat(29)){const n=e;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}else if(this.eatContextual(93)){const n=e;return this.expectContextual(128),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}else return super.parseExport(e,r)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,r,n=!1){const{isAmbientContext:c}=this.state,v=super.parseVarStatement(e,r,n||c);if(!c)return v;if(!e.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(Xe.UsingDeclarationInAmbientContext,e,r),v;for(const{id:L,init:Y}of v.declarations)Y&&(r==="var"||r==="let"||L.typeAnnotation?this.raise(Xe.InitializerNotAllowedInAmbientContext,Y):us(Y,this.hasPlugin("estree"))||this.raise(Xe.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,Y));return v}parseStatementContent(e,r){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){const n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){const n=this.state.type,c=this.startNode();this.next();const v=n===125?this.tsTryParseDeclare(c):this.tsParseAbstractDeclaration(c,r);return v?(n===125&&(v.declare=!0),v):(c.expression=this.createIdentifier(this.startNodeAt(c.loc.start),n===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(c,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){const c=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(c)}break}case 129:{const n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){const n=this.startNode();return this.next(),this.tsParseDeclaration(n,127,!1,r)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){const n=this.startNode();return this.next(),this.tsParseDeclaration(n,128,!1,r)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){const n=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(e,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,r){return r.some(n=>Hr(n)?e.accessibility===n:!!e[n])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,r,n){const c=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:c,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Xe.InvalidModifierOnTypeParameterPositions},r);const v=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,c)&&this.raise(Xe.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,r)):this.parseClassMemberWithIsStatic(e,r,n,!!r.static)};r.declare?this.tsInAmbientContext(v):v()}parseClassMemberWithIsStatic(e,r,n,c){const v=this.tsTryParseIndexSignature(r);if(v){e.body.push(v),r.abstract&&this.raise(Xe.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(Xe.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(Xe.IndexSignatureHasDeclare,r),r.override&&this.raise(Xe.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(Xe.NonAbstractClassHasAbstractMethod,r),r.override&&(n.hadSuperClass||this.raise(Xe.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(e,r,n,c)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Xe.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Xe.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,r,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const c=this.lookaheadCharCode();if(c===44||c===61||c===58||c===41)return this.setOptionalParametersError(n),e}return super.parseConditional(e,r,n)}parseParenItem(e,r){const n=super.parseParenItem(e,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const c=this.startNodeAt(r);return c.expression=e,c.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(c,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));const r=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Xe.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const v=le(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return v?((v.type==="TSInterfaceDeclaration"||v.type==="TSTypeAliasDeclaration"||n)&&(e.exportKind="type"),n&&v.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(v,r),v.declare=!0),v):null}parseClassId(e,r,n,c){if((!r||n)&&this.isContextual(113))return;super.parseClassId(e,r,n,e.declare?1024:8331);const v=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);v&&(e.typeParameters=v)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const r=this.tsTryParseTypeAnnotation();r&&(e.typeAnnotation=r)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(Xe.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:r}=e;this.raise(Xe.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!e.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Xe.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Xe.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Xe.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,r,n,c,v,L){const Y=this.tsTryParseTypeParameters(this.tsParseConstModifier);Y&&v&&this.raise(Xe.ConstructorHasTypeParameters,Y);const{declare:se=!1,kind:oe}=r;se&&(oe==="get"||oe==="set")&&this.raise(Xe.DeclareAccessor,r,{kind:oe}),Y&&(r.typeParameters=Y),super.pushClassMethod(e,r,n,c,v,L)}pushClassPrivateMethod(e,r,n,c){const v=this.tsTryParseTypeParameters(this.tsParseConstModifier);v&&(r.typeParameters=v),super.pushClassPrivateMethod(e,r,n,c)}declareClassPrivateMethodInScope(e,r){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&e.value.body==null||super.declareClassPrivateMethodInScope(e,r))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,r,n,c,v,L,Y){const se=this.tsTryParseTypeParameters(this.tsParseConstModifier);return se&&(e.typeParameters=se),super.parseObjPropValue(e,r,n,c,v,L,Y)}parseFunctionParams(e,r){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,r)}parseVarId(e,r){super.parseVarId(e,r),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,r){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,r)}parseMaybeAssign(e,r){var n,c,v,L,Y;let se,oe,be;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(se=this.state.clone(),oe=this.tryParse(()=>super.parseMaybeAssign(e,r),se),!oe.error)return oe.node;const{context:Ye}=this.state,ct=Ye[Ye.length-1];(ct===B.j_oTag||ct===B.j_expr)&&Ye.pop()}if(!((n=oe)!=null&&n.error)&&!this.match(47))return super.parseMaybeAssign(e,r);(!se||se===this.state)&&(se=this.state.clone());let Fe;const je=this.tryParse(Ye=>{var ct,Tt;Fe=this.tsParseTypeParameters(this.tsParseConstModifier);const tt=super.parseMaybeAssign(e,r);return(tt.type!=="ArrowFunctionExpression"||(ct=tt.extra)!=null&&ct.parenthesized)&&Ye(),((Tt=Fe)==null?void 0:Tt.params.length)!==0&&this.resetStartLocationFromNode(tt,Fe),tt.typeParameters=Fe,tt},se);if(!je.error&&!je.aborted)return Fe&&this.reportReservedArrowTypeParam(Fe),je.node;if(!oe&&(Yr(!this.hasPlugin("jsx")),be=this.tryParse(()=>super.parseMaybeAssign(e,r),se),!be.error))return be.node;if((c=oe)!=null&&c.node)return this.state=oe.failState,oe.node;if(je.node)return this.state=je.failState,Fe&&this.reportReservedArrowTypeParam(Fe),je.node;if((v=be)!=null&&v.node)return this.state=be.failState,be.node;throw((L=oe)==null?void 0:L.error)||je.error||((Y=be)==null?void 0:Y.error)}reportReservedArrowTypeParam(e){var r;e.params.length===1&&!e.params[0].constraint&&!((r=e.extra)!=null&&r.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Xe.ReservedArrowTypeParam,e)}parseMaybeUnary(e,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,r)}parseArrow(e){if(this.match(14)){const r=this.tryParse(n=>{const c=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),c});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),e.returnType=r.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,r){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(e,r)}}toAssignable(e,r=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(Xe.UnexpectedTypeCastInParameter,e):this.raise(Xe.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,r);break;case"AssignmentExpression":!r&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,r)}}toAssignableParenthesizedExpression(e,r){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,r);break;default:super.toAssignable(e,r)}}checkToRestConversion(e,r){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,r)}}isValidLVal(e,r,n,c){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(c!==64||!n)&&["expression",!0];default:return super.isValidLVal(e,r,n,c)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,r){if(this.match(47)||this.match(51)){const n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const c=super.parseMaybeDecoratorArguments(e,r);return c.typeParameters=n,c}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,r)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,r){const n=super.parseMaybeDefault(e,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Xe.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,r,n){const c=e[r];c.type==="TSTypeCastExpression"&&(e[r]=this.typeCastToParameter(c)),super.toAssignableListItem(e,r,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(r=>this.isAssignable(r,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(e.typeParameters=r)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const r=super.getGetterSetterExpectedParamCount(e),c=this.getObjectOrClassMethodParams(e)[0];return c&&this.isThisParam(c)?r+1:r}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r,this.resetEndLocation(e)),e}tsInAmbientContext(e){const{isAmbientContext:r,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=r,this.state.strict=n}}parseClass(e,r,n){const c=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,r,n)}finally{this.state.inAbstractClass=c}}tsParseAbstractDeclaration(e,r){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(Xe.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,r,n,c,v,L,Y){const se=super.parseMethod(e,r,n,c,v,L,Y);if((se.abstract||se.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?se.value:se).body){const{key:Fe}=se;this.raise(Xe.AbstractMethodHasImplementation,se,{methodName:Fe.type==="Identifier"&&!se.computed?Fe.name:`[${this.input.slice(this.offsetToSourcePos(Fe.start),this.offsetToSourcePos(Fe.end))}]`})}return se}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,r,n,c){return!r&&c?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,r,n,c))}parseImportSpecifier(e,r,n,c,v){return!r&&c?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,r,n,c,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,r,n){const c=r?"imported":"local",v=r?"local":"exported";let L=e[c],Y,se=!1,oe=!0;const be=L.loc.start;if(this.isContextual(93)){const je=this.parseIdentifier();if(this.isContextual(93)){const Ye=this.parseIdentifier();qe(this.state.type)?(se=!0,L=je,Y=r?this.parseIdentifier():this.parseModuleExportName(),oe=!1):(Y=Ye,oe=!1)}else qe(this.state.type)?(oe=!1,Y=r?this.parseIdentifier():this.parseModuleExportName()):(se=!0,L=je)}else qe(this.state.type)&&(se=!0,r?(L=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(L.name,L.loc.start,!0,!0)):L=this.parseModuleExportName());se&&n&&this.raise(r?Xe.TypeModifierIsUsedInTypeImports:Xe.TypeModifierIsUsedInTypeExports,be),e[c]=L,e[v]=Y;const Fe=r?"importKind":"exportKind";e[Fe]=se?"type":"value",oe&&this.eatContextual(93)&&(e[v]=r?this.parseIdentifier():this.parseModuleExportName()),e[v]||(e[v]=this.cloneIdentifier(e[c])),r&&this.checkIdentifier(e[v],se?4098:4096)}fillOptionalPropertiesForTSESLint(e){var r,n,c,v,L,Y,se,oe,be,Fe,je,Ye,ct,Tt,tt,mt,Ht,Wt,ii,si,ni,ai,oi,li,ui,ci,pi,fi,hi,di,mi,yi,Ti,Si,gi,xi,bi,Ei,Pi,Ai,vi,Ci,Ii,wi,Ni,Oi,_i,ki;switch(e.type){case"ExpressionStatement":(r=e.directive)!=null||(e.directive=void 0);return;case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(n=e.decorators)!=null||(e.decorators=[]),(c=e.optional)!=null||(e.optional=!1),(v=e.typeAnnotation)!=null||(e.typeAnnotation=void 0);return;case"TSParameterProperty":(L=e.accessibility)!=null||(e.accessibility=void 0),(Y=e.decorators)!=null||(e.decorators=[]),(se=e.override)!=null||(e.override=!1),(oe=e.readonly)!=null||(e.readonly=!1),(be=e.static)!=null||(e.static=!1);return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(Fe=e.declare)!=null||(e.declare=!1),(je=e.returnType)!=null||(e.returnType=void 0),(Ye=e.typeParameters)!=null||(e.typeParameters=void 0);return;case"Property":(ct=e.optional)!=null||(e.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(Tt=e.optional)!=null||(e.optional=!1);case"TSIndexSignature":(tt=e.accessibility)!=null||(e.accessibility=void 0),(mt=e.readonly)!=null||(e.readonly=!1),(Ht=e.static)!=null||(e.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(Wt=e.declare)!=null||(e.declare=!1),(ii=e.definite)!=null||(e.definite=!1),(si=e.readonly)!=null||(e.readonly=!1),(ni=e.typeAnnotation)!=null||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(ai=e.accessibility)!=null||(e.accessibility=void 0),(oi=e.decorators)!=null||(e.decorators=[]),(li=e.override)!=null||(e.override=!1),(ui=e.optional)!=null||(e.optional=!1);return;case"ClassExpression":(ci=e.id)!=null||(e.id=null);case"ClassDeclaration":(pi=e.abstract)!=null||(e.abstract=!1),(fi=e.declare)!=null||(e.declare=!1),(hi=e.decorators)!=null||(e.decorators=[]),(di=e.implements)!=null||(e.implements=[]),(mi=e.superTypeArguments)!=null||(e.superTypeArguments=void 0),(yi=e.typeParameters)!=null||(e.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(Ti=e.declare)!=null||(e.declare=!1);return;case"VariableDeclarator":(Si=e.definite)!=null||(e.definite=!1);return;case"TSEnumDeclaration":(gi=e.const)!=null||(e.const=!1),(xi=e.declare)!=null||(e.declare=!1);return;case"TSEnumMember":(bi=e.computed)!=null||(e.computed=!1);return;case"TSImportType":(Ei=e.qualifier)!=null||(e.qualifier=null),(Pi=e.options)!=null||(e.options=null);return;case"TSInterfaceDeclaration":(Ai=e.declare)!=null||(e.declare=!1),(vi=e.extends)!=null||(e.extends=[]);return;case"TSMappedType":(Ci=e.optional)!=null||(e.optional=!1),(Ii=e.readonly)!=null||(e.readonly=void 0);return;case"TSModuleDeclaration":(wi=e.declare)!=null||(e.declare=!1),(Ni=e.global)!=null||(e.global=e.kind==="global");return;case"TSTypeParameter":(Oi=e.const)!=null||(e.const=!1),(_i=e.in)!=null||(e.in=!1),(ki=e.out)!=null||(e.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(e,r){if(he(e)){if(_r.lastIndex=r,_r.test(this.input)){const n=this.codePointAtPos(_r.lastIndex);if(!q(n)&&n!==92)return!1}return!0}else return e===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){const e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(r,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){const e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)||r===34||r===39}};function ls(g){if(g.type!=="MemberExpression")return!1;const{computed:t,property:e}=g;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:$r(g.object)}function us(g,t){var e;const{type:r}=g;if((e=g.extra)!=null&&e.parenthesized)return!1;if(t){if(r==="Literal"){const{value:n}=g;if(typeof n=="string"||typeof n=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(zr(g,t)||cs(g,t)||r==="TemplateLiteral"&&g.expressions.length===0||ls(g))}function zr(g,t){return t?g.type==="Literal"&&(typeof g.value=="number"||"bigint"in g):g.type==="NumericLiteral"||g.type==="BigIntLiteral"}function cs(g,t){if(g.type==="UnaryExpression"){const{operator:e,argument:r}=g;if(e==="-"&&zr(r,t))return!0}return!1}function $r(g){return g.type==="Identifier"?!0:g.type!=="MemberExpression"||g.computed?!1:$r(g.object)}const Gr=k`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var ps=g=>class extends g{parsePlaceholder(e){if(this.match(133)){const r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,e)}}finishPlaceholder(e,r){let n=e;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=r,n}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,r,n,c){e!==void 0&&super.checkReservedWord(e,r,n,c)}cloneIdentifier(e){const r=super.cloneIdentifier(e);return r.type==="Placeholder"&&(r.expectedNode=e.expectedNode),r}cloneStringLiteral(e){return e.type==="Placeholder"?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,r,n,c){return e==="Placeholder"||super.isValidLVal(e,r,n,c)}toAssignable(e,r){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,r)}chStartsBindingIdentifier(e,r){if(super.chStartsBindingIdentifier(e,r))return!0;const n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(e,r){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,r)}parseExpressionStatement(e,r){var n;if(r.type!=="Placeholder"||(n=r.extra)!=null&&n.parenthesized)return super.parseExpressionStatement(e,r);if(this.match(14)){const v=e;return v.label=this.finishPlaceholder(r,"Identifier"),this.next(),v.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(v,"LabeledStatement")}this.semicolon();const c=e;return c.name=r.name,this.finishPlaceholder(c,"Statement")}parseBlock(e,r,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,r,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,r,n){const c=r?"ClassDeclaration":"ClassExpression";this.next();const v=this.state.strict,L=this.parsePlaceholder("Identifier");if(L)if(this.match(81)||this.match(133)||this.match(5))e.id=L;else{if(n||!r)return e.id=null,e.body=this.finishPlaceholder(L,"ClassBody"),this.finishNode(e,c);throw this.raise(Gr.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,r,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,v),this.finishNode(e,c)}parseExport(e,r){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,r);const c=e;if(!this.isContextual(98)&&!this.match(12))return c.specifiers=[],c.source=null,c.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(c,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const v=this.startNode();return v.exported=n,c.specifiers=[this.finishNode(v,"ExportDefaultSpecifier")],super.parseExport(c,r)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(Te(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,r){var n;return(n=e.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(e,r)}checkExport(e){const{specifiers:r}=e;r!=null&&r.length&&(e.specifiers=r.filter(n=>n.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=r}parseImport(e){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(r);return n.local=r,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Gr.UnexpectedSpace,this.state.lastTokEndLoc)}},fs=g=>class extends g{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,r=this.startNode();if(this.next(),le(this.state.type)){const n=this.parseIdentifierName(),c=this.createIdentifier(r,n);if(this.castNodeTo(c,"V8IntrinsicIdentifier"),this.match(10))return c}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};const Qr=["minimal","fsharp","hack","smart"],Zr=["^^","@@","^","%","#"];function hs(g){if(g.has("decorators")){if(g.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const r=g.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=g.get("decorators").allowCallParenthesized;if(n!=null&&typeof n!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(g.has("flow")&&g.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(g.has("placeholders")&&g.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(g.has("pipelineOperator")){var t;const r=g.get("pipelineOperator").proposal;if(!Qr.includes(r)){const n=Qr.map(c=>`"${c}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${n}.`)}if(r==="hack"){if(g.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(g.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const n=g.get("pipelineOperator").topicToken;if(!Zr.includes(n)){const c=Zr.map(v=>`"${v}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${c}.`)}{var e;if(n==="#"&&((e=g.get("recordAndTuple"))==null?void 0:e.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",g.get("recordAndTuple")])}\`.`)}}else if(r==="smart"&&((t=g.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",g.get("recordAndTuple")])}\`.`)}if(g.has("moduleAttributes")){if(g.has("deprecatedImportAssert")||g.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(g.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(g.has("importAssertions")&&g.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!g.has("deprecatedImportAssert")&&g.has("importAttributes")&&g.get("importAttributes").deprecatedAssertSyntax&&g.set("deprecatedImportAssert",{}),g.has("recordAndTuple")){const r=g.get("recordAndTuple").syntaxType;if(r!=null){const n=["hash","bar"];if(!n.includes(r))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+n.map(c=>`'${c}'`).join(", "))}}if(g.has("asyncDoExpressions")&&!g.has("doExpressions")){const r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}if(g.has("optionalChainingAssign")&&g.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(g.has("discardBinding")&&g.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}const ei={estree:I,jsx:Fi,flow:Ft,typescript:os,v8intrinsic:fs,placeholders:ps},ds=Object.keys(ei);class ms extends is{checkProto(t,e,r,n){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return r;const c=t.key;return(c.type==="Identifier"?c.name:c.value)==="__proto__"?e?(this.raise(S.RecordNoProto,c),!0):(r&&(n?n.doubleProtoLoc===null&&(n.doubleProtoLoc=c.loc.start):this.raise(S.DuplicateProto,c)),!0):r}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===e}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(S.ParseExpressionEmptyInput,this.state.startLoc);const t=this.parseExpression();if(!this.match(140))throw this.raise(S.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){const e=this.state.startLoc,r=this.parseMaybeAssign(t);if(this.match(12)){const n=this.startNodeAt(e);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,e){const r=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();let Y=this.parseYield(r);return e&&(Y=e.call(this,Y,r)),Y}let c;t?c=!1:(t=new gr,c=!0);const{type:v}=this.state;(v===10||le(v))&&(this.state.potentialArrowAt=this.state.start);let L=this.parseMaybeConditional(t);if(e&&(L=e.call(this,L,r)),He(this.state.type)){const Y=this.startNodeAt(r),se=this.state.value;if(Y.operator=se,this.match(29)){this.toAssignable(L,!0),Y.left=L;const oe=r.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=oe&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=oe&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=oe&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=oe&&(t.voidPatternLoc=null)}else Y.left=L;return this.next(),Y.right=this.parseMaybeAssign(),this.checkLVal(L,this.finishNode(Y,"AssignmentExpression"),void 0,void 0,void 0,void 0,se==="||="||se==="&&="||se==="??="),Y}else c&&this.checkExpressionErrors(t,!0);if(n){const{type:Y}=this.state;if((this.hasPlugin("v8intrinsic")?it(Y):it(Y)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(S.YieldNotInGeneratorFunction,r),this.parseYield(r)}return L}parseMaybeConditional(t){const e=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(t);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,e,t)}parseConditional(t,e,r){if(this.eat(17)){const n=this.startNodeAt(e);return n.test=t,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){const e=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,e,-1)}parseExprOp(t,e,r){if(this.isPrivateName(t)){const c=this.getPrivateNameSV(t);(r>=Ue(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(S.PrivateInExpectedIn,t,{identifierName:c}),this.classScope.usePrivateName(c,t.loc.start)}const n=this.state.type;if(Le(n)&&(this.prodParam.hasIn||!this.match(58))){let c=Ue(n);if(c>r){if(n===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}const v=this.startNodeAt(e);v.left=t,v.operator=this.state.value;const L=n===41||n===42,Y=n===40;if(Y&&(c=Ue(42)),this.next(),n===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(S.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);v.right=this.parseExprOpRightExpr(n,c);const se=this.finishNode(v,L||Y?"LogicalExpression":"BinaryExpression"),oe=this.state.type;if(Y&&(oe===41||oe===42)||L&&oe===40)throw this.raise(S.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(se,e,r)}}return t}parseExprOpRightExpr(t,e){const r=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(S.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),r)});default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,Be(t)?e-1:e)}parseHackPipeBody(){var t;const{startLoc:e}=this.state,r=this.parseMaybeAssign();return N.has(r.type)&&!((t=r.extra)!=null&&t.parenthesized)&&this.raise(S.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(S.PipeTopicUnused,e),r}checkExponentialAfterUnary(t){this.match(57)&&this.raise(S.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){const r=this.state.startLoc,n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();const Y=this.parseAwait(r);return e||this.checkExponentialAfterUnary(Y),Y}const c=this.match(34),v=this.startNode();if(Qe(this.state.type)){v.operator=this.state.value,v.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const Y=this.match(89);if(this.next(),v.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&Y){const se=v.argument;se.type==="Identifier"?this.raise(S.StrictDelete,v):this.hasPropertyAsPrivateName(se)&&this.raise(S.DeletePrivateField,v)}if(!c)return e||this.checkExponentialAfterUnary(v),this.finishNode(v,"UnaryExpression")}const L=this.parseUpdate(v,c,t);if(n){const{type:Y}=this.state;if((this.hasPlugin("v8intrinsic")?it(Y):it(Y)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(S.AwaitNotInAsyncContext,r),this.parseAwait(r)}return L}parseUpdate(t,e,r){if(e){const v=t;return this.checkLVal(v.argument,this.finishNode(v,"UpdateExpression")),t}const n=this.state.startLoc;let c=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return c;for(;Ve(this.state.type)&&!this.canInsertSemicolon();){const v=this.startNodeAt(n);v.operator=this.state.value,v.prefix=!1,v.argument=c,this.next(),this.checkLVal(c,c=this.finishNode(v,"UpdateExpression"))}return c}parseExprSubscripts(t){const e=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(t);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,e)}parseSubscripts(t,e,r){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,r,n),n.maybeAsyncArrow=!1;while(!n.stop);return t}parseSubscript(t,e,r,n){const{type:c}=this.state;if(!r&&c===15)return this.parseBind(t,e,r,n);if(pe(c))return this.parseTaggedTemplateExpression(t,e,n);let v=!1;if(c===18){if(r&&(this.raise(S.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,n);n.optionalChainMember=v=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,n,v);{const L=this.eat(0);return L||v||this.eat(16)?this.parseMember(t,e,n,L,v):this.stopParseSubscript(t,n)}}stopParseSubscript(t,e){return e.stop=!0,t}parseMember(t,e,r,n,c){const v=this.startNodeAt(e);return v.object=t,v.computed=n,n?(v.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(S.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),v.property=this.parsePrivateName()):v.property=this.parseIdentifier(!0),r.optionalChainMember?(v.optional=c,this.finishNode(v,"OptionalMemberExpression")):this.finishNode(v,"MemberExpression")}parseBind(t,e,r,n){const c=this.startNodeAt(e);return c.object=t,this.next(),c.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(c,"BindExpression"),e,r)}parseCoverCallAndAsyncArrowHead(t,e,r,n){const c=this.state.maybeInArrowParameters;let v=null;this.state.maybeInArrowParameters=!0,this.next();const L=this.startNodeAt(e);L.callee=t;const{maybeAsyncArrow:Y,optionalChainMember:se}=r;Y&&(this.expressionScope.enter(es()),v=new gr),se&&(L.optional=n),n?L.arguments=this.parseCallExpressionArguments():L.arguments=this.parseCallExpressionArguments(t.type!=="Super",L,v);let oe=this.finishCallExpression(L,se);return Y&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(v),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),oe=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),oe)):(Y&&(this.checkExpressionErrors(v,!0),this.expressionScope.exit()),this.toReferencedArguments(oe)),this.state.maybeInArrowParameters=c,oe}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,r){const n=this.startNodeAt(e);return n.tag=t,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(S.OptionalChainingNoTemplate,e),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(S.ImportCallArity,t);else for(const r of t.arguments)r.type==="SpreadElement"&&this.raise(S.ImportCallSpreadArgument,r);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,r){const n=[];let c=!0;const v=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(c)c=!1;else if(this.expect(12),this.match(11)){e&&this.addTrailingCommaExtraToNode(e),this.next();break}n.push(this.parseExprListItem(11,!1,r,t))}return this.state.inFSharpPipelineDirectBody=v,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var r;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(r=e.extra)==null?void 0:r.trailingCommaLoc),e.innerComments&&lr(t,e.innerComments),e.callee.trailingComments&&lr(t,e.callee.trailingComments),t}parseNoCallExpr(){const t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,r=null;const{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(e):this.match(10)?this.optionFlags&512?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise(S.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const c=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(c)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;const c=e.callee=this.parseNoCallExpr();if(c.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise(S.UnsupportedBind,c)}case 139:return this.raise(S.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const c=this.getPluginOption("pipelineOperator","proposal");if(c)return this.parseTopicReference(c);throw this.unexpected()}case 47:{const c=this.input.codePointAt(this.nextTokenStart());throw he(c)||c===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:{if(n===137)return this.parseDecimalLiteral(this.state.value);if(n===2||n===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(n===6||n===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0)}if(le(n)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();const c=this.state.potentialArrowAt===this.state.start,v=this.state.containsEsc,L=this.parseIdentifier();if(!v&&L.name==="async"&&!this.canInsertSemicolon()){const{type:Y}=this.state;if(Y===68)return this.resetPreviousNodeTrailingComments(L),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(L));if(le(Y))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(L)):L;if(Y===90)return this.resetPreviousNodeTrailingComments(L),this.parseDo(this.startNodeAtNode(L),!0)}return c&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(L),[L],!1)):L}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){const r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=o(this.state.endLoc,-1),this.parseTopicReference(r);throw this.unexpected()}parseTopicReference(t){const e=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(e,r,t,n)}finishTopicReference(t,e,r,n){if(this.testTopicReferenceConfiguration(r,e,n))return r==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(S.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(S.PrimaryTopicNotAllowed,e),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(S.PipeTopicUnconfiguredToken,e,{token:Te(n)})}testTopicReferenceConfiguration(t,e,r){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Te(r)}]);case"smart":return r===27;default:throw this.raise(S.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(yr(!0,this.prodParam.hasYield));const e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(S.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();const r=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=r,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(S.SuperNotAllowed,t):this.scope.allowSuper||this.optionFlags&16||this.raise(S.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(S.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){const t=this.startNode(),e=this.startNodeAt(o(this.state.startLoc,1)),r=this.state.value;return this.next(),t.id=this.createIdentifier(e,r),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,r){t.meta=e;const n=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==r||n)&&this.raise(S.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:r}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){const e=this.isContextual(105);return this.expectPlugin(e?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=e?"source":"defer",this.parseImportCall(t)}else{const e=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(S.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}}parseLiteralAtNode(t,e,r){return this.addExtra(r,"rawValue",t),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=t,this.next(),this.finishNode(r,e)}parseLiteral(t,e){const r=this.startNode();return this.parseLiteralAtNode(t,e,r)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){const e=this.startNode();return this.addExtra(e,"raw",this.input.slice(this.offsetToSourcePos(e.start),this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){const e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){const t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){const e=this.state.startLoc;let r;this.next(),this.expressionScope.enter(Zi());const n=this.state.maybeInArrowParameters,c=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const v=this.state.startLoc,L=[],Y=new gr;let se=!0,oe,be;for(;!this.match(11);){if(se)se=!1;else if(this.expect(12,Y.optionalParametersLoc===null?null:Y.optionalParametersLoc),this.match(11)){be=this.state.startLoc;break}if(this.match(21)){const Ye=this.state.startLoc;if(oe=this.state.startLoc,L.push(this.parseParenItem(this.parseRestBinding(),Ye)),!this.checkCommaAfterRest(41))break}else L.push(this.parseMaybeAssignAllowInOrVoidPattern(11,Y,this.parseParenItem))}const Fe=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=c;let je=this.startNodeAt(e);return t&&this.shouldParseArrow(L)&&(je=this.parseArrow(je))?(this.checkDestructuringPrivate(Y),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(je,L,!1),je):(this.expressionScope.exit(),L.length||this.unexpected(this.state.lastTokStartLoc),be&&this.unexpected(be),oe&&this.unexpected(oe),this.checkExpressionErrors(Y,!0),this.toReferencedListDeep(L,!0),L.length>1?(r=this.startNodeAt(v),r.expressions=L,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,Fe)):r=L[0],this.wrapParenthesis(e,r))}wrapParenthesis(t,e){if(!(this.optionFlags&1024))return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;const r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const r=this.parseMetaProperty(t,e,"target");return this.scope.allowNewTarget||this.raise(S.UnexpectedNewTarget,r),r}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){const e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){const e=this.match(83),r=this.parseNoCallExpr();t.callee=r,e&&(r.type==="Import"||r.type==="ImportExpression")&&this.raise(S.ImportCallNotNewExpression,r)}parseTemplateElement(t){const{start:e,startLoc:r,end:n,value:c}=this.state,v=e+1,L=this.startNodeAt(o(r,1));c===null&&(t||this.raise(S.InvalidEscapeSequenceTemplate,o(this.state.firstInvalidTemplateEscapePos,1)));const Y=this.match(24),se=Y?-1:-2,oe=n+se;L.value={raw:this.input.slice(v,oe).replace(/\r\n?/g,`
|
|
8
|
-
`),cooked:c===null?null:c.slice(1,se)},L.tail=Y,this.next();const be=this.finishNode(L,"TemplateElement");return this.resetEndLocation(be,o(this.state.lastTokEndLoc,se)),be}parseTemplate(t){const e=this.startNode();let r=this.parseTemplateElement(t);const n=[r],c=[];for(;!r.tail;)c.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(t));return e.expressions=c,e.quasis=n,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,r,n){r&&this.expectPlugin("recordAndTuple");const c=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let v=!1,L=!0;const Y=this.startNode();for(Y.properties=[],this.next();!this.match(t);){if(L)L=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(Y);break}let oe;e?oe=this.parseBindingProperty():(oe=this.parsePropertyDefinition(n),v=this.checkProto(oe,r,v,n)),r&&!this.isObjectProperty(oe)&&oe.type!=="SpreadElement"&&this.raise(S.InvalidRecordProperty,oe),oe.shorthand&&this.addExtra(oe,"shorthand",!0),Y.properties.push(oe)}this.next(),this.state.inFSharpPipelineDirectBody=c;let se="ObjectExpression";return e?se="ObjectPattern":r&&(se="RecordExpression"),this.finishNode(Y,se)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(S.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());const r=this.startNode();let n=!1,c=!1,v;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(r.decorators=e,e=[]),r.method=!1,t&&(v=this.state.startLoc);let L=this.eat(55);this.parsePropertyNamePrefixOperator(r);const Y=this.state.containsEsc;if(this.parsePropertyName(r,t),!L&&!Y&&this.maybeAsyncOrAccessorProp(r)){const{key:se}=r,oe=se.name;oe==="async"&&!this.hasPrecedingLineBreak()&&(n=!0,this.resetPreviousNodeTrailingComments(se),L=this.eat(55),this.parsePropertyName(r)),(oe==="get"||oe==="set")&&(c=!0,this.resetPreviousNodeTrailingComments(se),r.kind=oe,this.match(55)&&(L=!0,this.raise(S.AccessorIsGenerator,this.state.curPosition(),{kind:oe}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,v,L,n,!1,c,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;const r=this.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t);n.length!==r&&this.raise(t.kind==="get"?S.BadGetterArity:S.BadSetterArity,t),t.kind==="set"&&((e=n[n.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(S.BadSetterRestParameter,t)}parseObjectMethod(t,e,r,n,c){if(c){const v=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(v),v}if(r||e||this.match(10))return n&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,r,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,r,n){if(t.shorthand=!1,this.eat(14))return t.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,n),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),r)t.value=this.parseMaybeDefault(e,this.cloneIdentifier(t.key));else if(this.match(29)){const c=this.state.startLoc;n!=null?n.shorthandAssignLoc===null&&(n.shorthandAssignLoc=c):this.raise(S.InvalidCoverInitializedName,c),t.value=this.parseMaybeDefault(e,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,e,r,n,c,v,L){const Y=this.parseObjectMethod(t,r,n,c,v)||this.parseObjectProperty(t,e,c,L);return Y||this.unexpected(),Y}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:r,value:n}=this.state;let c;if(qe(r))c=this.parseIdentifier(!0);else switch(r){case 135:c=this.parseNumericLiteral(n);break;case 134:c=this.parseStringLiteral(n);break;case 136:c=this.parseBigIntLiteral(n);break;case 139:{const v=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=v):this.raise(S.UnexpectedPrivateField,v),c=this.parsePrivateName();break}default:if(r===137){c=this.parseDecimalLiteral(n);break}this.unexpected()}t.key=c,r!==139&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,r,n,c,v,L=!1){this.initFunction(t,r),t.generator=e,this.scope.enter(530|(L?576:0)|(c?32:0)),this.prodParam.enter(yr(r,t.generator)),this.parseFunctionParams(t,n);const Y=this.parseFunctionBodyAndFinish(t,v,!0);return this.prodParam.exit(),this.scope.exit(),Y}parseArrayLike(t,e,r){e&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const c=this.startNode();return this.next(),c.elements=this.parseExprList(t,!e,r,c),this.state.inFSharpPipelineDirectBody=n,this.finishNode(c,e?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,r,n){this.scope.enter(518);let c=yr(r,!1);!this.match(5)&&this.prodParam.hasIn&&(c|=8),this.prodParam.enter(c),this.initFunction(t,r);const v=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=v,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,r){this.toAssignableList(e,r,!1),t.params=e}parseFunctionBodyAndFinish(t,e,r=!1){return this.parseFunctionBody(t,!1,r),this.finishNode(t,e)}parseFunctionBody(t,e,r=!1){const n=e&&!this.match(5);if(this.expressionScope.enter(Xr()),n)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{const c=this.state.strict,v=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,L=>{const Y=!this.isSimpleParamList(t.params);L&&Y&&this.raise(S.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);const se=!c&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!r&&!Y,e,se),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,se)}),this.prodParam.exit(),this.state.labels=v}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,r=t.length;e<r;e++)if(!this.isSimpleParameter(t[e]))return!1;return!0}checkParams(t,e,r,n=!0){const c=!e&&new Set,v={type:"FormalParameters"};for(const L of t.params)this.checkLVal(L,v,5,c,n)}parseExprList(t,e,r,n){const c=[];let v=!0;for(;!this.eat(t);){if(v)v=!1;else if(this.expect(12),this.match(t)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}c.push(this.parseExprListItem(t,e,r))}return c}parseExprListItem(t,e,r,n){let c;if(this.match(12))e||this.raise(S.UnexpectedToken,this.state.curPosition(),{unexpected:","}),c=null;else if(this.match(21)){const v=this.state.startLoc;c=this.parseParenItem(this.parseSpread(r),v)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(S.UnexpectedArgumentPlaceholder,this.state.startLoc);const v=this.startNode();this.next(),c=this.finishNode(v,"ArgumentPlaceholder")}else c=this.parseMaybeAssignAllowInOrVoidPattern(t,r,this.parseParenItem);return c}parseIdentifier(t){const e=this.startNode(),r=this.parseIdentifierName(t);return this.createIdentifier(e,r)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}createIdentifierAt(t,e,r){return t.name=e,t.loc.identifierName=e,this.finishNodeAt(t,"Identifier",r)}parseIdentifierName(t){let e;const{startLoc:r,type:n}=this.state;qe(n)?e=this.state.value:this.unexpected();const c=de(n);return t?c&&this.replaceToken(132):this.checkReservedWord(e,r,c,!1),this.next(),e}checkReservedWord(t,e,r,n){if(t.length>10||!wt(t))return;if(r&&yt(t)){this.raise(S.UnexpectedKeyword,e,{keyword:t});return}if((this.state.strict?n?dt:ut:Ge)(t,this.inModule)){this.raise(S.UnexpectedReservedWord,e,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(S.YieldBindingIdentifier,e);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(S.AwaitBindingIdentifier,e);return}if(this.scope.inStaticBlock){this.raise(S.AwaitBindingIdentifierInStaticBlock,e);return}this.expressionScope.recordAsyncArrowParametersError(e)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(S.ArgumentsInClass,e);return}}recordAwaitIfAllowed(){const t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){const e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(S.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(S.ObsoleteAwaitStar,e),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:t}=this.state;return t===53||t===10||t===0||pe(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){const e=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(S.YieldInParameter,e);let r=!1,n=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:n=this.parseMaybeAssign()}return e.delegate=r,e.argument=n,this.finishNode(e,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(S.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(S.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){const r=this.startNodeAt(e);return r.callee=t,this.finishNode(r,"PipelineBareFunction")}else{const r=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),r.expression=t,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(S.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(S.PipelineTopicUnused,t)}withTopicBindingContext(t){const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}else return t()}withSoloAwaitPermittingContext(t){const e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){const e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(e|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(e&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");const t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const e=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{r()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");const e=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(e,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,e,r){if(e!=null&&this.match(88)){const n=this.lookaheadCharCode();if(n===44||n===(t===3?93:t===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(e))}return this.parseMaybeAssignAllowIn(e,r)}parsePropertyNamePrefixOperator(t){}}const kr={kind:1},ys={kind:2},Ts=/[\uD800-\uDFFF]/u,Dr=/in(?:stanceof)?/y;function Ss(g,t,e){for(let r=0;r<g.length;r++){const n=g[r],{type:c}=n;if(typeof c=="number"){{if(c===139){const{loc:v,start:L,value:Y,end:se}=n,oe=L+1,be=o(v.start,1);g.splice(r,1,new Vt({type:j(27),value:"#",start:L,end:oe,startLoc:v.start,endLoc:be}),new Vt({type:j(132),value:Y,start:oe,end:se,startLoc:be,endLoc:v.end})),r++;continue}if(pe(c)){const{loc:v,start:L,value:Y,end:se}=n,oe=L+1,be=o(v.start,1);let Fe;t.charCodeAt(L-e)===96?Fe=new Vt({type:j(22),value:"`",start:L,end:oe,startLoc:v.start,endLoc:be}):Fe=new Vt({type:j(8),value:"}",start:L,end:oe,startLoc:v.start,endLoc:be});let je,Ye,ct,Tt;c===24?(Ye=se-1,ct=o(v.end,-1),je=Y===null?null:Y.slice(1,-1),Tt=new Vt({type:j(22),value:"`",start:Ye,end:se,startLoc:ct,endLoc:v.end})):(Ye=se-2,ct=o(v.end,-2),je=Y===null?null:Y.slice(1,-2),Tt=new Vt({type:j(23),value:"${",start:Ye,end:se,startLoc:ct,endLoc:v.end})),g.splice(r,1,Fe,new Vt({type:j(20),value:je,start:oe,end:Ye,startLoc:be,endLoc:ct}),Tt),r+=2;continue}}n.type=j(c)}}return g}class gs extends ms{parseTopLevel(t,e){return t.program=this.parseProgram(e,140,this.options.sourceType==="module"?"module":"script"),t.comments=this.comments,this.optionFlags&256&&(t.tokens=Ss(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,e,r){if(t.sourceType=r,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(const[c,v]of Array.from(this.scope.undefinedExports))this.raise(S.ModuleExportUndefined,v,{localName:c});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let n;return e===140?n=this.finishNode(t,"Program"):n=this.finishNodeAt(t,"Program",o(this.state.startLoc,-1)),n}stmtToDirective(t){const e=this.castNodeTo(t,"Directive"),r=this.castNodeTo(t.expression,"DirectiveLiteral"),n=r.value,c=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),v=r.value=c.slice(1,-1);return this.addExtra(r,"raw",c),this.addExtra(r,"rawValue",v),this.addExtra(r,"expressionValue",n),e.value=r,delete t.expression,e}parseInterpreterDirective(){if(!this.match(28))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;const t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){const r=this.lookaheadCharCodeSince(t+2);if(r!==61&&r!==58&&r!==59)return!1}return!!(this.chStartsBindingIdentifier(e,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){const t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return this.chStartsBindingIdentifier(e,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);const e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return!0}return!1}chStartsBindingIdentifier(t,e){if(he(t)){if(Dr.lastIndex=e,Dr.test(this.input)){const r=this.codePointAtPos(Dr.lastIndex);if(!q(r)&&r!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){const t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){const t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return e===123||this.chStartsBindingIdentifier(e,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){const r=this.state.type,n=this.startNode(),c=!!(t&2),v=!!(t&4),L=t&1;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(this.lookaheadCharCode()===46)break;return v||this.raise(this.state.strict?S.StrictFunction:this.options.annexB?S.SloppyFunctionAnnexB:S.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!c&&v);case 80:return c||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 96:if(this.isAwaitUsing())return this.allowsUsing()?c?this.recordAwaitIfAllowed()||this.raise(S.AwaitUsingNotInAsyncContext,n):this.raise(S.UnexpectedLexicalDeclaration,n):this.raise(S.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?c||this.raise(S.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(S.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;const oe=this.nextTokenStart(),be=this.codePointAtPos(oe);if(be!==91&&(!c&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(be,oe)&&be!==123))break}case 75:c||this.raise(S.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const oe=this.state.value;return this.parseVarStatement(n,oe)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{const oe=this.lookaheadCharCode();if(oe===40||oe===46)break}case 82:{!(this.optionFlags&8)&&!L&&this.raise(S.UnexpectedImportExport,this.state.startLoc),this.next();let oe;return r===83?oe=this.parseImport(n):oe=this.parseExport(n,e),this.assertModuleNodeAllowed(oe),oe}default:if(this.isAsyncFunction())return c||this.raise(S.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!c&&v)}const Y=this.state.value,se=this.parseExpression();return le(r)&&se.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(n,Y,se,t):this.parseExpressionStatement(n,se,e)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(S.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,r){if(t){var n;(n=e.decorators)!=null&&n.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(S.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),r&&this.resetStartLocationFromNode(r,e)}return e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){const e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(S.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(S.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){const e=this.state.startLoc;let r;if(this.match(10)){const n=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(n,r);const c=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(r,n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==r&&this.raise(S.DecoratorArgumentsOutsideParentheses,c)}else{for(r=this.parseIdentifier(!1);this.eat(16);){const n=this.startNodeAt(e);n.object=r,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),n.computed=!1,r=this.finishNode(n,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(r,e)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,e){if(this.eat(10)){const r=this.startNodeAt(e);return r.callee=t,r.arguments=this.parseCallExpressionArguments(),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let r;for(r=0;r<this.state.labels.length;++r){const n=this.state.labels[r];if((t.label==null||n.name===t.label.name)&&(n.kind!=null&&(e||n.kind===1)||t.label&&e))break}if(r===this.state.labels.length){const n=e?"BreakStatement":"ContinueStatement";this.raise(S.IllegalBreakContinue,t,{type:n})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(kr),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(kr);let e=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(e=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);const r=this.isContextual(100);{const Y=this.isAwaitUsing(),se=Y||this.isForUsing(),oe=r&&this.hasFollowingBindingAtom()||se;if(this.match(74)||this.match(75)||oe){const be=this.startNode();let Fe;Y?(Fe="await using",this.recordAwaitIfAllowed()||this.raise(S.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):Fe=this.state.value,this.next(),this.parseVar(be,!0,Fe);const je=this.finishNode(be,"VariableDeclaration"),Ye=this.match(58);return Ye&&se&&this.raise(S.ForInUsing,je),(Ye||this.isContextual(102))&&je.declarations.length===1?this.parseForIn(t,je,e):(e!==null&&this.unexpected(e),this.parseFor(t,je))}}const n=this.isContextual(95),c=new gr,v=this.parseExpression(!0,c),L=this.isContextual(102);if(L&&(r&&this.raise(S.ForOfLet,v),e===null&&n&&v.type==="Identifier"&&this.raise(S.ForOfAsync,v)),L||this.match(58)){this.checkDestructuringPrivate(c),this.toAssignable(v,!0);const Y=L?"ForOfStatement":"ForInStatement";return this.checkLVal(v,{type:Y}),this.parseForIn(t,v,e)}else this.checkExpressionErrors(c,!0);return e!==null&&this.unexpected(e),this.parseFor(t,v)}parseFunctionStatement(t,e,r){return this.next(),this.parseFunction(t,1|(r?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(S.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const e=t.cases=[];this.expect(5),this.state.labels.push(ys),this.scope.enter(256);let r;for(let n;!this.match(8);)if(this.match(61)||this.match(65)){const c=this.match(61);r&&this.finishNode(r,"SwitchCase"),e.push(r=this.startNode()),r.consequent=[],this.next(),c?r.test=this.parseExpression():(n&&this.raise(S.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),n=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(S.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){const e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(S.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,r=!1){return this.next(),this.parseVar(t,!1,e,r),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(kr),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(S.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,r,n){for(const v of this.state.labels)v.name===e&&this.raise(S.LabelRedeclaration,r,{labelName:e});const c=Oe(this.state.type)?1:this.match(71)?2:null;for(let v=this.state.labels.length-1;v>=0;v--){const L=this.state.labels[v];if(L.statementStart===t.start)L.statementStart=this.sourceToOffsetPos(this.state.start),L.kind=c;else break}return this.state.labels.push({name:e,kind:c,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=n&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,r){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,r){const n=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(n,t,!1,8,r),e&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,r,n,c){const v=t.body=[],L=t.directives=[];this.parseBlockOrModuleBlockBody(v,e?L:void 0,r,n,c)}parseBlockOrModuleBlockBody(t,e,r,n,c){const v=this.state.strict;let L=!1,Y=!1;for(;!this.match(n);){const se=r?this.parseModuleItem():this.parseStatementListItem();if(e&&!Y){if(this.isValidDirective(se)){const oe=this.stmtToDirective(se);e.push(oe),!L&&oe.value.value==="use strict"&&(L=!0,this.setStrict(!0));continue}Y=!0,this.state.strictErrors.clear()}t.push(se)}c?.call(this,L),v||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,r){const n=this.match(58);return this.next(),n?r!==null&&this.unexpected(r):t.await=r!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!n||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(S.ForInOfLoopInitializer,e,{type:n?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(S.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")}parseVar(t,e,r,n=!1){const c=t.declarations=[];for(t.kind=r;;){const v=this.startNode();if(this.parseVarId(v,r),v.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,v.init===null&&!n&&(v.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(102)))?this.raise(S.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(S.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})),c.push(this.finishNode(v,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){const r=this.parseBindingAtom();e==="using"||e==="await using"?(r.type==="ArrayPattern"||r.type==="ObjectPattern")&&this.raise(S.UsingDeclarationHasBindingPattern,r.loc.start):r.type==="VoidPattern"&&this.raise(S.UnexpectedVoidPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},e==="var"?5:8201),t.id=r}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){const r=e&2,n=!!(e&1),c=n&&!(e&4),v=!!(e&8);this.initFunction(t,v),this.match(55)&&(r&&this.raise(S.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),n&&(t.id=this.parseFunctionId(c));const L=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(yr(v,t.generator)),n||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,n?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=L,t}parseFunctionId(t){return t||le(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(Qi()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,r){this.next();const n=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,r),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,n),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();const r={hadConstructor:!1,hadSuperClass:t};let n=[];const c=this.startNode();if(c.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(S.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}const v=this.startNode();n.length&&(v.decorators=n,this.resetStartLocationFromNode(v,n[0]),n=[]),this.parseClassMember(c,v,r),v.kind==="constructor"&&v.decorators&&v.decorators.length>0&&this.raise(S.DecoratorConstructor,v)}}),this.state.strict=e,this.next(),n.length)throw this.raise(S.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(c,"ClassBody")}parseClassMemberFromModifier(t,e){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const n=e;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(t,n,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const n=e;return n.computed=!1,n.key=r,n.static=!1,t.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(t,e,r){const n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,r,n)}parseClassMemberWithIsStatic(t,e,r,n){const c=e,v=e,L=e,Y=e,se=e,oe=c,be=c;if(e.static=n,this.parsePropertyNamePrefixOperator(e),this.eat(55)){oe.kind="method";const tt=this.match(139);if(this.parseClassElementName(oe),this.parsePostMemberNameModifiers(oe),tt){this.pushClassPrivateMethod(t,v,!0,!1);return}this.isNonstaticConstructor(c)&&this.raise(S.ConstructorIsGenerator,c.key),this.pushClassMethod(t,c,!0,!1,!1,!1);return}const Fe=!this.state.containsEsc&&le(this.state.type),je=this.parseClassElementName(e),Ye=Fe?je.name:null,ct=this.isPrivateName(je),Tt=this.state.startLoc;if(this.parsePostMemberNameModifiers(be),this.isClassMethod()){if(oe.kind="method",ct){this.pushClassPrivateMethod(t,v,!1,!1);return}const tt=this.isNonstaticConstructor(c);let mt=!1;tt&&(c.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(S.DuplicateConstructor,je),tt&&this.hasPlugin("typescript")&&e.override&&this.raise(S.OverrideOnConstructor,je),r.hadConstructor=!0,mt=r.hadSuperClass),this.pushClassMethod(t,c,!1,!1,tt,mt)}else if(this.isClassProperty())ct?this.pushClassPrivateProperty(t,Y):this.pushClassProperty(t,L);else if(Ye==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(je);const tt=this.eat(55);be.optional&&this.unexpected(Tt),oe.kind="method";const mt=this.match(139);this.parseClassElementName(oe),this.parsePostMemberNameModifiers(be),mt?this.pushClassPrivateMethod(t,v,tt,!0):(this.isNonstaticConstructor(c)&&this.raise(S.ConstructorIsAsync,c.key),this.pushClassMethod(t,c,tt,!0,!1,!1))}else if((Ye==="get"||Ye==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(je),oe.kind=Ye;const tt=this.match(139);this.parseClassElementName(c),tt?this.pushClassPrivateMethod(t,v,!1,!1):(this.isNonstaticConstructor(c)&&this.raise(S.ConstructorIsAccessor,c.key),this.pushClassMethod(t,c,!1,!1,!1,!1)),this.checkGetterSetterParams(c)}else if(Ye==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(je);const tt=this.match(139);this.parseClassElementName(L),this.pushClassAccessorProperty(t,se,tt)}else this.isLineTerminator()?ct?this.pushClassPrivateProperty(t,Y):this.pushClassProperty(t,L):this.unexpected()}parseClassElementName(t){const{type:e,value:r}=this.state;if((e===132||e===134)&&t.static&&r==="prototype"&&this.raise(S.StaticPrototype,this.state.startLoc),e===139){r==="constructor"&&this.raise(S.ConstructorClassPrivateField,this.state.startLoc);const n=this.parsePrivateName();return t.key=n,n}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var r;this.scope.enter(720);const n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const c=e.body=[];this.parseBlockOrModuleBlockBody(c,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,t.body.push(this.finishNode(e,"StaticBlock")),(r=e.decorators)!=null&&r.length&&this.raise(S.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(S.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){const r=this.parseClassPrivateProperty(e);t.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(t,e,r){!r&&!e.computed&&this.nameIsConstructor(e.key)&&this.raise(S.ConstructorClassField,e.key);const n=this.parseClassAccessorProperty(e);t.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(t,e,r,n,c,v){t.body.push(this.parseMethod(e,r,n,c,v,"ClassMethod",!0))}pushClassPrivateMethod(t,e,r,n){const c=this.parseMethod(e,r,n,!1,!1,"ClassPrivateMethod",!0);t.body.push(c);const v=c.kind==="get"?c.static?6:2:c.kind==="set"?c.static?5:1:0;this.declareClassPrivateMethodInScope(c,v)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(Xr()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,r,n=8331){if(le(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,n);else if(r||!e)t.id=null;else throw this.raise(S.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){const r=this.parseMaybeImportPhase(t,!0),n=this.maybeParseExportDefaultSpecifier(t,r),c=!n||this.eat(12),v=c&&this.eatExportStar(t),L=v&&this.maybeParseExportNamespaceSpecifier(t),Y=c&&(!L||this.eat(12)),se=n||v;if(v&&!L){if(n&&this.unexpected(),e)throw this.raise(S.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}const oe=this.maybeParseExportNamedSpecifiers(t);n&&c&&!v&&!oe&&this.unexpected(null,5),L&&Y&&this.unexpected(null,98);let be;if(se||oe){if(be=!1,e)throw this.raise(S.UnsupportedDecoratorExport,t);this.parseExportFrom(t,se)}else be=this.maybeParseExportDeclaration(t);if(se||oe||be){var Fe;const je=t;if(this.checkExport(je,!0,!1,!!je.source),((Fe=je.declaration)==null?void 0:Fe.type)==="ClassDeclaration")this.maybeTakeDecorators(e,je.declaration,je);else if(e)throw this.raise(S.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(je,"ExportNamedDeclaration")}if(this.eat(65)){const je=t,Ye=this.parseExportDefaultExpression();if(je.declaration=Ye,Ye.type==="ClassDeclaration")this.maybeTakeDecorators(e,Ye,je);else if(e)throw this.raise(S.UnsupportedDecoratorExport,t);return this.checkExport(je,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(je,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e?.loc.start);const r=e||this.parseIdentifier(!0),n=this.startNodeAtNode(r);return n.exported=r,t.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var e,r;(r=(e=t).specifiers)!=null||(e.specifiers=[]);const n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){const e=t;e.specifiers||(e.specifiers=[]);const r=e.exportKind==="type";return e.specifiers.push(...this.parseExportSpecifiers(r)),e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;const t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(S.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(S.UnsupportedDefaultExport,this.state.startLoc);const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:t}=this.state;if(le(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){const n=this.nextTokenStart(),c=this.input.charCodeAt(n);if(c===123||this.chStartsBindingIdentifier(c,n)&&!this.input.startsWith("from",n))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const e=this.nextTokenStart(),r=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||le(this.state.type)&&r)return!0;if(this.match(65)&&r){const n=this.input.charCodeAt(this.nextTokenStartSince(e+4));return n===34||n===39}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(S.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(S.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(S.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,r,n){if(e){var c;if(r){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var v;const L=t.declaration;L.type==="Identifier"&&L.name==="from"&&L.end-L.start===4&&!((v=L.extra)!=null&&v.parenthesized)&&this.raise(S.ExportDefaultFromAsIdentifier,L)}}else if((c=t.specifiers)!=null&&c.length)for(const L of t.specifiers){const{exported:Y}=L,se=Y.type==="Identifier"?Y.name:Y.value;if(this.checkDuplicateExports(L,se),!n&&L.local){const{local:oe}=L;oe.type!=="Identifier"?this.raise(S.ExportBindingIsString,L,{localName:oe.value,exportName:se}):(this.checkReservedWord(oe.name,oe.loc.start,!0,!1),this.scope.checkLocalExport(oe))}}else if(t.declaration){const L=t.declaration;if(L.type==="FunctionDeclaration"||L.type==="ClassDeclaration"){const{id:Y}=L;if(!Y)throw new Error("Assertion failure");this.checkDuplicateExports(t,Y.name)}else if(L.type==="VariableDeclaration")for(const Y of L.declarations)this.checkDeclaration(Y.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(const e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(const e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(S.DuplicateDefaultExport,t):this.raise(S.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){const e=[];let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;const n=this.isContextual(130),c=this.match(134),v=this.startNode();v.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(v,c,t,n))}return e}parseExportSpecifier(t,e,r,n){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const t=this.parseStringLiteral(this.state.value),e=Ts.exec(t.value);return e&&this.raise(S.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:r})=>r.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){const{specifiers:e}=t,r=e.length===1?e[0].type:null;if(t.phase==="source")r!=="ImportDefaultSpecifier"&&this.raise(S.SourcePhaseImportRequiresDefault,e[0].loc.start);else if(t.phase==="defer")r!=="ImportNamespaceSpecifier"&&this.raise(S.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var n;r!=="ImportDefaultSpecifier"&&this.raise(S.ImportReflectionNotBinding,e[0].loc.start),((n=t.assertions)==null?void 0:n.length)>0&&this.raise(S.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){const{specifiers:e}=t;if(e!=null){const r=e.find(n=>{let c;if(n.type==="ExportSpecifier"?c=n.local:n.type==="ImportSpecifier"&&(c=n.imported),c!==void 0)return c.type==="Identifier"?c.name!=="default":c.value!=="default"});r!==void 0&&this.raise(S.ImportJSONBindingNotDefault,r.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,e,r,n){e||(r==="module"?(this.expectPlugin("importReflection",n),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),r==="source"?(this.expectPlugin("sourcePhaseImports",n),t.phase="source"):r==="defer"?(this.expectPlugin("deferredImportEvaluation",n),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;const r=this.startNode(),n=this.parseIdentifierName(!0),{type:c}=this.state;return(qe(c)?c!==98||this.lookaheadCharCode()===102:c!==12)?(this.applyImportPhase(t,e,n,r.loc.start),null):(this.applyImportPhase(t,e,null),this.createIdentifier(r,n))}isPrecedingIdImportPhase(t){const{type:e}=this.state;return le(e)?e!==98||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];const n=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),c=n&&this.maybeParseStarImportSpecifier(t);return n&&!c&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var e;return(e=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,r){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,r))}finishImportSpecifier(t,e,r=8201){return this.checkLVal(t.local,{type:e},r),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);const t=[],e=new Set;do{if(this.match(8))break;const r=this.startNode(),n=this.state.value;if(e.has(n)&&this.raise(S.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),e.add(n),this.match(134)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(S.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){const t=[],e=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),r.key.name!=="type"&&this.raise(S.ModuleAttributeDifferentFromType,r.key),e.has(r.key.name)&&this.raise(S.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),e.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(S.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e;var r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(e=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):e=this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(S.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),e=this.parseImportAttributes()):e=[];!r&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){const r=this.startNodeAtNode(e);return r.local=e,t.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}else if(qe(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){const e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(S.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const r=this.startNode(),n=this.match(134),c=this.isContextual(130);r.imported=this.parseModuleExportName();const v=this.parseImportSpecifier(r,n,t.importKind==="type"||t.importKind==="typeof",c,void 0);t.specifiers.push(v)}}parseImportSpecifier(t,e,r,n,c){if(this.eatContextual(93))t.local=this.parseIdentifier();else{const{imported:v}=t;if(e)throw this.raise(S.ImportBindingIsString,t,{importName:v.value});this.checkReservedWord(v.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(v))}return this.finishImportSpecifier(t,"ImportSpecifier",c)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}}class ti extends gs{constructor(t,e,r){const n=X(t);super(n,e),this.options=n,this.initializeScopes(),this.plugins=r,this.filename=n.sourceFilename,this.startIndex=n.startIndex;let c=0;n.allowAwaitOutsideFunction&&(c|=1),n.allowReturnOutsideFunction&&(c|=2),n.allowImportExportEverywhere&&(c|=8),n.allowSuperOutsideMethod&&(c|=16),n.allowUndeclaredExports&&(c|=64),n.allowNewTargetOutsideFunction&&(c|=4),n.allowYieldOutsideFunction&&(c|=32),n.ranges&&(c|=128),n.tokens&&(c|=256),n.createImportExpressions&&(c|=512),n.createParenthesizedExpressions&&(c|=1024),n.errorRecovery&&(c|=2048),n.attachComment&&(c|=4096),n.annexB&&(c|=8192),this.optionFlags=c}getScopeHandler(){return Ot}parse(){this.enterInitialScopes();const t=this.startNode(),e=this.startNode();this.nextToken(),t.errors=null;const r=this.parseTopLevel(t,e);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}}function xs(g,t){var e;if(((e=t)==null?void 0:e.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";const r=cr(t,g),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",cr(t,g).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",cr(t,g).parse()}catch{}throw r}}else return cr(t,g).parse()}function bs(g,t){const e=cr(t,g);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function Es(g){const t={};for(const e of Object.keys(g))t[e]=j(g[e]);return t}const Ps=Es(me);function cr(g,t){let e=ti;const r=new Map;if(g!=null&&g.plugins){for(const n of g.plugins){let c,v;typeof n=="string"?c=n:[c,v]=n,r.has(c)||r.set(c,v||{})}hs(r),e=As(r)}return new e(g,t,r)}const ri=new Map;function As(g){const t=[];for(const n of ds)g.has(n)&&t.push(n);const e=t.join("|");let r=ri.get(e);if(!r){r=ti;for(const n of t)r=ei[n](r);ri.set(e,r)}return r}return Ns.parse=xs,Ns.parseExpression=bs,Ns.tokTypes=Ps,Ns}var Qp=rl(),Wo={},Et={},Mn={},ln={},pr={},lt={},dl;function yp(){return dl||(dl=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.Var=lt.User=lt.Statement=lt.SpreadProperty=lt.Scope=lt.RestProperty=lt.ReferencedMemberExpression=lt.ReferencedIdentifier=lt.Referenced=lt.Pure=lt.NumericLiteralTypeAnnotation=lt.Generated=lt.ForAwaitStatement=lt.Flow=lt.Expression=lt.ExistentialTypeParam=lt.BlockScoped=lt.BindingIdentifier=void 0,lt.ReferencedIdentifier=["Identifier","JSXIdentifier"],lt.ReferencedMemberExpression=["MemberExpression"],lt.BindingIdentifier=["Identifier"],lt.Statement=["Statement"],lt.Expression=["Expression"],lt.Scope=["Scopable","Pattern"],lt.Referenced=null,lt.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],lt.Var=["VariableDeclaration"],lt.User=null,lt.Generated=null,lt.Pure=null,lt.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],lt.RestProperty=["RestElement"],lt.SpreadProperty=["RestElement"],lt.ExistentialTypeParam=["ExistsTypeAnnotation"],lt.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],lt.ForAwaitStatement=["ForOfStatement"]),lt}var Bn={exports:{}},Jo,ml;function Zp(){if(ml)return Jo;ml=1;var s=1e3,l=s*60,u=l*60,o=u*24,f=o*7,p=o*365.25;Jo=function(x,N){N=N||{};var P=typeof x;if(P==="string"&&x.length>0)return w(x);if(P==="number"&&isFinite(x))return N.long?E(x):b(x);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(x))};function w(x){if(x=String(x),!(x.length>100)){var N=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(x);if(N){var P=parseFloat(N[1]),T=(N[2]||"ms").toLowerCase();switch(T){case"years":case"year":case"yrs":case"yr":case"y":return P*p;case"weeks":case"week":case"w":return P*f;case"days":case"day":case"d":return P*o;case"hours":case"hour":case"hrs":case"hr":case"h":return P*u;case"minutes":case"minute":case"mins":case"min":case"m":return P*l;case"seconds":case"second":case"secs":case"sec":case"s":return P*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return P;default:return}}}}function b(x){var N=Math.abs(x);return N>=o?Math.round(x/o)+"d":N>=u?Math.round(x/u)+"h":N>=l?Math.round(x/l)+"m":N>=s?Math.round(x/s)+"s":x+"ms"}function E(x){var N=Math.abs(x);return N>=o?C(x,N,o,"day"):N>=u?C(x,N,u,"hour"):N>=l?C(x,N,l,"minute"):N>=s?C(x,N,s,"second"):x+" ms"}function C(x,N,P,T){var F=N>=P*1.5;return Math.round(x/P)+" "+T+(F?"s":"")}return Jo}var Xo,yl;function ef(){if(yl)return Xo;yl=1;function s(l){o.debug=o,o.default=o,o.coerce=C,o.disable=b,o.enable=p,o.enabled=E,o.humanize=Zp(),o.destroy=x,Object.keys(l).forEach(N=>{o[N]=l[N]}),o.names=[],o.skips=[],o.formatters={};function u(N){let P=0;for(let T=0;T<N.length;T++)P=(P<<5)-P+N.charCodeAt(T),P|=0;return o.colors[Math.abs(P)%o.colors.length]}o.selectColor=u;function o(N){let P,T=null,F,V;function k(...S){if(!k.enabled)return;const G=k,X=Number(new Date),W=X-(P||X);G.diff=W,G.prev=P,G.curr=X,P=X,S[0]=o.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let ee=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(I,U)=>{if(I==="%%")return"%";ee++;const B=o.formatters[U];if(typeof B=="function"){const R=S[ee];I=B.call(G,R),S.splice(ee,1),ee--}return I}),o.formatArgs.call(G,S),(G.log||o.log).apply(G,S)}return k.namespace=N,k.useColors=o.useColors(),k.color=o.selectColor(N),k.extend=f,k.destroy=o.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>T!==null?T:(F!==o.namespaces&&(F=o.namespaces,V=o.enabled(N)),V),set:S=>{T=S}}),typeof o.init=="function"&&o.init(k),k}function f(N,P){const T=o(this.namespace+(typeof P>"u"?":":P)+N);return T.log=this.log,T}function p(N){o.save(N),o.namespaces=N,o.names=[],o.skips=[];const P=(typeof N=="string"?N:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const T of P)T[0]==="-"?o.skips.push(T.slice(1)):o.names.push(T)}function w(N,P){let T=0,F=0,V=-1,k=0;for(;T<N.length;)if(F<P.length&&(P[F]===N[T]||P[F]==="*"))P[F]==="*"?(V=F,k=T,F++):(T++,F++);else if(V!==-1)F=V+1,k++,T=k;else return!1;for(;F<P.length&&P[F]==="*";)F++;return F===P.length}function b(){const N=[...o.names,...o.skips.map(P=>"-"+P)].join(",");return o.enable(""),N}function E(N){for(const P of o.skips)if(w(N,P))return!1;for(const P of o.names)if(w(N,P))return!0;return!1}function C(N){return N instanceof Error?N.stack||N.message:N}function x(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}return Xo=s,Xo}var Tl;function tf(){return Tl||(Tl=1,(function(s,l){l.formatArgs=o,l.save=f,l.load=p,l.useColors=u,l.storage=w(),l.destroy=(()=>{let E=!1;return()=>{E||(E=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),l.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function u(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let E;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(E=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(E[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(E){if(E[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+E[0]+(this.useColors?"%c ":" ")+"+"+s.exports.humanize(this.diff),!this.useColors)return;const C="color: "+this.color;E.splice(1,0,C,"color: inherit");let x=0,N=0;E[0].replace(/%[a-zA-Z%]/g,P=>{P!=="%%"&&(x++,P==="%c"&&(N=x))}),E.splice(N,0,C)}l.log=console.debug||console.log||(()=>{});function f(E){try{E?l.storage.setItem("debug",E):l.storage.removeItem("debug")}catch{}}function p(){let E;try{E=l.storage.getItem("debug")||l.storage.getItem("DEBUG")}catch{}return!E&&typeof process<"u"&&"env"in process&&(E=process.env.DEBUG),E}function w(){try{return localStorage}catch{}}s.exports=ef()(l);const{formatters:b}=s.exports;b.j=function(E){try{return JSON.stringify(E)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}}})(Bn,Bn.exports)),Bn.exports}var un={},cn={},Yo={},pn={},Fn={},Rn={},H={},jn={},Sl;function il(){if(Sl)return jn;Sl=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.default=s;function s(l,u){const o=Object.keys(u);for(const f of o)if(l[f]!==u[f])return!1;return!0}return jn}var qn={},gl;function Nn(){if(gl)return qn;gl=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.default=l;const s=new Set;function l(o,f,p="",w=o){if(s.has(w))return;s.add(w);const{internal:b,trace:E}=u(1,2);b||console.warn(`${p}\`${o}\` has been deprecated, please migrate to \`${f}\`
|
|
9
|
-
${E}`)}function u(o,f){const{stackTraceLimit:p,prepareStackTrace:w}=Error;let b;if(Error.stackTraceLimit=1+o+f,Error.prepareStackTrace=function(C,x){b=x},new Error().stack,Error.stackTraceLimit=p,Error.prepareStackTrace=w,!b)return{internal:!1,trace:""};const E=b.slice(1+o,1+o+f);return{internal:/[\\/]@babel[\\/]/.test(E[1].getFileName()),trace:E.map(C=>` at ${C}`).join(`
|
|
10
|
-
`)}}return qn}var xl;function It(){if(xl)return H;xl=1,Object.defineProperty(H,"__esModule",{value:!0}),H.isAccessor=Ao,H.isAnyTypeAnnotation=sr,H.isArgumentPlaceholder=ys,H.isArrayExpression=u,H.isArrayPattern=Oe,H.isArrayTypeAnnotation=Je,H.isArrowFunctionExpression=ke,H.isAssignmentExpression=o,H.isAssignmentPattern=we,H.isAwaitExpression=Me,H.isBigIntLiteral=ut,H.isBinary=rn,H.isBinaryExpression=f,H.isBindExpression=Ts,H.isBlock=an,H.isBlockParent=nn,H.isBlockStatement=E,H.isBooleanLiteral=ge,H.isBooleanLiteralTypeAnnotation=ar,H.isBooleanTypeAnnotation=nr,H.isBreakStatement=C,H.isCallExpression=x,H.isCatchClause=N,H.isClass=bo,H.isClassAccessorProperty=At,H.isClassBody=Le,H.isClassDeclaration=Qe,H.isClassExpression=Ve,H.isClassImplements=dr,H.isClassMethod=Ee,H.isClassPrivateMethod=Nt,H.isClassPrivateProperty=wt,H.isClassProperty=gt,H.isCompletionStatement=d,H.isConditional=y,H.isConditionalExpression=P,H.isContinueStatement=T,H.isDebuggerStatement=F,H.isDecimalLiteral=bs,H.isDeclaration=oo,H.isDeclareClass=or,H.isDeclareExportAllDeclaration=Bi,H.isDeclareExportDeclaration=Cr,H.isDeclareFunction=Ft,H.isDeclareInterface=tr,H.isDeclareModule=mr,H.isDeclareModuleExports=Xt,H.isDeclareOpaqueType=jr,H.isDeclareTypeAlias=Rt,H.isDeclareVariable=vr,H.isDeclaredPredicate=Yt,H.isDecorator=Dr,H.isDirective=w,H.isDirectiveLiteral=b,H.isDoExpression=Ss,H.isDoWhileStatement=V,H.isEmptyStatement=k,H.isEmptyTypeAnnotation=lr,H.isEnumBody=_o,H.isEnumBooleanBody=xr,H.isEnumBooleanMember=is,H.isEnumDeclaration=gr,H.isEnumDefaultedMember=Yr,H.isEnumMember=ko,H.isEnumNumberBody=Nr,H.isEnumNumberMember=_r,H.isEnumStringBody=rs,H.isEnumStringMember=ss,H.isEnumSymbolBody=Or,H.isExistsTypeAnnotation=Ut,H.isExportAllDeclaration=et,H.isExportDeclaration=Eo,H.isExportDefaultDeclaration=ht,H.isExportDefaultSpecifier=gs,H.isExportNamedDeclaration=Te,H.isExportNamespaceSpecifier=rt,H.isExportSpecifier=Ue,H.isExpression=tn,H.isExpressionStatement=S,H.isExpressionWrapper=xe,H.isFile=G,H.isFlow=Co,H.isFlowBaseAnnotation=wo,H.isFlowDeclaration=No,H.isFlowPredicate=Oo,H.isFlowType=Io,H.isFor=ze,H.isForInStatement=X,H.isForOfStatement=Be,H.isForStatement=W,H.isForXStatement=xt,H.isFunction=vt,H.isFunctionDeclaration=ee,H.isFunctionExpression=M,H.isFunctionParameter=lo,H.isFunctionParent=ir,H.isFunctionTypeAnnotation=rr,H.isFunctionTypeParam=Fi,H.isGenericTypeAnnotation=Ri,H.isIdentifier=I,H.isIfStatement=U,H.isImmutable=ho,H.isImport=Ge,H.isImportAttribute=qt,H.isImportDeclaration=pe,H.isImportDefaultSpecifier=j,H.isImportExpression=Ie,H.isImportNamespaceSpecifier=te,H.isImportOrExportDeclaration=Ln,H.isImportSpecifier=ye,H.isIndexedAccessType=Xe,H.isInferredPredicate=ji,H.isInterfaceDeclaration=yr,H.isInterfaceExtends=qi,H.isInterfaceTypeAnnotation=Ui,H.isInterpreterDirective=p,H.isIntersectionTypeAnnotation=qr,H.isJSX=Do,H.isJSXAttribute=Hr,H.isJSXClosingElement=as,H.isJSXClosingFragment=ei,H.isJSXElement=os,H.isJSXEmptyExpression=ls,H.isJSXExpressionContainer=us,H.isJSXFragment=Zr,H.isJSXIdentifier=cs,H.isJSXMemberExpression=$r,H.isJSXNamespacedName=Gr,H.isJSXOpeningElement=ps,H.isJSXOpeningFragment=hs,H.isJSXSpreadAttribute=fs,H.isJSXSpreadChild=zr,H.isJSXText=Qr,H.isLVal=co,H.isLabeledStatement=B,H.isLiteral=fo,H.isLogicalExpression=Ae,H.isLoop=O,H.isMemberExpression=ne,H.isMetaProperty=Re,H.isMethod=yo,H.isMiscellaneous=Lo,H.isMixedTypeAnnotation=Ki,H.isModuleDeclaration=Vo,H.isModuleExpression=Es,H.isModuleSpecifier=Po,H.isNewExpression=Z,H.isNoop=ds,H.isNullLiteral=ae,H.isNullLiteralTypeAnnotation=Ar,H.isNullableTypeAnnotation=Kt,H.isNumberLiteral=jo,H.isNumberLiteralTypeAnnotation=Vi,H.isNumberTypeAnnotation=Ir,H.isNumericLiteral=$,H.isObjectExpression=J,H.isObjectMember=To,H.isObjectMethod=ie,H.isObjectPattern=st,H.isObjectProperty=Q,H.isObjectTypeAnnotation=Wi,H.isObjectTypeCallProperty=Tr,H.isObjectTypeIndexer=Kr,H.isObjectTypeInternalSlot=Ur,H.isObjectTypeProperty=Ji,H.isObjectTypeSpreadProperty=Xi,H.isOpaqueType=wr,H.isOptionalCallExpression=yt,H.isOptionalIndexedAccessType=ns,H.isOptionalMemberExpression=dt,H.isParenthesizedExpression=_e,H.isPattern=xo,H.isPatternLike=uo,H.isPipelineBareFunction=ri,H.isPipelinePrimaryTopicReference=As,H.isPipelineTopicExpression=cr,H.isPlaceholder=ms,H.isPrivate=vo,H.isPrivateName=Ot,H.isProgram=D,H.isProperty=So,H.isPureish=ao,H.isQualifiedTypeIdentifier=Vr,H.isRecordExpression=ti,H.isRegExpLiteral=Se,H.isRegexLiteral=qo,H.isRestElement=fe,H.isRestProperty=Uo,H.isReturnStatement=ue,H.isScopable=sn,H.isSequenceExpression=Pe,H.isSpreadElement=ot,H.isSpreadProperty=Ko,H.isStandardized=en,H.isStatement=on,H.isStaticBlock=Lt,H.isStringLiteral=R,H.isStringLiteralTypeAnnotation=Wr,H.isStringTypeAnnotation=ur,H.isSuper=he,H.isSwitchCase=Ke,H.isSwitchStatement=ve,H.isSymbolTypeAnnotation=Yi,H.isTSAnyKeyword=oe,H.isTSArrayType=fi,H.isTSAsExpression=ki,H.isTSBaseType=Ro,H.isTSBigIntKeyword=Fe,H.isTSBooleanKeyword=be,H.isTSCallSignatureDeclaration=c,H.isTSConditionalType=gi,H.isTSConstructSignatureDeclaration=v,H.isTSConstructorType=oi,H.isTSDeclareFunction=e,H.isTSDeclareMethod=r,H.isTSEntityName=po,H.isTSEnumBody=js,H.isTSEnumDeclaration=qs,H.isTSEnumMember=Us,H.isTSExportAssignment=Hs,H.isTSExpressionWithTypeArguments=Ii,H.isTSExternalModuleReference=Xs,H.isTSFunctionType=ai,H.isTSImportEqualsDeclaration=Js,H.isTSImportType=Ws,H.isTSIndexSignature=se,H.isTSIndexedAccessType=Pi,H.isTSInferType=xi,H.isTSInstantiationExpression=_i,H.isTSInterfaceBody=Ni,H.isTSInterfaceDeclaration=wi,H.isTSIntersectionType=Si,H.isTSIntrinsicKeyword=je,H.isTSLiteralType=Ci,H.isTSMappedType=Ai,H.isTSMethodSignature=Y,H.isTSModuleBlock=Vs,H.isTSModuleDeclaration=Ks,H.isTSNamedTupleMember=yi,H.isTSNamespaceExportDeclaration=zs,H.isTSNeverKeyword=Ye,H.isTSNonNullExpression=Ys,H.isTSNullKeyword=ct,H.isTSNumberKeyword=Tt,H.isTSObjectKeyword=tt,H.isTSOptionalType=di,H.isTSParameterProperty=t,H.isTSParenthesizedType=bi,H.isTSPropertySignature=L,H.isTSQualifiedName=n,H.isTSRestType=mi,H.isTSSatisfiesExpression=Fs,H.isTSStringKeyword=mt,H.isTSSymbolKeyword=Ht,H.isTSTemplateLiteralType=vi,H.isTSThisType=ni,H.isTSTupleType=hi,H.isTSType=Fo,H.isTSTypeAliasDeclaration=Oi,H.isTSTypeAnnotation=$s,H.isTSTypeAssertion=Rs,H.isTSTypeElement=Bo,H.isTSTypeLiteral=pi,H.isTSTypeOperator=Ei,H.isTSTypeParameter=Zs,H.isTSTypeParameterDeclaration=Qs,H.isTSTypeParameterInstantiation=Gs,H.isTSTypePredicate=ui,H.isTSTypeQuery=ci,H.isTSTypeReference=li,H.isTSUndefinedKeyword=Wt,H.isTSUnionType=Ti,H.isTSUnknownKeyword=ii,H.isTSVoidKeyword=si,H.isTaggedTemplateExpression=q,H.isTemplateElement=_,H.isTemplateLiteral=ce,H.isTerminatorless=h,H.isThisExpression=Ce,H.isThisTypeAnnotation=Vt,H.isThrowStatement=me,H.isTopicReference=Ps,H.isTryStatement=le,H.isTupleExpression=xs,H.isTupleTypeAnnotation=Hi,H.isTypeAlias=$i,H.isTypeAnnotation=Sr,H.isTypeCastExpression=Jr,H.isTypeParameter=Gi,H.isTypeParameterDeclaration=Qi,H.isTypeParameterInstantiation=Zi,H.isTypeScript=Mo,H.isTypeofTypeAnnotation=zi,H.isUnaryExpression=de,H.isUnaryLike=go,H.isUnionTypeAnnotation=es,H.isUpdateExpression=qe,H.isUserWhitespacable=mo,H.isV8IntrinsicIdentifier=kr,H.isVariableDeclaration=$e,H.isVariableDeclarator=Ze,H.isVariance=Xr,H.isVoidPattern=g,H.isVoidTypeAnnotation=ts,H.isWhile=re,H.isWhileStatement=it,H.isWithStatement=He,H.isYieldExpression=Ne;var s=il(),l=Nn();function u(a,i){return!a||a.type!=="ArrayExpression"?!1:i==null||(0,s.default)(a,i)}function o(a,i){return!a||a.type!=="AssignmentExpression"?!1:i==null||(0,s.default)(a,i)}function f(a,i){return!a||a.type!=="BinaryExpression"?!1:i==null||(0,s.default)(a,i)}function p(a,i){return!a||a.type!=="InterpreterDirective"?!1:i==null||(0,s.default)(a,i)}function w(a,i){return!a||a.type!=="Directive"?!1:i==null||(0,s.default)(a,i)}function b(a,i){return!a||a.type!=="DirectiveLiteral"?!1:i==null||(0,s.default)(a,i)}function E(a,i){return!a||a.type!=="BlockStatement"?!1:i==null||(0,s.default)(a,i)}function C(a,i){return!a||a.type!=="BreakStatement"?!1:i==null||(0,s.default)(a,i)}function x(a,i){return!a||a.type!=="CallExpression"?!1:i==null||(0,s.default)(a,i)}function N(a,i){return!a||a.type!=="CatchClause"?!1:i==null||(0,s.default)(a,i)}function P(a,i){return!a||a.type!=="ConditionalExpression"?!1:i==null||(0,s.default)(a,i)}function T(a,i){return!a||a.type!=="ContinueStatement"?!1:i==null||(0,s.default)(a,i)}function F(a,i){return!a||a.type!=="DebuggerStatement"?!1:i==null||(0,s.default)(a,i)}function V(a,i){return!a||a.type!=="DoWhileStatement"?!1:i==null||(0,s.default)(a,i)}function k(a,i){return!a||a.type!=="EmptyStatement"?!1:i==null||(0,s.default)(a,i)}function S(a,i){return!a||a.type!=="ExpressionStatement"?!1:i==null||(0,s.default)(a,i)}function G(a,i){return!a||a.type!=="File"?!1:i==null||(0,s.default)(a,i)}function X(a,i){return!a||a.type!=="ForInStatement"?!1:i==null||(0,s.default)(a,i)}function W(a,i){return!a||a.type!=="ForStatement"?!1:i==null||(0,s.default)(a,i)}function ee(a,i){return!a||a.type!=="FunctionDeclaration"?!1:i==null||(0,s.default)(a,i)}function M(a,i){return!a||a.type!=="FunctionExpression"?!1:i==null||(0,s.default)(a,i)}function I(a,i){return!a||a.type!=="Identifier"?!1:i==null||(0,s.default)(a,i)}function U(a,i){return!a||a.type!=="IfStatement"?!1:i==null||(0,s.default)(a,i)}function B(a,i){return!a||a.type!=="LabeledStatement"?!1:i==null||(0,s.default)(a,i)}function R(a,i){return!a||a.type!=="StringLiteral"?!1:i==null||(0,s.default)(a,i)}function $(a,i){return!a||a.type!=="NumericLiteral"?!1:i==null||(0,s.default)(a,i)}function ae(a,i){return!a||a.type!=="NullLiteral"?!1:i==null||(0,s.default)(a,i)}function ge(a,i){return!a||a.type!=="BooleanLiteral"?!1:i==null||(0,s.default)(a,i)}function Se(a,i){return!a||a.type!=="RegExpLiteral"?!1:i==null||(0,s.default)(a,i)}function Ae(a,i){return!a||a.type!=="LogicalExpression"?!1:i==null||(0,s.default)(a,i)}function ne(a,i){return!a||a.type!=="MemberExpression"?!1:i==null||(0,s.default)(a,i)}function Z(a,i){return!a||a.type!=="NewExpression"?!1:i==null||(0,s.default)(a,i)}function D(a,i){return!a||a.type!=="Program"?!1:i==null||(0,s.default)(a,i)}function J(a,i){return!a||a.type!=="ObjectExpression"?!1:i==null||(0,s.default)(a,i)}function ie(a,i){return!a||a.type!=="ObjectMethod"?!1:i==null||(0,s.default)(a,i)}function Q(a,i){return!a||a.type!=="ObjectProperty"?!1:i==null||(0,s.default)(a,i)}function fe(a,i){return!a||a.type!=="RestElement"?!1:i==null||(0,s.default)(a,i)}function ue(a,i){return!a||a.type!=="ReturnStatement"?!1:i==null||(0,s.default)(a,i)}function Pe(a,i){return!a||a.type!=="SequenceExpression"?!1:i==null||(0,s.default)(a,i)}function _e(a,i){return!a||a.type!=="ParenthesizedExpression"?!1:i==null||(0,s.default)(a,i)}function Ke(a,i){return!a||a.type!=="SwitchCase"?!1:i==null||(0,s.default)(a,i)}function ve(a,i){return!a||a.type!=="SwitchStatement"?!1:i==null||(0,s.default)(a,i)}function Ce(a,i){return!a||a.type!=="ThisExpression"?!1:i==null||(0,s.default)(a,i)}function me(a,i){return!a||a.type!=="ThrowStatement"?!1:i==null||(0,s.default)(a,i)}function le(a,i){return!a||a.type!=="TryStatement"?!1:i==null||(0,s.default)(a,i)}function de(a,i){return!a||a.type!=="UnaryExpression"?!1:i==null||(0,s.default)(a,i)}function qe(a,i){return!a||a.type!=="UpdateExpression"?!1:i==null||(0,s.default)(a,i)}function $e(a,i){return!a||a.type!=="VariableDeclaration"?!1:i==null||(0,s.default)(a,i)}function Ze(a,i){return!a||a.type!=="VariableDeclarator"?!1:i==null||(0,s.default)(a,i)}function it(a,i){return!a||a.type!=="WhileStatement"?!1:i==null||(0,s.default)(a,i)}function He(a,i){return!a||a.type!=="WithStatement"?!1:i==null||(0,s.default)(a,i)}function we(a,i){return!a||a.type!=="AssignmentPattern"?!1:i==null||(0,s.default)(a,i)}function Oe(a,i){return!a||a.type!=="ArrayPattern"?!1:i==null||(0,s.default)(a,i)}function ke(a,i){return!a||a.type!=="ArrowFunctionExpression"?!1:i==null||(0,s.default)(a,i)}function Le(a,i){return!a||a.type!=="ClassBody"?!1:i==null||(0,s.default)(a,i)}function Ve(a,i){return!a||a.type!=="ClassExpression"?!1:i==null||(0,s.default)(a,i)}function Qe(a,i){return!a||a.type!=="ClassDeclaration"?!1:i==null||(0,s.default)(a,i)}function et(a,i){return!a||a.type!=="ExportAllDeclaration"?!1:i==null||(0,s.default)(a,i)}function ht(a,i){return!a||a.type!=="ExportDefaultDeclaration"?!1:i==null||(0,s.default)(a,i)}function Te(a,i){return!a||a.type!=="ExportNamedDeclaration"?!1:i==null||(0,s.default)(a,i)}function Ue(a,i){return!a||a.type!=="ExportSpecifier"?!1:i==null||(0,s.default)(a,i)}function Be(a,i){return!a||a.type!=="ForOfStatement"?!1:i==null||(0,s.default)(a,i)}function pe(a,i){return!a||a.type!=="ImportDeclaration"?!1:i==null||(0,s.default)(a,i)}function j(a,i){return!a||a.type!=="ImportDefaultSpecifier"?!1:i==null||(0,s.default)(a,i)}function te(a,i){return!a||a.type!=="ImportNamespaceSpecifier"?!1:i==null||(0,s.default)(a,i)}function ye(a,i){return!a||a.type!=="ImportSpecifier"?!1:i==null||(0,s.default)(a,i)}function Ie(a,i){return!a||a.type!=="ImportExpression"?!1:i==null||(0,s.default)(a,i)}function Re(a,i){return!a||a.type!=="MetaProperty"?!1:i==null||(0,s.default)(a,i)}function Ee(a,i){return!a||a.type!=="ClassMethod"?!1:i==null||(0,s.default)(a,i)}function st(a,i){return!a||a.type!=="ObjectPattern"?!1:i==null||(0,s.default)(a,i)}function ot(a,i){return!a||a.type!=="SpreadElement"?!1:i==null||(0,s.default)(a,i)}function he(a,i){return!a||a.type!=="Super"?!1:i==null||(0,s.default)(a,i)}function q(a,i){return!a||a.type!=="TaggedTemplateExpression"?!1:i==null||(0,s.default)(a,i)}function _(a,i){return!a||a.type!=="TemplateElement"?!1:i==null||(0,s.default)(a,i)}function ce(a,i){return!a||a.type!=="TemplateLiteral"?!1:i==null||(0,s.default)(a,i)}function Ne(a,i){return!a||a.type!=="YieldExpression"?!1:i==null||(0,s.default)(a,i)}function Me(a,i){return!a||a.type!=="AwaitExpression"?!1:i==null||(0,s.default)(a,i)}function Ge(a,i){return!a||a.type!=="Import"?!1:i==null||(0,s.default)(a,i)}function ut(a,i){return!a||a.type!=="BigIntLiteral"?!1:i==null||(0,s.default)(a,i)}function rt(a,i){return!a||a.type!=="ExportNamespaceSpecifier"?!1:i==null||(0,s.default)(a,i)}function dt(a,i){return!a||a.type!=="OptionalMemberExpression"?!1:i==null||(0,s.default)(a,i)}function yt(a,i){return!a||a.type!=="OptionalCallExpression"?!1:i==null||(0,s.default)(a,i)}function gt(a,i){return!a||a.type!=="ClassProperty"?!1:i==null||(0,s.default)(a,i)}function At(a,i){return!a||a.type!=="ClassAccessorProperty"?!1:i==null||(0,s.default)(a,i)}function wt(a,i){return!a||a.type!=="ClassPrivateProperty"?!1:i==null||(0,s.default)(a,i)}function Nt(a,i){return!a||a.type!=="ClassPrivateMethod"?!1:i==null||(0,s.default)(a,i)}function Ot(a,i){return!a||a.type!=="PrivateName"?!1:i==null||(0,s.default)(a,i)}function Lt(a,i){return!a||a.type!=="StaticBlock"?!1:i==null||(0,s.default)(a,i)}function qt(a,i){return!a||a.type!=="ImportAttribute"?!1:i==null||(0,s.default)(a,i)}function sr(a,i){return!a||a.type!=="AnyTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Je(a,i){return!a||a.type!=="ArrayTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function nr(a,i){return!a||a.type!=="BooleanTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function ar(a,i){return!a||a.type!=="BooleanLiteralTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Ar(a,i){return!a||a.type!=="NullLiteralTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function dr(a,i){return!a||a.type!=="ClassImplements"?!1:i==null||(0,s.default)(a,i)}function or(a,i){return!a||a.type!=="DeclareClass"?!1:i==null||(0,s.default)(a,i)}function Ft(a,i){return!a||a.type!=="DeclareFunction"?!1:i==null||(0,s.default)(a,i)}function tr(a,i){return!a||a.type!=="DeclareInterface"?!1:i==null||(0,s.default)(a,i)}function mr(a,i){return!a||a.type!=="DeclareModule"?!1:i==null||(0,s.default)(a,i)}function Xt(a,i){return!a||a.type!=="DeclareModuleExports"?!1:i==null||(0,s.default)(a,i)}function Rt(a,i){return!a||a.type!=="DeclareTypeAlias"?!1:i==null||(0,s.default)(a,i)}function jr(a,i){return!a||a.type!=="DeclareOpaqueType"?!1:i==null||(0,s.default)(a,i)}function vr(a,i){return!a||a.type!=="DeclareVariable"?!1:i==null||(0,s.default)(a,i)}function Cr(a,i){return!a||a.type!=="DeclareExportDeclaration"?!1:i==null||(0,s.default)(a,i)}function Bi(a,i){return!a||a.type!=="DeclareExportAllDeclaration"?!1:i==null||(0,s.default)(a,i)}function Yt(a,i){return!a||a.type!=="DeclaredPredicate"?!1:i==null||(0,s.default)(a,i)}function Ut(a,i){return!a||a.type!=="ExistsTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function rr(a,i){return!a||a.type!=="FunctionTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Fi(a,i){return!a||a.type!=="FunctionTypeParam"?!1:i==null||(0,s.default)(a,i)}function Ri(a,i){return!a||a.type!=="GenericTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function ji(a,i){return!a||a.type!=="InferredPredicate"?!1:i==null||(0,s.default)(a,i)}function qi(a,i){return!a||a.type!=="InterfaceExtends"?!1:i==null||(0,s.default)(a,i)}function yr(a,i){return!a||a.type!=="InterfaceDeclaration"?!1:i==null||(0,s.default)(a,i)}function Ui(a,i){return!a||a.type!=="InterfaceTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function qr(a,i){return!a||a.type!=="IntersectionTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Ki(a,i){return!a||a.type!=="MixedTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function lr(a,i){return!a||a.type!=="EmptyTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Kt(a,i){return!a||a.type!=="NullableTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Vi(a,i){return!a||a.type!=="NumberLiteralTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Ir(a,i){return!a||a.type!=="NumberTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Wi(a,i){return!a||a.type!=="ObjectTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Ur(a,i){return!a||a.type!=="ObjectTypeInternalSlot"?!1:i==null||(0,s.default)(a,i)}function Tr(a,i){return!a||a.type!=="ObjectTypeCallProperty"?!1:i==null||(0,s.default)(a,i)}function Kr(a,i){return!a||a.type!=="ObjectTypeIndexer"?!1:i==null||(0,s.default)(a,i)}function Ji(a,i){return!a||a.type!=="ObjectTypeProperty"?!1:i==null||(0,s.default)(a,i)}function Xi(a,i){return!a||a.type!=="ObjectTypeSpreadProperty"?!1:i==null||(0,s.default)(a,i)}function wr(a,i){return!a||a.type!=="OpaqueType"?!1:i==null||(0,s.default)(a,i)}function Vr(a,i){return!a||a.type!=="QualifiedTypeIdentifier"?!1:i==null||(0,s.default)(a,i)}function Wr(a,i){return!a||a.type!=="StringLiteralTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function ur(a,i){return!a||a.type!=="StringTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Yi(a,i){return!a||a.type!=="SymbolTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Vt(a,i){return!a||a.type!=="ThisTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Hi(a,i){return!a||a.type!=="TupleTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function zi(a,i){return!a||a.type!=="TypeofTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function $i(a,i){return!a||a.type!=="TypeAlias"?!1:i==null||(0,s.default)(a,i)}function Sr(a,i){return!a||a.type!=="TypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Jr(a,i){return!a||a.type!=="TypeCastExpression"?!1:i==null||(0,s.default)(a,i)}function Gi(a,i){return!a||a.type!=="TypeParameter"?!1:i==null||(0,s.default)(a,i)}function Qi(a,i){return!a||a.type!=="TypeParameterDeclaration"?!1:i==null||(0,s.default)(a,i)}function Zi(a,i){return!a||a.type!=="TypeParameterInstantiation"?!1:i==null||(0,s.default)(a,i)}function es(a,i){return!a||a.type!=="UnionTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Xr(a,i){return!a||a.type!=="Variance"?!1:i==null||(0,s.default)(a,i)}function ts(a,i){return!a||a.type!=="VoidTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function gr(a,i){return!a||a.type!=="EnumDeclaration"?!1:i==null||(0,s.default)(a,i)}function xr(a,i){return!a||a.type!=="EnumBooleanBody"?!1:i==null||(0,s.default)(a,i)}function Nr(a,i){return!a||a.type!=="EnumNumberBody"?!1:i==null||(0,s.default)(a,i)}function rs(a,i){return!a||a.type!=="EnumStringBody"?!1:i==null||(0,s.default)(a,i)}function Or(a,i){return!a||a.type!=="EnumSymbolBody"?!1:i==null||(0,s.default)(a,i)}function is(a,i){return!a||a.type!=="EnumBooleanMember"?!1:i==null||(0,s.default)(a,i)}function _r(a,i){return!a||a.type!=="EnumNumberMember"?!1:i==null||(0,s.default)(a,i)}function ss(a,i){return!a||a.type!=="EnumStringMember"?!1:i==null||(0,s.default)(a,i)}function Yr(a,i){return!a||a.type!=="EnumDefaultedMember"?!1:i==null||(0,s.default)(a,i)}function Xe(a,i){return!a||a.type!=="IndexedAccessType"?!1:i==null||(0,s.default)(a,i)}function ns(a,i){return!a||a.type!=="OptionalIndexedAccessType"?!1:i==null||(0,s.default)(a,i)}function Hr(a,i){return!a||a.type!=="JSXAttribute"?!1:i==null||(0,s.default)(a,i)}function as(a,i){return!a||a.type!=="JSXClosingElement"?!1:i==null||(0,s.default)(a,i)}function os(a,i){return!a||a.type!=="JSXElement"?!1:i==null||(0,s.default)(a,i)}function ls(a,i){return!a||a.type!=="JSXEmptyExpression"?!1:i==null||(0,s.default)(a,i)}function us(a,i){return!a||a.type!=="JSXExpressionContainer"?!1:i==null||(0,s.default)(a,i)}function zr(a,i){return!a||a.type!=="JSXSpreadChild"?!1:i==null||(0,s.default)(a,i)}function cs(a,i){return!a||a.type!=="JSXIdentifier"?!1:i==null||(0,s.default)(a,i)}function $r(a,i){return!a||a.type!=="JSXMemberExpression"?!1:i==null||(0,s.default)(a,i)}function Gr(a,i){return!a||a.type!=="JSXNamespacedName"?!1:i==null||(0,s.default)(a,i)}function ps(a,i){return!a||a.type!=="JSXOpeningElement"?!1:i==null||(0,s.default)(a,i)}function fs(a,i){return!a||a.type!=="JSXSpreadAttribute"?!1:i==null||(0,s.default)(a,i)}function Qr(a,i){return!a||a.type!=="JSXText"?!1:i==null||(0,s.default)(a,i)}function Zr(a,i){return!a||a.type!=="JSXFragment"?!1:i==null||(0,s.default)(a,i)}function hs(a,i){return!a||a.type!=="JSXOpeningFragment"?!1:i==null||(0,s.default)(a,i)}function ei(a,i){return!a||a.type!=="JSXClosingFragment"?!1:i==null||(0,s.default)(a,i)}function ds(a,i){return!a||a.type!=="Noop"?!1:i==null||(0,s.default)(a,i)}function ms(a,i){return!a||a.type!=="Placeholder"?!1:i==null||(0,s.default)(a,i)}function kr(a,i){return!a||a.type!=="V8IntrinsicIdentifier"?!1:i==null||(0,s.default)(a,i)}function ys(a,i){return!a||a.type!=="ArgumentPlaceholder"?!1:i==null||(0,s.default)(a,i)}function Ts(a,i){return!a||a.type!=="BindExpression"?!1:i==null||(0,s.default)(a,i)}function Dr(a,i){return!a||a.type!=="Decorator"?!1:i==null||(0,s.default)(a,i)}function Ss(a,i){return!a||a.type!=="DoExpression"?!1:i==null||(0,s.default)(a,i)}function gs(a,i){return!a||a.type!=="ExportDefaultSpecifier"?!1:i==null||(0,s.default)(a,i)}function ti(a,i){return!a||a.type!=="RecordExpression"?!1:i==null||(0,s.default)(a,i)}function xs(a,i){return!a||a.type!=="TupleExpression"?!1:i==null||(0,s.default)(a,i)}function bs(a,i){return!a||a.type!=="DecimalLiteral"?!1:i==null||(0,s.default)(a,i)}function Es(a,i){return!a||a.type!=="ModuleExpression"?!1:i==null||(0,s.default)(a,i)}function Ps(a,i){return!a||a.type!=="TopicReference"?!1:i==null||(0,s.default)(a,i)}function cr(a,i){return!a||a.type!=="PipelineTopicExpression"?!1:i==null||(0,s.default)(a,i)}function ri(a,i){return!a||a.type!=="PipelineBareFunction"?!1:i==null||(0,s.default)(a,i)}function As(a,i){return!a||a.type!=="PipelinePrimaryTopicReference"?!1:i==null||(0,s.default)(a,i)}function g(a,i){return!a||a.type!=="VoidPattern"?!1:i==null||(0,s.default)(a,i)}function t(a,i){return!a||a.type!=="TSParameterProperty"?!1:i==null||(0,s.default)(a,i)}function e(a,i){return!a||a.type!=="TSDeclareFunction"?!1:i==null||(0,s.default)(a,i)}function r(a,i){return!a||a.type!=="TSDeclareMethod"?!1:i==null||(0,s.default)(a,i)}function n(a,i){return!a||a.type!=="TSQualifiedName"?!1:i==null||(0,s.default)(a,i)}function c(a,i){return!a||a.type!=="TSCallSignatureDeclaration"?!1:i==null||(0,s.default)(a,i)}function v(a,i){return!a||a.type!=="TSConstructSignatureDeclaration"?!1:i==null||(0,s.default)(a,i)}function L(a,i){return!a||a.type!=="TSPropertySignature"?!1:i==null||(0,s.default)(a,i)}function Y(a,i){return!a||a.type!=="TSMethodSignature"?!1:i==null||(0,s.default)(a,i)}function se(a,i){return!a||a.type!=="TSIndexSignature"?!1:i==null||(0,s.default)(a,i)}function oe(a,i){return!a||a.type!=="TSAnyKeyword"?!1:i==null||(0,s.default)(a,i)}function be(a,i){return!a||a.type!=="TSBooleanKeyword"?!1:i==null||(0,s.default)(a,i)}function Fe(a,i){return!a||a.type!=="TSBigIntKeyword"?!1:i==null||(0,s.default)(a,i)}function je(a,i){return!a||a.type!=="TSIntrinsicKeyword"?!1:i==null||(0,s.default)(a,i)}function Ye(a,i){return!a||a.type!=="TSNeverKeyword"?!1:i==null||(0,s.default)(a,i)}function ct(a,i){return!a||a.type!=="TSNullKeyword"?!1:i==null||(0,s.default)(a,i)}function Tt(a,i){return!a||a.type!=="TSNumberKeyword"?!1:i==null||(0,s.default)(a,i)}function tt(a,i){return!a||a.type!=="TSObjectKeyword"?!1:i==null||(0,s.default)(a,i)}function mt(a,i){return!a||a.type!=="TSStringKeyword"?!1:i==null||(0,s.default)(a,i)}function Ht(a,i){return!a||a.type!=="TSSymbolKeyword"?!1:i==null||(0,s.default)(a,i)}function Wt(a,i){return!a||a.type!=="TSUndefinedKeyword"?!1:i==null||(0,s.default)(a,i)}function ii(a,i){return!a||a.type!=="TSUnknownKeyword"?!1:i==null||(0,s.default)(a,i)}function si(a,i){return!a||a.type!=="TSVoidKeyword"?!1:i==null||(0,s.default)(a,i)}function ni(a,i){return!a||a.type!=="TSThisType"?!1:i==null||(0,s.default)(a,i)}function ai(a,i){return!a||a.type!=="TSFunctionType"?!1:i==null||(0,s.default)(a,i)}function oi(a,i){return!a||a.type!=="TSConstructorType"?!1:i==null||(0,s.default)(a,i)}function li(a,i){return!a||a.type!=="TSTypeReference"?!1:i==null||(0,s.default)(a,i)}function ui(a,i){return!a||a.type!=="TSTypePredicate"?!1:i==null||(0,s.default)(a,i)}function ci(a,i){return!a||a.type!=="TSTypeQuery"?!1:i==null||(0,s.default)(a,i)}function pi(a,i){return!a||a.type!=="TSTypeLiteral"?!1:i==null||(0,s.default)(a,i)}function fi(a,i){return!a||a.type!=="TSArrayType"?!1:i==null||(0,s.default)(a,i)}function hi(a,i){return!a||a.type!=="TSTupleType"?!1:i==null||(0,s.default)(a,i)}function di(a,i){return!a||a.type!=="TSOptionalType"?!1:i==null||(0,s.default)(a,i)}function mi(a,i){return!a||a.type!=="TSRestType"?!1:i==null||(0,s.default)(a,i)}function yi(a,i){return!a||a.type!=="TSNamedTupleMember"?!1:i==null||(0,s.default)(a,i)}function Ti(a,i){return!a||a.type!=="TSUnionType"?!1:i==null||(0,s.default)(a,i)}function Si(a,i){return!a||a.type!=="TSIntersectionType"?!1:i==null||(0,s.default)(a,i)}function gi(a,i){return!a||a.type!=="TSConditionalType"?!1:i==null||(0,s.default)(a,i)}function xi(a,i){return!a||a.type!=="TSInferType"?!1:i==null||(0,s.default)(a,i)}function bi(a,i){return!a||a.type!=="TSParenthesizedType"?!1:i==null||(0,s.default)(a,i)}function Ei(a,i){return!a||a.type!=="TSTypeOperator"?!1:i==null||(0,s.default)(a,i)}function Pi(a,i){return!a||a.type!=="TSIndexedAccessType"?!1:i==null||(0,s.default)(a,i)}function Ai(a,i){return!a||a.type!=="TSMappedType"?!1:i==null||(0,s.default)(a,i)}function vi(a,i){return!a||a.type!=="TSTemplateLiteralType"?!1:i==null||(0,s.default)(a,i)}function Ci(a,i){return!a||a.type!=="TSLiteralType"?!1:i==null||(0,s.default)(a,i)}function Ii(a,i){return!a||a.type!=="TSExpressionWithTypeArguments"?!1:i==null||(0,s.default)(a,i)}function wi(a,i){return!a||a.type!=="TSInterfaceDeclaration"?!1:i==null||(0,s.default)(a,i)}function Ni(a,i){return!a||a.type!=="TSInterfaceBody"?!1:i==null||(0,s.default)(a,i)}function Oi(a,i){return!a||a.type!=="TSTypeAliasDeclaration"?!1:i==null||(0,s.default)(a,i)}function _i(a,i){return!a||a.type!=="TSInstantiationExpression"?!1:i==null||(0,s.default)(a,i)}function ki(a,i){return!a||a.type!=="TSAsExpression"?!1:i==null||(0,s.default)(a,i)}function Fs(a,i){return!a||a.type!=="TSSatisfiesExpression"?!1:i==null||(0,s.default)(a,i)}function Rs(a,i){return!a||a.type!=="TSTypeAssertion"?!1:i==null||(0,s.default)(a,i)}function js(a,i){return!a||a.type!=="TSEnumBody"?!1:i==null||(0,s.default)(a,i)}function qs(a,i){return!a||a.type!=="TSEnumDeclaration"?!1:i==null||(0,s.default)(a,i)}function Us(a,i){return!a||a.type!=="TSEnumMember"?!1:i==null||(0,s.default)(a,i)}function Ks(a,i){return!a||a.type!=="TSModuleDeclaration"?!1:i==null||(0,s.default)(a,i)}function Vs(a,i){return!a||a.type!=="TSModuleBlock"?!1:i==null||(0,s.default)(a,i)}function Ws(a,i){return!a||a.type!=="TSImportType"?!1:i==null||(0,s.default)(a,i)}function Js(a,i){return!a||a.type!=="TSImportEqualsDeclaration"?!1:i==null||(0,s.default)(a,i)}function Xs(a,i){return!a||a.type!=="TSExternalModuleReference"?!1:i==null||(0,s.default)(a,i)}function Ys(a,i){return!a||a.type!=="TSNonNullExpression"?!1:i==null||(0,s.default)(a,i)}function Hs(a,i){return!a||a.type!=="TSExportAssignment"?!1:i==null||(0,s.default)(a,i)}function zs(a,i){return!a||a.type!=="TSNamespaceExportDeclaration"?!1:i==null||(0,s.default)(a,i)}function $s(a,i){return!a||a.type!=="TSTypeAnnotation"?!1:i==null||(0,s.default)(a,i)}function Gs(a,i){return!a||a.type!=="TSTypeParameterInstantiation"?!1:i==null||(0,s.default)(a,i)}function Qs(a,i){return!a||a.type!=="TSTypeParameterDeclaration"?!1:i==null||(0,s.default)(a,i)}function Zs(a,i){return!a||a.type!=="TSTypeParameter"?!1:i==null||(0,s.default)(a,i)}function en(a,i){if(!a)return!1;switch(a.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(a.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return i==null||(0,s.default)(a,i)}function tn(a,i){if(!a)return!1;switch(a.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(a.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return i==null||(0,s.default)(a,i)}function rn(a,i){if(!a)return!1;switch(a.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return i==null||(0,s.default)(a,i)}function sn(a,i){if(!a)return!1;switch(a.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(a.expectedNode==="BlockStatement")break;default:return!1}return i==null||(0,s.default)(a,i)}function nn(a,i){if(!a)return!1;switch(a.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(a.expectedNode==="BlockStatement")break;default:return!1}return i==null||(0,s.default)(a,i)}function an(a,i){if(!a)return!1;switch(a.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(a.expectedNode==="BlockStatement")break;default:return!1}return i==null||(0,s.default)(a,i)}function on(a,i){if(!a)return!1;switch(a.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(a.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return i==null||(0,s.default)(a,i)}function h(a,i){if(!a)return!1;switch(a.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return i==null||(0,s.default)(a,i)}function d(a,i){if(!a)return!1;switch(a.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return i==null||(0,s.default)(a,i)}function y(a,i){if(!a)return!1;switch(a.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return i==null||(0,s.default)(a,i)}function O(a,i){if(!a)return!1;switch(a.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return i==null||(0,s.default)(a,i)}function re(a,i){if(!a)return!1;switch(a.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return i==null||(0,s.default)(a,i)}function xe(a,i){if(!a)return!1;switch(a.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return i==null||(0,s.default)(a,i)}function ze(a,i){if(!a)return!1;switch(a.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return i==null||(0,s.default)(a,i)}function xt(a,i){if(!a)return!1;switch(a.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return i==null||(0,s.default)(a,i)}function vt(a,i){if(!a)return!1;switch(a.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return i==null||(0,s.default)(a,i)}function ir(a,i){if(!a)return!1;switch(a.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return i==null||(0,s.default)(a,i)}function ao(a,i){if(!a)return!1;switch(a.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(a.expectedNode==="StringLiteral")break;default:return!1}return i==null||(0,s.default)(a,i)}function oo(a,i){if(!a)return!1;switch(a.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(a.expectedNode==="Declaration")break;default:return!1}return i==null||(0,s.default)(a,i)}function lo(a,i){if(!a)return!1;switch(a.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(a.expectedNode==="Identifier")break;default:return!1}return i==null||(0,s.default)(a,i)}function uo(a,i){if(!a)return!1;switch(a.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(a.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return i==null||(0,s.default)(a,i)}function co(a,i){if(!a)return!1;switch(a.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(a.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return i==null||(0,s.default)(a,i)}function po(a,i){if(!a)return!1;switch(a.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(a.expectedNode==="Identifier")break;default:return!1}return i==null||(0,s.default)(a,i)}function fo(a,i){if(!a)return!1;switch(a.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(a.expectedNode==="StringLiteral")break;default:return!1}return i==null||(0,s.default)(a,i)}function ho(a,i){if(!a)return!1;switch(a.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(a.expectedNode==="StringLiteral")break;default:return!1}return i==null||(0,s.default)(a,i)}function mo(a,i){if(!a)return!1;switch(a.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return i==null||(0,s.default)(a,i)}function yo(a,i){if(!a)return!1;switch(a.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return i==null||(0,s.default)(a,i)}function To(a,i){if(!a)return!1;switch(a.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return i==null||(0,s.default)(a,i)}function So(a,i){if(!a)return!1;switch(a.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return i==null||(0,s.default)(a,i)}function go(a,i){if(!a)return!1;switch(a.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return i==null||(0,s.default)(a,i)}function xo(a,i){if(!a)return!1;switch(a.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(a.expectedNode==="Pattern")break;default:return!1}return i==null||(0,s.default)(a,i)}function bo(a,i){if(!a)return!1;switch(a.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return i==null||(0,s.default)(a,i)}function Ln(a,i){if(!a)return!1;switch(a.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return i==null||(0,s.default)(a,i)}function Eo(a,i){if(!a)return!1;switch(a.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return i==null||(0,s.default)(a,i)}function Po(a,i){if(!a)return!1;switch(a.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return i==null||(0,s.default)(a,i)}function Ao(a,i){if(!a)return!1;switch(a.type){case"ClassAccessorProperty":break;default:return!1}return i==null||(0,s.default)(a,i)}function vo(a,i){if(!a)return!1;switch(a.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return i==null||(0,s.default)(a,i)}function Co(a,i){if(!a)return!1;switch(a.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 i==null||(0,s.default)(a,i)}function Io(a,i){if(!a)return!1;switch(a.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 i==null||(0,s.default)(a,i)}function wo(a,i){if(!a)return!1;switch(a.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 i==null||(0,s.default)(a,i)}function No(a,i){if(!a)return!1;switch(a.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 i==null||(0,s.default)(a,i)}function Oo(a,i){if(!a)return!1;switch(a.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return i==null||(0,s.default)(a,i)}function _o(a,i){if(!a)return!1;switch(a.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return i==null||(0,s.default)(a,i)}function ko(a,i){if(!a)return!1;switch(a.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return i==null||(0,s.default)(a,i)}function Do(a,i){if(!a)return!1;switch(a.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 i==null||(0,s.default)(a,i)}function Lo(a,i){if(!a)return!1;switch(a.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return i==null||(0,s.default)(a,i)}function Mo(a,i){if(!a)return!1;switch(a.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 i==null||(0,s.default)(a,i)}function Bo(a,i){if(!a)return!1;switch(a.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return i==null||(0,s.default)(a,i)}function Fo(a,i){if(!a)return!1;switch(a.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 i==null||(0,s.default)(a,i)}function Ro(a,i){if(!a)return!1;switch(a.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 i==null||(0,s.default)(a,i)}function jo(a,i){return(0,l.default)("isNumberLiteral","isNumericLiteral"),!a||a.type!=="NumberLiteral"?!1:i==null||(0,s.default)(a,i)}function qo(a,i){return(0,l.default)("isRegexLiteral","isRegExpLiteral"),!a||a.type!=="RegexLiteral"?!1:i==null||(0,s.default)(a,i)}function Uo(a,i){return(0,l.default)("isRestProperty","isRestElement"),!a||a.type!=="RestProperty"?!1:i==null||(0,s.default)(a,i)}function Ko(a,i){return(0,l.default)("isSpreadProperty","isSpreadElement"),!a||a.type!=="SpreadProperty"?!1:i==null||(0,s.default)(a,i)}function Vo(a,i){return(0,l.default)("isModuleDeclaration","isImportOrExportDeclaration"),Ln(a,i)}return H}var bl;function Tp(){if(bl)return Rn;bl=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.default=u;var s=It();function l(o){return(0,s.isMemberExpression)(o)||(0,s.isMetaProperty)(o)}function u(o,f,p){if(!l(o))return!1;const w=Array.isArray(f)?f:f.split("."),b=[];let E;for(E=o;l(E);E=(C=E.object)!=null?C:E.meta){var C;b.push(E.property)}if(b.push(E),b.length<w.length||!p&&b.length>w.length)return!1;for(let x=0,N=b.length-1;x<w.length;x++,N--){const P=b[N];let T;if((0,s.isIdentifier)(P))T=P.name;else if((0,s.isStringLiteral)(P))T=P.value;else if((0,s.isThisExpression)(P))T="this";else if((0,s.isSuper)(P))T="super";else if((0,s.isPrivateName)(P))T="#"+P.id.name;else return!1;if(w[x]!==T)return!1}return!0}return Rn}var El;function Sp(){if(El)return Fn;El=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=l;var s=Tp();function l(u,o){const f=u.split(".");return p=>(0,s.default)(p,f,o)}return Fn}var Pl;function rf(){if(Pl)return pn;Pl=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=void 0;var s=Sp();const l=(0,s.default)("React.Component");return pn.default=l,pn}var Un={},Al;function sf(){if(Al)return Un;Al=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.default=s;function s(l){return!!l&&/^[a-z]/.test(l)}return Un}var Kn={},Vn={},Ho={},K={},vs={},zo={},_t={},Wn={},Jn={},vl;function sl(){if(vl)return Jn;vl=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.default=l;var s=fr();function l(u,o){if(u===o)return!0;if(u==null||s.ALIAS_KEYS[o])return!1;const f=s.FLIPPED_ALIAS_KEYS[o];return!!(f!=null&&f.includes(u))}return Jn}var Xn={},Cl;function gp(){if(Cl)return Xn;Cl=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.default=l;var s=fr();function l(u,o){if(u===o)return!0;const f=s.PLACEHOLDERS_ALIAS[u];return!!(f!=null&&f.includes(o))}return Xn}var Il;function On(){if(Il)return Wn;Il=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.default=f;var s=il(),l=sl(),u=gp(),o=fr();function f(p,w,b){return w?(0,l.default)(w.type,p)?b===void 0?!0:(0,s.default)(w,b):!b&&w.type==="Placeholder"&&p in o.FLIPPED_ALIAS_KEYS?(0,u.default)(w.expectedNode,p):!1:!1}return Wn}var Yn={},$o={},Os={},wl;function nf(){if(wl)return Os;wl=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.isIdentifierChar=E,Os.isIdentifierName=C,Os.isIdentifierStart=b;let s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const u=new RegExp("["+s+"]"),o=new RegExp("["+s+l+"]");s=l=null;const f=[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],p=[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 w(x,N){let P=65536;for(let T=0,F=N.length;T<F;T+=2){if(P+=N[T],P>x)return!1;if(P+=N[T+1],P>=x)return!0}return!1}function b(x){return x<65?x===36:x<=90?!0:x<97?x===95:x<=122?!0:x<=65535?x>=170&&u.test(String.fromCharCode(x)):w(x,f)}function E(x){return x<48?x===36:x<58?!0:x<65?!1:x<=90?!0:x<97?x===95:x<=122?!0:x<=65535?x>=170&&o.test(String.fromCharCode(x)):w(x,f)||w(x,p)}function C(x){let N=!0;for(let P=0;P<x.length;P++){let T=x.charCodeAt(P);if((T&64512)===55296&&P+1<x.length){const F=x.charCodeAt(++P);(F&64512)===56320&&(T=65536+((T&1023)<<10)+(F&1023))}if(N){if(N=!1,!b(T))return!1}else if(!E(T))return!1}return!N}return Os}var Di={},Nl;function af(){if(Nl)return Di;Nl=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.isKeyword=E,Di.isReservedWord=f,Di.isStrictBindOnlyReservedWord=w,Di.isStrictBindReservedWord=b,Di.isStrictReservedWord=p;const s={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"]},l=new Set(s.keyword),u=new Set(s.strict),o=new Set(s.strictBind);function f(C,x){return x&&C==="await"||C==="enum"}function p(C,x){return f(C,x)||u.has(C)}function w(C){return o.has(C)}function b(C,x){return p(C,x)||w(C)}function E(C){return l.has(C)}return Di}var Ol;function ro(){return Ol||(Ol=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"isIdentifierChar",{enumerable:!0,get:function(){return l.isIdentifierChar}}),Object.defineProperty(s,"isIdentifierName",{enumerable:!0,get:function(){return l.isIdentifierName}}),Object.defineProperty(s,"isIdentifierStart",{enumerable:!0,get:function(){return l.isIdentifierStart}}),Object.defineProperty(s,"isKeyword",{enumerable:!0,get:function(){return u.isKeyword}}),Object.defineProperty(s,"isReservedWord",{enumerable:!0,get:function(){return u.isReservedWord}}),Object.defineProperty(s,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return u.isStrictBindOnlyReservedWord}}),Object.defineProperty(s,"isStrictBindReservedWord",{enumerable:!0,get:function(){return u.isStrictBindReservedWord}}),Object.defineProperty(s,"isStrictReservedWord",{enumerable:!0,get:function(){return u.isStrictReservedWord}});var l=nf(),u=af()})($o)),$o}var _l;function _n(){if(_l)return Yn;_l=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.default=l;var s=ro();function l(u,o=!0){return typeof u!="string"||o&&((0,s.isKeyword)(u)||(0,s.isStrictReservedWord)(u,!0))?!1:(0,s.isIdentifierName)(u)}return Yn}var _s={},kl;function of(){if(kl)return _s;kl=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.readCodePoint=E,_s.readInt=b,_s.readStringContents=o;var s=function(x){return x>=48&&x<=57};const l={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},u={bin:C=>C===48||C===49,oct:C=>C>=48&&C<=55,dec:C=>C>=48&&C<=57,hex:C=>C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102};function o(C,x,N,P,T,F){const V=N,k=P,S=T;let G="",X=null,W=N;const{length:ee}=x;for(;;){if(N>=ee){F.unterminated(V,k,S),G+=x.slice(W,N);break}const M=x.charCodeAt(N);if(f(C,M,x,N)){G+=x.slice(W,N);break}if(M===92){G+=x.slice(W,N);const I=p(x,N,P,T,C==="template",F);I.ch===null&&!X?X={pos:N,lineStart:P,curLine:T}:G+=I.ch,{pos:N,lineStart:P,curLine:T}=I,W=N}else M===8232||M===8233?(++N,++T,P=N):M===10||M===13?C==="template"?(G+=x.slice(W,N)+`
|
|
11
|
-
`,++N,M===13&&x.charCodeAt(N)===10&&++N,++T,W=P=N):F.unterminated(V,k,S):++N}return{pos:N,str:G,firstInvalidLoc:X,lineStart:P,curLine:T,containsInvalid:!!X}}function f(C,x,N,P){return C==="template"?x===96||x===36&&N.charCodeAt(P+1)===123:x===(C==="double"?34:39)}function p(C,x,N,P,T,F){const V=!T;x++;const k=G=>({pos:x,ch:G,lineStart:N,curLine:P}),S=C.charCodeAt(x++);switch(S){case 110:return k(`
|
|
12
|
-
`);case 114:return k("\r");case 120:{let G;return{code:G,pos:x}=w(C,x,N,P,2,!1,V,F),k(G===null?null:String.fromCharCode(G))}case 117:{let G;return{code:G,pos:x}=E(C,x,N,P,V,F),k(G===null?null:String.fromCodePoint(G))}case 116:return k(" ");case 98:return k("\b");case 118:return k("\v");case 102:return k("\f");case 13:C.charCodeAt(x)===10&&++x;case 10:N=x,++P;case 8232:case 8233:return k("");case 56:case 57:if(T)return k(null);F.strictNumericEscape(x-1,N,P);default:if(S>=48&&S<=55){const G=x-1;let W=/^[0-7]+/.exec(C.slice(G,x+2))[0],ee=parseInt(W,8);ee>255&&(W=W.slice(0,-1),ee=parseInt(W,8)),x+=W.length-1;const M=C.charCodeAt(x);if(W!=="0"||M===56||M===57){if(T)return k(null);F.strictNumericEscape(G,N,P)}return k(String.fromCharCode(ee))}return k(String.fromCharCode(S))}}function w(C,x,N,P,T,F,V,k){const S=x;let G;return{n:G,pos:x}=b(C,x,N,P,16,T,F,!1,k,!V),G===null&&(V?k.invalidEscapeSequence(S,N,P):x=S-1),{code:G,pos:x}}function b(C,x,N,P,T,F,V,k,S,G){const X=x,W=T===16?l.hex:l.decBinOct,ee=T===16?u.hex:T===10?u.dec:T===8?u.oct:u.bin;let M=!1,I=0;for(let U=0,B=F??1/0;U<B;++U){const R=C.charCodeAt(x);let $;if(R===95&&k!=="bail"){const ae=C.charCodeAt(x-1),ge=C.charCodeAt(x+1);if(k){if(Number.isNaN(ge)||!ee(ge)||W.has(ae)||W.has(ge)){if(G)return{n:null,pos:x};S.unexpectedNumericSeparator(x,N,P)}}else{if(G)return{n:null,pos:x};S.numericSeparatorInEscapeSequence(x,N,P)}++x;continue}if(R>=97?$=R-97+10:R>=65?$=R-65+10:s(R)?$=R-48:$=1/0,$>=T){if($<=9&&G)return{n:null,pos:x};if($<=9&&S.invalidDigit(x,N,P,T))$=0;else if(V)$=0,M=!0;else break}++x,I=I*T+$}return x===X||F!=null&&x-X!==F||M?{n:null,pos:x}:{n:I,pos:x}}function E(C,x,N,P,T,F){const V=C.charCodeAt(x);let k;if(V===123){if(++x,{code:k,pos:x}=w(C,x,N,P,C.indexOf("}",x)-x,!0,T,F),++x,k!==null&&k>1114111)if(T)F.invalidCodePoint(x,N,P);else return{code:null,pos:x}}else({code:k,pos:x}=w(C,x,N,P,4,!1,T,F));return{code:k,pos:x}}return _s}var nt={},Dl;function kn(){if(Dl)return nt;Dl=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.UPDATE_OPERATORS=nt.UNARY_OPERATORS=nt.STRING_UNARY_OPERATORS=nt.STATEMENT_OR_BLOCK_KEYS=nt.NUMBER_UNARY_OPERATORS=nt.NUMBER_BINARY_OPERATORS=nt.LOGICAL_OPERATORS=nt.INHERIT_KEYS=nt.FOR_INIT_KEYS=nt.FLATTENABLE_KEYS=nt.EQUALITY_BINARY_OPERATORS=nt.COMPARISON_BINARY_OPERATORS=nt.COMMENT_KEYS=nt.BOOLEAN_UNARY_OPERATORS=nt.BOOLEAN_NUMBER_BINARY_OPERATORS=nt.BOOLEAN_BINARY_OPERATORS=nt.BINARY_OPERATORS=nt.ASSIGNMENT_OPERATORS=void 0,nt.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],nt.FLATTENABLE_KEYS=["body","expressions"],nt.FOR_INIT_KEYS=["left","init"],nt.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const s=nt.LOGICAL_OPERATORS=["||","&&","??"];nt.UPDATE_OPERATORS=["++","--"];const l=nt.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],u=nt.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],o=nt.COMPARISON_BINARY_OPERATORS=[...u,"in","instanceof"],f=nt.BOOLEAN_BINARY_OPERATORS=[...o,...l],p=nt.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];nt.BINARY_OPERATORS=["+",...p,...f,"|>"],nt.ASSIGNMENT_OPERATORS=["=","+=",...p.map(C=>C+"="),...s.map(C=>C+"=")];const w=nt.BOOLEAN_UNARY_OPERATORS=["delete","!"],b=nt.NUMBER_UNARY_OPERATORS=["+","-","~"],E=nt.STRING_UNARY_OPERATORS=["typeof"];return nt.UNARY_OPERATORS=["void","throw",...w,...b,...E],nt.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},nt.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),nt.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding"),nt}var pt={},Ll;function Rr(){if(Ll)return pt;Ll=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.allExpandedTypes=pt.VISITOR_KEYS=pt.NODE_UNION_SHAPES__PRIVATE=pt.NODE_PARENT_VALIDATIONS=pt.NODE_FIELDS=pt.FLIPPED_ALIAS_KEYS=pt.DEPRECATED_KEYS=pt.BUILDER_KEYS=pt.ALIAS_KEYS=void 0,pt.arrayOf=V,pt.arrayOfType=k,pt.assertEach=G,pt.assertNodeOrValueType=M,pt.assertNodeType=ee,pt.assertOneOf=X,pt.assertOptionalChainStart=B,pt.assertShape=U,pt.assertValueType=I,pt.chain=R,pt.default=Ae,pt.defineAliasedType=Se,pt.validate=N,pt.validateArrayOfType=S,pt.validateOptional=T,pt.validateOptionalType=F,pt.validateType=P;var s=On(),l=nl();const u=pt.VISITOR_KEYS={},o=pt.ALIAS_KEYS={},f=pt.FLIPPED_ALIAS_KEYS={},p=pt.NODE_FIELDS={},w=pt.BUILDER_KEYS={},b=pt.DEPRECATED_KEYS={},E=pt.NODE_PARENT_VALIDATIONS={},C=pt.NODE_UNION_SHAPES__PRIVATE={};function x(ne){return Array.isArray(ne)?"array":ne===null?"null":typeof ne}function N(ne){return{validate:ne}}function P(...ne){return N(ee(...ne))}function T(ne){return{validate:ne,optional:!0}}function F(...ne){return{validate:ee(...ne),optional:!0}}function V(ne){return R(I("array"),G(ne))}function k(...ne){return V(ee(...ne))}function S(...ne){return N(k(...ne))}function G(ne){const Z=process.env.BABEL_TYPES_8_BREAKING?l.validateChild:()=>{};function D(J,ie,Q){if(!Array.isArray(Q))return;let fe=0;const ue={toString(){return`${ie}[${fe}]`}};for(;fe<Q.length;fe++){const Pe=Q[fe];ne(J,ue,Pe),Z(J,ue,Pe)}}return D.each=ne,D}function X(...ne){function Z(D,J,ie){if(!ne.includes(ie))throw new TypeError(`Property ${J} expected value to be one of ${JSON.stringify(ne)} but got ${JSON.stringify(ie)}`)}return Z.oneOf=ne,Z}const W=pt.allExpandedTypes=[];function ee(...ne){const Z=new Set;W.push({types:ne,set:Z});function D(J,ie,Q){const fe=Q?.type;if(fe!=null){if(Z.has(fe)){(0,l.validateChild)(J,ie,Q);return}if(fe==="Placeholder"){for(const ue of ne)if((0,s.default)(ue,Q)){(0,l.validateChild)(J,ie,Q);return}}}throw new TypeError(`Property ${ie} of ${J.type} expected node to be of a type ${JSON.stringify(ne)} but instead got ${JSON.stringify(fe)}`)}return D.oneOfNodeTypes=ne,D}function M(...ne){function Z(D,J,ie){const Q=x(ie);for(const fe of ne)if(Q===fe||(0,s.default)(fe,ie)){(0,l.validateChild)(D,J,ie);return}throw new TypeError(`Property ${J} of ${D.type} expected node to be of a type ${JSON.stringify(ne)} but instead got ${JSON.stringify(ie?.type)}`)}return Z.oneOfNodeOrValueTypes=ne,Z}function I(ne){function Z(D,J,ie){if(x(ie)!==ne)throw new TypeError(`Property ${J} expected type of ${ne} but got ${x(ie)}`)}return Z.type=ne,Z}function U(ne){const Z=Object.keys(ne);function D(J,ie,Q){const fe=[];for(const ue of Z)try{(0,l.validateField)(J,ue,Q[ue],ne[ue])}catch(Pe){if(Pe instanceof TypeError){fe.push(Pe.message);continue}throw Pe}if(fe.length)throw new TypeError(`Property ${ie} of ${J.type} expected to have the following:
|
|
13
|
-
${fe.join(`
|
|
14
|
-
`)}`)}return D.shapeOf=ne,D}function B(){function ne(Z){var D;let J=Z;for(;Z;){const{type:ie}=J;if(ie==="OptionalCallExpression"){if(J.optional)return;J=J.callee;continue}if(ie==="OptionalMemberExpression"){if(J.optional)return;J=J.object;continue}break}throw new TypeError(`Non-optional ${Z.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(D=J)==null?void 0:D.type}`)}return ne}function R(...ne){function Z(...D){for(const J of ne)J(...D)}if(Z.chainOf=ne,ne.length>=2&&"type"in ne[0]&&ne[0].type==="array"&&!("each"in ne[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return Z}const $=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),ae=new Set(["default","optional","deprecated","validate"]),ge={};function Se(...ne){return(Z,D={})=>{let J=D.aliases;if(!J){var ie;D.inherits&&(J=(ie=ge[D.inherits].aliases)==null?void 0:ie.slice()),J??(J=[]),D.aliases=J}const Q=ne.filter(fe=>!J.includes(fe));J.unshift(...Q),Ae(Z,D)}}function Ae(ne,Z={}){const D=Z.inherits&&ge[Z.inherits]||{};let J=Z.fields;if(!J&&(J={},D.fields)){const ue=Object.getOwnPropertyNames(D.fields);for(const Pe of ue){const _e=D.fields[Pe],Ke=_e.default;if(Array.isArray(Ke)?Ke.length>0:Ke&&typeof Ke=="object")throw new Error("field defaults can only be primitives or empty arrays currently");J[Pe]={default:Array.isArray(Ke)?[]:Ke,optional:_e.optional,deprecated:_e.deprecated,validate:_e.validate}}}const ie=Z.visitor||D.visitor||[],Q=Z.aliases||D.aliases||[],fe=Z.builder||D.builder||Z.visitor||[];for(const ue of Object.keys(Z))if(!$.has(ue))throw new Error(`Unknown type option "${ue}" on ${ne}`);Z.deprecatedAlias&&(b[Z.deprecatedAlias]=ne);for(const ue of ie.concat(fe))J[ue]=J[ue]||{};for(const ue of Object.keys(J)){const Pe=J[ue];Pe.default!==void 0&&!fe.includes(ue)&&(Pe.optional=!0),Pe.default===void 0?Pe.default=null:!Pe.validate&&Pe.default!=null&&(Pe.validate=I(x(Pe.default)));for(const _e of Object.keys(Pe))if(!ae.has(_e))throw new Error(`Unknown field key "${_e}" on ${ne}.${ue}`)}u[ne]=Z.visitor=ie,w[ne]=Z.builder=fe,p[ne]=Z.fields=J,o[ne]=Z.aliases=Q,Q.forEach(ue=>{f[ue]=f[ue]||[],f[ue].push(ne)}),Z.validate&&(E[ne]=Z.validate),Z.unionShape&&(C[ne]=Z.unionShape),ge[ne]=Z}return pt}var Ml;function io(){if(Ml)return _t;Ml=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.patternLikeCommon=_t.importAttributes=_t.functionTypeAnnotationCommon=_t.functionDeclarationCommon=_t.functionCommon=_t.classMethodOrPropertyUnionShapeCommon=_t.classMethodOrPropertyCommon=_t.classMethodOrDeclareMethodCommon=void 0;var s=On(),l=_n(),u=ro(),o=of(),f=kn(),p=Rr();const w=(V=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,p.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:V?(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});_t.classMethodOrPropertyUnionShapeCommon=w;const b=(0,p.defineAliasedType)("Standardized");b("ArrayExpression",{fields:{elements:{validate:(0,p.arrayOf)((0,p.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),b("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){const V=(0,p.assertOneOf)(...f.ASSIGNMENT_OPERATORS),k=(0,p.assertOneOf)("=");return function(S,G,X){((0,s.default)("Pattern",S.left)?k:V)(S,G,X)}})(),{oneOf:f.ASSIGNMENT_OPERATORS}):(0,p.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,p.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,p.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),b("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,p.assertOneOf)(...f.BINARY_OPERATORS)},left:{validate:(function(){const V=(0,p.assertNodeType)("Expression"),k=(0,p.assertNodeType)("Expression","PrivateName");return Object.assign(function(G,X,W){(G.operator==="in"?k:V)(G,X,W)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,p.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),b("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}}}),b("Directive",{visitor:["value"],fields:{value:{validate:(0,p.assertNodeType)("DirectiveLiteral")}}}),b("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}}}),b("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,p.arrayOfType)("Directive"),default:[]},body:(0,p.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),b("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),b("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,p.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,p.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,p.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),b("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),b("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},consequent:{validate:(0,p.assertNodeType)("Expression")},alternate:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),b("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),b("DebuggerStatement",{aliases:["Statement"]}),b("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),b("EmptyStatement",{aliases:["Statement"]}),b("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),b("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,p.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertEach)((0,p.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,p.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),b("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,p.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}}),b("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,p.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,p.assertNodeType)("Expression"),optional:!0},update:{validate:(0,p.assertNodeType)("Expression"),optional:!0},body:{validate:(0,p.assertNodeType)("Statement")}}});const E=()=>({params:(0,p.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});_t.functionCommon=E;const C=()=>({returnType:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});_t.functionTypeAnnotationCommon=C;const x=()=>Object.assign({},E(),{declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}});_t.functionDeclarationCommon=x,b("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},x(),C(),{body:{validate:(0,p.assertNodeType)("BlockStatement")},predicate:{validate:(0,p.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){const V=(0,p.assertNodeType)("Identifier");return function(k,S,G){(0,s.default)("ExportDefaultDeclaration",k)||V(G,"id",G.id)}})():void 0}),b("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},E(),C(),{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")},predicate:{validate:(0,p.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const N=()=>({typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0}});_t.patternLikeCommon=N,b("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},N(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("string"),Object.assign(function(V,k,S){if(!(0,l.default)(S,!1))throw new TypeError(`"${S}" is not a valid identifier name`)},{type:"string"})):(0,p.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(V,k,S){const G=/\.(\w+)$/.exec(k.toString());if(!G)return;const[,X]=G,W={computed:!1};if(X==="property"){if((0,s.default)("MemberExpression",V,W)||(0,s.default)("OptionalMemberExpression",V,W))return}else if(X==="key"){if((0,s.default)("Property",V,W)||(0,s.default)("Method",V,W))return}else if(X==="exported"){if((0,s.default)("ExportSpecifier",V))return}else if(X==="imported"){if((0,s.default)("ImportSpecifier",V,{imported:S}))return}else if(X==="meta"&&(0,s.default)("MetaProperty",V,{meta:S}))return;if(((0,u.isKeyword)(S.name)||(0,u.isReservedWord)(S.name,!1))&&S.name!=="this")throw new TypeError(`"${S.name}" is not a valid identifier`)}:void 0}),b("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},consequent:{validate:(0,p.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,p.assertNodeType)("Statement")}}}),b("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,p.assertNodeType)("Identifier")},body:{validate:(0,p.assertNodeType)("Statement")}}}),b("StringLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),b("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,p.chain)((0,p.assertValueType)("number"),Object.assign(function(V,k,S){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),b("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),b("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),b("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,p.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("string"),Object.assign(function(V,k,S){const G=/[^dgimsuvy]/.exec(S);if(G)throw new TypeError(`"${G[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,p.assertValueType)("string"),default:""}}}),b("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,p.assertOneOf)(...f.LOGICAL_OPERATORS)},left:{validate:(0,p.assertNodeType)("Expression")},right:{validate:(0,p.assertNodeType)("Expression")}}}),b("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,p.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,p.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,p.assertNodeType)("Expression","Super")},property:{validate:(function(){const V=(0,p.assertNodeType)("Identifier","PrivateName"),k=(0,p.assertNodeType)("Expression"),S=function(G,X,W){(G.computed?k:V)(G,X,W)};return S.oneOfNodeTypes=["Expression","Identifier","PrivateName"],S})()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,p.assertValueType)("boolean"),optional:!0}})}),b("NewExpression",{inherits:"CallExpression"}),b("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,p.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,p.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,p.arrayOfType)("Directive"),default:[]},body:(0,p.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),b("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,p.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),b("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},w(),{fields:Object.assign({},E(),C(),{kind:Object.assign({validate:(0,p.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){const V=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),k=(0,p.assertNodeType)("Expression"),S=function(G,X,W){(G.computed?k:V)(G,X,W)};return S.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],S})()},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),b("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,p.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(function(){const V=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),k=(0,p.assertNodeType)("Expression");return Object.assign(function(G,X,W){(G.computed?k:V)(G,X,W)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,p.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),Object.assign(function(V,k,S){if(S){if(V.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,s.default)("Identifier",V.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,p.assertValueType)("boolean"),default:!1},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){const V=(0,p.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),k=(0,p.assertNodeType)("Expression");return function(S,G,X){((0,s.default)("ObjectPattern",S)?V:k)(X,"value",X.value)}})():void 0}),b("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},N(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(V,k){const S=/(\w+)\[(\d+)\]/.exec(k.toString());if(!S)throw new Error("Internal Babel error: malformed key.");const[,G,X]=S;if(V[G].length>+X+1)throw new TypeError(`RestElement must be last element of ${G}`)}:void 0}),b("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,p.assertNodeType)("Expression"),optional:!0}}}),b("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,p.validateArrayOfType)("Expression")},aliases:["Expression"]}),b("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}}}),b("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,p.assertNodeType)("Expression"),optional:!0},consequent:(0,p.validateArrayOfType)("Statement")}}),b("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,p.assertNodeType)("Expression")},cases:(0,p.validateArrayOfType)("SwitchCase")}}),b("ThisExpression",{aliases:["Expression"]}),b("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}}),b("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertNodeType)("BlockStatement"),Object.assign(function(V){if(!V.handler&&!V.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,p.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,p.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,p.assertNodeType)("BlockStatement")}}}),b("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,p.assertNodeType)("Expression")},operator:{validate:(0,p.assertOneOf)(...f.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),b("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","MemberExpression"):(0,p.assertNodeType)("Expression")},operator:{validate:(0,p.assertOneOf)(...f.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),b("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},kind:{validate:(0,p.assertOneOf)("var","let","const","using","await using")},declarations:(0,p.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const V=(0,p.assertNodeType)("Identifier","Placeholder"),k=(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),S=(0,p.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(G,X,W){const{kind:ee,declarations:M}=W,I=(0,s.default)("ForXStatement",G,{left:W});if(I&&M.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${G.type}`);for(const U of M)ee==="const"||ee==="let"||ee==="var"?!I&&!U.init?V(U,"id",U.id):k(U,"id",U.id):S(U,"id",U.id)}})():void 0}),b("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,p.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,p.assertValueType)("boolean")},init:{optional:!0,validate:(0,p.assertNodeType)("Expression")}}}),b("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}}),b("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}}),b("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},N(),{left:{validate:(0,p.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,p.assertNodeType)("Expression")},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0}})}),b("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},N(),{elements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeOrValueType)("null","PatternLike")))}})}),b("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},E(),C(),{expression:{validate:(0,p.assertValueType)("boolean")},body:{validate:(0,p.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,p.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),b("ClassBody",{visitor:["body"],fields:{body:(0,p.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),b("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,p.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,p.assertNodeType)("Expression")},superTypeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,p.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,p.assertNodeType)("InterfaceExtends"),optional:!0}}}),b("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,p.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,p.assertNodeType)("Expression")},superTypeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,p.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,p.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,p.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?(function(){const V=(0,p.assertNodeType)("Identifier");return function(k,S,G){(0,s.default)("ExportDefaultDeclaration",k)||V(G,"id",G.id)}})():void 0});const P=_t.importAttributes={attributes:{optional:!0,validate:(0,p.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,p.arrayOfType)("ImportAttribute")}};b("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,p.assertNodeType)("StringLiteral")},exportKind:(0,p.validateOptional)((0,p.assertOneOf)("type","value"))},P)}),b("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,p.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,p.validateOptional)((0,p.assertOneOf)("value"))}}),b("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],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,p.chain)((0,p.assertNodeType)("Declaration"),Object.assign(function(V,k,S){if(S&&V.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(S&&V.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,p.assertNodeType)("Declaration")}},P,{specifiers:{default:[],validate:(0,p.arrayOf)((function(){const V=(0,p.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),k=(0,p.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(S,G,X){(S.source?V:k)(S,G,X)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):V})())},source:{validate:(0,p.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,p.validateOptional)((0,p.assertOneOf)("type","value"))})}),b("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")},exported:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,p.assertOneOf)("type","value"),optional:!0}}}),b("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,p.assertNodeType)("VariableDeclaration","LVal");const V=(0,p.assertNodeType)("VariableDeclaration"),k=(0,p.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(S,G,X){(0,s.default)("VariableDeclaration",X)?V(S,G,X):k(S,G,X)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")},await:{default:!1}}}),b("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},P,{module:{optional:!0,validate:(0,p.assertValueType)("boolean")},phase:{default:null,validate:(0,p.assertOneOf)("source","defer")},specifiers:(0,p.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,p.assertNodeType)("StringLiteral")},importKind:{validate:(0,p.assertOneOf)("type","typeof","value"),optional:!0}})}),b("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")}}}),b("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")}}}),b("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")},imported:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,p.assertOneOf)("type","typeof","value"),optional:!0}}}),b("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,p.assertOneOf)("source","defer")},source:{validate:(0,p.assertNodeType)("Expression")},options:{validate:(0,p.assertNodeType)("Expression"),optional:!0}}}),b("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertNodeType)("Identifier"),Object.assign(function(V,k,S){let G;switch(S.name){case"function":G="sent";break;case"new":G="target";break;case"import":G="meta";break}if(!(0,s.default)("Identifier",V.property,{name:G}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,p.assertNodeType)("Identifier")},property:{validate:(0,p.assertNodeType)("Identifier")}}});const T=()=>({abstract:{validate:(0,p.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,p.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},key:{validate:(0,p.chain)((function(){const V=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),k=(0,p.assertNodeType)("Expression");return function(S,G,X){(S.computed?k:V)(S,G,X)}})(),(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});_t.classMethodOrPropertyCommon=T;const F=()=>Object.assign({},E(),T(),{params:(0,p.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,p.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,p.chain)((0,p.assertValueType)("string"),(0,p.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0}});return _t.classMethodOrDeclareMethodCommon=F,b("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"]},w(),{fields:Object.assign({},F(),C(),{body:{validate:(0,p.assertNodeType)("BlockStatement")}})})),b("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},N(),{properties:(0,p.validateArrayOfType)("RestElement","ObjectProperty")})}),b("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}}),b("Super",{aliases:["Expression"]}),b("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,p.assertNodeType)("Expression")},quasi:{validate:(0,p.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),b("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,p.chain)((0,p.assertShape)({raw:{validate:(0,p.assertValueType)("string")},cooked:{validate:(0,p.assertValueType)("string"),optional:!0}}),function(k){const S=k.value.raw;let G=!1;const X=()=>{throw new Error("Internal @babel/types error.")},{str:W,firstInvalidLoc:ee}=(0,o.readStringContents)("template",S,0,0,0,{unterminated(){G=!0},strictNumericEscape:X,invalidEscapeSequence:X,numericSeparatorInEscapeSequence:X,unexpectedNumericSeparator:X,invalidDigit:X,invalidCodePoint:X});if(!G)throw new Error("Invalid raw");k.value.cooked=ee?null:W})},tail:{default:!1}}}),b("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,p.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression","TSType")),function(V,k,S){if(V.quasis.length!==S.length+1)throw new TypeError(`Number of ${V.type} quasis should be exactly one more than the number of expressions.
|
|
15
|
-
Expected ${S.length+1} quasis but got ${V.quasis.length}`)})}}}),b("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),Object.assign(function(V,k,S){if(S&&!V.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,p.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,p.assertNodeType)("Expression")}}}),b("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}}),b("Import",{aliases:["Expression"]}),b("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),b("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,p.assertNodeType)("Identifier")}}}),b("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,p.assertNodeType)("Expression")},property:{validate:(function(){const V=(0,p.assertNodeType)("Identifier"),k=(0,p.assertNodeType)("Expression");return Object.assign(function(G,X,W){(G.computed?k:V)(G,X,W)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),(0,p.assertOptionalChainStart)()):(0,p.assertValueType)("boolean")}}}),b("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,p.assertNodeType)("Expression")},arguments:(0,p.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),(0,p.assertOptionalChainStart)()):(0,p.assertValueType)("boolean")},typeArguments:{validate:(0,p.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),b("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},w(),{fields:Object.assign({},T(),{value:{validate:(0,p.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,p.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,p.assertValueType)("boolean"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},variance:{validate:(0,p.assertNodeType)("Variance"),optional:!0}})})),b("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},w(!0),{fields:Object.assign({},T(),{key:{validate:(0,p.chain)((function(){const V=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),k=(0,p.assertNodeType)("Expression");return function(S,G,X){(S.computed?k:V)(S,G,X)}})(),(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,p.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,p.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,p.assertValueType)("boolean"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},variance:{validate:(0,p.assertNodeType)("Variance"),optional:!0}})})),b("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,p.assertNodeType)("PrivateName")},value:{validate:(0,p.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,p.assertValueType)("boolean"),default:!1},readonly:{validate:(0,p.assertValueType)("boolean"),optional:!0},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},definite:{validate:(0,p.assertValueType)("boolean"),optional:!0},variance:{validate:(0,p.assertNodeType)("Variance"),optional:!0}}}),b("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},F(),C(),{kind:{validate:(0,p.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,p.assertNodeType)("PrivateName")},body:{validate:(0,p.assertNodeType)("BlockStatement")}})}),b("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,p.assertNodeType)("Identifier")}}}),b("StaticBlock",{visitor:["body"],fields:{body:(0,p.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),b("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,p.assertNodeType)("StringLiteral")}}}),_t}var Bl={},Fl;function lf(){if(Fl)return Bl;Fl=1;var s=io(),l=Rr();const u=(0,l.defineAliasedType)("Flow"),o=f=>{const p=f==="DeclareClass";u(f,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...p?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,l.validateType)("Identifier"),typeParameters:(0,l.validateOptionalType)("TypeParameterDeclaration"),extends:(0,l.validateOptional)((0,l.arrayOfType)("InterfaceExtends"))},p?{mixins:(0,l.validateOptional)((0,l.arrayOfType)("InterfaceExtends")),implements:(0,l.validateOptional)((0,l.arrayOfType)("ClassImplements"))}:{},{body:(0,l.validateType)("ObjectTypeAnnotation")})})};return u("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,l.validateType)("FlowType")}}),u("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,l.validate)((0,l.assertValueType)("boolean"))}}),u("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,l.validateType)("Identifier"),typeParameters:(0,l.validateOptionalType)("TypeParameterInstantiation")}}),o("DeclareClass"),u("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,l.validateType)("Identifier"),predicate:(0,l.validateOptionalType)("DeclaredPredicate")}}),o("DeclareInterface"),u("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,l.validateType)("Identifier","StringLiteral"),body:(0,l.validateType)("BlockStatement"),kind:(0,l.validateOptional)((0,l.assertOneOf)("CommonJS","ES"))}}),u("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,l.validateType)("TypeAnnotation")}}),u("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,l.validateType)("Identifier"),typeParameters:(0,l.validateOptionalType)("TypeParameterDeclaration"),right:(0,l.validateType)("FlowType")}}),u("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,l.validateType)("Identifier"),typeParameters:(0,l.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,l.validateOptionalType)("FlowType"),impltype:(0,l.validateOptionalType)("FlowType")}}),u("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,l.validateType)("Identifier")}}),u("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,l.validateOptionalType)("Flow"),specifiers:(0,l.validateOptional)((0,l.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,l.validateOptionalType)("StringLiteral"),default:(0,l.validateOptional)((0,l.assertValueType)("boolean"))},s.importAttributes)}),u("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,l.validateType)("StringLiteral"),exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))},s.importAttributes)}),u("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,l.validateType)("Flow")}}),u("ExistsTypeAnnotation",{aliases:["FlowType"]}),u("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,l.validateOptionalType)("TypeParameterDeclaration"),params:(0,l.validateArrayOfType)("FunctionTypeParam"),rest:(0,l.validateOptionalType)("FunctionTypeParam"),this:(0,l.validateOptionalType)("FunctionTypeParam"),returnType:(0,l.validateType)("FlowType")}}),u("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,l.validateOptionalType)("Identifier"),typeAnnotation:(0,l.validateType)("FlowType"),optional:(0,l.validateOptional)((0,l.assertValueType)("boolean"))}}),u("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,l.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,l.validateOptionalType)("TypeParameterInstantiation")}}),u("InferredPredicate",{aliases:["FlowPredicate"]}),u("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,l.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,l.validateOptionalType)("TypeParameterInstantiation")}}),o("InterfaceDeclaration"),u("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,l.validateOptional)((0,l.arrayOfType)("InterfaceExtends")),body:(0,l.validateType)("ObjectTypeAnnotation")}}),u("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,l.validate)((0,l.arrayOfType)("FlowType"))}}),u("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,l.validateType)("FlowType")}}),u("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,l.validate)((0,l.assertValueType)("number"))}}),u("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,l.validate)((0,l.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,l.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,l.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,l.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,l.assertValueType)("boolean"),default:!1},inexact:(0,l.validateOptional)((0,l.assertValueType)("boolean"))}}),u("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,l.validateType)("Identifier"),value:(0,l.validateType)("FlowType"),optional:(0,l.validate)((0,l.assertValueType)("boolean")),static:(0,l.validate)((0,l.assertValueType)("boolean")),method:(0,l.validate)((0,l.assertValueType)("boolean"))}}),u("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,l.validateType)("FlowType"),static:(0,l.validate)((0,l.assertValueType)("boolean"))}}),u("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,l.validateOptionalType)("Identifier"),key:(0,l.validateType)("FlowType"),value:(0,l.validateType)("FlowType"),static:(0,l.validate)((0,l.assertValueType)("boolean")),variance:(0,l.validateOptionalType)("Variance")}}),u("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,l.validateType)("Identifier","StringLiteral"),value:(0,l.validateType)("FlowType"),kind:(0,l.validate)((0,l.assertOneOf)("init","get","set")),static:(0,l.validate)((0,l.assertValueType)("boolean")),proto:(0,l.validate)((0,l.assertValueType)("boolean")),optional:(0,l.validate)((0,l.assertValueType)("boolean")),variance:(0,l.validateOptionalType)("Variance"),method:(0,l.validate)((0,l.assertValueType)("boolean"))}}),u("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,l.validateType)("FlowType")}}),u("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,l.validateType)("Identifier"),typeParameters:(0,l.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,l.validateOptionalType)("FlowType"),impltype:(0,l.validateType)("FlowType")}}),u("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,l.validateType)("Identifier"),qualification:(0,l.validateType)("Identifier","QualifiedTypeIdentifier")}}),u("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,l.validate)((0,l.assertValueType)("string"))}}),u("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,l.validate)((0,l.arrayOfType)("FlowType"))}}),u("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,l.validateType)("FlowType")}}),u("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,l.validateType)("Identifier"),typeParameters:(0,l.validateOptionalType)("TypeParameterDeclaration"),right:(0,l.validateType)("FlowType")}}),u("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,l.validateType)("FlowType")}}),u("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,l.validateType)("Expression"),typeAnnotation:(0,l.validateType)("TypeAnnotation")}}),u("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,l.validate)((0,l.assertValueType)("string")),bound:(0,l.validateOptionalType)("TypeAnnotation"),default:(0,l.validateOptionalType)("FlowType"),variance:(0,l.validateOptionalType)("Variance")}}),u("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,l.validate)((0,l.arrayOfType)("TypeParameter"))}}),u("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,l.validate)((0,l.arrayOfType)("FlowType"))}}),u("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,l.validate)((0,l.arrayOfType)("FlowType"))}}),u("Variance",{builder:["kind"],fields:{kind:(0,l.validate)((0,l.assertOneOf)("minus","plus"))}}),u("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,l.validateType)("Identifier"),body:(0,l.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),u("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,l.validate)((0,l.assertValueType)("boolean")),members:(0,l.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,l.validate)((0,l.assertValueType)("boolean"))}}),u("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,l.validate)((0,l.assertValueType)("boolean")),members:(0,l.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,l.validate)((0,l.assertValueType)("boolean"))}}),u("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,l.validate)((0,l.assertValueType)("boolean")),members:(0,l.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,l.validate)((0,l.assertValueType)("boolean"))}}),u("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,l.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,l.validate)((0,l.assertValueType)("boolean"))}}),u("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,l.validateType)("Identifier"),init:(0,l.validateType)("BooleanLiteral")}}),u("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,l.validateType)("Identifier"),init:(0,l.validateType)("NumericLiteral")}}),u("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,l.validateType)("Identifier"),init:(0,l.validateType)("StringLiteral")}}),u("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,l.validateType)("Identifier")}}),u("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,l.validateType)("FlowType"),indexType:(0,l.validateType)("FlowType")}}),u("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,l.validateType)("FlowType"),indexType:(0,l.validateType)("FlowType"),optional:(0,l.validate)((0,l.assertValueType)("boolean"))}}),Bl}var Rl={},jl;function uf(){if(jl)return Rl;jl=1;var s=Rr();const l=(0,s.defineAliasedType)("JSX");return l("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,s.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),l("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),l("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,s.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,s.assertNodeType)("JSXClosingElement")},children:(0,s.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,s.assertValueType)("boolean"),optional:!0}})}),l("JSXEmptyExpression",{}),l("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,s.assertNodeType)("Expression","JSXEmptyExpression")}}}),l("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}}),l("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,s.assertValueType)("string")}}}),l("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,s.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,s.assertNodeType)("JSXIdentifier")}}}),l("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,s.assertNodeType)("JSXIdentifier")},name:{validate:(0,s.assertNodeType)("JSXIdentifier")}}}),l("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,s.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,s.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),l("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),l("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),l("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,s.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,s.assertNodeType)("JSXClosingFragment")},children:(0,s.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),l("JSXOpeningFragment",{aliases:["Immutable"]}),l("JSXClosingFragment",{aliases:["Immutable"]}),Rl}var ql={},Lr={},Ul;function xp(){if(Ul)return Lr;Ul=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.PLACEHOLDERS_FLIPPED_ALIAS=Lr.PLACEHOLDERS_ALIAS=Lr.PLACEHOLDERS=void 0;var s=Rr();const l=Lr.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],u=Lr.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const f of l){const p=s.ALIAS_KEYS[f];p!=null&&p.length&&(u[f]=p)}const o=Lr.PLACEHOLDERS_FLIPPED_ALIAS={};return Object.keys(u).forEach(f=>{u[f].forEach(p=>{hasOwnProperty.call(o,p)||(o[p]=[]),o[p].push(f)})}),Lr}var Kl;function cf(){if(Kl)return ql;Kl=1;var s=Rr(),l=xp(),u=io();const o=(0,s.defineAliasedType)("Miscellaneous");return o("Noop",{visitor:[]}),o("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,s.assertNodeType)("Identifier")},expectedNode:{validate:(0,s.assertOneOf)(...l.PLACEHOLDERS)}},(0,u.patternLikeCommon)())}),o("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,s.assertValueType)("string")}}}),ql}var Vl={},Wl;function pf(){if(Wl)return Vl;Wl=1;var s=Rr();return(0,s.default)("ArgumentPlaceholder",{}),(0,s.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,s.assertNodeType)("Expression")},callee:{validate:(0,s.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,s.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}}),(0,s.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,s.assertNodeType)("BlockStatement")},async:{validate:(0,s.assertValueType)("boolean"),default:!1}}}),(0,s.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,s.assertNodeType)("Identifier")}}}),(0,s.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,s.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,s.default)("TupleExpression",{fields:{elements:{validate:(0,s.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,s.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,s.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,s.assertNodeType)("Program")}},aliases:["Expression"]}),(0,s.default)("TopicReference",{aliases:["Expression"]}),(0,s.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,s.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,s.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,s.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]}),Vl}var Jl={},Xl;function ff(){if(Xl)return Jl;Xl=1;var s=Rr(),l=io(),u=On();const o=(0,s.defineAliasedType)("TypeScript"),f=(0,s.assertValueType)("boolean"),p=()=>({returnType:{validate:(0,s.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});o("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,s.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,s.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,s.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}}}),o("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,l.functionDeclarationCommon)(),p())}),o("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,l.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,l.classMethodOrDeclareMethodCommon)(),p())})),o("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,s.validateType)("TSEntityName"),right:(0,s.validateType)("Identifier")}});const w=()=>({typeParameters:(0,s.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,s.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation")}),b={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:w()};o("TSCallSignatureDeclaration",b),o("TSConstructSignatureDeclaration",b);const E=()=>({key:(0,s.validateType)("Expression"),computed:{default:!1},optional:(0,s.validateOptional)(f)});o("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},E(),{readonly:(0,s.validateOptional)(f),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,s.assertOneOf)("get","set")}})}),o("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},w(),E(),{kind:{validate:(0,s.assertOneOf)("method","get","set")}})}),o("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,s.validateOptional)(f),static:(0,s.validateOptional)(f),parameters:(0,s.validateArrayOfType)("Identifier"),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation")}});const C=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const T of C)o(T,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});o("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const x={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};o("TSFunctionType",Object.assign({},x,{fields:w()})),o("TSConstructorType",Object.assign({},x,{fields:Object.assign({},w(),{abstract:(0,s.validateOptional)(f)})})),o("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,s.validateType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,s.validateType)("Identifier","TSThisType"),typeAnnotation:(0,s.validateOptionalType)("TSTypeAnnotation"),asserts:(0,s.validateOptional)(f)}}),o("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,s.validateType)("TSEntityName","TSImportType"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,s.validateArrayOfType)("TSTypeElement")}}),o("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,s.validateType)("TSType")}}),o("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,s.validateArrayOfType)("TSType","TSNamedTupleMember")}}),o("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,s.validateType)("TSType")}}),o("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,s.validateType)("TSType")}}),o("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,s.validateType)("Identifier"),optional:{validate:f,default:!1},elementType:(0,s.validateType)("TSType")}});const N={aliases:["TSType"],visitor:["types"],fields:{types:(0,s.validateArrayOfType)("TSType")}};o("TSUnionType",N),o("TSIntersectionType",N),o("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,s.validateType)("TSType"),extendsType:(0,s.validateType)("TSType"),trueType:(0,s.validateType)("TSType"),falseType:(0,s.validateType)("TSType")}}),o("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,s.validateType)("TSTypeParameter")}}),o("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,s.validateType)("TSType")}}),o("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,s.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,s.validateType)("TSType")}}),o("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,s.validateType)("TSType"),indexType:(0,s.validateType)("TSType")}}),o("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,s.validateType)("TSTypeParameter")},{readonly:(0,s.validateOptional)((0,s.assertOneOf)(!0,!1,"+","-")),optional:(0,s.validateOptional)((0,s.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,s.validateOptionalType)("TSType"),nameType:(0,s.validateOptionalType)("TSType")})}),o("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,s.validateArrayOfType)("TemplateElement"),types:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("TSType")),function(T,F,V){if(T.quasis.length!==V.length+1)throw new TypeError(`Number of ${T.type} quasis should be exactly one more than the number of types.
|
|
16
|
-
Expected ${V.length+1} quasis but got ${T.quasis.length}`)})}}}),o("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){const T=(0,s.assertNodeType)("NumericLiteral","BigIntLiteral"),F=(0,s.assertOneOf)("-"),V=(0,s.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),k=function(G,X,W){(0,u.default)("UnaryExpression",W)?(F(W,"operator",W.operator),T(W,"argument",W.argument)):V(G,X,W)};return k.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],k})()}}}),o("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,s.validateType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,s.validateOptional)(f),id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,s.validateOptional)((0,s.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,s.validateType)("TSInterfaceBody")}}),o("TSInterfaceBody",{visitor:["body"],fields:{body:(0,s.validateArrayOfType)("TSTypeElement")}}),o("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,s.validateOptional)(f),id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,s.validateType)("TSType")}}),o("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,s.validateType)("Expression"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation")}});const P={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,s.validateType)("Expression"),typeAnnotation:(0,s.validateType)("TSType")}};return o("TSAsExpression",P),o("TSSatisfiesExpression",P),o("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,s.validateType)("TSType"),expression:(0,s.validateType)("Expression")}}),o("TSEnumBody",{visitor:["members"],fields:{members:(0,s.validateArrayOfType)("TSEnumMember")}}),o("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,s.validateOptional)(f),const:(0,s.validateOptional)(f),id:(0,s.validateType)("Identifier"),members:(0,s.validateArrayOfType)("TSEnumMember"),initializer:(0,s.validateOptionalType)("Expression"),body:(0,s.validateOptionalType)("TSEnumBody")}}),o("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,s.validateType)("Identifier","StringLiteral"),initializer:(0,s.validateOptionalType)("Expression")}}),o("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,s.assertOneOf)("global","module","namespace")},declare:(0,s.validateOptional)(f)},{global:(0,s.validateOptional)(f)},{id:(0,s.validateType)("Identifier","StringLiteral"),body:(0,s.validateType)("TSModuleBlock","TSModuleDeclaration")})}),o("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,s.validateArrayOfType)("Statement")}}),o("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,s.validateType)("StringLiteral"),qualifier:(0,s.validateOptionalType)("TSEntityName"),typeParameters:(0,s.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,s.assertNodeType)("ObjectExpression"),optional:!0}}}),o("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,s.validate)(f)},{id:(0,s.validateType)("Identifier"),moduleReference:(0,s.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,s.assertOneOf)("type","value"),optional:!0}})}),o("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,s.validateType)("StringLiteral")}}),o("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,s.validateType)("Expression")}}),o("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,s.validateType)("Expression")}}),o("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,s.validateType)("Identifier")}}),o("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,s.assertNodeType)("TSType")}}}),o("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,s.validateArrayOfType)("TSType")}}),o("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,s.validateArrayOfType)("TSTypeParameter")}}),o("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,s.assertValueType)("string")},in:{validate:(0,s.assertValueType)("boolean"),optional:!0},out:{validate:(0,s.assertValueType)("boolean"),optional:!0},const:{validate:(0,s.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,s.assertNodeType)("TSType"),optional:!0},default:{validate:(0,s.assertNodeType)("TSType"),optional:!0}}}),Jl}var fn={},Yl;function hf(){return Yl||(Yl=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.DEPRECATED_ALIASES=void 0,fn.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}),fn}var Hl;function fr(){return Hl||(Hl=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"ALIAS_KEYS",{enumerable:!0,get:function(){return l.ALIAS_KEYS}}),Object.defineProperty(s,"BUILDER_KEYS",{enumerable:!0,get:function(){return l.BUILDER_KEYS}}),Object.defineProperty(s,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return o.DEPRECATED_ALIASES}}),Object.defineProperty(s,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return l.DEPRECATED_KEYS}}),Object.defineProperty(s,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return l.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(s,"NODE_FIELDS",{enumerable:!0,get:function(){return l.NODE_FIELDS}}),Object.defineProperty(s,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return l.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(s,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return l.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(s,"PLACEHOLDERS",{enumerable:!0,get:function(){return u.PLACEHOLDERS}}),Object.defineProperty(s,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return u.PLACEHOLDERS_ALIAS}}),Object.defineProperty(s,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return u.PLACEHOLDERS_FLIPPED_ALIAS}}),s.TYPES=void 0,Object.defineProperty(s,"VISITOR_KEYS",{enumerable:!0,get:function(){return l.VISITOR_KEYS}}),io(),lf(),uf(),cf(),pf(),ff();var l=Rr(),u=xp(),o=hf();Object.keys(o.DEPRECATED_ALIASES).forEach(f=>{l.FLIPPED_ALIAS_KEYS[f]=l.FLIPPED_ALIAS_KEYS[o.DEPRECATED_ALIASES[f]]});for(const{types:f,set:p}of l.allExpandedTypes)for(const w of f){const b=l.FLIPPED_ALIAS_KEYS[w];b?b.forEach(p.add,p):p.add(w)}s.TYPES=[].concat(Object.keys(l.VISITOR_KEYS),Object.keys(l.FLIPPED_ALIAS_KEYS),Object.keys(l.DEPRECATED_KEYS))})(zo)),zo}var zl;function nl(){if(zl)return vs;zl=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.default=l,vs.validateChild=f,vs.validateField=o,vs.validateInternal=u;var s=fr();function l(p,w,b){if(!p)return;const E=s.NODE_FIELDS[p.type];if(!E)return;const C=E[w];o(p,w,b,C),f(p,w,b)}function u(p,w,b,E,C){if(p!=null&&p.validate&&!(p.optional&&E==null)&&(p.validate(w,b,E),C)){var x;const N=E.type;if(N==null)return;(x=s.NODE_PARENT_VALIDATIONS[N])==null||x.call(s.NODE_PARENT_VALIDATIONS,w,b,E)}}function o(p,w,b,E){E!=null&&E.validate&&(E.optional&&b==null||E.validate(p,w,b))}function f(p,w,b){var E;const C=b?.type;C!=null&&((E=s.NODE_PARENT_VALIDATIONS[C])==null||E.call(s.NODE_PARENT_VALIDATIONS,p,w,b))}return vs}var $l;function bp(){if($l)return K;$l=1,Object.defineProperty(K,"__esModule",{value:!0}),K.anyTypeAnnotation=ar,K.argumentPlaceholder=Ss,K.arrayExpression=w,K.arrayPattern=Qe,K.arrayTypeAnnotation=Ar,K.arrowFunctionExpression=et,K.assignmentExpression=b,K.assignmentPattern=Ve,K.awaitExpression=dt,K.bigIntLiteral=p,K.binaryExpression=E,K.bindExpression=gs,K.blockStatement=P,K.booleanLiteral=Z,K.booleanLiteralTypeAnnotation=or,K.booleanTypeAnnotation=dr,K.breakStatement=T,K.callExpression=F,K.catchClause=V,K.classAccessorProperty=Ot,K.classBody=ht,K.classDeclaration=Ue,K.classExpression=Te,K.classImplements=tr,K.classMethod=q,K.classPrivateMethod=qt,K.classPrivateProperty=Lt,K.classProperty=Nt,K.conditionalExpression=k,K.continueStatement=S,K.debuggerStatement=G,K.decimalLiteral=cr,K.declareClass=mr,K.declareExportAllDeclaration=rr,K.declareExportDeclaration=Ut,K.declareFunction=Xt,K.declareInterface=Rt,K.declareModule=jr,K.declareModuleExports=vr,K.declareOpaqueType=Bi,K.declareTypeAlias=Cr,K.declareVariable=Yt,K.declaredPredicate=Fi,K.decorator=ti,K.directive=x,K.directiveLiteral=N,K.doExpression=xs,K.doWhileStatement=X,K.emptyStatement=W,K.emptyTypeAnnotation=Ir,K.enumBooleanBody=Or,K.enumBooleanMember=Yr,K.enumDeclaration=rs,K.enumDefaultedMember=Hr,K.enumNumberBody=is,K.enumNumberMember=Xe,K.enumStringBody=_r,K.enumStringMember=ns,K.enumSymbolBody=ss,K.existsTypeAnnotation=Ri,K.exportAllDeclaration=Be,K.exportDefaultDeclaration=pe,K.exportDefaultSpecifier=bs,K.exportNamedDeclaration=j,K.exportNamespaceSpecifier=gt,K.exportSpecifier=te,K.expressionStatement=ee,K.file=M,K.forInStatement=I,K.forOfStatement=ye,K.forStatement=U,K.functionDeclaration=B,K.functionExpression=R,K.functionTypeAnnotation=ji,K.functionTypeParam=qi,K.genericTypeAnnotation=yr,K.identifier=$,K.ifStatement=ae,K.import=yt,K.importAttribute=nr,K.importDeclaration=Ie,K.importDefaultSpecifier=Re,K.importExpression=ot,K.importNamespaceSpecifier=Ee,K.importSpecifier=st,K.indexedAccessType=as,K.inferredPredicate=Ui,K.interfaceDeclaration=Ki,K.interfaceExtends=qr,K.interfaceTypeAnnotation=lr,K.interpreterDirective=C,K.intersectionTypeAnnotation=Kt,K.jSXAttribute=K.jsxAttribute=ls,K.jSXClosingElement=K.jsxClosingElement=us,K.jSXClosingFragment=K.jsxClosingFragment=kr,K.jSXElement=K.jsxElement=zr,K.jSXEmptyExpression=K.jsxEmptyExpression=cs,K.jSXExpressionContainer=K.jsxExpressionContainer=$r,K.jSXFragment=K.jsxFragment=ds,K.jSXIdentifier=K.jsxIdentifier=ps,K.jSXMemberExpression=K.jsxMemberExpression=fs,K.jSXNamespacedName=K.jsxNamespacedName=Qr,K.jSXOpeningElement=K.jsxOpeningElement=Zr,K.jSXOpeningFragment=K.jsxOpeningFragment=ms,K.jSXSpreadAttribute=K.jsxSpreadAttribute=hs,K.jSXSpreadChild=K.jsxSpreadChild=Gr,K.jSXText=K.jsxText=ei,K.labeledStatement=ge,K.logicalExpression=J,K.memberExpression=ie,K.metaProperty=he,K.mixedTypeAnnotation=Vi,K.moduleExpression=ri,K.newExpression=Q,K.noop=ys,K.nullLiteral=ne,K.nullLiteralTypeAnnotation=Ft,K.nullableTypeAnnotation=Wi,K.numberLiteral=sn,K.numberLiteralTypeAnnotation=Ur,K.numberTypeAnnotation=Tr,K.numericLiteral=Ae,K.objectExpression=ue,K.objectMethod=Pe,K.objectPattern=_,K.objectProperty=_e,K.objectTypeAnnotation=Kr,K.objectTypeCallProperty=Xi,K.objectTypeIndexer=wr,K.objectTypeInternalSlot=Ji,K.objectTypeProperty=Vr,K.objectTypeSpreadProperty=Wr,K.opaqueType=ur,K.optionalCallExpression=wt,K.optionalIndexedAccessType=os,K.optionalMemberExpression=At,K.parenthesizedExpression=me,K.pipelineBareFunction=t,K.pipelinePrimaryTopicReference=e,K.pipelineTopicExpression=g,K.placeholder=Ts,K.privateName=sr,K.program=fe,K.qualifiedTypeIdentifier=Yi,K.recordExpression=Es,K.regExpLiteral=D,K.regexLiteral=nn,K.restElement=Ke,K.restProperty=an,K.returnStatement=ve,K.sequenceExpression=Ce,K.spreadElement=ce,K.spreadProperty=on,K.staticBlock=Je,K.stringLiteral=Se,K.stringLiteralTypeAnnotation=Vt,K.stringTypeAnnotation=Hi,K.super=Ne,K.switchCase=le,K.switchStatement=de,K.symbolTypeAnnotation=zi,K.taggedTemplateExpression=Me,K.templateElement=Ge,K.templateLiteral=ut,K.thisExpression=qe,K.thisTypeAnnotation=$i,K.throwStatement=$e,K.topicReference=As,K.tryStatement=Ze,K.tSAnyKeyword=K.tsAnyKeyword=je,K.tSArrayType=K.tsArrayType=mi,K.tSAsExpression=K.tsAsExpression=js,K.tSBigIntKeyword=K.tsBigIntKeyword=ct,K.tSBooleanKeyword=K.tsBooleanKeyword=Ye,K.tSCallSignatureDeclaration=K.tsCallSignatureDeclaration=Y,K.tSConditionalType=K.tsConditionalType=Ei,K.tSConstructSignatureDeclaration=K.tsConstructSignatureDeclaration=se,K.tSConstructorType=K.tsConstructorType=ci,K.tSDeclareFunction=K.tsDeclareFunction=c,K.tSDeclareMethod=K.tsDeclareMethod=v,K.tSEnumBody=K.tsEnumBody=Ks,K.tSEnumDeclaration=K.tsEnumDeclaration=Vs,K.tSEnumMember=K.tsEnumMember=Ws,K.tSExportAssignment=K.tsExportAssignment=Gs,K.tSExpressionWithTypeArguments=K.tsExpressionWithTypeArguments=Oi,K.tSExternalModuleReference=K.tsExternalModuleReference=zs,K.tSFunctionType=K.tsFunctionType=ui,K.tSImportEqualsDeclaration=K.tsImportEqualsDeclaration=Hs,K.tSImportType=K.tsImportType=Ys,K.tSIndexSignature=K.tsIndexSignature=Fe,K.tSIndexedAccessType=K.tsIndexedAccessType=Ci,K.tSInferType=K.tsInferType=Pi,K.tSInstantiationExpression=K.tsInstantiationExpression=Rs,K.tSInterfaceBody=K.tsInterfaceBody=ki,K.tSInterfaceDeclaration=K.tsInterfaceDeclaration=_i,K.tSIntersectionType=K.tsIntersectionType=bi,K.tSIntrinsicKeyword=K.tsIntrinsicKeyword=Tt,K.tSLiteralType=K.tsLiteralType=Ni,K.tSMappedType=K.tsMappedType=Ii,K.tSMethodSignature=K.tsMethodSignature=be,K.tSModuleBlock=K.tsModuleBlock=Xs,K.tSModuleDeclaration=K.tsModuleDeclaration=Js,K.tSNamedTupleMember=K.tsNamedTupleMember=gi,K.tSNamespaceExportDeclaration=K.tsNamespaceExportDeclaration=Qs,K.tSNeverKeyword=K.tsNeverKeyword=tt,K.tSNonNullExpression=K.tsNonNullExpression=$s,K.tSNullKeyword=K.tsNullKeyword=mt,K.tSNumberKeyword=K.tsNumberKeyword=Ht,K.tSObjectKeyword=K.tsObjectKeyword=Wt,K.tSOptionalType=K.tsOptionalType=Ti,K.tSParameterProperty=K.tsParameterProperty=n,K.tSParenthesizedType=K.tsParenthesizedType=Ai,K.tSPropertySignature=K.tsPropertySignature=oe,K.tSQualifiedName=K.tsQualifiedName=L,K.tSRestType=K.tsRestType=Si,K.tSSatisfiesExpression=K.tsSatisfiesExpression=qs,K.tSStringKeyword=K.tsStringKeyword=ii,K.tSSymbolKeyword=K.tsSymbolKeyword=si,K.tSTemplateLiteralType=K.tsTemplateLiteralType=wi,K.tSThisType=K.tsThisType=li,K.tSTupleType=K.tsTupleType=yi,K.tSTypeAliasDeclaration=K.tsTypeAliasDeclaration=Fs,K.tSTypeAnnotation=K.tsTypeAnnotation=Zs,K.tSTypeAssertion=K.tsTypeAssertion=Us,K.tSTypeLiteral=K.tsTypeLiteral=di,K.tSTypeOperator=K.tsTypeOperator=vi,K.tSTypeParameter=K.tsTypeParameter=rn,K.tSTypeParameterDeclaration=K.tsTypeParameterDeclaration=tn,K.tSTypeParameterInstantiation=K.tsTypeParameterInstantiation=en,K.tSTypePredicate=K.tsTypePredicate=fi,K.tSTypeQuery=K.tsTypeQuery=hi,K.tSTypeReference=K.tsTypeReference=pi,K.tSUndefinedKeyword=K.tsUndefinedKeyword=ni,K.tSUnionType=K.tsUnionType=xi,K.tSUnknownKeyword=K.tsUnknownKeyword=ai,K.tSVoidKeyword=K.tsVoidKeyword=oi,K.tupleExpression=Ps,K.tupleTypeAnnotation=Sr,K.typeAlias=Gi,K.typeAnnotation=Qi,K.typeCastExpression=Zi,K.typeParameter=es,K.typeParameterDeclaration=Xr,K.typeParameterInstantiation=ts,K.typeofTypeAnnotation=Jr,K.unaryExpression=it,K.unionTypeAnnotation=gr,K.updateExpression=He,K.v8IntrinsicIdentifier=Dr,K.variableDeclaration=we,K.variableDeclarator=Oe,K.variance=xr,K.voidPattern=r,K.voidTypeAnnotation=Nr,K.whileStatement=ke,K.withStatement=Le,K.yieldExpression=rt;var s=nl(),l=Nn(),u=Rr();const{validateInternal:o}=s,{NODE_FIELDS:f}=u;function p(h){typeof h=="bigint"&&(h=h.toString());const d={type:"BigIntLiteral",value:h},y=f.BigIntLiteral;return o(y.value,d,"value",h),d}function w(h=[]){const d={type:"ArrayExpression",elements:h},y=f.ArrayExpression;return o(y.elements,d,"elements",h,1),d}function b(h,d,y){const O={type:"AssignmentExpression",operator:h,left:d,right:y},re=f.AssignmentExpression;return o(re.operator,O,"operator",h),o(re.left,O,"left",d,1),o(re.right,O,"right",y,1),O}function E(h,d,y){const O={type:"BinaryExpression",operator:h,left:d,right:y},re=f.BinaryExpression;return o(re.operator,O,"operator",h),o(re.left,O,"left",d,1),o(re.right,O,"right",y,1),O}function C(h){const d={type:"InterpreterDirective",value:h},y=f.InterpreterDirective;return o(y.value,d,"value",h),d}function x(h){const d={type:"Directive",value:h},y=f.Directive;return o(y.value,d,"value",h,1),d}function N(h){const d={type:"DirectiveLiteral",value:h},y=f.DirectiveLiteral;return o(y.value,d,"value",h),d}function P(h,d=[]){const y={type:"BlockStatement",body:h,directives:d},O=f.BlockStatement;return o(O.body,y,"body",h,1),o(O.directives,y,"directives",d,1),y}function T(h=null){const d={type:"BreakStatement",label:h},y=f.BreakStatement;return o(y.label,d,"label",h,1),d}function F(h,d){const y={type:"CallExpression",callee:h,arguments:d},O=f.CallExpression;return o(O.callee,y,"callee",h,1),o(O.arguments,y,"arguments",d,1),y}function V(h=null,d){const y={type:"CatchClause",param:h,body:d},O=f.CatchClause;return o(O.param,y,"param",h,1),o(O.body,y,"body",d,1),y}function k(h,d,y){const O={type:"ConditionalExpression",test:h,consequent:d,alternate:y},re=f.ConditionalExpression;return o(re.test,O,"test",h,1),o(re.consequent,O,"consequent",d,1),o(re.alternate,O,"alternate",y,1),O}function S(h=null){const d={type:"ContinueStatement",label:h},y=f.ContinueStatement;return o(y.label,d,"label",h,1),d}function G(){return{type:"DebuggerStatement"}}function X(h,d){const y={type:"DoWhileStatement",test:h,body:d},O=f.DoWhileStatement;return o(O.test,y,"test",h,1),o(O.body,y,"body",d,1),y}function W(){return{type:"EmptyStatement"}}function ee(h){const d={type:"ExpressionStatement",expression:h},y=f.ExpressionStatement;return o(y.expression,d,"expression",h,1),d}function M(h,d=null,y=null){const O={type:"File",program:h,comments:d,tokens:y},re=f.File;return o(re.program,O,"program",h,1),o(re.comments,O,"comments",d,1),o(re.tokens,O,"tokens",y),O}function I(h,d,y){const O={type:"ForInStatement",left:h,right:d,body:y},re=f.ForInStatement;return o(re.left,O,"left",h,1),o(re.right,O,"right",d,1),o(re.body,O,"body",y,1),O}function U(h=null,d=null,y=null,O){const re={type:"ForStatement",init:h,test:d,update:y,body:O},xe=f.ForStatement;return o(xe.init,re,"init",h,1),o(xe.test,re,"test",d,1),o(xe.update,re,"update",y,1),o(xe.body,re,"body",O,1),re}function B(h=null,d,y,O=!1,re=!1){const xe={type:"FunctionDeclaration",id:h,params:d,body:y,generator:O,async:re},ze=f.FunctionDeclaration;return o(ze.id,xe,"id",h,1),o(ze.params,xe,"params",d,1),o(ze.body,xe,"body",y,1),o(ze.generator,xe,"generator",O),o(ze.async,xe,"async",re),xe}function R(h=null,d,y,O=!1,re=!1){const xe={type:"FunctionExpression",id:h,params:d,body:y,generator:O,async:re},ze=f.FunctionExpression;return o(ze.id,xe,"id",h,1),o(ze.params,xe,"params",d,1),o(ze.body,xe,"body",y,1),o(ze.generator,xe,"generator",O),o(ze.async,xe,"async",re),xe}function $(h){const d={type:"Identifier",name:h},y=f.Identifier;return o(y.name,d,"name",h),d}function ae(h,d,y=null){const O={type:"IfStatement",test:h,consequent:d,alternate:y},re=f.IfStatement;return o(re.test,O,"test",h,1),o(re.consequent,O,"consequent",d,1),o(re.alternate,O,"alternate",y,1),O}function ge(h,d){const y={type:"LabeledStatement",label:h,body:d},O=f.LabeledStatement;return o(O.label,y,"label",h,1),o(O.body,y,"body",d,1),y}function Se(h){const d={type:"StringLiteral",value:h},y=f.StringLiteral;return o(y.value,d,"value",h),d}function Ae(h){const d={type:"NumericLiteral",value:h},y=f.NumericLiteral;return o(y.value,d,"value",h),d}function ne(){return{type:"NullLiteral"}}function Z(h){const d={type:"BooleanLiteral",value:h},y=f.BooleanLiteral;return o(y.value,d,"value",h),d}function D(h,d=""){const y={type:"RegExpLiteral",pattern:h,flags:d},O=f.RegExpLiteral;return o(O.pattern,y,"pattern",h),o(O.flags,y,"flags",d),y}function J(h,d,y){const O={type:"LogicalExpression",operator:h,left:d,right:y},re=f.LogicalExpression;return o(re.operator,O,"operator",h),o(re.left,O,"left",d,1),o(re.right,O,"right",y,1),O}function ie(h,d,y=!1,O=null){const re={type:"MemberExpression",object:h,property:d,computed:y,optional:O},xe=f.MemberExpression;return o(xe.object,re,"object",h,1),o(xe.property,re,"property",d,1),o(xe.computed,re,"computed",y),o(xe.optional,re,"optional",O),re}function Q(h,d){const y={type:"NewExpression",callee:h,arguments:d},O=f.NewExpression;return o(O.callee,y,"callee",h,1),o(O.arguments,y,"arguments",d,1),y}function fe(h,d=[],y="script",O=null){const re={type:"Program",body:h,directives:d,sourceType:y,interpreter:O},xe=f.Program;return o(xe.body,re,"body",h,1),o(xe.directives,re,"directives",d,1),o(xe.sourceType,re,"sourceType",y),o(xe.interpreter,re,"interpreter",O,1),re}function ue(h){const d={type:"ObjectExpression",properties:h},y=f.ObjectExpression;return o(y.properties,d,"properties",h,1),d}function Pe(h="method",d,y,O,re=!1,xe=!1,ze=!1){const xt={type:"ObjectMethod",kind:h,key:d,params:y,body:O,computed:re,generator:xe,async:ze},vt=f.ObjectMethod;return o(vt.kind,xt,"kind",h),o(vt.key,xt,"key",d,1),o(vt.params,xt,"params",y,1),o(vt.body,xt,"body",O,1),o(vt.computed,xt,"computed",re),o(vt.generator,xt,"generator",xe),o(vt.async,xt,"async",ze),xt}function _e(h,d,y=!1,O=!1,re=null){const xe={type:"ObjectProperty",key:h,value:d,computed:y,shorthand:O,decorators:re},ze=f.ObjectProperty;return o(ze.key,xe,"key",h,1),o(ze.value,xe,"value",d,1),o(ze.computed,xe,"computed",y),o(ze.shorthand,xe,"shorthand",O),o(ze.decorators,xe,"decorators",re,1),xe}function Ke(h){const d={type:"RestElement",argument:h},y=f.RestElement;return o(y.argument,d,"argument",h,1),d}function ve(h=null){const d={type:"ReturnStatement",argument:h},y=f.ReturnStatement;return o(y.argument,d,"argument",h,1),d}function Ce(h){const d={type:"SequenceExpression",expressions:h},y=f.SequenceExpression;return o(y.expressions,d,"expressions",h,1),d}function me(h){const d={type:"ParenthesizedExpression",expression:h},y=f.ParenthesizedExpression;return o(y.expression,d,"expression",h,1),d}function le(h=null,d){const y={type:"SwitchCase",test:h,consequent:d},O=f.SwitchCase;return o(O.test,y,"test",h,1),o(O.consequent,y,"consequent",d,1),y}function de(h,d){const y={type:"SwitchStatement",discriminant:h,cases:d},O=f.SwitchStatement;return o(O.discriminant,y,"discriminant",h,1),o(O.cases,y,"cases",d,1),y}function qe(){return{type:"ThisExpression"}}function $e(h){const d={type:"ThrowStatement",argument:h},y=f.ThrowStatement;return o(y.argument,d,"argument",h,1),d}function Ze(h,d=null,y=null){const O={type:"TryStatement",block:h,handler:d,finalizer:y},re=f.TryStatement;return o(re.block,O,"block",h,1),o(re.handler,O,"handler",d,1),o(re.finalizer,O,"finalizer",y,1),O}function it(h,d,y=!0){const O={type:"UnaryExpression",operator:h,argument:d,prefix:y},re=f.UnaryExpression;return o(re.operator,O,"operator",h),o(re.argument,O,"argument",d,1),o(re.prefix,O,"prefix",y),O}function He(h,d,y=!1){const O={type:"UpdateExpression",operator:h,argument:d,prefix:y},re=f.UpdateExpression;return o(re.operator,O,"operator",h),o(re.argument,O,"argument",d,1),o(re.prefix,O,"prefix",y),O}function we(h,d){const y={type:"VariableDeclaration",kind:h,declarations:d},O=f.VariableDeclaration;return o(O.kind,y,"kind",h),o(O.declarations,y,"declarations",d,1),y}function Oe(h,d=null){const y={type:"VariableDeclarator",id:h,init:d},O=f.VariableDeclarator;return o(O.id,y,"id",h,1),o(O.init,y,"init",d,1),y}function ke(h,d){const y={type:"WhileStatement",test:h,body:d},O=f.WhileStatement;return o(O.test,y,"test",h,1),o(O.body,y,"body",d,1),y}function Le(h,d){const y={type:"WithStatement",object:h,body:d},O=f.WithStatement;return o(O.object,y,"object",h,1),o(O.body,y,"body",d,1),y}function Ve(h,d){const y={type:"AssignmentPattern",left:h,right:d},O=f.AssignmentPattern;return o(O.left,y,"left",h,1),o(O.right,y,"right",d,1),y}function Qe(h){const d={type:"ArrayPattern",elements:h},y=f.ArrayPattern;return o(y.elements,d,"elements",h,1),d}function et(h,d,y=!1){const O={type:"ArrowFunctionExpression",params:h,body:d,async:y,expression:null},re=f.ArrowFunctionExpression;return o(re.params,O,"params",h,1),o(re.body,O,"body",d,1),o(re.async,O,"async",y),O}function ht(h){const d={type:"ClassBody",body:h},y=f.ClassBody;return o(y.body,d,"body",h,1),d}function Te(h=null,d=null,y,O=null){const re={type:"ClassExpression",id:h,superClass:d,body:y,decorators:O},xe=f.ClassExpression;return o(xe.id,re,"id",h,1),o(xe.superClass,re,"superClass",d,1),o(xe.body,re,"body",y,1),o(xe.decorators,re,"decorators",O,1),re}function Ue(h=null,d=null,y,O=null){const re={type:"ClassDeclaration",id:h,superClass:d,body:y,decorators:O},xe=f.ClassDeclaration;return o(xe.id,re,"id",h,1),o(xe.superClass,re,"superClass",d,1),o(xe.body,re,"body",y,1),o(xe.decorators,re,"decorators",O,1),re}function Be(h){const d={type:"ExportAllDeclaration",source:h},y=f.ExportAllDeclaration;return o(y.source,d,"source",h,1),d}function pe(h){const d={type:"ExportDefaultDeclaration",declaration:h},y=f.ExportDefaultDeclaration;return o(y.declaration,d,"declaration",h,1),d}function j(h=null,d=[],y=null){const O={type:"ExportNamedDeclaration",declaration:h,specifiers:d,source:y},re=f.ExportNamedDeclaration;return o(re.declaration,O,"declaration",h,1),o(re.specifiers,O,"specifiers",d,1),o(re.source,O,"source",y,1),O}function te(h,d){const y={type:"ExportSpecifier",local:h,exported:d},O=f.ExportSpecifier;return o(O.local,y,"local",h,1),o(O.exported,y,"exported",d,1),y}function ye(h,d,y,O=!1){const re={type:"ForOfStatement",left:h,right:d,body:y,await:O},xe=f.ForOfStatement;return o(xe.left,re,"left",h,1),o(xe.right,re,"right",d,1),o(xe.body,re,"body",y,1),o(xe.await,re,"await",O),re}function Ie(h,d){const y={type:"ImportDeclaration",specifiers:h,source:d},O=f.ImportDeclaration;return o(O.specifiers,y,"specifiers",h,1),o(O.source,y,"source",d,1),y}function Re(h){const d={type:"ImportDefaultSpecifier",local:h},y=f.ImportDefaultSpecifier;return o(y.local,d,"local",h,1),d}function Ee(h){const d={type:"ImportNamespaceSpecifier",local:h},y=f.ImportNamespaceSpecifier;return o(y.local,d,"local",h,1),d}function st(h,d){const y={type:"ImportSpecifier",local:h,imported:d},O=f.ImportSpecifier;return o(O.local,y,"local",h,1),o(O.imported,y,"imported",d,1),y}function ot(h,d=null){const y={type:"ImportExpression",source:h,options:d},O=f.ImportExpression;return o(O.source,y,"source",h,1),o(O.options,y,"options",d,1),y}function he(h,d){const y={type:"MetaProperty",meta:h,property:d},O=f.MetaProperty;return o(O.meta,y,"meta",h,1),o(O.property,y,"property",d,1),y}function q(h="method",d,y,O,re=!1,xe=!1,ze=!1,xt=!1){const vt={type:"ClassMethod",kind:h,key:d,params:y,body:O,computed:re,static:xe,generator:ze,async:xt},ir=f.ClassMethod;return o(ir.kind,vt,"kind",h),o(ir.key,vt,"key",d,1),o(ir.params,vt,"params",y,1),o(ir.body,vt,"body",O,1),o(ir.computed,vt,"computed",re),o(ir.static,vt,"static",xe),o(ir.generator,vt,"generator",ze),o(ir.async,vt,"async",xt),vt}function _(h){const d={type:"ObjectPattern",properties:h},y=f.ObjectPattern;return o(y.properties,d,"properties",h,1),d}function ce(h){const d={type:"SpreadElement",argument:h},y=f.SpreadElement;return o(y.argument,d,"argument",h,1),d}function Ne(){return{type:"Super"}}function Me(h,d){const y={type:"TaggedTemplateExpression",tag:h,quasi:d},O=f.TaggedTemplateExpression;return o(O.tag,y,"tag",h,1),o(O.quasi,y,"quasi",d,1),y}function Ge(h,d=!1){const y={type:"TemplateElement",value:h,tail:d},O=f.TemplateElement;return o(O.value,y,"value",h),o(O.tail,y,"tail",d),y}function ut(h,d){const y={type:"TemplateLiteral",quasis:h,expressions:d},O=f.TemplateLiteral;return o(O.quasis,y,"quasis",h,1),o(O.expressions,y,"expressions",d,1),y}function rt(h=null,d=!1){const y={type:"YieldExpression",argument:h,delegate:d},O=f.YieldExpression;return o(O.argument,y,"argument",h,1),o(O.delegate,y,"delegate",d),y}function dt(h){const d={type:"AwaitExpression",argument:h},y=f.AwaitExpression;return o(y.argument,d,"argument",h,1),d}function yt(){return{type:"Import"}}function gt(h){const d={type:"ExportNamespaceSpecifier",exported:h},y=f.ExportNamespaceSpecifier;return o(y.exported,d,"exported",h,1),d}function At(h,d,y=!1,O){const re={type:"OptionalMemberExpression",object:h,property:d,computed:y,optional:O},xe=f.OptionalMemberExpression;return o(xe.object,re,"object",h,1),o(xe.property,re,"property",d,1),o(xe.computed,re,"computed",y),o(xe.optional,re,"optional",O),re}function wt(h,d,y){const O={type:"OptionalCallExpression",callee:h,arguments:d,optional:y},re=f.OptionalCallExpression;return o(re.callee,O,"callee",h,1),o(re.arguments,O,"arguments",d,1),o(re.optional,O,"optional",y),O}function Nt(h,d=null,y=null,O=null,re=!1,xe=!1){const ze={type:"ClassProperty",key:h,value:d,typeAnnotation:y,decorators:O,computed:re,static:xe},xt=f.ClassProperty;return o(xt.key,ze,"key",h,1),o(xt.value,ze,"value",d,1),o(xt.typeAnnotation,ze,"typeAnnotation",y,1),o(xt.decorators,ze,"decorators",O,1),o(xt.computed,ze,"computed",re),o(xt.static,ze,"static",xe),ze}function Ot(h,d=null,y=null,O=null,re=!1,xe=!1){const ze={type:"ClassAccessorProperty",key:h,value:d,typeAnnotation:y,decorators:O,computed:re,static:xe},xt=f.ClassAccessorProperty;return o(xt.key,ze,"key",h,1),o(xt.value,ze,"value",d,1),o(xt.typeAnnotation,ze,"typeAnnotation",y,1),o(xt.decorators,ze,"decorators",O,1),o(xt.computed,ze,"computed",re),o(xt.static,ze,"static",xe),ze}function Lt(h,d=null,y=null,O=!1){const re={type:"ClassPrivateProperty",key:h,value:d,decorators:y,static:O},xe=f.ClassPrivateProperty;return o(xe.key,re,"key",h,1),o(xe.value,re,"value",d,1),o(xe.decorators,re,"decorators",y,1),o(xe.static,re,"static",O),re}function qt(h="method",d,y,O,re=!1){const xe={type:"ClassPrivateMethod",kind:h,key:d,params:y,body:O,static:re},ze=f.ClassPrivateMethod;return o(ze.kind,xe,"kind",h),o(ze.key,xe,"key",d,1),o(ze.params,xe,"params",y,1),o(ze.body,xe,"body",O,1),o(ze.static,xe,"static",re),xe}function sr(h){const d={type:"PrivateName",id:h},y=f.PrivateName;return o(y.id,d,"id",h,1),d}function Je(h){const d={type:"StaticBlock",body:h},y=f.StaticBlock;return o(y.body,d,"body",h,1),d}function nr(h,d){const y={type:"ImportAttribute",key:h,value:d},O=f.ImportAttribute;return o(O.key,y,"key",h,1),o(O.value,y,"value",d,1),y}function ar(){return{type:"AnyTypeAnnotation"}}function Ar(h){const d={type:"ArrayTypeAnnotation",elementType:h},y=f.ArrayTypeAnnotation;return o(y.elementType,d,"elementType",h,1),d}function dr(){return{type:"BooleanTypeAnnotation"}}function or(h){const d={type:"BooleanLiteralTypeAnnotation",value:h},y=f.BooleanLiteralTypeAnnotation;return o(y.value,d,"value",h),d}function Ft(){return{type:"NullLiteralTypeAnnotation"}}function tr(h,d=null){const y={type:"ClassImplements",id:h,typeParameters:d},O=f.ClassImplements;return o(O.id,y,"id",h,1),o(O.typeParameters,y,"typeParameters",d,1),y}function mr(h,d=null,y=null,O){const re={type:"DeclareClass",id:h,typeParameters:d,extends:y,body:O},xe=f.DeclareClass;return o(xe.id,re,"id",h,1),o(xe.typeParameters,re,"typeParameters",d,1),o(xe.extends,re,"extends",y,1),o(xe.body,re,"body",O,1),re}function Xt(h){const d={type:"DeclareFunction",id:h},y=f.DeclareFunction;return o(y.id,d,"id",h,1),d}function Rt(h,d=null,y=null,O){const re={type:"DeclareInterface",id:h,typeParameters:d,extends:y,body:O},xe=f.DeclareInterface;return o(xe.id,re,"id",h,1),o(xe.typeParameters,re,"typeParameters",d,1),o(xe.extends,re,"extends",y,1),o(xe.body,re,"body",O,1),re}function jr(h,d,y=null){const O={type:"DeclareModule",id:h,body:d,kind:y},re=f.DeclareModule;return o(re.id,O,"id",h,1),o(re.body,O,"body",d,1),o(re.kind,O,"kind",y),O}function vr(h){const d={type:"DeclareModuleExports",typeAnnotation:h},y=f.DeclareModuleExports;return o(y.typeAnnotation,d,"typeAnnotation",h,1),d}function Cr(h,d=null,y){const O={type:"DeclareTypeAlias",id:h,typeParameters:d,right:y},re=f.DeclareTypeAlias;return o(re.id,O,"id",h,1),o(re.typeParameters,O,"typeParameters",d,1),o(re.right,O,"right",y,1),O}function Bi(h,d=null,y=null){const O={type:"DeclareOpaqueType",id:h,typeParameters:d,supertype:y},re=f.DeclareOpaqueType;return o(re.id,O,"id",h,1),o(re.typeParameters,O,"typeParameters",d,1),o(re.supertype,O,"supertype",y,1),O}function Yt(h){const d={type:"DeclareVariable",id:h},y=f.DeclareVariable;return o(y.id,d,"id",h,1),d}function Ut(h=null,d=null,y=null,O=null){const re={type:"DeclareExportDeclaration",declaration:h,specifiers:d,source:y,attributes:O},xe=f.DeclareExportDeclaration;return o(xe.declaration,re,"declaration",h,1),o(xe.specifiers,re,"specifiers",d,1),o(xe.source,re,"source",y,1),o(xe.attributes,re,"attributes",O,1),re}function rr(h,d=null){const y={type:"DeclareExportAllDeclaration",source:h,attributes:d},O=f.DeclareExportAllDeclaration;return o(O.source,y,"source",h,1),o(O.attributes,y,"attributes",d,1),y}function Fi(h){const d={type:"DeclaredPredicate",value:h},y=f.DeclaredPredicate;return o(y.value,d,"value",h,1),d}function Ri(){return{type:"ExistsTypeAnnotation"}}function ji(h=null,d,y=null,O){const re={type:"FunctionTypeAnnotation",typeParameters:h,params:d,rest:y,returnType:O},xe=f.FunctionTypeAnnotation;return o(xe.typeParameters,re,"typeParameters",h,1),o(xe.params,re,"params",d,1),o(xe.rest,re,"rest",y,1),o(xe.returnType,re,"returnType",O,1),re}function qi(h=null,d){const y={type:"FunctionTypeParam",name:h,typeAnnotation:d},O=f.FunctionTypeParam;return o(O.name,y,"name",h,1),o(O.typeAnnotation,y,"typeAnnotation",d,1),y}function yr(h,d=null){const y={type:"GenericTypeAnnotation",id:h,typeParameters:d},O=f.GenericTypeAnnotation;return o(O.id,y,"id",h,1),o(O.typeParameters,y,"typeParameters",d,1),y}function Ui(){return{type:"InferredPredicate"}}function qr(h,d=null){const y={type:"InterfaceExtends",id:h,typeParameters:d},O=f.InterfaceExtends;return o(O.id,y,"id",h,1),o(O.typeParameters,y,"typeParameters",d,1),y}function Ki(h,d=null,y=null,O){const re={type:"InterfaceDeclaration",id:h,typeParameters:d,extends:y,body:O},xe=f.InterfaceDeclaration;return o(xe.id,re,"id",h,1),o(xe.typeParameters,re,"typeParameters",d,1),o(xe.extends,re,"extends",y,1),o(xe.body,re,"body",O,1),re}function lr(h=null,d){const y={type:"InterfaceTypeAnnotation",extends:h,body:d},O=f.InterfaceTypeAnnotation;return o(O.extends,y,"extends",h,1),o(O.body,y,"body",d,1),y}function Kt(h){const d={type:"IntersectionTypeAnnotation",types:h},y=f.IntersectionTypeAnnotation;return o(y.types,d,"types",h,1),d}function Vi(){return{type:"MixedTypeAnnotation"}}function Ir(){return{type:"EmptyTypeAnnotation"}}function Wi(h){const d={type:"NullableTypeAnnotation",typeAnnotation:h},y=f.NullableTypeAnnotation;return o(y.typeAnnotation,d,"typeAnnotation",h,1),d}function Ur(h){const d={type:"NumberLiteralTypeAnnotation",value:h},y=f.NumberLiteralTypeAnnotation;return o(y.value,d,"value",h),d}function Tr(){return{type:"NumberTypeAnnotation"}}function Kr(h,d=[],y=[],O=[],re=!1){const xe={type:"ObjectTypeAnnotation",properties:h,indexers:d,callProperties:y,internalSlots:O,exact:re},ze=f.ObjectTypeAnnotation;return o(ze.properties,xe,"properties",h,1),o(ze.indexers,xe,"indexers",d,1),o(ze.callProperties,xe,"callProperties",y,1),o(ze.internalSlots,xe,"internalSlots",O,1),o(ze.exact,xe,"exact",re),xe}function Ji(h,d,y,O,re){const xe={type:"ObjectTypeInternalSlot",id:h,value:d,optional:y,static:O,method:re},ze=f.ObjectTypeInternalSlot;return o(ze.id,xe,"id",h,1),o(ze.value,xe,"value",d,1),o(ze.optional,xe,"optional",y),o(ze.static,xe,"static",O),o(ze.method,xe,"method",re),xe}function Xi(h){const d={type:"ObjectTypeCallProperty",value:h,static:null},y=f.ObjectTypeCallProperty;return o(y.value,d,"value",h,1),d}function wr(h=null,d,y,O=null){const re={type:"ObjectTypeIndexer",id:h,key:d,value:y,variance:O,static:null},xe=f.ObjectTypeIndexer;return o(xe.id,re,"id",h,1),o(xe.key,re,"key",d,1),o(xe.value,re,"value",y,1),o(xe.variance,re,"variance",O,1),re}function Vr(h,d,y=null){const O={type:"ObjectTypeProperty",key:h,value:d,variance:y,kind:null,method:null,optional:null,proto:null,static:null},re=f.ObjectTypeProperty;return o(re.key,O,"key",h,1),o(re.value,O,"value",d,1),o(re.variance,O,"variance",y,1),O}function Wr(h){const d={type:"ObjectTypeSpreadProperty",argument:h},y=f.ObjectTypeSpreadProperty;return o(y.argument,d,"argument",h,1),d}function ur(h,d=null,y=null,O){const re={type:"OpaqueType",id:h,typeParameters:d,supertype:y,impltype:O},xe=f.OpaqueType;return o(xe.id,re,"id",h,1),o(xe.typeParameters,re,"typeParameters",d,1),o(xe.supertype,re,"supertype",y,1),o(xe.impltype,re,"impltype",O,1),re}function Yi(h,d){const y={type:"QualifiedTypeIdentifier",id:h,qualification:d},O=f.QualifiedTypeIdentifier;return o(O.id,y,"id",h,1),o(O.qualification,y,"qualification",d,1),y}function Vt(h){const d={type:"StringLiteralTypeAnnotation",value:h},y=f.StringLiteralTypeAnnotation;return o(y.value,d,"value",h),d}function Hi(){return{type:"StringTypeAnnotation"}}function zi(){return{type:"SymbolTypeAnnotation"}}function $i(){return{type:"ThisTypeAnnotation"}}function Sr(h){const d={type:"TupleTypeAnnotation",types:h},y=f.TupleTypeAnnotation;return o(y.types,d,"types",h,1),d}function Jr(h){const d={type:"TypeofTypeAnnotation",argument:h},y=f.TypeofTypeAnnotation;return o(y.argument,d,"argument",h,1),d}function Gi(h,d=null,y){const O={type:"TypeAlias",id:h,typeParameters:d,right:y},re=f.TypeAlias;return o(re.id,O,"id",h,1),o(re.typeParameters,O,"typeParameters",d,1),o(re.right,O,"right",y,1),O}function Qi(h){const d={type:"TypeAnnotation",typeAnnotation:h},y=f.TypeAnnotation;return o(y.typeAnnotation,d,"typeAnnotation",h,1),d}function Zi(h,d){const y={type:"TypeCastExpression",expression:h,typeAnnotation:d},O=f.TypeCastExpression;return o(O.expression,y,"expression",h,1),o(O.typeAnnotation,y,"typeAnnotation",d,1),y}function es(h=null,d=null,y=null){const O={type:"TypeParameter",bound:h,default:d,variance:y,name:null},re=f.TypeParameter;return o(re.bound,O,"bound",h,1),o(re.default,O,"default",d,1),o(re.variance,O,"variance",y,1),O}function Xr(h){const d={type:"TypeParameterDeclaration",params:h},y=f.TypeParameterDeclaration;return o(y.params,d,"params",h,1),d}function ts(h){const d={type:"TypeParameterInstantiation",params:h},y=f.TypeParameterInstantiation;return o(y.params,d,"params",h,1),d}function gr(h){const d={type:"UnionTypeAnnotation",types:h},y=f.UnionTypeAnnotation;return o(y.types,d,"types",h,1),d}function xr(h){const d={type:"Variance",kind:h},y=f.Variance;return o(y.kind,d,"kind",h),d}function Nr(){return{type:"VoidTypeAnnotation"}}function rs(h,d){const y={type:"EnumDeclaration",id:h,body:d},O=f.EnumDeclaration;return o(O.id,y,"id",h,1),o(O.body,y,"body",d,1),y}function Or(h){const d={type:"EnumBooleanBody",members:h,explicitType:null,hasUnknownMembers:null},y=f.EnumBooleanBody;return o(y.members,d,"members",h,1),d}function is(h){const d={type:"EnumNumberBody",members:h,explicitType:null,hasUnknownMembers:null},y=f.EnumNumberBody;return o(y.members,d,"members",h,1),d}function _r(h){const d={type:"EnumStringBody",members:h,explicitType:null,hasUnknownMembers:null},y=f.EnumStringBody;return o(y.members,d,"members",h,1),d}function ss(h){const d={type:"EnumSymbolBody",members:h,hasUnknownMembers:null},y=f.EnumSymbolBody;return o(y.members,d,"members",h,1),d}function Yr(h){const d={type:"EnumBooleanMember",id:h,init:null},y=f.EnumBooleanMember;return o(y.id,d,"id",h,1),d}function Xe(h,d){const y={type:"EnumNumberMember",id:h,init:d},O=f.EnumNumberMember;return o(O.id,y,"id",h,1),o(O.init,y,"init",d,1),y}function ns(h,d){const y={type:"EnumStringMember",id:h,init:d},O=f.EnumStringMember;return o(O.id,y,"id",h,1),o(O.init,y,"init",d,1),y}function Hr(h){const d={type:"EnumDefaultedMember",id:h},y=f.EnumDefaultedMember;return o(y.id,d,"id",h,1),d}function as(h,d){const y={type:"IndexedAccessType",objectType:h,indexType:d},O=f.IndexedAccessType;return o(O.objectType,y,"objectType",h,1),o(O.indexType,y,"indexType",d,1),y}function os(h,d){const y={type:"OptionalIndexedAccessType",objectType:h,indexType:d,optional:null},O=f.OptionalIndexedAccessType;return o(O.objectType,y,"objectType",h,1),o(O.indexType,y,"indexType",d,1),y}function ls(h,d=null){const y={type:"JSXAttribute",name:h,value:d},O=f.JSXAttribute;return o(O.name,y,"name",h,1),o(O.value,y,"value",d,1),y}function us(h){const d={type:"JSXClosingElement",name:h},y=f.JSXClosingElement;return o(y.name,d,"name",h,1),d}function zr(h,d=null,y,O=null){const re={type:"JSXElement",openingElement:h,closingElement:d,children:y,selfClosing:O},xe=f.JSXElement;return o(xe.openingElement,re,"openingElement",h,1),o(xe.closingElement,re,"closingElement",d,1),o(xe.children,re,"children",y,1),o(xe.selfClosing,re,"selfClosing",O),re}function cs(){return{type:"JSXEmptyExpression"}}function $r(h){const d={type:"JSXExpressionContainer",expression:h},y=f.JSXExpressionContainer;return o(y.expression,d,"expression",h,1),d}function Gr(h){const d={type:"JSXSpreadChild",expression:h},y=f.JSXSpreadChild;return o(y.expression,d,"expression",h,1),d}function ps(h){const d={type:"JSXIdentifier",name:h},y=f.JSXIdentifier;return o(y.name,d,"name",h),d}function fs(h,d){const y={type:"JSXMemberExpression",object:h,property:d},O=f.JSXMemberExpression;return o(O.object,y,"object",h,1),o(O.property,y,"property",d,1),y}function Qr(h,d){const y={type:"JSXNamespacedName",namespace:h,name:d},O=f.JSXNamespacedName;return o(O.namespace,y,"namespace",h,1),o(O.name,y,"name",d,1),y}function Zr(h,d,y=!1){const O={type:"JSXOpeningElement",name:h,attributes:d,selfClosing:y},re=f.JSXOpeningElement;return o(re.name,O,"name",h,1),o(re.attributes,O,"attributes",d,1),o(re.selfClosing,O,"selfClosing",y),O}function hs(h){const d={type:"JSXSpreadAttribute",argument:h},y=f.JSXSpreadAttribute;return o(y.argument,d,"argument",h,1),d}function ei(h){const d={type:"JSXText",value:h},y=f.JSXText;return o(y.value,d,"value",h),d}function ds(h,d,y){const O={type:"JSXFragment",openingFragment:h,closingFragment:d,children:y},re=f.JSXFragment;return o(re.openingFragment,O,"openingFragment",h,1),o(re.closingFragment,O,"closingFragment",d,1),o(re.children,O,"children",y,1),O}function ms(){return{type:"JSXOpeningFragment"}}function kr(){return{type:"JSXClosingFragment"}}function ys(){return{type:"Noop"}}function Ts(h,d){const y={type:"Placeholder",expectedNode:h,name:d},O=f.Placeholder;return o(O.expectedNode,y,"expectedNode",h),o(O.name,y,"name",d,1),y}function Dr(h){const d={type:"V8IntrinsicIdentifier",name:h},y=f.V8IntrinsicIdentifier;return o(y.name,d,"name",h),d}function Ss(){return{type:"ArgumentPlaceholder"}}function gs(h,d){const y={type:"BindExpression",object:h,callee:d},O=f.BindExpression;return o(O.object,y,"object",h,1),o(O.callee,y,"callee",d,1),y}function ti(h){const d={type:"Decorator",expression:h},y=f.Decorator;return o(y.expression,d,"expression",h,1),d}function xs(h,d=!1){const y={type:"DoExpression",body:h,async:d},O=f.DoExpression;return o(O.body,y,"body",h,1),o(O.async,y,"async",d),y}function bs(h){const d={type:"ExportDefaultSpecifier",exported:h},y=f.ExportDefaultSpecifier;return o(y.exported,d,"exported",h,1),d}function Es(h){const d={type:"RecordExpression",properties:h},y=f.RecordExpression;return o(y.properties,d,"properties",h,1),d}function Ps(h=[]){const d={type:"TupleExpression",elements:h},y=f.TupleExpression;return o(y.elements,d,"elements",h,1),d}function cr(h){const d={type:"DecimalLiteral",value:h},y=f.DecimalLiteral;return o(y.value,d,"value",h),d}function ri(h){const d={type:"ModuleExpression",body:h},y=f.ModuleExpression;return o(y.body,d,"body",h,1),d}function As(){return{type:"TopicReference"}}function g(h){const d={type:"PipelineTopicExpression",expression:h},y=f.PipelineTopicExpression;return o(y.expression,d,"expression",h,1),d}function t(h){const d={type:"PipelineBareFunction",callee:h},y=f.PipelineBareFunction;return o(y.callee,d,"callee",h,1),d}function e(){return{type:"PipelinePrimaryTopicReference"}}function r(){return{type:"VoidPattern"}}function n(h){const d={type:"TSParameterProperty",parameter:h},y=f.TSParameterProperty;return o(y.parameter,d,"parameter",h,1),d}function c(h=null,d=null,y,O=null){const re={type:"TSDeclareFunction",id:h,typeParameters:d,params:y,returnType:O},xe=f.TSDeclareFunction;return o(xe.id,re,"id",h,1),o(xe.typeParameters,re,"typeParameters",d,1),o(xe.params,re,"params",y,1),o(xe.returnType,re,"returnType",O,1),re}function v(h=null,d,y=null,O,re=null){const xe={type:"TSDeclareMethod",decorators:h,key:d,typeParameters:y,params:O,returnType:re},ze=f.TSDeclareMethod;return o(ze.decorators,xe,"decorators",h,1),o(ze.key,xe,"key",d,1),o(ze.typeParameters,xe,"typeParameters",y,1),o(ze.params,xe,"params",O,1),o(ze.returnType,xe,"returnType",re,1),xe}function L(h,d){const y={type:"TSQualifiedName",left:h,right:d},O=f.TSQualifiedName;return o(O.left,y,"left",h,1),o(O.right,y,"right",d,1),y}function Y(h=null,d,y=null){const O={type:"TSCallSignatureDeclaration",typeParameters:h,parameters:d,typeAnnotation:y},re=f.TSCallSignatureDeclaration;return o(re.typeParameters,O,"typeParameters",h,1),o(re.parameters,O,"parameters",d,1),o(re.typeAnnotation,O,"typeAnnotation",y,1),O}function se(h=null,d,y=null){const O={type:"TSConstructSignatureDeclaration",typeParameters:h,parameters:d,typeAnnotation:y},re=f.TSConstructSignatureDeclaration;return o(re.typeParameters,O,"typeParameters",h,1),o(re.parameters,O,"parameters",d,1),o(re.typeAnnotation,O,"typeAnnotation",y,1),O}function oe(h,d=null){const y={type:"TSPropertySignature",key:h,typeAnnotation:d},O=f.TSPropertySignature;return o(O.key,y,"key",h,1),o(O.typeAnnotation,y,"typeAnnotation",d,1),y}function be(h,d=null,y,O=null){const re={type:"TSMethodSignature",key:h,typeParameters:d,parameters:y,typeAnnotation:O,kind:null},xe=f.TSMethodSignature;return o(xe.key,re,"key",h,1),o(xe.typeParameters,re,"typeParameters",d,1),o(xe.parameters,re,"parameters",y,1),o(xe.typeAnnotation,re,"typeAnnotation",O,1),re}function Fe(h,d=null){const y={type:"TSIndexSignature",parameters:h,typeAnnotation:d},O=f.TSIndexSignature;return o(O.parameters,y,"parameters",h,1),o(O.typeAnnotation,y,"typeAnnotation",d,1),y}function je(){return{type:"TSAnyKeyword"}}function Ye(){return{type:"TSBooleanKeyword"}}function ct(){return{type:"TSBigIntKeyword"}}function Tt(){return{type:"TSIntrinsicKeyword"}}function tt(){return{type:"TSNeverKeyword"}}function mt(){return{type:"TSNullKeyword"}}function Ht(){return{type:"TSNumberKeyword"}}function Wt(){return{type:"TSObjectKeyword"}}function ii(){return{type:"TSStringKeyword"}}function si(){return{type:"TSSymbolKeyword"}}function ni(){return{type:"TSUndefinedKeyword"}}function ai(){return{type:"TSUnknownKeyword"}}function oi(){return{type:"TSVoidKeyword"}}function li(){return{type:"TSThisType"}}function ui(h=null,d,y=null){const O={type:"TSFunctionType",typeParameters:h,parameters:d,typeAnnotation:y},re=f.TSFunctionType;return o(re.typeParameters,O,"typeParameters",h,1),o(re.parameters,O,"parameters",d,1),o(re.typeAnnotation,O,"typeAnnotation",y,1),O}function ci(h=null,d,y=null){const O={type:"TSConstructorType",typeParameters:h,parameters:d,typeAnnotation:y},re=f.TSConstructorType;return o(re.typeParameters,O,"typeParameters",h,1),o(re.parameters,O,"parameters",d,1),o(re.typeAnnotation,O,"typeAnnotation",y,1),O}function pi(h,d=null){const y={type:"TSTypeReference",typeName:h,typeParameters:d},O=f.TSTypeReference;return o(O.typeName,y,"typeName",h,1),o(O.typeParameters,y,"typeParameters",d,1),y}function fi(h,d=null,y=null){const O={type:"TSTypePredicate",parameterName:h,typeAnnotation:d,asserts:y},re=f.TSTypePredicate;return o(re.parameterName,O,"parameterName",h,1),o(re.typeAnnotation,O,"typeAnnotation",d,1),o(re.asserts,O,"asserts",y),O}function hi(h,d=null){const y={type:"TSTypeQuery",exprName:h,typeParameters:d},O=f.TSTypeQuery;return o(O.exprName,y,"exprName",h,1),o(O.typeParameters,y,"typeParameters",d,1),y}function di(h){const d={type:"TSTypeLiteral",members:h},y=f.TSTypeLiteral;return o(y.members,d,"members",h,1),d}function mi(h){const d={type:"TSArrayType",elementType:h},y=f.TSArrayType;return o(y.elementType,d,"elementType",h,1),d}function yi(h){const d={type:"TSTupleType",elementTypes:h},y=f.TSTupleType;return o(y.elementTypes,d,"elementTypes",h,1),d}function Ti(h){const d={type:"TSOptionalType",typeAnnotation:h},y=f.TSOptionalType;return o(y.typeAnnotation,d,"typeAnnotation",h,1),d}function Si(h){const d={type:"TSRestType",typeAnnotation:h},y=f.TSRestType;return o(y.typeAnnotation,d,"typeAnnotation",h,1),d}function gi(h,d,y=!1){const O={type:"TSNamedTupleMember",label:h,elementType:d,optional:y},re=f.TSNamedTupleMember;return o(re.label,O,"label",h,1),o(re.elementType,O,"elementType",d,1),o(re.optional,O,"optional",y),O}function xi(h){const d={type:"TSUnionType",types:h},y=f.TSUnionType;return o(y.types,d,"types",h,1),d}function bi(h){const d={type:"TSIntersectionType",types:h},y=f.TSIntersectionType;return o(y.types,d,"types",h,1),d}function Ei(h,d,y,O){const re={type:"TSConditionalType",checkType:h,extendsType:d,trueType:y,falseType:O},xe=f.TSConditionalType;return o(xe.checkType,re,"checkType",h,1),o(xe.extendsType,re,"extendsType",d,1),o(xe.trueType,re,"trueType",y,1),o(xe.falseType,re,"falseType",O,1),re}function Pi(h){const d={type:"TSInferType",typeParameter:h},y=f.TSInferType;return o(y.typeParameter,d,"typeParameter",h,1),d}function Ai(h){const d={type:"TSParenthesizedType",typeAnnotation:h},y=f.TSParenthesizedType;return o(y.typeAnnotation,d,"typeAnnotation",h,1),d}function vi(h,d="keyof"){const y={type:"TSTypeOperator",typeAnnotation:h,operator:d},O=f.TSTypeOperator;return o(O.typeAnnotation,y,"typeAnnotation",h,1),o(O.operator,y,"operator",d),y}function Ci(h,d){const y={type:"TSIndexedAccessType",objectType:h,indexType:d},O=f.TSIndexedAccessType;return o(O.objectType,y,"objectType",h,1),o(O.indexType,y,"indexType",d,1),y}function Ii(h,d=null,y=null){const O={type:"TSMappedType",typeParameter:h,typeAnnotation:d,nameType:y},re=f.TSMappedType;return o(re.typeParameter,O,"typeParameter",h,1),o(re.typeAnnotation,O,"typeAnnotation",d,1),o(re.nameType,O,"nameType",y,1),O}function wi(h,d){const y={type:"TSTemplateLiteralType",quasis:h,types:d},O=f.TSTemplateLiteralType;return o(O.quasis,y,"quasis",h,1),o(O.types,y,"types",d,1),y}function Ni(h){const d={type:"TSLiteralType",literal:h},y=f.TSLiteralType;return o(y.literal,d,"literal",h,1),d}function Oi(h,d=null){const y={type:"TSExpressionWithTypeArguments",expression:h,typeParameters:d},O=f.TSExpressionWithTypeArguments;return o(O.expression,y,"expression",h,1),o(O.typeParameters,y,"typeParameters",d,1),y}function _i(h,d=null,y=null,O){const re={type:"TSInterfaceDeclaration",id:h,typeParameters:d,extends:y,body:O},xe=f.TSInterfaceDeclaration;return o(xe.id,re,"id",h,1),o(xe.typeParameters,re,"typeParameters",d,1),o(xe.extends,re,"extends",y,1),o(xe.body,re,"body",O,1),re}function ki(h){const d={type:"TSInterfaceBody",body:h},y=f.TSInterfaceBody;return o(y.body,d,"body",h,1),d}function Fs(h,d=null,y){const O={type:"TSTypeAliasDeclaration",id:h,typeParameters:d,typeAnnotation:y},re=f.TSTypeAliasDeclaration;return o(re.id,O,"id",h,1),o(re.typeParameters,O,"typeParameters",d,1),o(re.typeAnnotation,O,"typeAnnotation",y,1),O}function Rs(h,d=null){const y={type:"TSInstantiationExpression",expression:h,typeParameters:d},O=f.TSInstantiationExpression;return o(O.expression,y,"expression",h,1),o(O.typeParameters,y,"typeParameters",d,1),y}function js(h,d){const y={type:"TSAsExpression",expression:h,typeAnnotation:d},O=f.TSAsExpression;return o(O.expression,y,"expression",h,1),o(O.typeAnnotation,y,"typeAnnotation",d,1),y}function qs(h,d){const y={type:"TSSatisfiesExpression",expression:h,typeAnnotation:d},O=f.TSSatisfiesExpression;return o(O.expression,y,"expression",h,1),o(O.typeAnnotation,y,"typeAnnotation",d,1),y}function Us(h,d){const y={type:"TSTypeAssertion",typeAnnotation:h,expression:d},O=f.TSTypeAssertion;return o(O.typeAnnotation,y,"typeAnnotation",h,1),o(O.expression,y,"expression",d,1),y}function Ks(h){const d={type:"TSEnumBody",members:h},y=f.TSEnumBody;return o(y.members,d,"members",h,1),d}function Vs(h,d){const y={type:"TSEnumDeclaration",id:h,members:d},O=f.TSEnumDeclaration;return o(O.id,y,"id",h,1),o(O.members,y,"members",d,1),y}function Ws(h,d=null){const y={type:"TSEnumMember",id:h,initializer:d},O=f.TSEnumMember;return o(O.id,y,"id",h,1),o(O.initializer,y,"initializer",d,1),y}function Js(h,d){const y={type:"TSModuleDeclaration",id:h,body:d,kind:null},O=f.TSModuleDeclaration;return o(O.id,y,"id",h,1),o(O.body,y,"body",d,1),y}function Xs(h){const d={type:"TSModuleBlock",body:h},y=f.TSModuleBlock;return o(y.body,d,"body",h,1),d}function Ys(h,d=null,y=null){const O={type:"TSImportType",argument:h,qualifier:d,typeParameters:y},re=f.TSImportType;return o(re.argument,O,"argument",h,1),o(re.qualifier,O,"qualifier",d,1),o(re.typeParameters,O,"typeParameters",y,1),O}function Hs(h,d){const y={type:"TSImportEqualsDeclaration",id:h,moduleReference:d,isExport:null},O=f.TSImportEqualsDeclaration;return o(O.id,y,"id",h,1),o(O.moduleReference,y,"moduleReference",d,1),y}function zs(h){const d={type:"TSExternalModuleReference",expression:h},y=f.TSExternalModuleReference;return o(y.expression,d,"expression",h,1),d}function $s(h){const d={type:"TSNonNullExpression",expression:h},y=f.TSNonNullExpression;return o(y.expression,d,"expression",h,1),d}function Gs(h){const d={type:"TSExportAssignment",expression:h},y=f.TSExportAssignment;return o(y.expression,d,"expression",h,1),d}function Qs(h){const d={type:"TSNamespaceExportDeclaration",id:h},y=f.TSNamespaceExportDeclaration;return o(y.id,d,"id",h,1),d}function Zs(h){const d={type:"TSTypeAnnotation",typeAnnotation:h},y=f.TSTypeAnnotation;return o(y.typeAnnotation,d,"typeAnnotation",h,1),d}function en(h){const d={type:"TSTypeParameterInstantiation",params:h},y=f.TSTypeParameterInstantiation;return o(y.params,d,"params",h,1),d}function tn(h){const d={type:"TSTypeParameterDeclaration",params:h},y=f.TSTypeParameterDeclaration;return o(y.params,d,"params",h,1),d}function rn(h=null,d=null,y){const O={type:"TSTypeParameter",constraint:h,default:d,name:y},re=f.TSTypeParameter;return o(re.constraint,O,"constraint",h,1),o(re.default,O,"default",d,1),o(re.name,O,"name",y),O}function sn(h){return(0,l.default)("NumberLiteral","NumericLiteral","The node type "),Ae(h)}function nn(h,d=""){return(0,l.default)("RegexLiteral","RegExpLiteral","The node type "),D(h,d)}function an(h){return(0,l.default)("RestProperty","RestElement","The node type "),Ke(h)}function on(h){return(0,l.default)("SpreadProperty","SpreadElement","The node type "),ce(h)}return K}var A={},Gl;function df(){if(Gl)return A;Gl=1,Object.defineProperty(A,"__esModule",{value:!0}),A.JSXIdentifier=A.JSXFragment=A.JSXExpressionContainer=A.JSXEmptyExpression=A.JSXElement=A.JSXClosingFragment=A.JSXClosingElement=A.JSXAttribute=A.IntersectionTypeAnnotation=A.InterpreterDirective=A.InterfaceTypeAnnotation=A.InterfaceExtends=A.InterfaceDeclaration=A.InferredPredicate=A.IndexedAccessType=A.ImportSpecifier=A.ImportNamespaceSpecifier=A.ImportExpression=A.ImportDefaultSpecifier=A.ImportDeclaration=A.ImportAttribute=A.Import=A.IfStatement=A.Identifier=A.GenericTypeAnnotation=A.FunctionTypeParam=A.FunctionTypeAnnotation=A.FunctionExpression=A.FunctionDeclaration=A.ForStatement=A.ForOfStatement=A.ForInStatement=A.File=A.ExpressionStatement=A.ExportSpecifier=A.ExportNamespaceSpecifier=A.ExportNamedDeclaration=A.ExportDefaultSpecifier=A.ExportDefaultDeclaration=A.ExportAllDeclaration=A.ExistsTypeAnnotation=A.EnumSymbolBody=A.EnumStringMember=A.EnumStringBody=A.EnumNumberMember=A.EnumNumberBody=A.EnumDefaultedMember=A.EnumDeclaration=A.EnumBooleanMember=A.EnumBooleanBody=A.EmptyTypeAnnotation=A.EmptyStatement=A.DoWhileStatement=A.DoExpression=A.DirectiveLiteral=A.Directive=A.Decorator=A.DeclaredPredicate=A.DeclareVariable=A.DeclareTypeAlias=A.DeclareOpaqueType=A.DeclareModuleExports=A.DeclareModule=A.DeclareInterface=A.DeclareFunction=A.DeclareExportDeclaration=A.DeclareExportAllDeclaration=A.DeclareClass=A.DecimalLiteral=A.DebuggerStatement=A.ContinueStatement=A.ConditionalExpression=A.ClassProperty=A.ClassPrivateProperty=A.ClassPrivateMethod=A.ClassMethod=A.ClassImplements=A.ClassExpression=A.ClassDeclaration=A.ClassBody=A.ClassAccessorProperty=A.CatchClause=A.CallExpression=A.BreakStatement=A.BooleanTypeAnnotation=A.BooleanLiteralTypeAnnotation=A.BooleanLiteral=A.BlockStatement=A.BindExpression=A.BinaryExpression=A.BigIntLiteral=A.AwaitExpression=A.AssignmentPattern=A.AssignmentExpression=A.ArrowFunctionExpression=A.ArrayTypeAnnotation=A.ArrayPattern=A.ArrayExpression=A.ArgumentPlaceholder=A.AnyTypeAnnotation=void 0,A.TSNumberKeyword=A.TSNullKeyword=A.TSNonNullExpression=A.TSNeverKeyword=A.TSNamespaceExportDeclaration=A.TSNamedTupleMember=A.TSModuleDeclaration=A.TSModuleBlock=A.TSMethodSignature=A.TSMappedType=A.TSLiteralType=A.TSIntrinsicKeyword=A.TSIntersectionType=A.TSInterfaceDeclaration=A.TSInterfaceBody=A.TSInstantiationExpression=A.TSInferType=A.TSIndexedAccessType=A.TSIndexSignature=A.TSImportType=A.TSImportEqualsDeclaration=A.TSFunctionType=A.TSExternalModuleReference=A.TSExpressionWithTypeArguments=A.TSExportAssignment=A.TSEnumMember=A.TSEnumDeclaration=A.TSEnumBody=A.TSDeclareMethod=A.TSDeclareFunction=A.TSConstructorType=A.TSConstructSignatureDeclaration=A.TSConditionalType=A.TSCallSignatureDeclaration=A.TSBooleanKeyword=A.TSBigIntKeyword=A.TSAsExpression=A.TSArrayType=A.TSAnyKeyword=A.SymbolTypeAnnotation=A.SwitchStatement=A.SwitchCase=A.Super=A.StringTypeAnnotation=A.StringLiteralTypeAnnotation=A.StringLiteral=A.StaticBlock=A.SpreadProperty=A.SpreadElement=A.SequenceExpression=A.ReturnStatement=A.RestProperty=A.RestElement=A.RegexLiteral=A.RegExpLiteral=A.RecordExpression=A.QualifiedTypeIdentifier=A.Program=A.PrivateName=A.Placeholder=A.PipelineTopicExpression=A.PipelinePrimaryTopicReference=A.PipelineBareFunction=A.ParenthesizedExpression=A.OptionalMemberExpression=A.OptionalIndexedAccessType=A.OptionalCallExpression=A.OpaqueType=A.ObjectTypeSpreadProperty=A.ObjectTypeProperty=A.ObjectTypeInternalSlot=A.ObjectTypeIndexer=A.ObjectTypeCallProperty=A.ObjectTypeAnnotation=A.ObjectProperty=A.ObjectPattern=A.ObjectMethod=A.ObjectExpression=A.NumericLiteral=A.NumberTypeAnnotation=A.NumberLiteralTypeAnnotation=A.NumberLiteral=A.NullableTypeAnnotation=A.NullLiteralTypeAnnotation=A.NullLiteral=A.Noop=A.NewExpression=A.ModuleExpression=A.MixedTypeAnnotation=A.MetaProperty=A.MemberExpression=A.LogicalExpression=A.LabeledStatement=A.JSXText=A.JSXSpreadChild=A.JSXSpreadAttribute=A.JSXOpeningFragment=A.JSXOpeningElement=A.JSXNamespacedName=A.JSXMemberExpression=void 0,A.YieldExpression=A.WithStatement=A.WhileStatement=A.VoidTypeAnnotation=A.VoidPattern=A.Variance=A.VariableDeclarator=A.VariableDeclaration=A.V8IntrinsicIdentifier=A.UpdateExpression=A.UnionTypeAnnotation=A.UnaryExpression=A.TypeofTypeAnnotation=A.TypeParameterInstantiation=A.TypeParameterDeclaration=A.TypeParameter=A.TypeCastExpression=A.TypeAnnotation=A.TypeAlias=A.TupleTypeAnnotation=A.TupleExpression=A.TryStatement=A.TopicReference=A.ThrowStatement=A.ThisTypeAnnotation=A.ThisExpression=A.TemplateLiteral=A.TemplateElement=A.TaggedTemplateExpression=A.TSVoidKeyword=A.TSUnknownKeyword=A.TSUnionType=A.TSUndefinedKeyword=A.TSTypeReference=A.TSTypeQuery=A.TSTypePredicate=A.TSTypeParameterInstantiation=A.TSTypeParameterDeclaration=A.TSTypeParameter=A.TSTypeOperator=A.TSTypeLiteral=A.TSTypeAssertion=A.TSTypeAnnotation=A.TSTypeAliasDeclaration=A.TSTupleType=A.TSThisType=A.TSTemplateLiteralType=A.TSSymbolKeyword=A.TSStringKeyword=A.TSSatisfiesExpression=A.TSRestType=A.TSQualifiedName=A.TSPropertySignature=A.TSParenthesizedType=A.TSParameterProperty=A.TSOptionalType=A.TSObjectKeyword=void 0;var s=bp();Nn();function l(u){return s[u]}return A.ArrayExpression=l("arrayExpression"),A.AssignmentExpression=l("assignmentExpression"),A.BinaryExpression=l("binaryExpression"),A.InterpreterDirective=l("interpreterDirective"),A.Directive=l("directive"),A.DirectiveLiteral=l("directiveLiteral"),A.BlockStatement=l("blockStatement"),A.BreakStatement=l("breakStatement"),A.CallExpression=l("callExpression"),A.CatchClause=l("catchClause"),A.ConditionalExpression=l("conditionalExpression"),A.ContinueStatement=l("continueStatement"),A.DebuggerStatement=l("debuggerStatement"),A.DoWhileStatement=l("doWhileStatement"),A.EmptyStatement=l("emptyStatement"),A.ExpressionStatement=l("expressionStatement"),A.File=l("file"),A.ForInStatement=l("forInStatement"),A.ForStatement=l("forStatement"),A.FunctionDeclaration=l("functionDeclaration"),A.FunctionExpression=l("functionExpression"),A.Identifier=l("identifier"),A.IfStatement=l("ifStatement"),A.LabeledStatement=l("labeledStatement"),A.StringLiteral=l("stringLiteral"),A.NumericLiteral=l("numericLiteral"),A.NullLiteral=l("nullLiteral"),A.BooleanLiteral=l("booleanLiteral"),A.RegExpLiteral=l("regExpLiteral"),A.LogicalExpression=l("logicalExpression"),A.MemberExpression=l("memberExpression"),A.NewExpression=l("newExpression"),A.Program=l("program"),A.ObjectExpression=l("objectExpression"),A.ObjectMethod=l("objectMethod"),A.ObjectProperty=l("objectProperty"),A.RestElement=l("restElement"),A.ReturnStatement=l("returnStatement"),A.SequenceExpression=l("sequenceExpression"),A.ParenthesizedExpression=l("parenthesizedExpression"),A.SwitchCase=l("switchCase"),A.SwitchStatement=l("switchStatement"),A.ThisExpression=l("thisExpression"),A.ThrowStatement=l("throwStatement"),A.TryStatement=l("tryStatement"),A.UnaryExpression=l("unaryExpression"),A.UpdateExpression=l("updateExpression"),A.VariableDeclaration=l("variableDeclaration"),A.VariableDeclarator=l("variableDeclarator"),A.WhileStatement=l("whileStatement"),A.WithStatement=l("withStatement"),A.AssignmentPattern=l("assignmentPattern"),A.ArrayPattern=l("arrayPattern"),A.ArrowFunctionExpression=l("arrowFunctionExpression"),A.ClassBody=l("classBody"),A.ClassExpression=l("classExpression"),A.ClassDeclaration=l("classDeclaration"),A.ExportAllDeclaration=l("exportAllDeclaration"),A.ExportDefaultDeclaration=l("exportDefaultDeclaration"),A.ExportNamedDeclaration=l("exportNamedDeclaration"),A.ExportSpecifier=l("exportSpecifier"),A.ForOfStatement=l("forOfStatement"),A.ImportDeclaration=l("importDeclaration"),A.ImportDefaultSpecifier=l("importDefaultSpecifier"),A.ImportNamespaceSpecifier=l("importNamespaceSpecifier"),A.ImportSpecifier=l("importSpecifier"),A.ImportExpression=l("importExpression"),A.MetaProperty=l("metaProperty"),A.ClassMethod=l("classMethod"),A.ObjectPattern=l("objectPattern"),A.SpreadElement=l("spreadElement"),A.Super=l("super"),A.TaggedTemplateExpression=l("taggedTemplateExpression"),A.TemplateElement=l("templateElement"),A.TemplateLiteral=l("templateLiteral"),A.YieldExpression=l("yieldExpression"),A.AwaitExpression=l("awaitExpression"),A.Import=l("import"),A.BigIntLiteral=l("bigIntLiteral"),A.ExportNamespaceSpecifier=l("exportNamespaceSpecifier"),A.OptionalMemberExpression=l("optionalMemberExpression"),A.OptionalCallExpression=l("optionalCallExpression"),A.ClassProperty=l("classProperty"),A.ClassAccessorProperty=l("classAccessorProperty"),A.ClassPrivateProperty=l("classPrivateProperty"),A.ClassPrivateMethod=l("classPrivateMethod"),A.PrivateName=l("privateName"),A.StaticBlock=l("staticBlock"),A.ImportAttribute=l("importAttribute"),A.AnyTypeAnnotation=l("anyTypeAnnotation"),A.ArrayTypeAnnotation=l("arrayTypeAnnotation"),A.BooleanTypeAnnotation=l("booleanTypeAnnotation"),A.BooleanLiteralTypeAnnotation=l("booleanLiteralTypeAnnotation"),A.NullLiteralTypeAnnotation=l("nullLiteralTypeAnnotation"),A.ClassImplements=l("classImplements"),A.DeclareClass=l("declareClass"),A.DeclareFunction=l("declareFunction"),A.DeclareInterface=l("declareInterface"),A.DeclareModule=l("declareModule"),A.DeclareModuleExports=l("declareModuleExports"),A.DeclareTypeAlias=l("declareTypeAlias"),A.DeclareOpaqueType=l("declareOpaqueType"),A.DeclareVariable=l("declareVariable"),A.DeclareExportDeclaration=l("declareExportDeclaration"),A.DeclareExportAllDeclaration=l("declareExportAllDeclaration"),A.DeclaredPredicate=l("declaredPredicate"),A.ExistsTypeAnnotation=l("existsTypeAnnotation"),A.FunctionTypeAnnotation=l("functionTypeAnnotation"),A.FunctionTypeParam=l("functionTypeParam"),A.GenericTypeAnnotation=l("genericTypeAnnotation"),A.InferredPredicate=l("inferredPredicate"),A.InterfaceExtends=l("interfaceExtends"),A.InterfaceDeclaration=l("interfaceDeclaration"),A.InterfaceTypeAnnotation=l("interfaceTypeAnnotation"),A.IntersectionTypeAnnotation=l("intersectionTypeAnnotation"),A.MixedTypeAnnotation=l("mixedTypeAnnotation"),A.EmptyTypeAnnotation=l("emptyTypeAnnotation"),A.NullableTypeAnnotation=l("nullableTypeAnnotation"),A.NumberLiteralTypeAnnotation=l("numberLiteralTypeAnnotation"),A.NumberTypeAnnotation=l("numberTypeAnnotation"),A.ObjectTypeAnnotation=l("objectTypeAnnotation"),A.ObjectTypeInternalSlot=l("objectTypeInternalSlot"),A.ObjectTypeCallProperty=l("objectTypeCallProperty"),A.ObjectTypeIndexer=l("objectTypeIndexer"),A.ObjectTypeProperty=l("objectTypeProperty"),A.ObjectTypeSpreadProperty=l("objectTypeSpreadProperty"),A.OpaqueType=l("opaqueType"),A.QualifiedTypeIdentifier=l("qualifiedTypeIdentifier"),A.StringLiteralTypeAnnotation=l("stringLiteralTypeAnnotation"),A.StringTypeAnnotation=l("stringTypeAnnotation"),A.SymbolTypeAnnotation=l("symbolTypeAnnotation"),A.ThisTypeAnnotation=l("thisTypeAnnotation"),A.TupleTypeAnnotation=l("tupleTypeAnnotation"),A.TypeofTypeAnnotation=l("typeofTypeAnnotation"),A.TypeAlias=l("typeAlias"),A.TypeAnnotation=l("typeAnnotation"),A.TypeCastExpression=l("typeCastExpression"),A.TypeParameter=l("typeParameter"),A.TypeParameterDeclaration=l("typeParameterDeclaration"),A.TypeParameterInstantiation=l("typeParameterInstantiation"),A.UnionTypeAnnotation=l("unionTypeAnnotation"),A.Variance=l("variance"),A.VoidTypeAnnotation=l("voidTypeAnnotation"),A.EnumDeclaration=l("enumDeclaration"),A.EnumBooleanBody=l("enumBooleanBody"),A.EnumNumberBody=l("enumNumberBody"),A.EnumStringBody=l("enumStringBody"),A.EnumSymbolBody=l("enumSymbolBody"),A.EnumBooleanMember=l("enumBooleanMember"),A.EnumNumberMember=l("enumNumberMember"),A.EnumStringMember=l("enumStringMember"),A.EnumDefaultedMember=l("enumDefaultedMember"),A.IndexedAccessType=l("indexedAccessType"),A.OptionalIndexedAccessType=l("optionalIndexedAccessType"),A.JSXAttribute=l("jsxAttribute"),A.JSXClosingElement=l("jsxClosingElement"),A.JSXElement=l("jsxElement"),A.JSXEmptyExpression=l("jsxEmptyExpression"),A.JSXExpressionContainer=l("jsxExpressionContainer"),A.JSXSpreadChild=l("jsxSpreadChild"),A.JSXIdentifier=l("jsxIdentifier"),A.JSXMemberExpression=l("jsxMemberExpression"),A.JSXNamespacedName=l("jsxNamespacedName"),A.JSXOpeningElement=l("jsxOpeningElement"),A.JSXSpreadAttribute=l("jsxSpreadAttribute"),A.JSXText=l("jsxText"),A.JSXFragment=l("jsxFragment"),A.JSXOpeningFragment=l("jsxOpeningFragment"),A.JSXClosingFragment=l("jsxClosingFragment"),A.Noop=l("noop"),A.Placeholder=l("placeholder"),A.V8IntrinsicIdentifier=l("v8IntrinsicIdentifier"),A.ArgumentPlaceholder=l("argumentPlaceholder"),A.BindExpression=l("bindExpression"),A.Decorator=l("decorator"),A.DoExpression=l("doExpression"),A.ExportDefaultSpecifier=l("exportDefaultSpecifier"),A.RecordExpression=l("recordExpression"),A.TupleExpression=l("tupleExpression"),A.DecimalLiteral=l("decimalLiteral"),A.ModuleExpression=l("moduleExpression"),A.TopicReference=l("topicReference"),A.PipelineTopicExpression=l("pipelineTopicExpression"),A.PipelineBareFunction=l("pipelineBareFunction"),A.PipelinePrimaryTopicReference=l("pipelinePrimaryTopicReference"),A.VoidPattern=l("voidPattern"),A.TSParameterProperty=l("tsParameterProperty"),A.TSDeclareFunction=l("tsDeclareFunction"),A.TSDeclareMethod=l("tsDeclareMethod"),A.TSQualifiedName=l("tsQualifiedName"),A.TSCallSignatureDeclaration=l("tsCallSignatureDeclaration"),A.TSConstructSignatureDeclaration=l("tsConstructSignatureDeclaration"),A.TSPropertySignature=l("tsPropertySignature"),A.TSMethodSignature=l("tsMethodSignature"),A.TSIndexSignature=l("tsIndexSignature"),A.TSAnyKeyword=l("tsAnyKeyword"),A.TSBooleanKeyword=l("tsBooleanKeyword"),A.TSBigIntKeyword=l("tsBigIntKeyword"),A.TSIntrinsicKeyword=l("tsIntrinsicKeyword"),A.TSNeverKeyword=l("tsNeverKeyword"),A.TSNullKeyword=l("tsNullKeyword"),A.TSNumberKeyword=l("tsNumberKeyword"),A.TSObjectKeyword=l("tsObjectKeyword"),A.TSStringKeyword=l("tsStringKeyword"),A.TSSymbolKeyword=l("tsSymbolKeyword"),A.TSUndefinedKeyword=l("tsUndefinedKeyword"),A.TSUnknownKeyword=l("tsUnknownKeyword"),A.TSVoidKeyword=l("tsVoidKeyword"),A.TSThisType=l("tsThisType"),A.TSFunctionType=l("tsFunctionType"),A.TSConstructorType=l("tsConstructorType"),A.TSTypeReference=l("tsTypeReference"),A.TSTypePredicate=l("tsTypePredicate"),A.TSTypeQuery=l("tsTypeQuery"),A.TSTypeLiteral=l("tsTypeLiteral"),A.TSArrayType=l("tsArrayType"),A.TSTupleType=l("tsTupleType"),A.TSOptionalType=l("tsOptionalType"),A.TSRestType=l("tsRestType"),A.TSNamedTupleMember=l("tsNamedTupleMember"),A.TSUnionType=l("tsUnionType"),A.TSIntersectionType=l("tsIntersectionType"),A.TSConditionalType=l("tsConditionalType"),A.TSInferType=l("tsInferType"),A.TSParenthesizedType=l("tsParenthesizedType"),A.TSTypeOperator=l("tsTypeOperator"),A.TSIndexedAccessType=l("tsIndexedAccessType"),A.TSMappedType=l("tsMappedType"),A.TSTemplateLiteralType=l("tsTemplateLiteralType"),A.TSLiteralType=l("tsLiteralType"),A.TSExpressionWithTypeArguments=l("tsExpressionWithTypeArguments"),A.TSInterfaceDeclaration=l("tsInterfaceDeclaration"),A.TSInterfaceBody=l("tsInterfaceBody"),A.TSTypeAliasDeclaration=l("tsTypeAliasDeclaration"),A.TSInstantiationExpression=l("tsInstantiationExpression"),A.TSAsExpression=l("tsAsExpression"),A.TSSatisfiesExpression=l("tsSatisfiesExpression"),A.TSTypeAssertion=l("tsTypeAssertion"),A.TSEnumBody=l("tsEnumBody"),A.TSEnumDeclaration=l("tsEnumDeclaration"),A.TSEnumMember=l("tsEnumMember"),A.TSModuleDeclaration=l("tsModuleDeclaration"),A.TSModuleBlock=l("tsModuleBlock"),A.TSImportType=l("tsImportType"),A.TSImportEqualsDeclaration=l("tsImportEqualsDeclaration"),A.TSExternalModuleReference=l("tsExternalModuleReference"),A.TSNonNullExpression=l("tsNonNullExpression"),A.TSExportAssignment=l("tsExportAssignment"),A.TSNamespaceExportDeclaration=l("tsNamespaceExportDeclaration"),A.TSTypeAnnotation=l("tsTypeAnnotation"),A.TSTypeParameterInstantiation=l("tsTypeParameterInstantiation"),A.TSTypeParameterDeclaration=l("tsTypeParameterDeclaration"),A.TSTypeParameter=l("tsTypeParameter"),A.NumberLiteral=s.numberLiteral,A.RegexLiteral=s.regexLiteral,A.RestProperty=s.restProperty,A.SpreadProperty=s.spreadProperty,A}var Ql;function er(){return Ql||(Ql=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0});var l=bp();Object.keys(l).forEach(function(o){o==="default"||o==="__esModule"||o in s&&s[o]===l[o]||Object.defineProperty(s,o,{enumerable:!0,get:function(){return l[o]}})});var u=df();Object.keys(u).forEach(function(o){o==="default"||o==="__esModule"||o in s&&s[o]===u[o]||Object.defineProperty(s,o,{enumerable:!0,get:function(){return u[o]}})})})(Ho)),Ho}var Zl;function mf(){if(Zl)return Vn;Zl=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.default=u;var s=er(),l=at();function u(o,f){const p=o.value.split(/\r\n|\n|\r/);let w=0;for(let E=0;E<p.length;E++)/[^ \t]/.exec(p[E])&&(w=E);let b="";for(let E=0;E<p.length;E++){const C=p[E],x=E===0,N=E===p.length-1,P=E===w;let T=C.replace(/\t/g," ");x||(T=T.replace(/^ +/,"")),N||(T=T.replace(/ +$/,"")),T&&(P||(T+=" "),b+=T)}b&&f.push((0,l.inherits)((0,s.stringLiteral)(b),o))}return Vn}var eu;function yf(){if(eu)return Kn;eu=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.default=u;var s=It(),l=mf();function u(o){const f=[];for(let p=0;p<o.children.length;p++){let w=o.children[p];if((0,s.isJSXText)(w)){(0,l.default)(w,f);continue}(0,s.isJSXExpressionContainer)(w)&&(w=w.expression),!(0,s.isJSXEmptyExpression)(w)&&f.push(w)}return f}return Kn}var Hn={},zn={},tu;function Ep(){if(tu)return zn;tu=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=l;var s=fr();function l(u){return!!(u&&s.VISITOR_KEYS[u.type])}return zn}var ru;function Tf(){if(ru)return Hn;ru=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=l;var s=Ep();function l(u){if(!(0,s.default)(u)){var o;const f=(o=u?.type)!=null?o:JSON.stringify(u);throw new TypeError(`Not a valid node of type "${f}"`)}}return Hn}var z={},iu;function Sf(){if(iu)return z;iu=1,Object.defineProperty(z,"__esModule",{value:!0}),z.assertAccessor=vo,z.assertAnyTypeAnnotation=Je,z.assertArgumentPlaceholder=Ts,z.assertArrayExpression=o,z.assertArrayPattern=ke,z.assertArrayTypeAnnotation=nr,z.assertArrowFunctionExpression=Le,z.assertAssignmentExpression=f,z.assertAssignmentPattern=Oe,z.assertAwaitExpression=Ge,z.assertBigIntLiteral=rt,z.assertBinary=sn,z.assertBinaryExpression=p,z.assertBindExpression=Dr,z.assertBlock=on,z.assertBlockParent=an,z.assertBlockStatement=C,z.assertBooleanLiteral=Se,z.assertBooleanLiteralTypeAnnotation=Ar,z.assertBooleanTypeAnnotation=ar,z.assertBreakStatement=x,z.assertCallExpression=N,z.assertCatchClause=P,z.assertClass=Ln,z.assertClassAccessorProperty=wt,z.assertClassBody=Ve,z.assertClassDeclaration=et,z.assertClassExpression=Qe,z.assertClassImplements=or,z.assertClassMethod=st,z.assertClassPrivateMethod=Ot,z.assertClassPrivateProperty=Nt,z.assertClassProperty=At,z.assertCompletionStatement=y,z.assertConditional=O,z.assertConditionalExpression=T,z.assertContinueStatement=F,z.assertDebuggerStatement=V,z.assertDecimalLiteral=Es,z.assertDeclaration=lo,z.assertDeclareClass=Ft,z.assertDeclareExportAllDeclaration=Yt,z.assertDeclareExportDeclaration=Bi,z.assertDeclareFunction=tr,z.assertDeclareInterface=mr,z.assertDeclareModule=Xt,z.assertDeclareModuleExports=Rt,z.assertDeclareOpaqueType=vr,z.assertDeclareTypeAlias=jr,z.assertDeclareVariable=Cr,z.assertDeclaredPredicate=Ut,z.assertDecorator=Ss,z.assertDirective=b,z.assertDirectiveLiteral=E,z.assertDoExpression=gs,z.assertDoWhileStatement=k,z.assertEmptyStatement=S,z.assertEmptyTypeAnnotation=Kt,z.assertEnumBody=ko,z.assertEnumBooleanBody=Nr,z.assertEnumBooleanMember=_r,z.assertEnumDeclaration=xr,z.assertEnumDefaultedMember=Xe,z.assertEnumMember=Do,z.assertEnumNumberBody=rs,z.assertEnumNumberMember=ss,z.assertEnumStringBody=Or,z.assertEnumStringMember=Yr,z.assertEnumSymbolBody=is,z.assertExistsTypeAnnotation=rr,z.assertExportAllDeclaration=ht,z.assertExportDeclaration=Po,z.assertExportDefaultDeclaration=Te,z.assertExportDefaultSpecifier=ti,z.assertExportNamedDeclaration=Ue,z.assertExportNamespaceSpecifier=dt,z.assertExportSpecifier=Be,z.assertExpression=rn,z.assertExpressionStatement=G,z.assertExpressionWrapper=ze,z.assertFile=X,z.assertFlow=Io,z.assertFlowBaseAnnotation=No,z.assertFlowDeclaration=Oo,z.assertFlowPredicate=_o,z.assertFlowType=wo,z.assertFor=xt,z.assertForInStatement=W,z.assertForOfStatement=pe,z.assertForStatement=ee,z.assertForXStatement=vt,z.assertFunction=ir,z.assertFunctionDeclaration=M,z.assertFunctionExpression=I,z.assertFunctionParameter=uo,z.assertFunctionParent=ao,z.assertFunctionTypeAnnotation=Fi,z.assertFunctionTypeParam=Ri,z.assertGenericTypeAnnotation=ji,z.assertIdentifier=U,z.assertIfStatement=B,z.assertImmutable=mo,z.assertImport=ut,z.assertImportAttribute=sr,z.assertImportDeclaration=j,z.assertImportDefaultSpecifier=te,z.assertImportExpression=Re,z.assertImportNamespaceSpecifier=ye,z.assertImportOrExportDeclaration=Eo,z.assertImportSpecifier=Ie,z.assertIndexedAccessType=ns,z.assertInferredPredicate=qi,z.assertInterfaceDeclaration=Ui,z.assertInterfaceExtends=yr,z.assertInterfaceTypeAnnotation=qr,z.assertInterpreterDirective=w,z.assertIntersectionTypeAnnotation=Ki,z.assertJSX=Lo,z.assertJSXAttribute=as,z.assertJSXClosingElement=os,z.assertJSXClosingFragment=ds,z.assertJSXElement=ls,z.assertJSXEmptyExpression=us,z.assertJSXExpressionContainer=zr,z.assertJSXFragment=hs,z.assertJSXIdentifier=$r,z.assertJSXMemberExpression=Gr,z.assertJSXNamespacedName=ps,z.assertJSXOpeningElement=fs,z.assertJSXOpeningFragment=ei,z.assertJSXSpreadAttribute=Qr,z.assertJSXSpreadChild=cs,z.assertJSXText=Zr,z.assertLVal=po,z.assertLabeledStatement=R,z.assertLiteral=ho,z.assertLogicalExpression=ne,z.assertLoop=re,z.assertMemberExpression=Z,z.assertMetaProperty=Ee,z.assertMethod=To,z.assertMiscellaneous=Mo,z.assertMixedTypeAnnotation=lr,z.assertModuleDeclaration=a,z.assertModuleExpression=Ps,z.assertModuleSpecifier=Ao,z.assertNewExpression=D,z.assertNoop=ms,z.assertNullLiteral=ge,z.assertNullLiteralTypeAnnotation=dr,z.assertNullableTypeAnnotation=Vi,z.assertNumberLiteral=qo,z.assertNumberLiteralTypeAnnotation=Ir,z.assertNumberTypeAnnotation=Wi,z.assertNumericLiteral=ae,z.assertObjectExpression=ie,z.assertObjectMember=So,z.assertObjectMethod=Q,z.assertObjectPattern=ot,z.assertObjectProperty=fe,z.assertObjectTypeAnnotation=Ur,z.assertObjectTypeCallProperty=Kr,z.assertObjectTypeIndexer=Ji,z.assertObjectTypeInternalSlot=Tr,z.assertObjectTypeProperty=Xi,z.assertObjectTypeSpreadProperty=wr,z.assertOpaqueType=Vr,z.assertOptionalCallExpression=gt,z.assertOptionalIndexedAccessType=Hr,z.assertOptionalMemberExpression=yt,z.assertParenthesizedExpression=Ke,z.assertPattern=bo,z.assertPatternLike=co,z.assertPipelineBareFunction=As,z.assertPipelinePrimaryTopicReference=g,z.assertPipelineTopicExpression=ri,z.assertPlaceholder=kr,z.assertPrivate=Co,z.assertPrivateName=Lt,z.assertProgram=J,z.assertProperty=go,z.assertPureish=oo,z.assertQualifiedTypeIdentifier=Wr,z.assertRecordExpression=xs,z.assertRegExpLiteral=Ae,z.assertRegexLiteral=Uo,z.assertRestElement=ue,z.assertRestProperty=Ko,z.assertReturnStatement=Pe,z.assertScopable=nn,z.assertSequenceExpression=_e,z.assertSpreadElement=he,z.assertSpreadProperty=Vo,z.assertStandardized=tn,z.assertStatement=h,z.assertStaticBlock=qt,z.assertStringLiteral=$,z.assertStringLiteralTypeAnnotation=ur,z.assertStringTypeAnnotation=Yi,z.assertSuper=q,z.assertSwitchCase=ve,z.assertSwitchStatement=Ce,z.assertSymbolTypeAnnotation=Vt,z.assertTSAnyKeyword=be,z.assertTSArrayType=hi,z.assertTSAsExpression=Fs,z.assertTSBaseType=jo,z.assertTSBigIntKeyword=je,z.assertTSBooleanKeyword=Fe,z.assertTSCallSignatureDeclaration=v,z.assertTSConditionalType=xi,z.assertTSConstructSignatureDeclaration=L,z.assertTSConstructorType=li,z.assertTSDeclareFunction=r,z.assertTSDeclareMethod=n,z.assertTSEntityName=fo,z.assertTSEnumBody=qs,z.assertTSEnumDeclaration=Us,z.assertTSEnumMember=Ks,z.assertTSExportAssignment=zs,z.assertTSExpressionWithTypeArguments=wi,z.assertTSExternalModuleReference=Ys,z.assertTSFunctionType=oi,z.assertTSImportEqualsDeclaration=Xs,z.assertTSImportType=Js,z.assertTSIndexSignature=oe,z.assertTSIndexedAccessType=Ai,z.assertTSInferType=bi,z.assertTSInstantiationExpression=ki,z.assertTSInterfaceBody=Oi,z.assertTSInterfaceDeclaration=Ni,z.assertTSIntersectionType=gi,z.assertTSIntrinsicKeyword=Ye,z.assertTSLiteralType=Ii,z.assertTSMappedType=vi,z.assertTSMethodSignature=se,z.assertTSModuleBlock=Ws,z.assertTSModuleDeclaration=Vs,z.assertTSNamedTupleMember=Ti,z.assertTSNamespaceExportDeclaration=$s,z.assertTSNeverKeyword=ct,z.assertTSNonNullExpression=Hs,z.assertTSNullKeyword=Tt,z.assertTSNumberKeyword=tt,z.assertTSObjectKeyword=mt,z.assertTSOptionalType=mi,z.assertTSParameterProperty=e,z.assertTSParenthesizedType=Ei,z.assertTSPropertySignature=Y,z.assertTSQualifiedName=c,z.assertTSRestType=yi,z.assertTSSatisfiesExpression=Rs,z.assertTSStringKeyword=Ht,z.assertTSSymbolKeyword=Wt,z.assertTSTemplateLiteralType=Ci,z.assertTSThisType=ai,z.assertTSTupleType=di,z.assertTSType=Ro,z.assertTSTypeAliasDeclaration=_i,z.assertTSTypeAnnotation=Gs,z.assertTSTypeAssertion=js,z.assertTSTypeElement=Fo,z.assertTSTypeLiteral=fi,z.assertTSTypeOperator=Pi,z.assertTSTypeParameter=en,z.assertTSTypeParameterDeclaration=Zs,z.assertTSTypeParameterInstantiation=Qs,z.assertTSTypePredicate=ci,z.assertTSTypeQuery=pi,z.assertTSTypeReference=ui,z.assertTSUndefinedKeyword=ii,z.assertTSUnionType=Si,z.assertTSUnknownKeyword=si,z.assertTSVoidKeyword=ni,z.assertTaggedTemplateExpression=_,z.assertTemplateElement=ce,z.assertTemplateLiteral=Ne,z.assertTerminatorless=d,z.assertThisExpression=me,z.assertThisTypeAnnotation=Hi,z.assertThrowStatement=le,z.assertTopicReference=cr,z.assertTryStatement=de,z.assertTupleExpression=bs,z.assertTupleTypeAnnotation=zi,z.assertTypeAlias=Sr,z.assertTypeAnnotation=Jr,z.assertTypeCastExpression=Gi,z.assertTypeParameter=Qi,z.assertTypeParameterDeclaration=Zi,z.assertTypeParameterInstantiation=es,z.assertTypeScript=Bo,z.assertTypeofTypeAnnotation=$i,z.assertUnaryExpression=qe,z.assertUnaryLike=xo,z.assertUnionTypeAnnotation=Xr,z.assertUpdateExpression=$e,z.assertUserWhitespacable=yo,z.assertV8IntrinsicIdentifier=ys,z.assertVariableDeclaration=Ze,z.assertVariableDeclarator=it,z.assertVariance=ts,z.assertVoidPattern=t,z.assertVoidTypeAnnotation=gr,z.assertWhile=xe,z.assertWhileStatement=He,z.assertWithStatement=we,z.assertYieldExpression=Me;var s=On(),l=Nn();function u(i,m,pl){if(!(0,s.default)(i,m,pl))throw new Error(`Expected type "${i}" with option ${JSON.stringify(pl)}, but instead got "${m.type}".`)}function o(i,m){u("ArrayExpression",i,m)}function f(i,m){u("AssignmentExpression",i,m)}function p(i,m){u("BinaryExpression",i,m)}function w(i,m){u("InterpreterDirective",i,m)}function b(i,m){u("Directive",i,m)}function E(i,m){u("DirectiveLiteral",i,m)}function C(i,m){u("BlockStatement",i,m)}function x(i,m){u("BreakStatement",i,m)}function N(i,m){u("CallExpression",i,m)}function P(i,m){u("CatchClause",i,m)}function T(i,m){u("ConditionalExpression",i,m)}function F(i,m){u("ContinueStatement",i,m)}function V(i,m){u("DebuggerStatement",i,m)}function k(i,m){u("DoWhileStatement",i,m)}function S(i,m){u("EmptyStatement",i,m)}function G(i,m){u("ExpressionStatement",i,m)}function X(i,m){u("File",i,m)}function W(i,m){u("ForInStatement",i,m)}function ee(i,m){u("ForStatement",i,m)}function M(i,m){u("FunctionDeclaration",i,m)}function I(i,m){u("FunctionExpression",i,m)}function U(i,m){u("Identifier",i,m)}function B(i,m){u("IfStatement",i,m)}function R(i,m){u("LabeledStatement",i,m)}function $(i,m){u("StringLiteral",i,m)}function ae(i,m){u("NumericLiteral",i,m)}function ge(i,m){u("NullLiteral",i,m)}function Se(i,m){u("BooleanLiteral",i,m)}function Ae(i,m){u("RegExpLiteral",i,m)}function ne(i,m){u("LogicalExpression",i,m)}function Z(i,m){u("MemberExpression",i,m)}function D(i,m){u("NewExpression",i,m)}function J(i,m){u("Program",i,m)}function ie(i,m){u("ObjectExpression",i,m)}function Q(i,m){u("ObjectMethod",i,m)}function fe(i,m){u("ObjectProperty",i,m)}function ue(i,m){u("RestElement",i,m)}function Pe(i,m){u("ReturnStatement",i,m)}function _e(i,m){u("SequenceExpression",i,m)}function Ke(i,m){u("ParenthesizedExpression",i,m)}function ve(i,m){u("SwitchCase",i,m)}function Ce(i,m){u("SwitchStatement",i,m)}function me(i,m){u("ThisExpression",i,m)}function le(i,m){u("ThrowStatement",i,m)}function de(i,m){u("TryStatement",i,m)}function qe(i,m){u("UnaryExpression",i,m)}function $e(i,m){u("UpdateExpression",i,m)}function Ze(i,m){u("VariableDeclaration",i,m)}function it(i,m){u("VariableDeclarator",i,m)}function He(i,m){u("WhileStatement",i,m)}function we(i,m){u("WithStatement",i,m)}function Oe(i,m){u("AssignmentPattern",i,m)}function ke(i,m){u("ArrayPattern",i,m)}function Le(i,m){u("ArrowFunctionExpression",i,m)}function Ve(i,m){u("ClassBody",i,m)}function Qe(i,m){u("ClassExpression",i,m)}function et(i,m){u("ClassDeclaration",i,m)}function ht(i,m){u("ExportAllDeclaration",i,m)}function Te(i,m){u("ExportDefaultDeclaration",i,m)}function Ue(i,m){u("ExportNamedDeclaration",i,m)}function Be(i,m){u("ExportSpecifier",i,m)}function pe(i,m){u("ForOfStatement",i,m)}function j(i,m){u("ImportDeclaration",i,m)}function te(i,m){u("ImportDefaultSpecifier",i,m)}function ye(i,m){u("ImportNamespaceSpecifier",i,m)}function Ie(i,m){u("ImportSpecifier",i,m)}function Re(i,m){u("ImportExpression",i,m)}function Ee(i,m){u("MetaProperty",i,m)}function st(i,m){u("ClassMethod",i,m)}function ot(i,m){u("ObjectPattern",i,m)}function he(i,m){u("SpreadElement",i,m)}function q(i,m){u("Super",i,m)}function _(i,m){u("TaggedTemplateExpression",i,m)}function ce(i,m){u("TemplateElement",i,m)}function Ne(i,m){u("TemplateLiteral",i,m)}function Me(i,m){u("YieldExpression",i,m)}function Ge(i,m){u("AwaitExpression",i,m)}function ut(i,m){u("Import",i,m)}function rt(i,m){u("BigIntLiteral",i,m)}function dt(i,m){u("ExportNamespaceSpecifier",i,m)}function yt(i,m){u("OptionalMemberExpression",i,m)}function gt(i,m){u("OptionalCallExpression",i,m)}function At(i,m){u("ClassProperty",i,m)}function wt(i,m){u("ClassAccessorProperty",i,m)}function Nt(i,m){u("ClassPrivateProperty",i,m)}function Ot(i,m){u("ClassPrivateMethod",i,m)}function Lt(i,m){u("PrivateName",i,m)}function qt(i,m){u("StaticBlock",i,m)}function sr(i,m){u("ImportAttribute",i,m)}function Je(i,m){u("AnyTypeAnnotation",i,m)}function nr(i,m){u("ArrayTypeAnnotation",i,m)}function ar(i,m){u("BooleanTypeAnnotation",i,m)}function Ar(i,m){u("BooleanLiteralTypeAnnotation",i,m)}function dr(i,m){u("NullLiteralTypeAnnotation",i,m)}function or(i,m){u("ClassImplements",i,m)}function Ft(i,m){u("DeclareClass",i,m)}function tr(i,m){u("DeclareFunction",i,m)}function mr(i,m){u("DeclareInterface",i,m)}function Xt(i,m){u("DeclareModule",i,m)}function Rt(i,m){u("DeclareModuleExports",i,m)}function jr(i,m){u("DeclareTypeAlias",i,m)}function vr(i,m){u("DeclareOpaqueType",i,m)}function Cr(i,m){u("DeclareVariable",i,m)}function Bi(i,m){u("DeclareExportDeclaration",i,m)}function Yt(i,m){u("DeclareExportAllDeclaration",i,m)}function Ut(i,m){u("DeclaredPredicate",i,m)}function rr(i,m){u("ExistsTypeAnnotation",i,m)}function Fi(i,m){u("FunctionTypeAnnotation",i,m)}function Ri(i,m){u("FunctionTypeParam",i,m)}function ji(i,m){u("GenericTypeAnnotation",i,m)}function qi(i,m){u("InferredPredicate",i,m)}function yr(i,m){u("InterfaceExtends",i,m)}function Ui(i,m){u("InterfaceDeclaration",i,m)}function qr(i,m){u("InterfaceTypeAnnotation",i,m)}function Ki(i,m){u("IntersectionTypeAnnotation",i,m)}function lr(i,m){u("MixedTypeAnnotation",i,m)}function Kt(i,m){u("EmptyTypeAnnotation",i,m)}function Vi(i,m){u("NullableTypeAnnotation",i,m)}function Ir(i,m){u("NumberLiteralTypeAnnotation",i,m)}function Wi(i,m){u("NumberTypeAnnotation",i,m)}function Ur(i,m){u("ObjectTypeAnnotation",i,m)}function Tr(i,m){u("ObjectTypeInternalSlot",i,m)}function Kr(i,m){u("ObjectTypeCallProperty",i,m)}function Ji(i,m){u("ObjectTypeIndexer",i,m)}function Xi(i,m){u("ObjectTypeProperty",i,m)}function wr(i,m){u("ObjectTypeSpreadProperty",i,m)}function Vr(i,m){u("OpaqueType",i,m)}function Wr(i,m){u("QualifiedTypeIdentifier",i,m)}function ur(i,m){u("StringLiteralTypeAnnotation",i,m)}function Yi(i,m){u("StringTypeAnnotation",i,m)}function Vt(i,m){u("SymbolTypeAnnotation",i,m)}function Hi(i,m){u("ThisTypeAnnotation",i,m)}function zi(i,m){u("TupleTypeAnnotation",i,m)}function $i(i,m){u("TypeofTypeAnnotation",i,m)}function Sr(i,m){u("TypeAlias",i,m)}function Jr(i,m){u("TypeAnnotation",i,m)}function Gi(i,m){u("TypeCastExpression",i,m)}function Qi(i,m){u("TypeParameter",i,m)}function Zi(i,m){u("TypeParameterDeclaration",i,m)}function es(i,m){u("TypeParameterInstantiation",i,m)}function Xr(i,m){u("UnionTypeAnnotation",i,m)}function ts(i,m){u("Variance",i,m)}function gr(i,m){u("VoidTypeAnnotation",i,m)}function xr(i,m){u("EnumDeclaration",i,m)}function Nr(i,m){u("EnumBooleanBody",i,m)}function rs(i,m){u("EnumNumberBody",i,m)}function Or(i,m){u("EnumStringBody",i,m)}function is(i,m){u("EnumSymbolBody",i,m)}function _r(i,m){u("EnumBooleanMember",i,m)}function ss(i,m){u("EnumNumberMember",i,m)}function Yr(i,m){u("EnumStringMember",i,m)}function Xe(i,m){u("EnumDefaultedMember",i,m)}function ns(i,m){u("IndexedAccessType",i,m)}function Hr(i,m){u("OptionalIndexedAccessType",i,m)}function as(i,m){u("JSXAttribute",i,m)}function os(i,m){u("JSXClosingElement",i,m)}function ls(i,m){u("JSXElement",i,m)}function us(i,m){u("JSXEmptyExpression",i,m)}function zr(i,m){u("JSXExpressionContainer",i,m)}function cs(i,m){u("JSXSpreadChild",i,m)}function $r(i,m){u("JSXIdentifier",i,m)}function Gr(i,m){u("JSXMemberExpression",i,m)}function ps(i,m){u("JSXNamespacedName",i,m)}function fs(i,m){u("JSXOpeningElement",i,m)}function Qr(i,m){u("JSXSpreadAttribute",i,m)}function Zr(i,m){u("JSXText",i,m)}function hs(i,m){u("JSXFragment",i,m)}function ei(i,m){u("JSXOpeningFragment",i,m)}function ds(i,m){u("JSXClosingFragment",i,m)}function ms(i,m){u("Noop",i,m)}function kr(i,m){u("Placeholder",i,m)}function ys(i,m){u("V8IntrinsicIdentifier",i,m)}function Ts(i,m){u("ArgumentPlaceholder",i,m)}function Dr(i,m){u("BindExpression",i,m)}function Ss(i,m){u("Decorator",i,m)}function gs(i,m){u("DoExpression",i,m)}function ti(i,m){u("ExportDefaultSpecifier",i,m)}function xs(i,m){u("RecordExpression",i,m)}function bs(i,m){u("TupleExpression",i,m)}function Es(i,m){u("DecimalLiteral",i,m)}function Ps(i,m){u("ModuleExpression",i,m)}function cr(i,m){u("TopicReference",i,m)}function ri(i,m){u("PipelineTopicExpression",i,m)}function As(i,m){u("PipelineBareFunction",i,m)}function g(i,m){u("PipelinePrimaryTopicReference",i,m)}function t(i,m){u("VoidPattern",i,m)}function e(i,m){u("TSParameterProperty",i,m)}function r(i,m){u("TSDeclareFunction",i,m)}function n(i,m){u("TSDeclareMethod",i,m)}function c(i,m){u("TSQualifiedName",i,m)}function v(i,m){u("TSCallSignatureDeclaration",i,m)}function L(i,m){u("TSConstructSignatureDeclaration",i,m)}function Y(i,m){u("TSPropertySignature",i,m)}function se(i,m){u("TSMethodSignature",i,m)}function oe(i,m){u("TSIndexSignature",i,m)}function be(i,m){u("TSAnyKeyword",i,m)}function Fe(i,m){u("TSBooleanKeyword",i,m)}function je(i,m){u("TSBigIntKeyword",i,m)}function Ye(i,m){u("TSIntrinsicKeyword",i,m)}function ct(i,m){u("TSNeverKeyword",i,m)}function Tt(i,m){u("TSNullKeyword",i,m)}function tt(i,m){u("TSNumberKeyword",i,m)}function mt(i,m){u("TSObjectKeyword",i,m)}function Ht(i,m){u("TSStringKeyword",i,m)}function Wt(i,m){u("TSSymbolKeyword",i,m)}function ii(i,m){u("TSUndefinedKeyword",i,m)}function si(i,m){u("TSUnknownKeyword",i,m)}function ni(i,m){u("TSVoidKeyword",i,m)}function ai(i,m){u("TSThisType",i,m)}function oi(i,m){u("TSFunctionType",i,m)}function li(i,m){u("TSConstructorType",i,m)}function ui(i,m){u("TSTypeReference",i,m)}function ci(i,m){u("TSTypePredicate",i,m)}function pi(i,m){u("TSTypeQuery",i,m)}function fi(i,m){u("TSTypeLiteral",i,m)}function hi(i,m){u("TSArrayType",i,m)}function di(i,m){u("TSTupleType",i,m)}function mi(i,m){u("TSOptionalType",i,m)}function yi(i,m){u("TSRestType",i,m)}function Ti(i,m){u("TSNamedTupleMember",i,m)}function Si(i,m){u("TSUnionType",i,m)}function gi(i,m){u("TSIntersectionType",i,m)}function xi(i,m){u("TSConditionalType",i,m)}function bi(i,m){u("TSInferType",i,m)}function Ei(i,m){u("TSParenthesizedType",i,m)}function Pi(i,m){u("TSTypeOperator",i,m)}function Ai(i,m){u("TSIndexedAccessType",i,m)}function vi(i,m){u("TSMappedType",i,m)}function Ci(i,m){u("TSTemplateLiteralType",i,m)}function Ii(i,m){u("TSLiteralType",i,m)}function wi(i,m){u("TSExpressionWithTypeArguments",i,m)}function Ni(i,m){u("TSInterfaceDeclaration",i,m)}function Oi(i,m){u("TSInterfaceBody",i,m)}function _i(i,m){u("TSTypeAliasDeclaration",i,m)}function ki(i,m){u("TSInstantiationExpression",i,m)}function Fs(i,m){u("TSAsExpression",i,m)}function Rs(i,m){u("TSSatisfiesExpression",i,m)}function js(i,m){u("TSTypeAssertion",i,m)}function qs(i,m){u("TSEnumBody",i,m)}function Us(i,m){u("TSEnumDeclaration",i,m)}function Ks(i,m){u("TSEnumMember",i,m)}function Vs(i,m){u("TSModuleDeclaration",i,m)}function Ws(i,m){u("TSModuleBlock",i,m)}function Js(i,m){u("TSImportType",i,m)}function Xs(i,m){u("TSImportEqualsDeclaration",i,m)}function Ys(i,m){u("TSExternalModuleReference",i,m)}function Hs(i,m){u("TSNonNullExpression",i,m)}function zs(i,m){u("TSExportAssignment",i,m)}function $s(i,m){u("TSNamespaceExportDeclaration",i,m)}function Gs(i,m){u("TSTypeAnnotation",i,m)}function Qs(i,m){u("TSTypeParameterInstantiation",i,m)}function Zs(i,m){u("TSTypeParameterDeclaration",i,m)}function en(i,m){u("TSTypeParameter",i,m)}function tn(i,m){u("Standardized",i,m)}function rn(i,m){u("Expression",i,m)}function sn(i,m){u("Binary",i,m)}function nn(i,m){u("Scopable",i,m)}function an(i,m){u("BlockParent",i,m)}function on(i,m){u("Block",i,m)}function h(i,m){u("Statement",i,m)}function d(i,m){u("Terminatorless",i,m)}function y(i,m){u("CompletionStatement",i,m)}function O(i,m){u("Conditional",i,m)}function re(i,m){u("Loop",i,m)}function xe(i,m){u("While",i,m)}function ze(i,m){u("ExpressionWrapper",i,m)}function xt(i,m){u("For",i,m)}function vt(i,m){u("ForXStatement",i,m)}function ir(i,m){u("Function",i,m)}function ao(i,m){u("FunctionParent",i,m)}function oo(i,m){u("Pureish",i,m)}function lo(i,m){u("Declaration",i,m)}function uo(i,m){u("FunctionParameter",i,m)}function co(i,m){u("PatternLike",i,m)}function po(i,m){u("LVal",i,m)}function fo(i,m){u("TSEntityName",i,m)}function ho(i,m){u("Literal",i,m)}function mo(i,m){u("Immutable",i,m)}function yo(i,m){u("UserWhitespacable",i,m)}function To(i,m){u("Method",i,m)}function So(i,m){u("ObjectMember",i,m)}function go(i,m){u("Property",i,m)}function xo(i,m){u("UnaryLike",i,m)}function bo(i,m){u("Pattern",i,m)}function Ln(i,m){u("Class",i,m)}function Eo(i,m){u("ImportOrExportDeclaration",i,m)}function Po(i,m){u("ExportDeclaration",i,m)}function Ao(i,m){u("ModuleSpecifier",i,m)}function vo(i,m){u("Accessor",i,m)}function Co(i,m){u("Private",i,m)}function Io(i,m){u("Flow",i,m)}function wo(i,m){u("FlowType",i,m)}function No(i,m){u("FlowBaseAnnotation",i,m)}function Oo(i,m){u("FlowDeclaration",i,m)}function _o(i,m){u("FlowPredicate",i,m)}function ko(i,m){u("EnumBody",i,m)}function Do(i,m){u("EnumMember",i,m)}function Lo(i,m){u("JSX",i,m)}function Mo(i,m){u("Miscellaneous",i,m)}function Bo(i,m){u("TypeScript",i,m)}function Fo(i,m){u("TSTypeElement",i,m)}function Ro(i,m){u("TSType",i,m)}function jo(i,m){u("TSBaseType",i,m)}function qo(i,m){(0,l.default)("assertNumberLiteral","assertNumericLiteral"),u("NumberLiteral",i,m)}function Uo(i,m){(0,l.default)("assertRegexLiteral","assertRegExpLiteral"),u("RegexLiteral",i,m)}function Ko(i,m){(0,l.default)("assertRestProperty","assertRestElement"),u("RestProperty",i,m)}function Vo(i,m){(0,l.default)("assertSpreadProperty","assertSpreadElement"),u("SpreadProperty",i,m)}function a(i,m){(0,l.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),u("ModuleDeclaration",i,m)}return z}var hn={},su;function gf(){if(su)return hn;su=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=void 0;var s=er();hn.default=l;function l(u){switch(u){case"string":return(0,s.stringTypeAnnotation)();case"number":return(0,s.numberTypeAnnotation)();case"undefined":return(0,s.voidTypeAnnotation)();case"boolean":return(0,s.booleanTypeAnnotation)();case"function":return(0,s.genericTypeAnnotation)((0,s.identifier)("Function"));case"object":return(0,s.genericTypeAnnotation)((0,s.identifier)("Object"));case"symbol":return(0,s.genericTypeAnnotation)((0,s.identifier)("Symbol"));case"bigint":return(0,s.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+u)}return hn}var $n={},Gn={},nu;function Pp(){if(nu)return Gn;nu=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.default=u;var s=It();function l(o){return(0,s.isIdentifier)(o)?o.name:`${o.id.name}.${l(o.qualification)}`}function u(o){const f=Array.from(o),p=new Map,w=new Map,b=new Set,E=[];for(let C=0;C<f.length;C++){const x=f[C];if(x&&!E.includes(x)){if((0,s.isAnyTypeAnnotation)(x))return[x];if((0,s.isFlowBaseAnnotation)(x)){w.set(x.type,x);continue}if((0,s.isUnionTypeAnnotation)(x)){b.has(x.types)||(f.push(...x.types),b.add(x.types));continue}if((0,s.isGenericTypeAnnotation)(x)){const N=l(x.id);if(p.has(N)){let P=p.get(N);P.typeParameters?x.typeParameters&&(P.typeParameters.params.push(...x.typeParameters.params),P.typeParameters.params=u(P.typeParameters.params)):P=x.typeParameters}else p.set(N,x);continue}E.push(x)}}for(const[,C]of w)E.push(C);for(const[,C]of p)E.push(C);return E}return Gn}var au;function xf(){if(au)return $n;au=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.default=u;var s=er(),l=Pp();function u(o){const f=(0,l.default)(o);return f.length===1?f[0]:(0,s.unionTypeAnnotation)(f)}return $n}var Qn={},Zn={},ou;function bf(){if(ou)return Zn;ou=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.default=u;var s=It();function l(o){return(0,s.isIdentifier)(o)?o.name:(0,s.isThisExpression)(o)?"this":`${o.right.name}.${l(o.left)}`}function u(o){const f=Array.from(o),p=new Map,w=new Map,b=new Set,E=[];for(let C=0;C<f.length;C++){const x=f[C];if(!x||E.includes(x))continue;if((0,s.isTSAnyKeyword)(x))return[x];if((0,s.isTSBaseType)(x)){w.set(x.type,x);continue}if((0,s.isTSUnionType)(x)){b.has(x.types)||(f.push(...x.types),b.add(x.types));continue}const N="typeParameters";if((0,s.isTSTypeReference)(x)&&x[N]){const P=x[N],T=l(x.typeName);if(p.has(T)){let F=p.get(T);const V=F[N];V?(V.params.push(...P.params),V.params=u(V.params)):F=P}else p.set(T,x);continue}E.push(x)}for(const[,C]of w)E.push(C);for(const[,C]of p)E.push(C);return E}return Zn}var lu;function Ef(){if(lu)return Qn;lu=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.default=o;var s=er(),l=bf(),u=It();function o(f){const p=f.map(b=>(0,u.isTSTypeAnnotation)(b)?b.typeAnnotation:b),w=(0,l.default)(p);return w.length===1?w[0]:(0,s.tsUnionType)(w)}return Qn}var ea={},uu;function Ap(){if(uu)return ea;uu=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.buildUndefinedNode=l;var s=er();function l(){return(0,s.unaryExpression)("void",(0,s.numericLiteral)(0),!0)}return ea}var ta={},cu;function ws(){if(cu)return ta;cu=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.default=p;var s=fr(),l=It();const{hasOwn:u}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function o(E,C,x,N){return E&&typeof E.type=="string"?w(E,C,x,N):E}function f(E,C,x,N){return Array.isArray(E)?E.map(P=>o(P,C,x,N)):o(E,C,x,N)}function p(E,C=!0,x=!1){return w(E,C,x,new Map)}function w(E,C=!0,x=!1,N){if(!E)return E;const{type:P}=E,T={type:E.type};if((0,l.isIdentifier)(E))T.name=E.name,u(E,"optional")&&typeof E.optional=="boolean"&&(T.optional=E.optional),u(E,"typeAnnotation")&&(T.typeAnnotation=C?f(E.typeAnnotation,!0,x,N):E.typeAnnotation),u(E,"decorators")&&(T.decorators=C?f(E.decorators,!0,x,N):E.decorators);else if(u(s.NODE_FIELDS,P))for(const F of Object.keys(s.NODE_FIELDS[P]))u(E,F)&&(C?T[F]=(0,l.isFile)(E)&&F==="comments"?b(E.comments,C,x,N):f(E[F],!0,x,N):T[F]=E[F]);else throw new Error(`Unknown node type: "${P}"`);return u(E,"loc")&&(x?T.loc=null:T.loc=E.loc),u(E,"leadingComments")&&(T.leadingComments=b(E.leadingComments,C,x,N)),u(E,"innerComments")&&(T.innerComments=b(E.innerComments,C,x,N)),u(E,"trailingComments")&&(T.trailingComments=b(E.trailingComments,C,x,N)),u(E,"extra")&&(T.extra=Object.assign({},E.extra)),T}function b(E,C,x,N){return!E||!C?E:E.map(P=>{const T=N.get(P);if(T)return T;const{type:F,value:V,loc:k}=P,S={type:F,value:V,loc:k};return x&&(S.loc=null),N.set(P,S),S})}return ta}var ra={},pu;function Pf(){if(pu)return ra;pu=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.default=l;var s=ws();function l(u){return(0,s.default)(u,!1)}return ra}var ia={},fu;function Af(){if(fu)return ia;fu=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.default=l;var s=ws();function l(u){return(0,s.default)(u)}return ia}var sa={},hu;function vf(){if(hu)return sa;hu=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.default=l;var s=ws();function l(u){return(0,s.default)(u,!0,!0)}return sa}var na={},du;function Cf(){if(du)return na;du=1,Object.defineProperty(na,"__esModule",{value:!0}),na.default=l;var s=ws();function l(u){return(0,s.default)(u,!1,!0)}return na}var aa={},oa={},mu;function vp(){if(mu)return oa;mu=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=s;function s(l,u,o){if(!o||!l)return l;const f=`${u}Comments`;return l[f]?u==="leading"?l[f]=o.concat(l[f]):l[f].push(...o):l[f]=o,l}return oa}var yu;function If(){if(yu)return aa;yu=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.default=l;var s=vp();function l(u,o,f,p){return(0,s.default)(u,o,[{type:p?"CommentLine":"CommentBlock",value:f}])}return aa}var la={},ua={},Tu;function al(){if(Tu)return ua;Tu=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.default=s;function s(l,u,o){u&&o&&(u[l]=Array.from(new Set([].concat(u[l],o[l]).filter(Boolean))))}return ua}var Su;function Cp(){if(Su)return la;Su=1,Object.defineProperty(la,"__esModule",{value:!0}),la.default=l;var s=al();function l(u,o){(0,s.default)("innerComments",u,o)}return la}var ca={},gu;function Ip(){if(gu)return ca;gu=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.default=l;var s=al();function l(u,o){(0,s.default)("leadingComments",u,o)}return ca}var pa={},fa={},xu;function wp(){if(xu)return fa;xu=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.default=l;var s=al();function l(u,o){(0,s.default)("trailingComments",u,o)}return fa}var bu;function Np(){if(bu)return pa;bu=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.default=o;var s=wp(),l=Ip(),u=Cp();function o(f,p){return(0,s.default)(f,p),(0,l.default)(f,p),(0,u.default)(f,p),f}return pa}var ha={},Eu;function wf(){if(Eu)return ha;Eu=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.default=l;var s=kn();function l(u){return s.COMMENT_KEYS.forEach(o=>{u[o]=null}),u}return ha}var De={},Pu;function Nf(){if(Pu)return De;Pu=1,Object.defineProperty(De,"__esModule",{value:!0}),De.WHILE_TYPES=De.USERWHITESPACABLE_TYPES=De.UNARYLIKE_TYPES=De.TYPESCRIPT_TYPES=De.TSTYPE_TYPES=De.TSTYPEELEMENT_TYPES=De.TSENTITYNAME_TYPES=De.TSBASETYPE_TYPES=De.TERMINATORLESS_TYPES=De.STATEMENT_TYPES=De.STANDARDIZED_TYPES=De.SCOPABLE_TYPES=De.PUREISH_TYPES=De.PROPERTY_TYPES=De.PRIVATE_TYPES=De.PATTERN_TYPES=De.PATTERNLIKE_TYPES=De.OBJECTMEMBER_TYPES=De.MODULESPECIFIER_TYPES=De.MODULEDECLARATION_TYPES=De.MISCELLANEOUS_TYPES=De.METHOD_TYPES=De.LVAL_TYPES=De.LOOP_TYPES=De.LITERAL_TYPES=De.JSX_TYPES=De.IMPORTOREXPORTDECLARATION_TYPES=De.IMMUTABLE_TYPES=De.FUNCTION_TYPES=De.FUNCTIONPARENT_TYPES=De.FUNCTIONPARAMETER_TYPES=De.FOR_TYPES=De.FORXSTATEMENT_TYPES=De.FLOW_TYPES=De.FLOWTYPE_TYPES=De.FLOWPREDICATE_TYPES=De.FLOWDECLARATION_TYPES=De.FLOWBASEANNOTATION_TYPES=De.EXPRESSION_TYPES=De.EXPRESSIONWRAPPER_TYPES=De.EXPORTDECLARATION_TYPES=De.ENUMMEMBER_TYPES=De.ENUMBODY_TYPES=De.DECLARATION_TYPES=De.CONDITIONAL_TYPES=De.COMPLETIONSTATEMENT_TYPES=De.CLASS_TYPES=De.BLOCK_TYPES=De.BLOCKPARENT_TYPES=De.BINARY_TYPES=De.ACCESSOR_TYPES=void 0;var s=fr();De.STANDARDIZED_TYPES=s.FLIPPED_ALIAS_KEYS.Standardized,De.EXPRESSION_TYPES=s.FLIPPED_ALIAS_KEYS.Expression,De.BINARY_TYPES=s.FLIPPED_ALIAS_KEYS.Binary,De.SCOPABLE_TYPES=s.FLIPPED_ALIAS_KEYS.Scopable,De.BLOCKPARENT_TYPES=s.FLIPPED_ALIAS_KEYS.BlockParent,De.BLOCK_TYPES=s.FLIPPED_ALIAS_KEYS.Block,De.STATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.Statement,De.TERMINATORLESS_TYPES=s.FLIPPED_ALIAS_KEYS.Terminatorless,De.COMPLETIONSTATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.CompletionStatement,De.CONDITIONAL_TYPES=s.FLIPPED_ALIAS_KEYS.Conditional,De.LOOP_TYPES=s.FLIPPED_ALIAS_KEYS.Loop,De.WHILE_TYPES=s.FLIPPED_ALIAS_KEYS.While,De.EXPRESSIONWRAPPER_TYPES=s.FLIPPED_ALIAS_KEYS.ExpressionWrapper,De.FOR_TYPES=s.FLIPPED_ALIAS_KEYS.For,De.FORXSTATEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.ForXStatement,De.FUNCTION_TYPES=s.FLIPPED_ALIAS_KEYS.Function,De.FUNCTIONPARENT_TYPES=s.FLIPPED_ALIAS_KEYS.FunctionParent,De.PUREISH_TYPES=s.FLIPPED_ALIAS_KEYS.Pureish,De.DECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.Declaration,De.FUNCTIONPARAMETER_TYPES=s.FLIPPED_ALIAS_KEYS.FunctionParameter,De.PATTERNLIKE_TYPES=s.FLIPPED_ALIAS_KEYS.PatternLike,De.LVAL_TYPES=s.FLIPPED_ALIAS_KEYS.LVal,De.TSENTITYNAME_TYPES=s.FLIPPED_ALIAS_KEYS.TSEntityName,De.LITERAL_TYPES=s.FLIPPED_ALIAS_KEYS.Literal,De.IMMUTABLE_TYPES=s.FLIPPED_ALIAS_KEYS.Immutable,De.USERWHITESPACABLE_TYPES=s.FLIPPED_ALIAS_KEYS.UserWhitespacable,De.METHOD_TYPES=s.FLIPPED_ALIAS_KEYS.Method,De.OBJECTMEMBER_TYPES=s.FLIPPED_ALIAS_KEYS.ObjectMember,De.PROPERTY_TYPES=s.FLIPPED_ALIAS_KEYS.Property,De.UNARYLIKE_TYPES=s.FLIPPED_ALIAS_KEYS.UnaryLike,De.PATTERN_TYPES=s.FLIPPED_ALIAS_KEYS.Pattern,De.CLASS_TYPES=s.FLIPPED_ALIAS_KEYS.Class;const l=De.IMPORTOREXPORTDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;return De.EXPORTDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.ExportDeclaration,De.MODULESPECIFIER_TYPES=s.FLIPPED_ALIAS_KEYS.ModuleSpecifier,De.ACCESSOR_TYPES=s.FLIPPED_ALIAS_KEYS.Accessor,De.PRIVATE_TYPES=s.FLIPPED_ALIAS_KEYS.Private,De.FLOW_TYPES=s.FLIPPED_ALIAS_KEYS.Flow,De.FLOWTYPE_TYPES=s.FLIPPED_ALIAS_KEYS.FlowType,De.FLOWBASEANNOTATION_TYPES=s.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,De.FLOWDECLARATION_TYPES=s.FLIPPED_ALIAS_KEYS.FlowDeclaration,De.FLOWPREDICATE_TYPES=s.FLIPPED_ALIAS_KEYS.FlowPredicate,De.ENUMBODY_TYPES=s.FLIPPED_ALIAS_KEYS.EnumBody,De.ENUMMEMBER_TYPES=s.FLIPPED_ALIAS_KEYS.EnumMember,De.JSX_TYPES=s.FLIPPED_ALIAS_KEYS.JSX,De.MISCELLANEOUS_TYPES=s.FLIPPED_ALIAS_KEYS.Miscellaneous,De.TYPESCRIPT_TYPES=s.FLIPPED_ALIAS_KEYS.TypeScript,De.TSTYPEELEMENT_TYPES=s.FLIPPED_ALIAS_KEYS.TSTypeElement,De.TSTYPE_TYPES=s.FLIPPED_ALIAS_KEYS.TSType,De.TSBASETYPE_TYPES=s.FLIPPED_ALIAS_KEYS.TSBaseType,De.MODULEDECLARATION_TYPES=l,De}var da={},ma={},Au;function Op(){if(Au)return ma;Au=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.default=u;var s=It(),l=er();function u(o,f){if((0,s.isBlockStatement)(o))return o;let p=[];return(0,s.isEmptyStatement)(o)?p=[]:((0,s.isStatement)(o)||((0,s.isFunction)(f)?o=(0,l.returnStatement)(o):o=(0,l.expressionStatement)(o)),p=[o]),(0,l.blockStatement)(p)}return ma}var vu;function Of(){if(vu)return da;vu=1,Object.defineProperty(da,"__esModule",{value:!0}),da.default=l;var s=Op();function l(u,o="body"){const f=(0,s.default)(u[o],u);return u[o]=f,f}return da}var ya={},Ta={},Cu;function _p(){if(Cu)return Ta;Cu=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=u;var s=_n(),l=ro();function u(o){o=o+"";let f="";for(const p of o)f+=(0,l.isIdentifierChar)(p.codePointAt(0))?p:"-";return f=f.replace(/^[-0-9]+/,""),f=f.replace(/[-\s]+(.)?/g,function(p,w){return w?w.toUpperCase():""}),(0,s.default)(f)||(f=`_${f}`),f||"_"}return Ta}var Iu;function _f(){if(Iu)return ya;Iu=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.default=l;var s=_p();function l(u){return u=(0,s.default)(u),(u==="eval"||u==="arguments")&&(u="_"+u),u}return ya}var Sa={},wu;function kf(){if(wu)return Sa;wu=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=u;var s=It(),l=er();function u(o,f=o.key||o.property){return!o.computed&&(0,s.isIdentifier)(f)&&(f=(0,l.stringLiteral)(f.name)),f}return Sa}var dn={},Nu;function Df(){if(Nu)return dn;Nu=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.default=void 0;var s=It();dn.default=l;function l(u){if((0,s.isExpressionStatement)(u)&&(u=u.expression),(0,s.isExpression)(u))return u;if((0,s.isClass)(u)?(u.type="ClassExpression",u.abstract=!1):(0,s.isFunction)(u)&&(u.type="FunctionExpression"),!(0,s.isExpression)(u))throw new Error(`cannot turn ${u.type} to an expression`);return u}return dn}var ga={},xa={},ba={},Ou;function kp(){if(Ou)return ba;Ou=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.default=o;var s=fr();const l=Symbol(),u=Symbol();function o(f,p,w){if(!f)return!1;const b=s.VISITOR_KEYS[f.type];if(!b)return!1;w=w||{};const E=p(f,w);if(E!==void 0)switch(E){case l:return!1;case u:return!0}for(const C of b){const x=f[C];if(x){if(Array.isArray(x)){for(const N of x)if(o(N,p,w))return!0}else if(o(x,p,w))return!0}}return!1}return o.skip=l,o.stop=u,ba}var Ea={},_u;function Dp(){if(_u)return Ea;_u=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=o;var s=kn();const l=["tokens","start","end","loc","raw","rawValue"],u=[...s.COMMENT_KEYS,"comments",...l];function o(f,p={}){const w=p.preserveComments?l:u;for(const E of w)f[E]!=null&&(f[E]=void 0);for(const E of Object.keys(f))E[0]==="_"&&f[E]!=null&&(f[E]=void 0);const b=Object.getOwnPropertySymbols(f);for(const E of b)f[E]=null}return Ea}var ku;function Lp(){if(ku)return xa;ku=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.default=u;var s=kp(),l=Dp();function u(o,f){return(0,s.default)(o,l.default,f),o}return xa}var Du;function Lf(){if(Du)return ga;Du=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.default=o;var s=It(),l=ws(),u=Lp();function o(f,p=f.key){let w;return f.kind==="method"?o.increment()+"":((0,s.isIdentifier)(p)?w=p.name:(0,s.isStringLiteral)(p)?w=JSON.stringify(p.value):w=JSON.stringify((0,u.default)((0,l.default)(p))),f.computed&&(w=`[${w}]`),f.static&&(w=`static:${w}`),w)}return o.uid=0,o.increment=function(){return o.uid>=Number.MAX_SAFE_INTEGER?o.uid=0:o.uid++},ga}var mn={},Lu;function Mf(){if(Lu)return mn;Lu=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=void 0;var s=It(),l=er();mn.default=u;function u(o,f){if((0,s.isStatement)(o))return o;let p=!1,w;if((0,s.isClass)(o))p=!0,w="ClassDeclaration";else if((0,s.isFunction)(o))p=!0,w="FunctionDeclaration";else if((0,s.isAssignmentExpression)(o))return(0,l.expressionStatement)(o);if(p&&!o.id&&(w=!1),!w){if(f)return!1;throw new Error(`cannot turn ${o.type} to a statement`)}return o.type=w,o}return mn}var yn={},Mu;function Bf(){if(Mu)return yn;Mu=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=void 0;var s=_n(),l=er();yn.default=p;const u=Function.call.bind(Object.prototype.toString);function o(w){return u(w)==="[object RegExp]"}function f(w){if(typeof w!="object"||w===null||Object.prototype.toString.call(w)!=="[object Object]")return!1;const b=Object.getPrototypeOf(w);return b===null||Object.getPrototypeOf(b)===null}function p(w){if(w===void 0)return(0,l.identifier)("undefined");if(w===!0||w===!1)return(0,l.booleanLiteral)(w);if(w===null)return(0,l.nullLiteral)();if(typeof w=="string")return(0,l.stringLiteral)(w);if(typeof w=="number"){let b;if(Number.isFinite(w))b=(0,l.numericLiteral)(Math.abs(w));else{let E;Number.isNaN(w)?E=(0,l.numericLiteral)(0):E=(0,l.numericLiteral)(1),b=(0,l.binaryExpression)("/",E,(0,l.numericLiteral)(0))}return(w<0||Object.is(w,-0))&&(b=(0,l.unaryExpression)("-",b)),b}if(typeof w=="bigint")return w<0?(0,l.unaryExpression)("-",(0,l.bigIntLiteral)(-w)):(0,l.bigIntLiteral)(w);if(o(w)){const b=w.source,E=/\/([a-z]*)$/.exec(w.toString())[1];return(0,l.regExpLiteral)(b,E)}if(Array.isArray(w))return(0,l.arrayExpression)(w.map(p));if(f(w)){const b=[];for(const E of Object.keys(w)){let C,x=!1;(0,s.default)(E)?E==="__proto__"?(x=!0,C=(0,l.stringLiteral)(E)):C=(0,l.identifier)(E):C=(0,l.stringLiteral)(E),b.push((0,l.objectProperty)(C,p(w[E]),x))}return(0,l.objectExpression)(b)}throw new Error("don't know how to turn this value into a node")}return yn}var Pa={},Bu;function Ff(){if(Bu)return Pa;Bu=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.default=l;var s=er();function l(u,o,f=!1){return u.object=(0,s.memberExpression)(u.object,u.property,u.computed),u.property=o,u.computed=!!f,u}return Pa}var Aa={},Fu;function Rf(){if(Fu)return Aa;Fu=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.default=u;var s=kn(),l=Np();function u(o,f){if(!o||!f)return o;for(const p of s.INHERIT_KEYS.optional)o[p]==null&&(o[p]=f[p]);for(const p of Object.keys(f))p[0]==="_"&&p!=="__clone"&&(o[p]=f[p]);for(const p of s.INHERIT_KEYS.force)o[p]=f[p];return(0,l.default)(o,f),o}return Aa}var va={},Ru;function jf(){if(Ru)return va;Ru=1,Object.defineProperty(va,"__esModule",{value:!0}),va.default=u;var s=er(),l=at();function u(o,f){if((0,l.isSuper)(o.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return o.object=(0,s.memberExpression)(f,o.object),o}return va}var Ca={},ju;function qf(){if(ju)return Ca;ju=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.default=s;function s(l){const u=[].concat(l),o=Object.create(null);for(;u.length;){const f=u.pop();if(f)switch(f.type){case"ArrayPattern":u.push(...f.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":u.push(f.left);break;case"ObjectPattern":u.push(...f.properties);break;case"ObjectProperty":u.push(f.value);break;case"RestElement":case"UpdateExpression":u.push(f.argument);break;case"UnaryExpression":f.operator==="delete"&&u.push(f.argument);break;case"Identifier":o[f.name]=f;break}}return o}return Ca}var Ia={},qu;function so(){if(qu)return Ia;qu=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.default=l;var s=It();function l(o,f,p,w){const b=[].concat(o),E=Object.create(null);for(;b.length;){const C=b.shift();if(!C||w&&((0,s.isAssignmentExpression)(C)||(0,s.isUnaryExpression)(C)||(0,s.isUpdateExpression)(C)))continue;if((0,s.isIdentifier)(C)){f?(E[C.name]=E[C.name]||[]).push(C):E[C.name]=C;continue}if((0,s.isExportDeclaration)(C)&&!(0,s.isExportAllDeclaration)(C)){(0,s.isDeclaration)(C.declaration)&&b.push(C.declaration);continue}if(p){if((0,s.isFunctionDeclaration)(C)){b.push(C.id);continue}if((0,s.isFunctionExpression)(C))continue}const x=l.keys[C.type];if(x)for(let N=0;N<x.length;N++){const P=x[N],T=C[P];T&&(Array.isArray(T)?b.push(...T):b.push(T))}}return E}const u={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 l.keys=u,Ia}var Tn={},Uu;function Uf(){if(Uu)return Tn;Uu=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.default=void 0;var s=so();Tn.default=l;function l(u,o){return(0,s.default)(u,o,!0)}return Tn}var wa={},Ku;function Kf(){if(Ku)return wa;Ku=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=o;var s=It();function l(f){return(0,s.isNullLiteral)(f)?"null":(0,s.isRegExpLiteral)(f)?`/${f.pattern}/${f.flags}`:(0,s.isTemplateLiteral)(f)?f.quasis.map(p=>p.value.raw).join(""):f.value!==void 0?String(f.value):null}function u(f){if(!f.computed||(0,s.isLiteral)(f.key))return f.key}function o(f,p){if("id"in f&&f.id)return{name:f.id.name,originalNode:f.id};let w="",b;if((0,s.isObjectProperty)(p,{value:f})?b=u(p):(0,s.isObjectMethod)(f)||(0,s.isClassMethod)(f)?(b=u(f),f.kind==="get"?w="get ":f.kind==="set"&&(w="set ")):(0,s.isVariableDeclarator)(p,{init:f})?b=p.id:(0,s.isAssignmentExpression)(p,{operator:"=",right:f})&&(b=p.left),!b)return null;const E=(0,s.isLiteral)(b)?l(b):(0,s.isIdentifier)(b)?b.name:(0,s.isPrivateName)(b)?b.id.name:null;return E==null?null:{name:w+E,originalNode:b}}return wa}var Na={},Vu;function Vf(){if(Vu)return Na;Vu=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.default=l;var s=fr();function l(o,f,p){typeof f=="function"&&(f={enter:f});const{enter:w,exit:b}=f;u(o,w,b,p,[])}function u(o,f,p,w,b){const E=s.VISITOR_KEYS[o.type];if(E){f&&f(o,b,w);for(const C of E){const x=o[C];if(Array.isArray(x))for(let N=0;N<x.length;N++){const P=x[N];P&&(b.push({node:o,key:C,index:N}),u(P,f,p,w,b),b.pop())}else x&&(b.push({node:o,key:C}),u(x,f,p,w,b),b.pop())}p&&p(o,b,w)}}return Na}var Oa={},Wu;function Wf(){if(Wu)return Oa;Wu=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.default=l;var s=so();function l(u,o,f){if(f&&u.type==="Identifier"&&o.type==="ObjectProperty"&&f.type==="ObjectExpression")return!1;const p=s.default.keys[o.type];if(p)for(let w=0;w<p.length;w++){const b=p[w],E=o[b];if(Array.isArray(E)){if(E.includes(u))return!0}else if(E===u)return!0}return!1}return Oa}var _a={},ka={},Ju;function Mp(){if(Ju)return ka;Ju=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.default=u;var s=It(),l=Symbol.for("var used to be block scoped");function u(o){return(0,s.isVariableDeclaration)(o)&&(o.kind!=="var"||o[l])}return ka}var Xu;function Jf(){if(Xu)return _a;Xu=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=u;var s=It(),l=Mp();function u(o){return(0,s.isFunctionDeclaration)(o)||(0,s.isClassDeclaration)(o)||(0,l.default)(o)}return _a}var Da={},Yu;function Xf(){if(Yu)return Da;Yu=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.default=u;var s=sl(),l=It();function u(o){return(0,s.default)(o.type,"Immutable")?!0:(0,l.isIdentifier)(o)?o.name==="undefined":!1}return Da}var La={},Hu;function Yf(){if(Hu)return La;Hu=1,Object.defineProperty(La,"__esModule",{value:!0}),La.default=l;var s=fr();function l(u,o){if(typeof u!="object"||typeof o!="object"||u==null||o==null)return u===o;if(u.type!==o.type)return!1;const f=Object.keys(s.NODE_FIELDS[u.type]||u.type),p=s.VISITOR_KEYS[u.type];for(const w of f){const b=u[w],E=o[w];if(typeof b!=typeof E)return!1;if(!(b==null&&E==null)){if(b==null||E==null)return!1;if(Array.isArray(b)){if(!Array.isArray(E)||b.length!==E.length)return!1;for(let C=0;C<b.length;C++)if(!l(b[C],E[C]))return!1;continue}if(typeof b=="object"&&!(p!=null&&p.includes(w))){for(const C of Object.keys(b))if(b[C]!==E[C])return!1;continue}if(!l(b,E))return!1}}return!0}return La}var Ma={},zu;function Hf(){if(zu)return Ma;zu=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.default=s;function s(l,u,o){switch(u.type){case"MemberExpression":case"OptionalMemberExpression":return u.property===l?!!u.computed:u.object===l;case"JSXMemberExpression":return u.object===l;case"VariableDeclarator":return u.init===l;case"ArrowFunctionExpression":return u.body===l;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return u.key===l?!!u.computed:!1;case"ObjectProperty":return u.key===l?!!u.computed:!o||o.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return u.key===l?!!u.computed:!0;case"ClassPrivateProperty":return u.key!==l;case"ClassDeclaration":case"ClassExpression":return u.superClass===l;case"AssignmentExpression":return u.right===l;case"AssignmentPattern":return u.right===l;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 o!=null&&o.source?!1:u.local===l;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 u.key!==l;case"TSEnumMember":return u.id!==l;case"TSPropertySignature":return u.key===l?!!u.computed:!0}return!0}return Ma}var Ba={},$u;function zf(){if($u)return Ba;$u=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.default=l;var s=It();function l(u,o){return(0,s.isBlockStatement)(u)&&((0,s.isFunction)(o)||(0,s.isCatchClause)(o))?!1:(0,s.isPattern)(u)&&((0,s.isFunction)(o)||(0,s.isCatchClause)(o))?!0:(0,s.isScopable)(u)}return Ba}var Fa={},Gu;function $f(){if(Gu)return Fa;Gu=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.default=l;var s=It();function l(u){return(0,s.isImportDefaultSpecifier)(u)||(0,s.isIdentifier)(u.imported||u.exported,{name:"default"})}return Fa}var Ra={},Qu;function Gf(){if(Qu)return Ra;Qu=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.default=u;var s=_n();const l=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 u(o){return(0,s.default)(o)&&!l.has(o)}return Ra}var ja={},Zu;function Qf(){if(Zu)return ja;Zu=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.default=u;var s=It(),l=Symbol.for("var used to be block scoped");function u(o){return(0,s.isVariableDeclaration)(o,{kind:"var"})&&!o[l]}return ja}var qa={},Ua={},ec;function Zf(){if(ec)return Ua;ec=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=p;var s=so(),l=It(),u=er(),o=Ap(),f=ws();function p(w,b){const E=[];let C=!0;for(const x of w)if((0,l.isEmptyStatement)(x)||(C=!1),(0,l.isExpression)(x))E.push(x);else if((0,l.isExpressionStatement)(x))E.push(x.expression);else if((0,l.isVariableDeclaration)(x)){if(x.kind!=="var")return;for(const N of x.declarations){const P=(0,s.default)(N);for(const T of Object.keys(P))b.push({kind:x.kind,id:(0,f.default)(P[T])});N.init&&E.push((0,u.assignmentExpression)("=",N.id,N.init))}C=!0}else if((0,l.isIfStatement)(x)){const N=x.consequent?p([x.consequent],b):(0,o.buildUndefinedNode)(),P=x.alternate?p([x.alternate],b):(0,o.buildUndefinedNode)();if(!N||!P)return;E.push((0,u.conditionalExpression)(x.test,N,P))}else if((0,l.isBlockStatement)(x)){const N=p(x.body,b);if(!N)return;E.push(N)}else if((0,l.isEmptyStatement)(x))w.indexOf(x)===0&&(C=!0);else return;return C&&E.push((0,o.buildUndefinedNode)()),E.length===1?E[0]:(0,u.sequenceExpression)(E)}return Ua}var tc;function eh(){if(tc)return qa;tc=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.default=l;var s=Zf();function l(u,o){if(!(u!=null&&u.length))return;const f=[],p=(0,s.default)(u,f);if(p){for(const w of f)o.push(w);return p}}return qa}var rc;function at(){return rc||(rc=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0});var l={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(s,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(s,"addComment",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(s,"addComments",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(s,"appendToMemberExpression",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(s,"assertNode",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(s,"buildMatchMemberExpression",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(s,"clone",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(s,"cloneDeep",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(s,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(s,"cloneNode",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(s,"cloneWithoutLoc",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(s,"createFlowUnionType",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(s,"createTSUnionType",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(s,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(s,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(s,"ensureBlock",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(s,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Ke.default}}),Object.defineProperty(s,"getBindingIdentifiers",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(s,"getFunctionName",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(s,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Ce.default}}),Object.defineProperty(s,"inheritInnerComments",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(s,"inheritLeadingComments",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(s,"inheritTrailingComments",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(s,"inherits",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(s,"inheritsComments",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(s,"is",{enumerable:!0,get:function(){return $e.default}}),Object.defineProperty(s,"isBinding",{enumerable:!0,get:function(){return Ze.default}}),Object.defineProperty(s,"isBlockScoped",{enumerable:!0,get:function(){return it.default}}),Object.defineProperty(s,"isImmutable",{enumerable:!0,get:function(){return He.default}}),Object.defineProperty(s,"isLet",{enumerable:!0,get:function(){return we.default}}),Object.defineProperty(s,"isNode",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(s,"isNodesEquivalent",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(s,"isPlaceholderType",{enumerable:!0,get:function(){return Le.default}}),Object.defineProperty(s,"isReferenced",{enumerable:!0,get:function(){return Ve.default}}),Object.defineProperty(s,"isScope",{enumerable:!0,get:function(){return Qe.default}}),Object.defineProperty(s,"isSpecifierDefault",{enumerable:!0,get:function(){return et.default}}),Object.defineProperty(s,"isType",{enumerable:!0,get:function(){return ht.default}}),Object.defineProperty(s,"isValidES3Identifier",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(s,"isValidIdentifier",{enumerable:!0,get:function(){return Ue.default}}),Object.defineProperty(s,"isVar",{enumerable:!0,get:function(){return Be.default}}),Object.defineProperty(s,"matchesPattern",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(s,"prependToMemberExpression",{enumerable:!0,get:function(){return fe.default}}),s.react=void 0,Object.defineProperty(s,"removeComments",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(s,"removeProperties",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(s,"removePropertiesDeep",{enumerable:!0,get:function(){return Pe.default}}),Object.defineProperty(s,"removeTypeDuplicates",{enumerable:!0,get:function(){return _e.default}}),Object.defineProperty(s,"shallowEqual",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(s,"toBindingIdentifierName",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(s,"toBlock",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(s,"toComputedKey",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(s,"toExpression",{enumerable:!0,get:function(){return Se.default}}),Object.defineProperty(s,"toIdentifier",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(s,"toKeyAlias",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(s,"toStatement",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(s,"traverse",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(s,"traverseFast",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(s,"validate",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(s,"valueToNode",{enumerable:!0,get:function(){return D.default}});var u=rf(),o=sf(),f=yf(),p=Tf(),w=Sf();Object.keys(w).forEach(function(Ee){Ee==="default"||Ee==="__esModule"||Object.prototype.hasOwnProperty.call(l,Ee)||Ee in s&&s[Ee]===w[Ee]||Object.defineProperty(s,Ee,{enumerable:!0,get:function(){return w[Ee]}})});var b=gf(),E=xf(),C=Ef(),x=Ap();Object.keys(x).forEach(function(Ee){Ee==="default"||Ee==="__esModule"||Object.prototype.hasOwnProperty.call(l,Ee)||Ee in s&&s[Ee]===x[Ee]||Object.defineProperty(s,Ee,{enumerable:!0,get:function(){return x[Ee]}})});var N=er();Object.keys(N).forEach(function(Ee){Ee==="default"||Ee==="__esModule"||Object.prototype.hasOwnProperty.call(l,Ee)||Ee in s&&s[Ee]===N[Ee]||Object.defineProperty(s,Ee,{enumerable:!0,get:function(){return N[Ee]}})});var P=ws(),T=Pf(),F=Af(),V=vf(),k=Cf(),S=If(),G=vp(),X=Cp(),W=Ip(),ee=Np(),M=wp(),I=wf(),U=Nf();Object.keys(U).forEach(function(Ee){Ee==="default"||Ee==="__esModule"||Object.prototype.hasOwnProperty.call(l,Ee)||Ee in s&&s[Ee]===U[Ee]||Object.defineProperty(s,Ee,{enumerable:!0,get:function(){return U[Ee]}})});var B=kn();Object.keys(B).forEach(function(Ee){Ee==="default"||Ee==="__esModule"||Object.prototype.hasOwnProperty.call(l,Ee)||Ee in s&&s[Ee]===B[Ee]||Object.defineProperty(s,Ee,{enumerable:!0,get:function(){return B[Ee]}})});var R=Of(),$=_f(),ae=Op(),ge=kf(),Se=Df(),Ae=_p(),ne=Lf(),Z=Mf(),D=Bf(),J=fr();Object.keys(J).forEach(function(Ee){Ee==="default"||Ee==="__esModule"||Object.prototype.hasOwnProperty.call(l,Ee)||Ee in s&&s[Ee]===J[Ee]||Object.defineProperty(s,Ee,{enumerable:!0,get:function(){return J[Ee]}})});var ie=Ff(),Q=Rf(),fe=jf(),ue=Dp(),Pe=Lp(),_e=Pp(),Ke=qf(),ve=so(),Ce=Uf(),me=Kf(),le=Vf();Object.keys(le).forEach(function(Ee){Ee==="default"||Ee==="__esModule"||Object.prototype.hasOwnProperty.call(l,Ee)||Ee in s&&s[Ee]===le[Ee]||Object.defineProperty(s,Ee,{enumerable:!0,get:function(){return le[Ee]}})});var de=kp(),qe=il(),$e=On(),Ze=Wf(),it=Jf(),He=Xf(),we=Mp(),Oe=Ep(),ke=Yf(),Le=gp(),Ve=Hf(),Qe=zf(),et=$f(),ht=sl(),Te=Gf(),Ue=_n(),Be=Qf(),pe=Tp(),j=nl(),te=Sp(),ye=It();Object.keys(ye).forEach(function(Ee){Ee==="default"||Ee==="__esModule"||Object.prototype.hasOwnProperty.call(l,Ee)||Ee in s&&s[Ee]===ye[Ee]||Object.defineProperty(s,Ee,{enumerable:!0,get:function(){return ye[Ee]}})});var Ie=Nn(),Re=eh();s.react={isReactComponent:u.default,isCompatTag:o.default,buildChildren:f.default},s.toSequenceExpression=Re.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!")})(Yo)),Yo}var Li={},Ct={},ic;function Bp(){if(ic)return Ct;ic=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.isBindingIdentifier=B,Ct.isBlockScoped=Se,Ct.isExpression=$,Ct.isFlow=J,Ct.isForAwaitStatement=fe,Ct.isGenerated=Z,Ct.isPure=D,Ct.isReferenced=ge,Ct.isReferencedIdentifier=I,Ct.isReferencedMemberExpression=U,Ct.isRestProperty=ie,Ct.isScope=ae,Ct.isSpreadProperty=Q,Ct.isStatement=R,Ct.isUser=ne,Ct.isVar=Ae;var s=at();const{isBinding:l,isBlockScoped:u,isExportDeclaration:o,isExpression:f,isFlow:p,isForStatement:w,isForXStatement:b,isIdentifier:E,isImportDeclaration:C,isImportSpecifier:x,isJSXIdentifier:N,isJSXMemberExpression:P,isMemberExpression:T,isRestElement:F,isReferenced:V,isScope:k,isStatement:S,isVar:G,isVariableDeclaration:X,react:W,isForOfStatement:ee}=s,{isCompatTag:M}=W;function I(ue){const{node:Pe,parent:_e}=this;return E(Pe,ue)?V(Pe,_e,this.parentPath.parent):N(Pe,ue)?!P(_e)&&M(Pe.name)?!1:V(Pe,_e,this.parentPath.parent):!1}function U(){const{node:ue,parent:Pe}=this;return T(ue)&&V(ue,Pe)}function B(){const{node:ue,parent:Pe}=this,_e=this.parentPath.parent;return E(ue)&&l(ue,Pe,_e)}function R(){const{node:ue,parent:Pe}=this;return S(ue)?!(X(ue)&&(b(Pe,{left:ue})||w(Pe,{init:ue}))):!1}function $(){return this.isIdentifier()?this.isReferencedIdentifier():f(this.node)}function ae(){return k(this.node,this.parent)}function ge(){return V(this.node,this.parent)}function Se(){return u(this.node)}function Ae(){return G(this.node)}function ne(){var ue;return!!((ue=this.node)!=null&&ue.loc)}function Z(){return!this.isUser()}function D(ue){return this.scope.isPure(this.node,ue)}function J(){const{node:ue}=this;return p(ue)?!0:C(ue)?ue.importKind==="type"||ue.importKind==="typeof":o(ue)?ue.exportKind==="type":x(ue)?ue.importKind==="type"||ue.importKind==="typeof":!1}function ie(){var ue;return F(this.node)&&((ue=this.parentPath)==null?void 0:ue.isObjectPattern())}function Q(){var ue;return F(this.node)&&((ue=this.parentPath)==null?void 0:ue.isObjectExpression())}function fe(){return ee(this.node,{await:!0})}return Ct.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},Ct.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")},Ct}var sc;function no(){if(sc)return Li;sc=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.environmentVisitor=M,Li.explode=N,Li.isExplodedVisitor=x,Li.merge=F,Li.verify=P;var s=yp(),l=Bp(),u=at(),o=hr();const{DEPRECATED_KEYS:f,DEPRECATED_ALIASES:p,FLIPPED_ALIAS_KEYS:w,TYPES:b,__internal__deprecationWarning:E}=u;function C(I){return I in s}function x(I){return I?._exploded}function N(I){if(x(I))return I;I._exploded=!0;for(const B of Object.keys(I)){if(X(B))continue;const R=B.split("|");if(R.length===1)continue;const $=I[B];delete I[B];for(const ae of R)I[ae]=$}P(I),delete I.__esModule,k(I),S(I);for(const B of Object.keys(I)){if(X(B)||!C(B))continue;const R=I[B];for(const ae of Object.keys(R))R[ae]=G(B,R[ae]);delete I[B];const $=s[B];if($!==null)for(const ae of $){var U;(U=I[ae])!=null||(I[ae]={}),W(I[ae],R)}else W(I,R)}for(const B of Object.keys(I)){if(X(B))continue;let R=w[B];if(B in f){const ae=f[B];E(B,ae,"Visitor "),R=[ae]}else if(B in p){const ae=p[B];E(B,ae,"Visitor "),R=w[ae]}if(!R)continue;const $=I[B];delete I[B];for(const ae of R){const ge=I[ae];ge?W(ge,$):I[ae]=Object.assign({},$)}}for(const B of Object.keys(I))X(B)||S(I[B]);return I}function P(I){if(!I._verified){if(typeof I=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const U of Object.keys(I)){if((U==="enter"||U==="exit")&&T(U,I[U]),X(U))continue;if(!b.includes(U))throw new Error(`You gave us a visitor for the node type ${U} but it's not a valid type in @babel/traverse 7.28.5`);const B=I[U];if(typeof B=="object")for(const R of Object.keys(B))if(R==="enter"||R==="exit")T(`${U}.${R}`,B[R]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${U} that has the invalid property ${R}`)}I._verified=!0}}function T(I,U){const B=[].concat(U);for(const R of B)if(typeof R!="function")throw new TypeError(`Non-function found defined in ${I} with type ${typeof R}`)}function F(I,U=[],B){const R={_verified:!0,_exploded:!0};Object.defineProperty(R,"_exploded",{enumerable:!1}),Object.defineProperty(R,"_verified",{enumerable:!1});for(let $=0;$<I.length;$++){const ae=N(I[$]),ge=U[$];let Se=ae;(ge||B)&&(Se=V(Se,ge,B)),W(R,Se);for(const Ae of Object.keys(ae)){if(X(Ae))continue;let ne=ae[Ae];(ge||B)&&(ne=V(ne,ge,B));const Z=R[Ae]||(R[Ae]={});W(Z,ne)}}return R}function V(I,U,B){const R={};for(const $ of["enter","exit"]){let ae=I[$];Array.isArray(ae)&&(ae=ae.map(function(ge){let Se=ge;return U&&(Se=function(Ae){ge.call(U,Ae,U)}),B&&(Se=B(U?.key,$,Se)),Se!==ge&&(Se.toString=()=>ge.toString()),Se}),R[$]=ae)}return R}function k(I){for(const U of Object.keys(I)){if(X(U))continue;const B=I[U];typeof B=="function"&&(I[U]={enter:B})}}function S(I){I.enter&&!Array.isArray(I.enter)&&(I.enter=[I.enter]),I.exit&&!Array.isArray(I.exit)&&(I.exit=[I.exit])}function G(I,U){const B=`is${I}`,R=l[B],$=function(ae){if(R.call(ae))return U.apply(this,arguments)};return $.toString=()=>U.toString(),$}function X(I){return I[0]==="_"||I==="enter"||I==="exit"||I==="shouldSkip"||I==="denylist"||I==="noScope"||I==="skipKeys"||I==="blacklist"}function W(I,U){for(const B of["enter","exit"])U[B]&&(I[B]=[].concat(I[B]||[],U[B]))}const ee={FunctionParent(I){I.isArrowFunctionExpression()||(I.skip(),I.isMethod()&&(I.requeueComputedKeyAndDecorators?I.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(I)))},Property(I){I.isObjectProperty()||(I.skip(),I.requeueComputedKeyAndDecorators?I.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(I))}};function M(I){return F([ee,I])}return Li}var nc;function th(){if(nc)return cn;nc=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=void 0;var s=at(),l=s,u=cl(),o=no(),f=hr();const{getAssignmentIdentifiers:p}=l,w={ReferencedIdentifier({node:E},C){E.name===C.oldName&&(E.name=C.newName)},Scope(E,C){E.scope.bindingIdentifierEquals(C.oldName,C.binding.identifier)||(E.skip(),E.isMethod()&&(E.requeueComputedKeyAndDecorators?E.requeueComputedKeyAndDecorators():f.requeueComputedKeyAndDecorators.call(E)))},ObjectProperty({node:E,scope:C},x){const{name:N}=E.key;if(E.shorthand&&(N===x.oldName||N===x.newName)&&C.getBindingIdentifier(N)===x.binding.identifier){E.shorthand=!1;{var P;(P=E.extra)!=null&&P.shorthand&&(E.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(E,C){if(E.isVariableDeclaration())return;const x=E.isAssignmentExpression()?p(E.node):E.getOuterBindingIdentifiers();for(const N in x)N===C.oldName&&(x[N].name=C.newName)}};class b{constructor(C,x,N){this.newName=N,this.oldName=x,this.binding=C}maybeConvertFromExportDeclaration(C){const x=C.parentPath;if(x.isExportDeclaration()){if(x.isExportDefaultDeclaration()){const{declaration:N}=x.node;if(s.isDeclaration(N)&&!N.id)return}x.isExportAllDeclaration()||x.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(C){return C}maybeConvertFromClassFunctionExpression(C){return C}rename(){const{binding:C,oldName:x,newName:N}=this,{scope:P,path:T}=C,F=T.find(S=>S.isDeclaration()||S.isFunctionExpression()||S.isClassExpression());F&&F.getOuterBindingIdentifiers()[x]===C.identifier&&this.maybeConvertFromExportDeclaration(F);const V=arguments[0]||P.block,k={discriminant:!0};s.isMethod(V)&&(V.computed&&(k.key=!0),s.isObjectMethod(V)||(k.decorators=!0)),(0,u.traverseNode)(V,(0,o.explode)(w),P,this,P.path,k),arguments[0]||(P.removeOwnBinding(x),P.bindings[N]=C,this.binding.identifier.name=N),F&&(this.maybeConvertFromClassFunctionDeclaration(T),this.maybeConvertFromClassFunctionExpression(T))}}return cn.default=b,cn}var Ka={},ac;function rh(){if(ac)return Ka;ac=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=p;var s=at(),l=Dn(),u=no(),o=hr();const{VISITOR_KEYS:f}=s;function p(w,b,E){const C=(0,u.explode)(b);if(C.enter||C.exit)throw new Error("Should not be used with enter/exit visitors.");x(w.parentPath,w.parent,w.node,w.container,w.key,w.listKey,w.hub,w);function x(N,P,T,F,V,k,S,G){if(!T)return;const X=G||l.NodePath.get({hub:S,parentPath:N,parent:P,container:F,listKey:k,key:V});o.setScope.call(X);const W=C[T.type];if(W){if(W.enter)for(const M of W.enter)M.call(E,X,E);if(W.exit)for(const M of W.exit)M.call(E,X,E)}if(X.shouldSkip)return;const ee=f[T.type];if(ee!=null&&ee.length)for(const M of ee){const I=T[M];if(I)if(Array.isArray(I))for(let U=0;U<I.length;U++){const B=I[U];x(X,T,B,I,U,M)}else x(X,T,I,T,M,null)}}}return Ka}var Sn={},oc;function ih(){if(oc)return Sn;oc=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;class s{constructor({identifier:o,scope:f,path:p,kind:w}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=o,this.scope=f,this.path=p,this.kind=w,(w==="var"||w==="hoisted")&&l(p)&&this.reassign(p),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(o){this.hasDeoptedValue||(this.hasValue=!0,this.value=o)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(o){this.constant=!1,!this.constantViolations.includes(o)&&this.constantViolations.push(o)}reference(o){this.referencePaths.includes(o)||(this.referenced=!0,this.references++,this.referencePaths.push(o))}dereference(){this.references--,this.referenced=!!this.references}}Sn.default=s;function l(u){const o=!u.isVariableDeclarator()||u.node.init;for(let{parentPath:f,key:p}=u;f;{parentPath:f,key:p}=f){if(f.isFunctionParent())return!1;if(p==="left"&&f.isForXStatement()||o&&p==="body"&&f.isLoop())return!0}return!1}return Sn}var Jt={},lc;function Ms(){if(lc)return Jt;lc=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.clear=l,Jt.clearPath=u,Jt.clearScope=o,Jt.getCachedPaths=f,Jt.getOrCreateCachedPaths=p,Jt.scope=Jt.path=void 0;let s=Jt.path=new WeakMap;Jt.scope=new WeakMap;function l(){u(),o()}function u(){Jt.path=s=new WeakMap}function o(){Jt.scope=new WeakMap}function f(w){const{parent:b,parentPath:E}=w;return s.get(b)}function p(w,b){let E=s.get(w);return E||s.set(w,E=new Map),E}return Jt}const sh=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"],nh=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"];var uc;function Fp(){if(uc)return un;uc=1,Object.defineProperty(un,"__esModule",{value:!0}),un.default=void 0;var s=th(),l=Dn();rh();var u=ih(),o=at(),f=o,p=Ms();const w=sh,b=nh,{assignmentExpression:E,callExpression:C,cloneNode:x,getBindingIdentifiers:N,identifier:P,isArrayExpression:T,isBinary:F,isCallExpression:V,isClass:k,isClassBody:S,isClassDeclaration:G,isExportAllDeclaration:X,isExportDefaultDeclaration:W,isExportNamedDeclaration:ee,isFunctionDeclaration:M,isIdentifier:I,isImportDeclaration:U,isLiteral:B,isMemberExpression:R,isMethod:$,isModuleSpecifier:ae,isNullLiteral:ge,isObjectExpression:Se,isProperty:Ae,isPureish:ne,isRegExpLiteral:Z,isSuper:D,isTaggedTemplateExpression:J,isTemplateLiteral:ie,isThisExpression:Q,isUnaryExpression:fe,isVariableDeclaration:ue,expressionStatement:Pe,matchesPattern:_e,memberExpression:Ke,numericLiteral:ve,toIdentifier:Ce,variableDeclaration:me,variableDeclarator:le,isRecordExpression:de,isTupleExpression:qe,isObjectProperty:$e,isTopicReference:Ze,isMetaProperty:it,isPrivateName:He,isExportDeclaration:we,buildUndefinedNode:Oe,sequenceExpression:ke}=o;function Le(pe,j){switch(pe?.type){default:if(U(pe)||we(pe)){var te;if((X(pe)||ee(pe)||U(pe))&&pe.source)Le(pe.source,j);else if((ee(pe)||U(pe))&&(te=pe.specifiers)!=null&&te.length)for(const ye of pe.specifiers)Le(ye,j);else(W(pe)||ee(pe))&&pe.declaration&&Le(pe.declaration,j)}else ae(pe)?Le(pe.local,j):B(pe)&&!ge(pe)&&!Z(pe)&&!ie(pe)&&j.push(pe.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Le(pe.object,j),Le(pe.property,j);break;case"Identifier":case"JSXIdentifier":j.push(pe.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Le(pe.callee,j);break;case"ObjectExpression":case"ObjectPattern":for(const ye of pe.properties)Le(ye,j);break;case"SpreadElement":case"RestElement":Le(pe.argument,j);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Le(pe.key,j);break;case"ThisExpression":j.push("this");break;case"Super":j.push("super");break;case"Import":case"ImportExpression":j.push("import");break;case"DoExpression":j.push("do");break;case"YieldExpression":j.push("yield"),Le(pe.argument,j);break;case"AwaitExpression":j.push("await"),Le(pe.argument,j);break;case"AssignmentExpression":Le(pe.left,j);break;case"VariableDeclarator":Le(pe.id,j);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Le(pe.id,j);break;case"PrivateName":Le(pe.id,j);break;case"ParenthesizedExpression":Le(pe.expression,j);break;case"UnaryExpression":case"UpdateExpression":Le(pe.argument,j);break;case"MetaProperty":Le(pe.meta,j),Le(pe.property,j);break;case"JSXElement":Le(pe.openingElement,j);break;case"JSXOpeningElement":Le(pe.name,j);break;case"JSXFragment":Le(pe.openingFragment,j);break;case"JSXOpeningFragment":j.push("Fragment");break;case"JSXNamespacedName":Le(pe.namespace,j),Le(pe.name,j);break}}function Ve(pe){pe.references=Object.create(null),pe.uids=Object.create(null),pe.bindings=Object.create(null),pe.globals=Object.create(null)}function Qe(pe){return pe.isFunctionExpression()&&!pe.node.id||pe.isArrowFunctionExpression()}var et=Symbol.for("should not be considered a local binding");const ht={ForStatement(pe){const j=pe.get("init");if(j.isVar()){const{scope:te}=pe;(te.getFunctionParent()||te.getProgramParent()).registerBinding("var",j)}},Declaration(pe){if(pe.isBlockScoped()||pe.isImportDeclaration()||pe.isExportDeclaration())return;(pe.scope.getFunctionParent()||pe.scope.getProgramParent()).registerDeclaration(pe)},ImportDeclaration(pe){pe.scope.getBlockParent().registerDeclaration(pe)},TSImportEqualsDeclaration(pe){pe.scope.getBlockParent().registerDeclaration(pe)},ReferencedIdentifier(pe,j){f.isTSQualifiedName(pe.parent)&&pe.parent.right===pe.node||pe.parentPath.isTSImportEqualsDeclaration()||j.references.push(pe)},ForXStatement(pe,j){const te=pe.get("left");if(te.isPattern()||te.isIdentifier())j.constantViolations.push(pe);else if(te.isVar()){const{scope:ye}=pe;(ye.getFunctionParent()||ye.getProgramParent()).registerBinding("var",te)}},ExportDeclaration:{exit(pe){const{node:j,scope:te}=pe;if(X(j))return;const ye=j.declaration;if(G(ye)||M(ye)){const Ie=ye.id;if(!Ie)return;const Re=te.getBinding(Ie.name);Re?.reference(pe)}else if(ue(ye))for(const Ie of ye.declarations)for(const Re of Object.keys(N(Ie))){const Ee=te.getBinding(Re);Ee?.reference(pe)}}},LabeledStatement(pe){pe.scope.getBlockParent().registerDeclaration(pe)},AssignmentExpression(pe,j){j.assignments.push(pe)},UpdateExpression(pe,j){j.constantViolations.push(pe)},UnaryExpression(pe,j){pe.node.operator==="delete"&&j.constantViolations.push(pe)},BlockScoped(pe){let j=pe.scope;if(j.path===pe&&(j=j.parent),j.getBlockParent().registerDeclaration(pe),pe.isClassDeclaration()&&pe.node.id){const Ie=pe.node.id.name;pe.scope.bindings[Ie]=pe.scope.parent.getBinding(Ie)}},CatchClause(pe){pe.scope.registerBinding("let",pe)},Function(pe){const j=pe.get("params");for(const te of j)pe.scope.registerBinding("param",te);pe.isFunctionExpression()&&pe.node.id&&!pe.node.id[et]&&pe.scope.registerBinding("local",pe.get("id"),pe)},ClassExpression(pe){pe.node.id&&!pe.node.id[et]&&pe.scope.registerBinding("local",pe.get("id"),pe)},TSTypeAnnotation(pe){pe.skip()}};let Te,Ue=0;class Be{constructor(j){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:te}=j,ye=p.scope.get(te);if(ye?.path===j)return ye;p.scope.set(te,this),this.uid=Ue++,this.block=te,this.path=j,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var j;let te,ye=this.path;do{var Ie;const Re=ye.key==="key"||ye.listKey==="decorators";ye=ye.parentPath,Re&&ye.isMethod()&&(ye=ye.parentPath),(Ie=ye)!=null&&Ie.isScope()&&(te=ye)}while(ye&&!te);return(j=te)==null?void 0:j.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(j){const te=this.generateUidIdentifier(j);return this.push({id:te}),x(te)}generateUidIdentifier(j){return P(this.generateUid(j))}generateUid(j="temp"){j=Ce(j).replace(/^_+/,"").replace(/\d+$/g,"");let te,ye=0;do te=`_${j}`,ye>=11?te+=ye-1:ye>=9?te+=ye-9:ye>=1&&(te+=ye+1),ye++;while(this.hasLabel(te)||this.hasBinding(te)||this.hasGlobal(te)||this.hasReference(te));const Ie=this.getProgramParent();return Ie.references[te]=!0,Ie.uids[te]=!0,te}generateUidBasedOnNode(j,te){const ye=[];Le(j,ye);let Ie=ye.join("$");return Ie=Ie.replace(/^_/,"")||te||"ref",this.generateUid(Ie.slice(0,20))}generateUidIdentifierBasedOnNode(j,te){return P(this.generateUidBasedOnNode(j,te))}isStatic(j){if(Q(j)||D(j)||Ze(j))return!0;if(I(j)){const te=this.getBinding(j.name);return te?te.constant:this.hasBinding(j.name)}return!1}maybeGenerateMemoised(j,te){if(this.isStatic(j))return null;{const ye=this.generateUidIdentifierBasedOnNode(j);return te?ye:(this.push({id:ye}),x(ye))}}checkBlockScopedCollisions(j,te,ye,Ie){if(te==="param"||j.kind==="local")return;if(te==="let"||j.kind==="let"||j.kind==="const"||j.kind==="module"||j.kind==="param"&&te==="const")throw this.path.hub.buildError(Ie,`Duplicate declaration "${ye}"`,TypeError)}rename(j,te){const ye=this.getBinding(j);ye&&(te||(te=this.generateUidIdentifier(j).name),new s.default(ye,j,te).rename(arguments[2]))}dump(){const j="-".repeat(60);console.log(j);let te=this;do{console.log("#",te.block.type);for(const ye of Object.keys(te.bindings)){const Ie=te.bindings[ye];console.log(" -",ye,{constant:Ie.constant,references:Ie.references,violations:Ie.constantViolations.length,kind:Ie.kind})}}while(te=te.parent);console.log(j)}hasLabel(j){return!!this.getLabel(j)}getLabel(j){return this.labels.get(j)}registerLabel(j){this.labels.set(j.node.label.name,j)}registerDeclaration(j){if(j.isLabeledStatement())this.registerLabel(j);else if(j.isFunctionDeclaration())this.registerBinding("hoisted",j.get("id"),j);else if(j.isVariableDeclaration()){const te=j.get("declarations"),{kind:ye}=j.node;for(const Ie of te)this.registerBinding(ye==="using"||ye==="await using"?"const":ye,Ie)}else if(j.isClassDeclaration()){if(j.node.declare)return;this.registerBinding("let",j)}else if(j.isImportDeclaration()){const te=j.node.importKind==="type"||j.node.importKind==="typeof",ye=j.get("specifiers");for(const Ie of ye){const Re=te||Ie.isImportSpecifier()&&(Ie.node.importKind==="type"||Ie.node.importKind==="typeof");this.registerBinding(Re?"unknown":"module",Ie)}}else if(j.isExportDeclaration()){const te=j.get("declaration");(te.isClassDeclaration()||te.isFunctionDeclaration()||te.isVariableDeclaration())&&this.registerDeclaration(te)}else this.registerBinding("unknown",j)}buildUndefinedNode(){return Oe()}registerConstantViolation(j){const te=j.getAssignmentIdentifiers();for(const Ie of Object.keys(te)){var ye;(ye=this.getBinding(Ie))==null||ye.reassign(j)}}registerBinding(j,te,ye=te){if(!j)throw new ReferenceError("no `kind`");if(te.isVariableDeclaration()){const Ee=te.get("declarations");for(const st of Ee)this.registerBinding(j,st);return}const Ie=this.getProgramParent(),Re=te.getOuterBindingIdentifiers(!0);for(const Ee of Object.keys(Re)){Ie.references[Ee]=!0;for(const st of Re[Ee]){const ot=this.getOwnBinding(Ee);if(ot){if(ot.identifier===st)continue;this.checkBlockScopedCollisions(ot,j,Ee,st)}ot?ot.reassign(ye):this.bindings[Ee]=new u.default({identifier:st,scope:this,path:ye,kind:j})}}}addGlobal(j){this.globals[j.name]=j}hasUid(j){{let te=this;do if(te.uids[j])return!0;while(te=te.parent);return!1}}hasGlobal(j){let te=this;do if(te.globals[j])return!0;while(te=te.parent);return!1}hasReference(j){return!!this.getProgramParent().references[j]}isPure(j,te){if(I(j)){const Ee=this.getBinding(j.name);return Ee?te?Ee.constant:!0:!1}else{if(Q(j)||it(j)||Ze(j)||He(j))return!0;if(k(j)){var ye;return j.superClass&&!this.isPure(j.superClass,te)||((ye=j.decorators)==null?void 0:ye.length)>0?!1:this.isPure(j.body,te)}else if(S(j)){for(const Ee of j.body)if(!this.isPure(Ee,te))return!1;return!0}else{if(F(j))return this.isPure(j.left,te)&&this.isPure(j.right,te);if(T(j)||qe(j)){for(const Ee of j.elements)if(Ee!==null&&!this.isPure(Ee,te))return!1;return!0}else if(Se(j)||de(j)){for(const Ee of j.properties)if(!this.isPure(Ee,te))return!1;return!0}else if($(j)){var Ie;return!(j.computed&&!this.isPure(j.key,te)||((Ie=j.decorators)==null?void 0:Ie.length)>0)}else if(Ae(j)){var Re;return!(j.computed&&!this.isPure(j.key,te)||((Re=j.decorators)==null?void 0:Re.length)>0||($e(j)||j.static)&&j.value!==null&&!this.isPure(j.value,te))}else{if(fe(j))return this.isPure(j.argument,te);if(ie(j)){for(const Ee of j.expressions)if(!this.isPure(Ee,te))return!1;return!0}else return J(j)?_e(j.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(j.quasi,te):R(j)?!j.computed&&I(j.object)&&j.object.name==="Symbol"&&I(j.property)&&j.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):V(j)?_e(j.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&j.arguments.length===1&&f.isStringLiteral(j.arguments[0]):ne(j)}}}}setData(j,te){return this.data[j]=te}getData(j){let te=this;do{const ye=te.data[j];if(ye!=null)return ye}while(te=te.parent)}removeData(j){let te=this;do te.data[j]!=null&&(te.data[j]=null);while(te=te.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const j=this.path;Ve(this),this.data=Object.create(null);let te=this;do{if(te.crawling)return;if(te.path.isProgram())break}while(te=te.parent);const ye=te,Ie={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Te||(Te=l.default.visitors.merge([{Scope(Re){Ve(Re.scope)}},ht])),j.type!=="Program"){const Re=Te[j.type];if(Re)for(const Ee of Re.enter)Ee.call(Ie,j,Ie)}j.traverse(Te,Ie),this.crawling=!1;for(const Re of Ie.assignments){const Ee=Re.getAssignmentIdentifiers();for(const st of Object.keys(Ee))Re.scope.getBinding(st)||ye.addGlobal(Ee[st]);Re.scope.registerConstantViolation(Re)}for(const Re of Ie.references){const Ee=Re.scope.getBinding(Re.node.name);Ee?Ee.reference(Re):ye.addGlobal(Re.node)}for(const Re of Ie.constantViolations)Re.scope.registerConstantViolation(Re)}push(j){let te=this.path;te.isPattern()?te=this.getPatternParent().path:!te.isBlockStatement()&&!te.isProgram()&&(te=this.getBlockParent().path),te.isSwitchStatement()&&(te=(this.getFunctionParent()||this.getProgramParent()).path);const{init:ye,unique:Ie,kind:Re="var",id:Ee}=j;if(!ye&&!Ie&&(Re==="var"||Re==="let")&&Qe(te)&&V(te.parent,{callee:te.node})&&te.parent.arguments.length<=te.node.params.length&&I(Ee)){te.pushContainer("params",Ee),te.scope.registerBinding("param",te.get("params")[te.node.params.length-1]);return}(te.isLoop()||te.isCatchClause()||te.isFunction())&&(te.ensureBlock(),te=te.get("body"));const st=j._blockHoist==null?2:j._blockHoist,ot=`declaration:${Re}:${st}`;let he=!Ie&&te.getData(ot);if(!he){const ce=me(Re,[]);ce._blockHoist=st,[he]=te.unshiftContainer("body",[ce]),Ie||te.setData(ot,he)}const q=le(Ee,ye),_=he.node.declarations.push(q);te.scope.registerBinding(Re,he.get("declarations")[_-1])}getProgramParent(){let j=this;do if(j.path.isProgram())return j;while(j=j.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let j=this;do if(j.path.isFunctionParent())return j;while(j=j.parent);return null}getBlockParent(){let j=this;do if(j.path.isBlockParent())return j;while(j=j.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let j=this;do if(!j.path.isPattern())return j.getBlockParent();while(j=j.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const j=Object.create(null);let te=this;do{for(const ye of Object.keys(te.bindings))ye in j||(j[ye]=te.bindings[ye]);te=te.parent}while(te);return j}bindingIdentifierEquals(j,te){return this.getBindingIdentifier(j)===te}getBinding(j){let te=this,ye;do{const Re=te.getOwnBinding(j);if(Re){var Ie;if(!((Ie=ye)!=null&&Ie.isPattern()&&Re.kind!=="param"&&Re.kind!=="local"))return Re}else if(!Re&&j==="arguments"&&te.path.isFunction()&&!te.path.isArrowFunctionExpression())break;ye=te.path}while(te=te.parent)}getOwnBinding(j){return this.bindings[j]}getBindingIdentifier(j){var te;return(te=this.getBinding(j))==null?void 0:te.identifier}getOwnBindingIdentifier(j){const te=this.bindings[j];return te?.identifier}hasOwnBinding(j){return!!this.getOwnBinding(j)}hasBinding(j,te){if(!j)return!1;let ye,Ie,Re;typeof te=="object"?(ye=te.noGlobals,Ie=te.noUids,Re=te.upToScope):typeof te=="boolean"&&(ye=te);let Ee=this;do{if(Re===Ee)break;if(Ee.hasOwnBinding(j))return!0}while(Ee=Ee.parent);return!!(!Ie&&this.hasUid(j)||!ye&&Be.globals.includes(j)||!ye&&Be.contextVariables.includes(j))}parentHasBinding(j,te){var ye;return(ye=this.parent)==null?void 0:ye.hasBinding(j,te)}moveBindingTo(j,te){const ye=this.getBinding(j);ye&&(ye.scope.removeOwnBinding(j),ye.scope=te,te.bindings[j]=ye)}removeOwnBinding(j){delete this.bindings[j]}removeBinding(j){var te;(te=this.getBinding(j))==null||te.scope.removeOwnBinding(j);{let ye=this;do ye.uids[j]&&(ye.uids[j]=!1);while(ye=ye.parent)}}hoistVariables(j=te=>this.push({id:te})){this.crawl();const te=new Set;for(const ye of Object.keys(this.bindings)){const Ie=this.bindings[ye];if(!Ie)continue;const{path:Re}=Ie;if(!Re.isVariableDeclarator())continue;const{parent:Ee,parentPath:st}=Re;if(Ee.kind!=="var"||te.has(Ee))continue;te.add(Re.parent);let ot;const he=[];for(const q of Ee.declarations){ot??(ot=q.id),q.init&&he.push(E("=",q.id,q.init));const _=Object.keys(N(q,!1,!0,!0));for(const ce of _)j(P(ce),q.init!=null)}if(st.parentPath.isForXStatement({left:Ee}))st.replaceWith(ot);else if(he.length===0)st.remove();else{const q=he.length===1?he[0]:ke(he);st.parentPath.isForStatement({init:Ee})?st.replaceWith(q):st.replaceWith(Pe(q))}}}}return un.default=Be,Be.globals=[...w,...b],Be.contextVariables=["arguments","undefined","Infinity","NaN"],Be.prototype._renameFromMap=function(j,te,ye,Ie){j[te]&&(j[ye]=Ie,j[te]=null)},Be.prototype.traverse=function(pe,j,te){(0,l.default)(pe,j,this,te,this.path)},Be.prototype._generateUid=function(j,te){let ye=j;return te>1&&(ye+=te),`_${ye}`},Be.prototype.toArray=function(j,te,ye){if(I(j)){const Ee=this.getBinding(j.name);if(Ee!=null&&Ee.constant&&Ee.path.isGenericType("Array"))return j}if(T(j))return j;if(I(j,{name:"arguments"}))return C(Ke(Ke(Ke(P("Array"),P("prototype")),P("slice")),P("call")),[j]);let Ie;const Re=[j];return te===!0?Ie="toConsumableArray":typeof te=="number"?(Re.push(ve(te)),Ie="slicedToArray"):Ie="toArray",ye&&(Re.unshift(this.path.hub.addHelper(Ie)),Ie="maybeArrayLike"),C(this.path.hub.addHelper(Ie),Re)},Be.prototype.getAllBindingsOfKind=function(...j){const te=Object.create(null);for(const ye of j){let Ie=this;do{for(const Re of Object.keys(Ie.bindings)){const Ee=Ie.bindings[Re];Ee.kind===ye&&(te[Re]=Ee)}Ie=Ie.parent}while(Ie)}return te},Object.defineProperties(Be.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}}),un}var Cs={},gn={},Qa={exports:{}},Za={exports:{}},ah=Za.exports,cc;function Rp(){return cc||(cc=1,(function(s,l){(function(u,o){o(s),s.exports=f(s);function f(p){return"default"in p.exports?p.exports.default:p.exports}})(ah,(function(u){var o=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,w=Object.prototype.hasOwnProperty,b=(J,ie)=>{for(var Q in ie)o(J,Q,{get:ie[Q],enumerable:!0})},E=(J,ie,Q,fe)=>{if(ie&&typeof ie=="object"||typeof ie=="function")for(let ue of p(ie))!w.call(J,ue)&&ue!==Q&&o(J,ue,{get:()=>ie[ue],enumerable:!(fe=f(ie,ue))||fe.enumerable});return J},C=J=>E(o({},"__esModule",{value:!0}),J),x={};b(x,{decode:()=>Ae,decodeGeneratedRanges:()=>$,decodeOriginalScopes:()=>U,encode:()=>D,encodeGeneratedRanges:()=>ae,encodeOriginalScopes:()=>B}),u.exports=C(x);var N=44,P=59,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F=new Uint8Array(64),V=new Uint8Array(128);for(let J=0;J<T.length;J++){const ie=T.charCodeAt(J);F[J]=ie,V[ie]=J}function k(J,ie){let Q=0,fe=0,ue=0;do{const _e=J.next();ue=V[_e],Q|=(ue&31)<<fe,fe+=5}while(ue&32);const Pe=Q&1;return Q>>>=1,Pe&&(Q=-2147483648|-Q),ie+Q}function S(J,ie,Q){let fe=ie-Q;fe=fe<0?-fe<<1|1:fe<<1;do{let ue=fe&31;fe>>>=5,fe>0&&(ue|=32),J.write(F[ue])}while(fe>0);return ie}function G(J,ie){return J.pos>=ie?!1:J.peek()!==N}var X=1024*16,W=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(J){return Buffer.from(J.buffer,J.byteOffset,J.byteLength).toString()}}:{decode(J){let ie="";for(let Q=0;Q<J.length;Q++)ie+=String.fromCharCode(J[Q]);return ie}},ee=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(X)}write(J){const{buffer:ie}=this;ie[this.pos++]=J,this.pos===X&&(this.out+=W.decode(ie),this.pos=0)}flush(){const{buffer:J,out:ie,pos:Q}=this;return Q>0?ie+W.decode(J.subarray(0,Q)):ie}},M=class{constructor(J){this.pos=0,this.buffer=J}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(J){const{buffer:ie,pos:Q}=this,fe=ie.indexOf(J,Q);return fe===-1?ie.length:fe}},I=[];function U(J){const{length:ie}=J,Q=new M(J),fe=[],ue=[];let Pe=0;for(;Q.pos<ie;Q.pos++){Pe=k(Q,Pe);const _e=k(Q,0);if(!G(Q,ie)){const de=ue.pop();de[2]=Pe,de[3]=_e;continue}const Ke=k(Q,0),me=k(Q,0)&1?[Pe,_e,0,0,Ke,k(Q,0)]:[Pe,_e,0,0,Ke];let le=I;if(G(Q,ie)){le=[];do{const de=k(Q,0);le.push(de)}while(G(Q,ie))}me.vars=le,fe.push(me),ue.push(me)}return fe}function B(J){const ie=new ee;for(let Q=0;Q<J.length;)Q=R(J,Q,ie,[0]);return ie.flush()}function R(J,ie,Q,fe){const ue=J[ie],{0:Pe,1:_e,2:Ke,3:ve,4:Ce,vars:me}=ue;ie>0&&Q.write(N),fe[0]=S(Q,Pe,fe[0]),S(Q,_e,0),S(Q,Ce,0);const le=ue.length===6?1:0;S(Q,le,0),ue.length===6&&S(Q,ue[5],0);for(const de of me)S(Q,de,0);for(ie++;ie<J.length;){const de=J[ie],{0:qe,1:$e}=de;if(qe>Ke||qe===Ke&&$e>=ve)break;ie=R(J,ie,Q,fe)}return Q.write(N),fe[0]=S(Q,Ke,fe[0]),S(Q,ve,0),ie}function $(J){const{length:ie}=J,Q=new M(J),fe=[],ue=[];let Pe=0,_e=0,Ke=0,ve=0,Ce=0,me=0,le=0,de=0;do{const qe=Q.indexOf(";");let $e=0;for(;Q.pos<qe;Q.pos++){if($e=k(Q,$e),!G(Q,qe)){const Ve=ue.pop();Ve[2]=Pe,Ve[3]=$e;continue}const Ze=k(Q,0),it=Ze&1,He=Ze&2,we=Ze&4;let Oe=null,ke=I,Le;if(it){const Ve=k(Q,_e);Ke=k(Q,_e===Ve?Ke:0),_e=Ve,Le=[Pe,$e,0,0,Ve,Ke]}else Le=[Pe,$e,0,0];if(Le.isScope=!!we,He){const Ve=ve,Qe=Ce;ve=k(Q,ve);const et=Ve===ve;Ce=k(Q,et?Ce:0),me=k(Q,et&&Qe===Ce?me:0),Oe=[ve,Ce,me]}if(Le.callsite=Oe,G(Q,qe)){ke=[];do{le=Pe,de=$e;const Ve=k(Q,0);let Qe;if(Ve<-1){Qe=[[k(Q,0)]];for(let et=-1;et>Ve;et--){const ht=le;le=k(Q,le),de=k(Q,le===ht?de:0);const Te=k(Q,0);Qe.push([Te,le,de])}}else Qe=[[Ve]];ke.push(Qe)}while(G(Q,qe))}Le.bindings=ke,fe.push(Le),ue.push(Le)}Pe++,Q.pos=qe+1}while(Q.pos<ie);return fe}function ae(J){if(J.length===0)return"";const ie=new ee;for(let Q=0;Q<J.length;)Q=ge(J,Q,ie,[0,0,0,0,0,0,0]);return ie.flush()}function ge(J,ie,Q,fe){const ue=J[ie],{0:Pe,1:_e,2:Ke,3:ve,isScope:Ce,callsite:me,bindings:le}=ue;fe[0]<Pe?(Se(Q,fe[0],Pe),fe[0]=Pe,fe[1]=0):ie>0&&Q.write(N),fe[1]=S(Q,ue[1],fe[1]);const de=(ue.length===6?1:0)|(me?2:0)|(Ce?4:0);if(S(Q,de,0),ue.length===6){const{4:qe,5:$e}=ue;qe!==fe[2]&&(fe[3]=0),fe[2]=S(Q,qe,fe[2]),fe[3]=S(Q,$e,fe[3])}if(me){const{0:qe,1:$e,2:Ze}=ue.callsite;qe!==fe[4]?(fe[5]=0,fe[6]=0):$e!==fe[5]&&(fe[6]=0),fe[4]=S(Q,qe,fe[4]),fe[5]=S(Q,$e,fe[5]),fe[6]=S(Q,Ze,fe[6])}if(le)for(const qe of le){qe.length>1&&S(Q,-qe.length,0);const $e=qe[0][0];S(Q,$e,0);let Ze=Pe,it=_e;for(let He=1;He<qe.length;He++){const we=qe[He];Ze=S(Q,we[1],Ze),it=S(Q,we[2],it),S(Q,we[0],0)}}for(ie++;ie<J.length;){const qe=J[ie],{0:$e,1:Ze}=qe;if($e>Ke||$e===Ke&&Ze>=ve)break;ie=ge(J,ie,Q,fe)}return fe[0]<Ke?(Se(Q,fe[0],Ke),fe[0]=Ke,fe[1]=0):Q.write(N),fe[1]=S(Q,ve,fe[1]),ie}function Se(J,ie,Q){do J.write(P);while(++ie<Q)}function Ae(J){const{length:ie}=J,Q=new M(J),fe=[];let ue=0,Pe=0,_e=0,Ke=0,ve=0;do{const Ce=Q.indexOf(";"),me=[];let le=!0,de=0;for(ue=0;Q.pos<Ce;){let qe;ue=k(Q,ue),ue<de&&(le=!1),de=ue,G(Q,Ce)?(Pe=k(Q,Pe),_e=k(Q,_e),Ke=k(Q,Ke),G(Q,Ce)?(ve=k(Q,ve),qe=[ue,Pe,_e,Ke,ve]):qe=[ue,Pe,_e,Ke]):qe=[ue],me.push(qe),Q.pos++}le||ne(me),fe.push(me),Q.pos=Ce+1}while(Q.pos<=ie);return fe}function ne(J){J.sort(Z)}function Z(J,ie){return J[0]-ie[0]}function D(J){const ie=new ee;let Q=0,fe=0,ue=0,Pe=0;for(let _e=0;_e<J.length;_e++){const Ke=J[_e];if(_e>0&&ie.write(P),Ke.length===0)continue;let ve=0;for(let Ce=0;Ce<Ke.length;Ce++){const me=Ke[Ce];Ce>0&&ie.write(N),ve=S(ie,me[0],ve),me.length!==1&&(Q=S(ie,me[1],Q),fe=S(ie,me[2],fe),ue=S(ie,me[3],ue),me.length!==4&&(Pe=S(ie,me[4],Pe)))}}return ie.flush()}}))})(Za)),Za.exports}var eo={exports:{}},to={exports:{}},oh=to.exports,pc;function lh(){return pc||(pc=1,(function(s,l){(function(u,o){s.exports=o()})(oh,(function(){const u=/^[\w+.-]+:\/\//,o=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,f=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function p(G){return u.test(G)}function w(G){return G.startsWith("//")}function b(G){return G.startsWith("/")}function E(G){return G.startsWith("file:")}function C(G){return/^[.?#]/.test(G)}function x(G){const X=o.exec(G);return P(X[1],X[2]||"",X[3],X[4]||"",X[5]||"/",X[6]||"",X[7]||"")}function N(G){const X=f.exec(G),W=X[2];return P("file:","",X[1]||"","",b(W)?W:"/"+W,X[3]||"",X[4]||"")}function P(G,X,W,ee,M,I,U){return{scheme:G,user:X,host:W,port:ee,path:M,query:I,hash:U,type:7}}function T(G){if(w(G)){const W=x("http:"+G);return W.scheme="",W.type=6,W}if(b(G)){const W=x("http://foo.com"+G);return W.scheme="",W.host="",W.type=5,W}if(E(G))return N(G);if(p(G))return x(G);const X=x("http://foo.com/"+G);return X.scheme="",X.host="",X.type=G?G.startsWith("?")?3:G.startsWith("#")?2:4:1,X}function F(G){if(G.endsWith("/.."))return G;const X=G.lastIndexOf("/");return G.slice(0,X+1)}function V(G,X){k(X,X.type),G.path==="/"?G.path=X.path:G.path=F(X.path)+G.path}function k(G,X){const W=X<=4,ee=G.path.split("/");let M=1,I=0,U=!1;for(let R=1;R<ee.length;R++){const $=ee[R];if(!$){U=!0;continue}if(U=!1,$!=="."){if($===".."){I?(U=!0,I--,M--):W&&(ee[M++]=$);continue}ee[M++]=$,I++}}let B="";for(let R=1;R<M;R++)B+="/"+ee[R];(!B||U&&!B.endsWith("/.."))&&(B+="/"),G.path=B}function S(G,X){if(!G&&!X)return"";const W=T(G);let ee=W.type;if(X&&ee!==7){const I=T(X),U=I.type;switch(ee){case 1:W.hash=I.hash;case 2:W.query=I.query;case 3:case 4:V(W,I);case 5:W.user=I.user,W.host=I.host,W.port=I.port;case 6:W.scheme=I.scheme}U>ee&&(ee=U)}k(W,ee);const M=W.query+W.hash;switch(ee){case 2:case 3:return M;case 4:{const I=W.path.slice(1);return I?C(X||G)&&!C(I)?"./"+I+M:I+M:M||"."}case 5:return W.path+M;default:return W.scheme+"//"+W.user+W.host+W.port+W.path+M}}return S}))})(to)),to.exports}var uh=eo.exports,fc;function jp(){return fc||(fc=1,(function(s,l){(function(u,o){o(s,lh(),Rp()),s.exports=f(s);function f(p){return"default"in p.exports?p.exports.default:p.exports}})(uh,(function(u,o,f){var p=Object.create,w=Object.defineProperty,b=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,C=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,N=(he,q)=>function(){return q||(0,he[E(he)[0]])((q={exports:{}}).exports,q),q.exports},P=(he,q)=>{for(var _ in q)w(he,_,{get:q[_],enumerable:!0})},T=(he,q,_,ce)=>{if(q&&typeof q=="object"||typeof q=="function")for(let Ne of E(q))!x.call(he,Ne)&&Ne!==_&&w(he,Ne,{get:()=>q[Ne],enumerable:!(ce=b(q,Ne))||ce.enumerable});return he},F=(he,q,_)=>(_=he!=null?p(C(he)):{},T(!he||!he.__esModule?w(_,"default",{value:he,enumerable:!0}):_,he)),V=he=>T(w({},"__esModule",{value:!0}),he),k=N({"umd:@jridgewell/sourcemap-codec"(he,q){q.exports=f}}),S=N({"umd:@jridgewell/resolve-uri"(he,q){q.exports=o}}),G={};P(G,{AnyMap:()=>ve,FlattenMap:()=>ve,GREATEST_LOWER_BOUND:()=>it,LEAST_UPPER_BOUND:()=>Ze,TraceMap:()=>He,allGeneratedPositionsFor:()=>et,decodedMap:()=>j,decodedMappings:()=>ke,eachMapping:()=>ht,encodedMap:()=>te,encodedMappings:()=>Oe,generatedPositionFor:()=>Qe,isIgnored:()=>Be,originalPositionFor:()=>Ve,presortedDecodedMap:()=>pe,sourceContentFor:()=>Ue,traceSegment:()=>Le}),u.exports=V(G);var X=F(k()),W=F(S());function ee(he){if(!he)return"";const q=he.lastIndexOf("/");return he.slice(0,q+1)}function M(he,q){const _=ee(he),ce=q?q+"/":"";return Ne=>(0,W.default)(ce+(Ne||""),_)}var I=0,U=1,B=2,R=3,$=4,ae=1,ge=2;function Se(he,q){const _=Ae(he,0);if(_===he.length)return he;q||(he=he.slice());for(let ce=_;ce<he.length;ce=Ae(he,ce+1))he[ce]=Z(he[ce],q);return he}function Ae(he,q){for(let _=q;_<he.length;_++)if(!ne(he[_]))return _;return he.length}function ne(he){for(let q=1;q<he.length;q++)if(he[q][I]<he[q-1][I])return!1;return!0}function Z(he,q){return q||(he=he.slice()),he.sort(D)}function D(he,q){return he[I]-q[I]}function J(he,q){const _=q.map(()=>[]);for(let ce=0;ce<he.length;ce++){const Ne=he[ce];for(let Me=0;Me<Ne.length;Me++){const Ge=Ne[Me];if(Ge.length===1)continue;const ut=Ge[U],rt=Ge[B],dt=Ge[R],yt=_[ut];(yt[rt]||(yt[rt]=[])).push([dt,ce,Ge[I]])}}for(let ce=0;ce<_.length;ce++){const Ne=_[ce];for(let Me=0;Me<Ne.length;Me++){const Ge=Ne[Me];Ge&&Ge.sort(D)}}return _}var ie=!1;function Q(he,q,_,ce){for(;_<=ce;){const Ne=_+(ce-_>>1),Me=he[Ne][I]-q;if(Me===0)return ie=!0,Ne;Me<0?_=Ne+1:ce=Ne-1}return ie=!1,_-1}function fe(he,q,_){for(let ce=_+1;ce<he.length&&he[ce][I]===q;_=ce++);return _}function ue(he,q,_){for(let ce=_-1;ce>=0&&he[ce][I]===q;_=ce--);return _}function Pe(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function _e(he,q,_,ce){const{lastKey:Ne,lastNeedle:Me,lastIndex:Ge}=_;let ut=0,rt=he.length-1;if(ce===Ne){if(q===Me)return ie=Ge!==-1&&he[Ge][I]===q,Ge;q>=Me?ut=Ge===-1?0:Ge:rt=Ge}return _.lastKey=ce,_.lastNeedle=q,_.lastIndex=Q(he,q,ut,rt)}function Ke(he){return typeof he=="string"?JSON.parse(he):he}var ve=function(he,q){const _=Ke(he);if(!("sections"in _))return new He(_,q);const ce=[],Ne=[],Me=[],Ge=[],ut=[];Ce(_,q,ce,Ne,Me,Ge,ut,0,0,1/0,1/0);const rt={version:3,file:_.file,names:Ge,sources:Ne,sourcesContent:Me,mappings:ce,ignoreList:ut};return pe(rt)};function Ce(he,q,_,ce,Ne,Me,Ge,ut,rt,dt,yt){const{sections:gt}=he;for(let At=0;At<gt.length;At++){const{map:wt,offset:Nt}=gt[At];let Ot=dt,Lt=yt;if(At+1<gt.length){const qt=gt[At+1].offset;Ot=Math.min(dt,ut+qt.line),Ot===dt?Lt=Math.min(yt,rt+qt.column):Ot<dt&&(Lt=rt+qt.column)}me(wt,q,_,ce,Ne,Me,Ge,ut+Nt.line,rt+Nt.column,Ot,Lt)}}function me(he,q,_,ce,Ne,Me,Ge,ut,rt,dt,yt){const gt=Ke(he);if("sections"in gt)return Ce(...arguments);const At=new He(gt,q),wt=ce.length,Nt=Me.length,Ot=ke(At),{resolvedSources:Lt,sourcesContent:qt,ignoreList:sr}=At;if(le(ce,Lt),le(Me,At.names),qt)le(Ne,qt);else for(let Je=0;Je<Lt.length;Je++)Ne.push(null);if(sr)for(let Je=0;Je<sr.length;Je++)Ge.push(sr[Je]+wt);for(let Je=0;Je<Ot.length;Je++){const nr=ut+Je;if(nr>dt)return;const ar=de(_,nr),Ar=Je===0?rt:0,dr=Ot[Je];for(let or=0;or<dr.length;or++){const Ft=dr[or],tr=Ar+Ft[I];if(nr===dt&&tr>=yt)return;if(Ft.length===1){ar.push([tr]);continue}const mr=wt+Ft[U],Xt=Ft[B],Rt=Ft[R];ar.push(Ft.length===4?[tr,mr,Xt,Rt]:[tr,mr,Xt,Rt,Nt+Ft[$]])}}}function le(he,q){for(let _=0;_<q.length;_++)he.push(q[_])}function de(he,q){for(let _=he.length;_<=q;_++)he[_]=[];return he[q]}var qe="`line` must be greater than 0 (lines start at line 1)",$e="`column` must be greater than or equal to 0 (columns start at column 0)",Ze=-1,it=1,He=class{constructor(he,q){const _=typeof he=="string";if(!_&&he._decodedMemo)return he;const ce=Ke(he),{version:Ne,file:Me,names:Ge,sourceRoot:ut,sources:rt,sourcesContent:dt}=ce;this.version=Ne,this.file=Me,this.names=Ge||[],this.sourceRoot=ut,this.sources=rt,this.sourcesContent=dt,this.ignoreList=ce.ignoreList||ce.x_google_ignoreList||void 0;const yt=M(q,ut);this.resolvedSources=rt.map(yt);const{mappings:gt}=ce;if(typeof gt=="string")this._encoded=gt,this._decoded=void 0;else if(Array.isArray(gt))this._encoded=void 0,this._decoded=Se(gt,_);else throw ce.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(ce)}`);this._decodedMemo=Pe(),this._bySources=void 0,this._bySourceMemos=void 0}};function we(he){return he}function Oe(he){var q,_;return(_=(q=he)._encoded)!=null?_:q._encoded=(0,X.encode)(he._decoded)}function ke(he){var q;return(q=he)._decoded||(q._decoded=(0,X.decode)(he._encoded))}function Le(he,q,_){const ce=ke(he);if(q>=ce.length)return null;const Ne=ce[q],Me=Ee(Ne,he._decodedMemo,q,_,it);return Me===-1?null:Ne[Me]}function Ve(he,q){let{line:_,column:ce,bias:Ne}=q;if(_--,_<0)throw new Error(qe);if(ce<0)throw new Error($e);const Me=ke(he);if(_>=Me.length)return Ie(null,null,null,null);const Ge=Me[_],ut=Ee(Ge,he._decodedMemo,_,ce,Ne||it);if(ut===-1)return Ie(null,null,null,null);const rt=Ge[ut];if(rt.length===1)return Ie(null,null,null,null);const{names:dt,resolvedSources:yt}=he;return Ie(yt[rt[U]],rt[B]+1,rt[R],rt.length===5?dt[rt[$]]:null)}function Qe(he,q){const{source:_,line:ce,column:Ne,bias:Me}=q;return ot(he,_,ce,Ne,Me||it,!1)}function et(he,q){const{source:_,line:ce,column:Ne,bias:Me}=q;return ot(he,_,ce,Ne,Me||Ze,!0)}function ht(he,q){const _=ke(he),{names:ce,resolvedSources:Ne}=he;for(let Me=0;Me<_.length;Me++){const Ge=_[Me];for(let ut=0;ut<Ge.length;ut++){const rt=Ge[ut],dt=Me+1,yt=rt[0];let gt=null,At=null,wt=null,Nt=null;rt.length!==1&&(gt=Ne[rt[1]],At=rt[2]+1,wt=rt[3]),rt.length===5&&(Nt=ce[rt[4]]),q({generatedLine:dt,generatedColumn:yt,source:gt,originalLine:At,originalColumn:wt,name:Nt})}}}function Te(he,q){const{sources:_,resolvedSources:ce}=he;let Ne=_.indexOf(q);return Ne===-1&&(Ne=ce.indexOf(q)),Ne}function Ue(he,q){const{sourcesContent:_}=he;if(_==null)return null;const ce=Te(he,q);return ce===-1?null:_[ce]}function Be(he,q){const{ignoreList:_}=he;if(_==null)return!1;const ce=Te(he,q);return ce===-1?!1:_.includes(ce)}function pe(he,q){const _=new He(ye(he,[]),q);return _._decoded=he.mappings,_}function j(he){return ye(he,ke(he))}function te(he){return ye(he,Oe(he))}function ye(he,q){return{version:he.version,file:he.file,names:he.names,sourceRoot:he.sourceRoot,sources:he.sources,sourcesContent:he.sourcesContent,mappings:q,ignoreList:he.ignoreList||he.x_google_ignoreList}}function Ie(he,q,_,ce){return{source:he,line:q,column:_,name:ce}}function Re(he,q){return{line:he,column:q}}function Ee(he,q,_,ce,Ne){let Me=_e(he,ce,q,_);return ie?Me=(Ne===Ze?fe:ue)(he,ce,Me):Ne===Ze&&Me++,Me===-1||Me===he.length?-1:Me}function st(he,q,_,ce,Ne){let Me=Ee(he,q,_,ce,it);if(!ie&&Ne===Ze&&Me++,Me===-1||Me===he.length)return[];const Ge=ie?ce:he[Me][I];ie||(Me=ue(he,Ge,Me));const ut=fe(he,Ge,Me),rt=[];for(;Me<=ut;Me++){const dt=he[Me];rt.push(Re(dt[ae]+1,dt[ge]))}return rt}function ot(he,q,_,ce,Ne,Me){var Ge,ut;if(_--,_<0)throw new Error(qe);if(ce<0)throw new Error($e);const{sources:rt,resolvedSources:dt}=he;let yt=rt.indexOf(q);if(yt===-1&&(yt=dt.indexOf(q)),yt===-1)return Me?[]:Re(null,null);const gt=(Ge=he)._bySourceMemos||(Ge._bySourceMemos=rt.map(Pe)),wt=((ut=he)._bySources||(ut._bySources=J(ke(he),gt)))[yt][_];if(wt==null)return Me?[]:Re(null,null);const Nt=gt[yt];if(Me)return st(wt,Nt,_,ce,Ne);const Ot=Ee(wt,Nt,_,ce,Ne);if(Ot===-1)return Re(null,null);const Lt=wt[Ot];return Re(Lt[ae]+1,Lt[ge])}}))})(eo)),eo.exports}var ch=Qa.exports,hc;function ph(){return hc||(hc=1,(function(s,l){(function(u,o){o(s,Rp(),jp()),s.exports=f(s);function f(p){return"default"in p.exports?p.exports.default:p.exports}})(ch,(function(u,o,f){var p=Object.create,w=Object.defineProperty,b=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,C=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,N=(we,Oe)=>function(){return Oe||(0,we[E(we)[0]])((Oe={exports:{}}).exports,Oe),Oe.exports},P=(we,Oe)=>{for(var ke in Oe)w(we,ke,{get:Oe[ke],enumerable:!0})},T=(we,Oe,ke,Le)=>{if(Oe&&typeof Oe=="object"||typeof Oe=="function")for(let Ve of E(Oe))!x.call(we,Ve)&&Ve!==ke&&w(we,Ve,{get:()=>Oe[Ve],enumerable:!(Le=b(Oe,Ve))||Le.enumerable});return we},F=(we,Oe,ke)=>(ke=we!=null?p(C(we)):{},T(!we||!we.__esModule?w(ke,"default",{value:we,enumerable:!0}):ke,we)),V=we=>T(w({},"__esModule",{value:!0}),we),k=N({"umd:@jridgewell/sourcemap-codec"(we,Oe){Oe.exports=o}}),S=N({"umd:@jridgewell/trace-mapping"(we,Oe){Oe.exports=f}}),G={};P(G,{GenMapping:()=>ne,addMapping:()=>J,addSegment:()=>D,allMappings:()=>ve,fromMap:()=>Ke,maybeAddMapping:()=>Q,maybeAddSegment:()=>ie,setIgnore:()=>ue,setSourceContent:()=>fe,toDecodedMap:()=>Pe,toEncodedMap:()=>_e}),u.exports=V(G);var X=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function W(we){return we}function ee(we,Oe){return we._indexes[Oe]}function M(we,Oe){const ke=ee(we,Oe);if(ke!==void 0)return ke;const{array:Le,_indexes:Ve}=we,Qe=Le.push(Oe);return Ve[Oe]=Qe-1}function I(we,Oe){const ke=ee(we,Oe);if(ke===void 0)return;const{array:Le,_indexes:Ve}=we;for(let Qe=ke+1;Qe<Le.length;Qe++){const et=Le[Qe];Le[Qe-1]=et,Ve[et]--}Ve[Oe]=void 0,Le.pop()}var U=F(k()),B=F(S()),R=0,$=1,ae=2,ge=3,Se=4,Ae=-1,ne=class{constructor({file:we,sourceRoot:Oe}={}){this._names=new X,this._sources=new X,this._sourcesContent=[],this._mappings=[],this.file=we,this.sourceRoot=Oe,this._ignoreList=new X}};function Z(we){return we}function D(we,Oe,ke,Le,Ve,Qe,et,ht){return Ce(!1,we,Oe,ke,Le,Ve,Qe,et,ht)}function J(we,Oe){return He(!1,we,Oe)}var ie=(we,Oe,ke,Le,Ve,Qe,et,ht)=>Ce(!0,we,Oe,ke,Le,Ve,Qe,et,ht),Q=(we,Oe)=>He(!0,we,Oe);function fe(we,Oe,ke){const{_sources:Le,_sourcesContent:Ve}=we,Qe=M(Le,Oe);Ve[Qe]=ke}function ue(we,Oe,ke=!0){const{_sources:Le,_sourcesContent:Ve,_ignoreList:Qe}=we,et=M(Le,Oe);et===Ve.length&&(Ve[et]=null),ke?M(Qe,et):I(Qe,et)}function Pe(we){const{_mappings:Oe,_sources:ke,_sourcesContent:Le,_names:Ve,_ignoreList:Qe}=we;return qe(Oe),{version:3,file:we.file||void 0,names:Ve.array,sourceRoot:we.sourceRoot||void 0,sources:ke.array,sourcesContent:Le,mappings:Oe,ignoreList:Qe.array}}function _e(we){const Oe=Pe(we);return Object.assign({},Oe,{mappings:(0,U.encode)(Oe.mappings)})}function Ke(we){const Oe=new B.TraceMap(we),ke=new ne({file:Oe.file,sourceRoot:Oe.sourceRoot});return $e(ke._names,Oe.names),$e(ke._sources,Oe.sources),ke._sourcesContent=Oe.sourcesContent||Oe.sources.map(()=>null),ke._mappings=(0,B.decodedMappings)(Oe),Oe.ignoreList&&$e(ke._ignoreList,Oe.ignoreList),ke}function ve(we){const Oe=[],{_mappings:ke,_sources:Le,_names:Ve}=we;for(let Qe=0;Qe<ke.length;Qe++){const et=ke[Qe];for(let ht=0;ht<et.length;ht++){const Te=et[ht],Ue={line:Qe+1,column:Te[R]};let Be,pe,j;Te.length!==1&&(Be=Le.array[Te[$]],pe={line:Te[ae]+1,column:Te[ge]},Te.length===5&&(j=Ve.array[Te[Se]])),Oe.push({generated:Ue,source:Be,original:pe,name:j})}}return Oe}function Ce(we,Oe,ke,Le,Ve,Qe,et,ht,Te){const{_mappings:Ue,_sources:Be,_sourcesContent:pe,_names:j}=Oe,te=me(Ue,ke),ye=le(te,Le);if(!Ve)return we&&Ze(te,ye)?void 0:de(te,ye,[Le]);const Ie=M(Be,Ve),Re=ht?M(j,ht):Ae;if(Ie===pe.length&&(pe[Ie]=Te??null),!(we&&it(te,ye,Ie,Qe,et,Re)))return de(te,ye,ht?[Le,Ie,Qe,et,Re]:[Le,Ie,Qe,et])}function me(we,Oe){for(let ke=we.length;ke<=Oe;ke++)we[ke]=[];return we[Oe]}function le(we,Oe){let ke=we.length;for(let Le=ke-1;Le>=0;ke=Le--){const Ve=we[Le];if(Oe>=Ve[R])break}return ke}function de(we,Oe,ke){for(let Le=we.length;Le>Oe;Le--)we[Le]=we[Le-1];we[Oe]=ke}function qe(we){const{length:Oe}=we;let ke=Oe;for(let Le=ke-1;Le>=0&&!(we[Le].length>0);ke=Le,Le--);ke<Oe&&(we.length=ke)}function $e(we,Oe){for(let ke=0;ke<Oe.length;ke++)M(we,Oe[ke])}function Ze(we,Oe){return Oe===0?!0:we[Oe-1].length===1}function it(we,Oe,ke,Le,Ve,Qe){if(Oe===0)return!1;const et=we[Oe-1];return et.length===1?!1:ke===et[$]&&Le===et[ae]&&Ve===et[ge]&&Qe===(et.length===5?et[Se]:Ae)}function He(we,Oe,ke){const{generated:Le,source:Ve,original:Qe,name:et,content:ht}=ke;return Ve?Ce(we,Oe,Le.line-1,Le.column,Ve,Qe.line-1,Qe.column,et,ht):Ce(we,Oe,Le.line-1,Le.column,null,null,null,null,null)}}))})(Qa)),Qa.exports}var dc;function fh(){if(dc)return gn;dc=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=void 0;var s=ph(),l=jp();class u{constructor(f,p){var w;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;const b=this._map=new s.GenMapping({sourceRoot:f.sourceRoot});if(this._sourceFileName=(w=f.sourceFileName)==null?void 0:w.replace(/\\/g,"/"),this._rawMappings=void 0,f.inputSourceMap){this._inputMap=new l.TraceMap(f.inputSourceMap);const C=this._inputMap.resolvedSources;if(C.length)for(let x=0;x<C.length;x++){var E;(0,s.setSourceContent)(b,C[x],(E=this._inputMap.sourcesContent)==null?void 0:E[x])}}if(typeof p=="string"&&!f.inputSourceMap)(0,s.setSourceContent)(b,this._sourceFileName,p);else if(typeof p=="object")for(const C of Object.keys(p))(0,s.setSourceContent)(b,C.replace(/\\/g,"/"),p[C])}get(){return(0,s.toEncodedMap)(this._map)}getDecoded(){return(0,s.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,s.allMappings)(this._map))}mark(f,p,w,b,E,C){var x;this._rawMappings=void 0;let N;if(p!=null)if(this._inputMap){if(N=(0,l.originalPositionFor)(this._inputMap,{line:p,column:w}),!N.name&&E){const P=(0,l.originalPositionFor)(this._inputMap,E);P.name&&(b=P.name)}}else N={name:null,source:C?.replace(/\\/g,"/")||this._sourceFileName,line:p,column:w};(0,s.maybeAddMapping)(this._map,{name:b,generated:f,source:(x=N)==null?void 0:x.source,original:N})}}return gn.default=u,gn}var xn={},bn={},mc;function hh(){if(mc)return bn;mc=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;class s{constructor(u,o){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=u,this._indentChar=o;for(let f=0;f<64;f++)this._fastIndentations.push(o.repeat(f));this._allocQueue()}_allocQueue(){const u=this._queue;for(let o=0;o<16;o++)u.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(u,o,f,p,w){const b=this._queueCursor;b===this._queue.length&&this._allocQueue();const E=this._queue[b];E.char=u,E.repeat=o,E.line=f,E.column=p,E.filename=w,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const u=this._map,o={code:(this._buf+this._str).trimRight(),decodedMap:u?.getDecoded(),get __mergedMap(){return this.map},get map(){const f=u?u.get():null;return o.map=f,f},set map(f){Object.defineProperty(o,"map",{value:f,writable:!0})},get rawMappings(){const f=u?.getRawMappings();return o.rawMappings=f,f},set rawMappings(f){Object.defineProperty(o,"rawMappings",{value:f,writable:!0})}};return o}append(u,o){this._flush(),this._append(u,this._sourcePosition,o)}appendChar(u){this._flush(),this._appendChar(u,1,this._sourcePosition)}queue(u){if(u===10)for(;this._queueCursor!==0;){const f=this._queue[this._queueCursor-1].char;if(f!==32&&f!==9)break;this._queueCursor--}const o=this._sourcePosition;this._pushQueue(u,1,o.line,o.column,o.filename)}queueIndentation(u){u!==0&&this._pushQueue(-1,u,void 0,void 0,void 0)}_flush(){const u=this._queueCursor,o=this._queue;for(let f=0;f<u;f++){const p=o[f];this._appendChar(p.char,p.repeat,p)}this._queueCursor=0}_appendChar(u,o,f){if(this._last=u,u===-1){const p=this._fastIndentations[o];p!==void 0?this._str+=p:this._str+=o>1?this._indentChar.repeat(o):this._indentChar}else this._str+=o>1?String.fromCharCode(u).repeat(o):String.fromCharCode(u);u!==10?(this._mark(f.line,f.column,f.identifierName,f.identifierNamePos,f.filename),this._position.column+=o):(this._position.line++,this._position.column=0),this._canMarkIdName&&(f.identifierName=void 0,f.identifierNamePos=void 0)}_append(u,o,f){const p=u.length,w=this._position;if(this._last=u.charCodeAt(p-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=u,this._appendCount=0):this._str+=u,!f&&!this._map){w.column+=p;return}const{column:b,identifierName:E,identifierNamePos:C,filename:x}=o;let N=o.line;(E!=null||C!=null)&&this._canMarkIdName&&(o.identifierName=void 0,o.identifierNamePos=void 0);let P=u.indexOf(`
|
|
17
|
-
`),T=0;for(P!==0&&this._mark(N,b,E,C,x);P!==-1;)w.line++,w.column=0,T=P+1,T<p&&N!==void 0&&this._mark(++N,0,void 0,void 0,x),P=u.indexOf(`
|
|
18
|
-
`,T);w.column+=p-T}_mark(u,o,f,p,w){var b;(b=this._map)==null||b.mark(this._position,u,o,f,p,w)}removeTrailingNewline(){const u=this._queueCursor;u!==0&&this._queue[u-1].char===10&&this._queueCursor--}removeLastSemicolon(){const u=this._queueCursor;u!==0&&this._queue[u-1].char===59&&this._queueCursor--}getLastChar(){const u=this._queueCursor;return u!==0?this._queue[u-1].char:this._last}getNewlineCount(){const u=this._queueCursor;let o=0;if(u===0)return this._last===10?1:0;for(let f=u-1;f>=0&&this._queue[f].char===10;f--)o++;return o===u&&this._last===10?o+1:o}endsWithCharAndNewline(){const u=this._queue,o=this._queueCursor;if(o!==0)return u[o-1].char!==10?void 0:o>1?u[o-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(u,o){if(!this._map){o();return}this.source("start",u);const f=u.identifierName,p=this._sourcePosition;f&&(this._canMarkIdName=!1,p.identifierName=f),o(),f&&(this._canMarkIdName=!0,p.identifierName=void 0,p.identifierNamePos=void 0),this.source("end",u)}source(u,o){this._map&&this._normalizePosition(u,o,0)}sourceWithOffset(u,o,f){this._map&&this._normalizePosition(u,o,f)}_normalizePosition(u,o,f){const p=o[u],w=this._sourcePosition;p&&(w.line=p.line,w.column=Math.max(p.column+f,0),w.filename=o.filename)}getCurrentColumn(){const u=this._queue,o=this._queueCursor;let f=-1,p=0;for(let w=0;w<o;w++){const b=u[w];b.char===10&&(f=p),p+=b.repeat}return f===-1?this._position.column+p:p-1-f}getCurrentLine(){let u=0;const o=this._queue;for(let f=0;f<this._queueCursor;f++)o[f].char===10&&u++;return this._position.line+u}}return bn.default=s,bn}var br={},En={},yc;function dh(){if(yc)return En;yc=1,Object.defineProperty(En,"__esModule",{value:!0}),En.nodes=void 0;var s=at();const{FLIPPED_ALIAS_KEYS:l,isArrayExpression:u,isAssignmentExpression:o,isBinary:f,isBlockStatement:p,isCallExpression:w,isFunction:b,isIdentifier:E,isLiteral:C,isMemberExpression:x,isObjectExpression:N,isOptionalCallExpression:P,isOptionalMemberExpression:T,isStringLiteral:F}=s;function V(W,ee){return W&&(x(W)||T(W)?(V(W.object,ee),W.computed&&V(W.property,ee)):f(W)||o(W)?(V(W.left,ee),V(W.right,ee)):w(W)||P(W)?(ee.hasCall=!0,V(W.callee,ee)):b(W)?ee.hasFunction=!0:E(W)&&(ee.hasHelper=ee.hasHelper||W.callee&&S(W.callee))),ee}function k(W){return V(W,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function S(W){return W?x(W)?S(W.object)||S(W.property):E(W)?W.name==="require"||W.name.charCodeAt(0)===95:w(W)?S(W.callee):f(W)||o(W)?E(W.left)&&S(W.left)||S(W.right):!1:!1}function G(W){return C(W)||N(W)||u(W)||E(W)||x(W)}const X=En.nodes={AssignmentExpression(W){const ee=k(W.right);return ee.hasCall&&ee.hasHelper||ee.hasFunction?ee.hasFunction?3:2:0},SwitchCase(W,ee){return(W.consequent.length||ee.cases[0]===W?1:0)|(!W.consequent.length&&ee.cases[ee.cases.length-1]===W?2:0)},LogicalExpression(W){return b(W.left)||b(W.right)?2:0},Literal(W){return F(W)&&W.value==="use strict"?2:0},CallExpression(W){return b(W.callee)||S(W)?3:0},OptionalCallExpression(W){return b(W.callee)?3:0},VariableDeclaration(W){for(let ee=0;ee<W.declarations.length;ee++){const M=W.declarations[ee];let I=S(M.id)&&!G(M.init);if(!I&&M.init){const U=k(M.init);I=S(M.init)&&U.hasCall||U.hasFunction}if(I)return 3}return 0},IfStatement(W){return p(W.consequent)?3:0}};return X.ObjectProperty=X.ObjectTypeProperty=X.ObjectMethod=function(W,ee){return ee.properties[0]===W?1:0},X.ObjectTypeCallProperty=function(W,ee){var M;return ee.callProperties[0]===W&&!((M=ee.properties)!=null&&M.length)?1:0},X.ObjectTypeIndexer=function(W,ee){var M,I;return ee.indexers[0]===W&&!((M=ee.properties)!=null&&M.length)&&!((I=ee.callProperties)!=null&&I.length)?1:0},X.ObjectTypeInternalSlot=function(W,ee){var M,I,U;return ee.internalSlots[0]===W&&!((M=ee.properties)!=null&&M.length)&&!((I=ee.callProperties)!=null&&I.length)&&!((U=ee.indexers)!=null&&U.length)?1:0},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([W,ee]){[W].concat(l[W]||[]).forEach(function(M){const I=ee?3:0;X[M]=()=>I})}),En}var ft={},Tc;function mh(){if(Tc)return ft;Tc=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.AssignmentExpression=Ke,ft.Binary=I,ft.BinaryExpression=D,ft.ClassExpression=Q,ft.ArrowFunctionExpression=ft.ConditionalExpression=Pe,ft.DoExpression=M,ft.FunctionExpression=ue,ft.FunctionTypeAnnotation=G,ft.Identifier=Ce,ft.LogicalExpression=ve,ft.NullableTypeAnnotation=S,ft.ObjectExpression=ee,ft.OptionalIndexedAccessType=B,ft.OptionalCallExpression=ft.OptionalMemberExpression=_e,ft.SequenceExpression=J,ft.TSSatisfiesExpression=ft.TSAsExpression=R,ft.TSConditionalType=$,ft.TSConstructorType=ft.TSFunctionType=Z,ft.TSInferType=Se,ft.TSInstantiationExpression=ne,ft.TSIntersectionType=ge,ft.UnaryLike=ft.TSTypeAssertion=fe,ft.TSTypeOperator=Ae,ft.TSUnionType=ae,ft.IntersectionTypeAnnotation=ft.UnionTypeAnnotation=U,ft.UpdateExpression=X,ft.AwaitExpression=ft.YieldExpression=ie;var s=at(),l=Bs();const{isArrayTypeAnnotation:u,isBinaryExpression:o,isCallExpression:f,isForOfStatement:p,isIndexedAccessType:w,isMemberExpression:b,isObjectPattern:E,isOptionalMemberExpression:C,isYieldExpression:x,isStatement:N}=s,P=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function T(me,le){if(le==="BinaryExpression"||le==="LogicalExpression")return P.get(me.operator);if(le==="TSAsExpression"||le==="TSSatisfiesExpression")return P.get("in")}function F(me){return me==="TSAsExpression"||me==="TSSatisfiesExpression"||me==="TSTypeAssertion"}const V=(me,le)=>{const de=le.type;return(de==="ClassDeclaration"||de==="ClassExpression")&&le.superClass===me},k=(me,le)=>{const de=le.type;return(de==="MemberExpression"||de==="OptionalMemberExpression")&&le.object===me||(de==="CallExpression"||de==="OptionalCallExpression"||de==="NewExpression")&&le.callee===me||de==="TaggedTemplateExpression"&&le.tag===me||de==="TSNonNullExpression"};function S(me,le){return u(le)}function G(me,le,de){const qe=le.type;return qe==="UnionTypeAnnotation"||qe==="IntersectionTypeAnnotation"||qe==="ArrayTypeAnnotation"||!!(de&l.TokenContext.arrowFlowReturnType)}function X(me,le){return k(me,le)||V(me,le)}function W(me){return!!(me&(l.TokenContext.expressionStatement|l.TokenContext.arrowBody))}function ee(me,le,de){return W(de)}function M(me,le,de){return!me.async&&!!(de&l.TokenContext.expressionStatement)}function I(me,le){const de=le.type;if(me.type==="BinaryExpression"&&me.operator==="**"&&de==="BinaryExpression"&&le.operator==="**")return le.left===me;if(V(me,le)||k(me,le)||de==="UnaryExpression"||de==="SpreadElement"||de==="AwaitExpression")return!0;const qe=T(le,de);if(qe!=null){const $e=T(me,me.type);if(qe===$e&&de==="BinaryExpression"&&le.right===me||qe>$e)return!0}}function U(me,le){const de=le.type;return de==="ArrayTypeAnnotation"||de==="NullableTypeAnnotation"||de==="IntersectionTypeAnnotation"||de==="UnionTypeAnnotation"}function B(me,le){return w(le)&&le.objectType===me}function R(me,le){return(le.type==="AssignmentExpression"||le.type==="AssignmentPattern")&&le.left===me||le.type==="BinaryExpression"&&(le.operator==="|"||le.operator==="&")&&me===le.left?!0:I(me,le)}function $(me,le){const de=le.type;return de==="TSArrayType"||de==="TSIndexedAccessType"&&le.objectType===me||de==="TSOptionalType"||de==="TSTypeOperator"||de==="TSTypeParameter"||(de==="TSIntersectionType"||de==="TSUnionType")&&le.types[0]===me||de==="TSConditionalType"&&(le.checkType===me||le.extendsType===me)}function ae(me,le){const de=le.type;return de==="TSIntersectionType"||de==="TSTypeOperator"||de==="TSArrayType"||de==="TSIndexedAccessType"&&le.objectType===me||de==="TSOptionalType"}function ge(me,le){const de=le.type;return de==="TSTypeOperator"||de==="TSArrayType"||de==="TSIndexedAccessType"&&le.objectType===me||de==="TSOptionalType"}function Se(me,le){const de=le.type;return!!(de==="TSArrayType"||de==="TSIndexedAccessType"&&le.objectType===me||de==="TSOptionalType"||me.typeParameter.constraint&&(de==="TSIntersectionType"||de==="TSUnionType")&&le.types[0]===me)}function Ae(me,le){const de=le.type;return de==="TSArrayType"||de==="TSIndexedAccessType"&&le.objectType===me||de==="TSOptionalType"}function ne(me,le){const de=le.type;return(de==="CallExpression"||de==="OptionalCallExpression"||de==="NewExpression"||de==="TSInstantiationExpression")&&!!le.typeParameters}function Z(me,le){const de=le.type;return de==="TSIntersectionType"||de==="TSUnionType"||de==="TSTypeOperator"||de==="TSOptionalType"||de==="TSArrayType"||de==="TSIndexedAccessType"&&le.objectType===me||de==="TSConditionalType"&&(le.checkType===me||le.extendsType===me)}function D(me,le,de){return me.operator==="in"&&!!(de&l.TokenContext.forInOrInitHeadAccumulate)}function J(me,le){const de=le.type;return de==="SequenceExpression"||de==="ParenthesizedExpression"||de==="MemberExpression"&&le.property===me||de==="OptionalMemberExpression"&&le.property===me||de==="TemplateLiteral"?!1:de==="ClassDeclaration"?!0:de==="ForOfStatement"?le.right===me:de==="ExportDefaultDeclaration"?!0:!N(le)}function ie(me,le){const de=le.type;return de==="BinaryExpression"||de==="LogicalExpression"||de==="UnaryExpression"||de==="SpreadElement"||k(me,le)||de==="AwaitExpression"&&x(me)||de==="ConditionalExpression"&&me===le.test||V(me,le)||F(de)}function Q(me,le,de){return!!(de&(l.TokenContext.expressionStatement|l.TokenContext.exportDefault))}function fe(me,le){return k(me,le)||o(le)&&le.operator==="**"&&le.left===me||V(me,le)}function ue(me,le,de){return!!(de&(l.TokenContext.expressionStatement|l.TokenContext.exportDefault))}function Pe(me,le){const de=le.type;return de==="UnaryExpression"||de==="SpreadElement"||de==="BinaryExpression"||de==="LogicalExpression"||de==="ConditionalExpression"&&le.test===me||de==="AwaitExpression"||F(de)?!0:fe(me,le)}function _e(me,le){return f(le)&&le.callee===me||b(le)&&le.object===me}function Ke(me,le,de){return W(de)&&E(me.left)?!0:Pe(me,le)}function ve(me,le){const de=le.type;if(F(de))return!0;if(de!=="LogicalExpression")return!1;switch(me.operator){case"||":return le.operator==="??"||le.operator==="&&";case"&&":return le.operator==="??";case"??":return le.operator!=="??"}}function Ce(me,le,de,qe){var $e;const Ze=le.type;if(($e=me.extra)!=null&&$e.parenthesized&&Ze==="AssignmentExpression"&&le.left===me){const it=le.right.type;if((it==="FunctionExpression"||it==="ClassExpression")&&le.right.id==null)return!0}return qe&&qe(me)!==me.name?!1:me.name==="let"?(b(le,{object:me,computed:!0})||C(le,{object:me,computed:!0,optional:!1}))&&de&(l.TokenContext.expressionStatement|l.TokenContext.forInitHead|l.TokenContext.forInHead)?!0:!!(de&l.TokenContext.forOfHead):me.name==="async"&&p(le,{left:me,await:!1})}return ft}var Sc;function Bs(){if(Sc)return br;Sc=1,Object.defineProperty(br,"__esModule",{value:!0}),br.TokenContext=void 0,br.isLastChild=W,br.needsParens=G,br.needsWhitespace=V,br.needsWhitespaceAfter=S,br.needsWhitespaceBefore=k;var s=dh(),l=mh(),u=at();const{FLIPPED_ALIAS_KEYS:o,VISITOR_KEYS:f,isCallExpression:p,isDecorator:w,isExpressionStatement:b,isMemberExpression:E,isNewExpression:C,isParenthesizedExpression:x}=u;br.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};function N(ee){const M=new Map;function I(U,B){const R=M.get(U);M.set(U,R?function($,ae,ge,Se){var Ae;return(Ae=R($,ae,ge,Se))!=null?Ae:B($,ae,ge,Se)}:B)}for(const U of Object.keys(ee)){const B=o[U];if(B)for(const R of B)I(R,ee[U]);else I(U,ee[U])}return M}const P=N(l),T=N(s.nodes);function F(ee){return p(ee)?!0:E(ee)&&F(ee.object)}function V(ee,M,I){var U;if(!ee)return!1;b(ee)&&(ee=ee.expression);const B=(U=T.get(ee.type))==null?void 0:U(ee,M);return typeof B=="number"?(B&I)!==0:!1}function k(ee,M){return V(ee,M,1)}function S(ee,M){return V(ee,M,2)}function G(ee,M,I,U){var B;return M?C(M)&&M.callee===ee&&F(ee)?!0:w(M)?!X(ee)&&!(p(ee)&&X(ee.callee))&&!x(ee):((B=P.get(ee.type))==null?void 0:B(ee,M,I,U))||!1:!1}function X(ee){switch(ee.type){case"Identifier":return!0;case"MemberExpression":return!ee.computed&&ee.property.type==="Identifier"&&X(ee.object);default:return!1}}function W(ee,M){const I=f[ee.type];for(let U=I.length-1;U>=0;U--){const B=ee[I[U]];if(B===M)return!0;if(Array.isArray(B)){let R=B.length-1;for(;R>=0&&B[R]===null;)R--;return R>=0&&B[R]===M}else if(B)return!1}return!1}return br}var Pn={},gc;function yh(){if(gc)return Pn;gc=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.TokenMap=void 0;var s=at();const{traverseFast:l,VISITOR_KEYS:u}=s;class o{constructor(w,b,E){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=b,this._source=E,l(w,C=>{const x=this._getTokensIndexesOfNode(C);x.length>0&&this._nodesToTokenIndexes.set(C,x)}),this._tokensCache.clear()}has(w){return this._nodesToTokenIndexes.has(w)}getIndexes(w){return this._nodesToTokenIndexes.get(w)}find(w,b){const E=this._nodesToTokenIndexes.get(w);if(E)for(let C=0;C<E.length;C++){const x=E[C],N=this._tokens[x];if(b(N,x))return N}return null}findLastIndex(w,b){const E=this._nodesToTokenIndexes.get(w);if(E)for(let C=E.length-1;C>=0;C--){const x=E[C],N=this._tokens[x];if(b(N,x))return x}return-1}findMatching(w,b,E=0){const C=this._nodesToTokenIndexes.get(w);if(C){let x=0;const N=E;if(N>1){const P=this._nodesOccurrencesCountCache.get(w);P&&P.test===b&&P.count<N&&(x=P.i+1,E-=P.count+1)}for(;x<C.length;x++){const P=this._tokens[C[x]];if(this.matchesOriginal(P,b)){if(E===0)return N>0&&this._nodesOccurrencesCountCache.set(w,{test:b,count:N,i:x}),P;E--}}}return null}matchesOriginal(w,b){return w.end-w.start!==b.length?!1:w.value!=null?w.value===b:this._source.startsWith(b,w.start)}startMatches(w,b){const E=this._nodesToTokenIndexes.get(w);if(!E)return!1;const C=this._tokens[E[0]];return C.start!==w.start?!1:this.matchesOriginal(C,b)}endMatches(w,b){const E=this._nodesToTokenIndexes.get(w);if(!E)return!1;const C=this._tokens[E[E.length-1]];return C.end!==w.end?!1:this.matchesOriginal(C,b)}_getTokensIndexesOfNode(w){if(w.start==null||w.end==null)return[];const{first:b,last:E}=this._findTokensOfNode(w,0,this._tokens.length-1);let C=b;const x=f(w);(w.type==="ExportNamedDeclaration"||w.type==="ExportDefaultDeclaration")&&w.declaration&&w.declaration.type==="ClassDeclaration"&&x.next();const N=[];for(const P of x){if(P==null||P.start==null||P.end==null)continue;const T=this._findTokensOfNode(P,C,E),F=T.first;for(let V=C;V<F;V++)N.push(V);C=T.last+1}for(let P=C;P<=E;P++)N.push(P);return N}_findTokensOfNode(w,b,E){const C=this._tokensCache.get(w);if(C)return C;const x=this._findFirstTokenOfNode(w.start,b,E),N=this._findLastTokenOfNode(w.end,x,E);return this._tokensCache.set(w,{first:x,last:N}),{first:x,last:N}}_findFirstTokenOfNode(w,b,E){for(;b<=E;){const C=E+b>>1;if(w<this._tokens[C].start)E=C-1;else if(w>this._tokens[C].start)b=C+1;else return C}return b}_findLastTokenOfNode(w,b,E){for(;b<=E;){const C=E+b>>1;if(w<this._tokens[C].end)E=C-1;else if(w>this._tokens[C].end)b=C+1;else return C}return E}}Pn.TokenMap=o;function*f(p){if(p.type==="TemplateLiteral"){yield p.quasis[0];for(let b=1;b<p.quasis.length;b++)yield p.expressions[b-1],yield p.quasis[b];return}const w=u[p.type];for(const b of w){const E=p[b];E&&(Array.isArray(E)?yield*E:yield E)}}return Pn}var Go={},Is={},xc;function Th(){if(xc)return Is;xc=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.TaggedTemplateExpression=s,Is.TemplateElement=l,Is.TemplateLiteral=o,Is._printTemplate=u;function s(f){this.print(f.tag),this.print(f.typeParameters),this.print(f.quasi)}function l(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function u(f,p){const w=f.quasis;let b="`";for(let E=0;E<w.length-1;E++)if(b+=w[E].value.raw,this.token(b+"${",!0),this.print(p[E]),b="}",this.tokenMap){const C=this.tokenMap.findMatching(f,"}",E);C&&this._catchUpTo(C.loc.start)}b+=w[w.length-1].value.raw,this.token(b+"`",!0)}function o(f){this._printTemplate(f,f.expressions)}return Is}var St={},bc;function Sh(){if(bc)return St;bc=1,Object.defineProperty(St,"__esModule",{value:!0}),St.LogicalExpression=St.BinaryExpression=St.AssignmentExpression=$,St.AssignmentPattern=R,St.AwaitExpression=M,St.BindExpression=ae,St.CallExpression=W,St.ConditionalExpression=N,St.Decorator=S,St.DoExpression=E,St.EmptyStatement=U,St.ExpressionStatement=B,St.Import=ee,St.MemberExpression=ge,St.MetaProperty=Se,St.ModuleExpression=Z,St.NewExpression=P,St.OptionalCallExpression=X,St.OptionalMemberExpression=G,St.ParenthesizedExpression=C,St.PrivateName=Ae,St.SequenceExpression=T,St.Super=V,St.ThisExpression=F,St.UnaryExpression=b,St.UpdateExpression=x,St.V8IntrinsicIdentifier=ne,St.YieldExpression=I,St._shouldPrintDecoratorsBeforeExport=k;var s=at(),l=Bs();const{isCallExpression:u,isLiteral:o,isMemberExpression:f,isNewExpression:p,isPattern:w}=s;function b(D){const{operator:J}=D;J==="void"||J==="delete"||J==="typeof"||J==="throw"?(this.word(J),this.space()):this.token(J),this.print(D.argument)}function E(D){D.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(D.body)}function C(D){this.tokenChar(40);const J=this.enterDelimited();this.print(D.expression),J(),this.rightParens(D)}function x(D){D.prefix?(this.token(D.operator),this.print(D.argument)):(this.print(D.argument,!0),this.token(D.operator))}function N(D){this.print(D.test),this.space(),this.tokenChar(63),this.space(),this.print(D.consequent),this.space(),this.tokenChar(58),this.space(),this.print(D.alternate)}function P(D,J){if(this.word("new"),this.space(),this.print(D.callee),this.format.minified&&D.arguments.length===0&&!D.optional&&!u(J,{callee:D})&&!f(J)&&!p(J)||(this.print(D.typeArguments),this.print(D.typeParameters),D.optional&&this.token("?."),D.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(D,")")))return;this.tokenChar(40);const ie=this.enterDelimited();this.printList(D.arguments,this.shouldPrintTrailingComma(")")),ie(),this.rightParens(D)}function T(D){this.printList(D.expressions)}function F(){this.word("this")}function V(){this.word("super")}function k(D){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof D.start=="number"&&D.start===D.declaration.start}function S(D){this.tokenChar(64),this.print(D.expression),this.newline()}function G(D){let{computed:J}=D;const{optional:ie,property:Q}=D;if(this.print(D.object),!J&&f(Q))throw new TypeError("Got a MemberExpression for MemberExpression property");o(Q)&&typeof Q.value=="number"&&(J=!0),ie&&this.token("?."),J?(this.tokenChar(91),this.print(Q),this.tokenChar(93)):(ie||this.tokenChar(46),this.print(Q))}function X(D){this.print(D.callee),this.print(D.typeParameters),D.optional&&this.token("?."),this.print(D.typeArguments),this.tokenChar(40);const J=this.enterDelimited();this.printList(D.arguments),J(),this.rightParens(D)}function W(D){this.print(D.callee),this.print(D.typeArguments),this.print(D.typeParameters),this.tokenChar(40);const J=this.enterDelimited();this.printList(D.arguments,this.shouldPrintTrailingComma(")")),J(),this.rightParens(D)}function ee(){this.word("import")}function M(D){this.word("await"),this.space(),this.print(D.argument)}function I(D){D.delegate?(this.word("yield",!0),this.tokenChar(42),D.argument&&(this.space(),this.print(D.argument))):D.argument?(this.word("yield",!0),this.space(),this.print(D.argument)):this.word("yield")}function U(){this.semicolon(!0)}function B(D){this.tokenContext|=l.TokenContext.expressionStatement,this.print(D.expression),this.semicolon()}function R(D){this.print(D.left),(D.left.type==="Identifier"||w(D.left))&&(D.left.optional&&this.tokenChar(63),this.print(D.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(D.right)}function $(D){this.print(D.left),this.space(),D.operator==="in"||D.operator==="instanceof"?this.word(D.operator):(this.token(D.operator),this._endsWithDiv=D.operator==="/"),this.space(),this.print(D.right)}function ae(D){this.print(D.object),this.token("::"),this.print(D.callee)}function ge(D){if(this.print(D.object),!D.computed&&f(D.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let J=D.computed;if(o(D.property)&&typeof D.property.value=="number"&&(J=!0),J){const ie=this.enterDelimited();this.tokenChar(91),this.print(D.property),this.tokenChar(93),ie()}else this.tokenChar(46),this.print(D.property)}function Se(D){this.print(D.meta),this.tokenChar(46),this.print(D.property)}function Ae(D){this.tokenChar(35),this.print(D.id)}function ne(D){this.tokenChar(37),this.word(D.name)}function Z(D){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:J}=D;(J.body.length||J.directives.length)&&this.newline(),this.print(J),this.dedent(),this.rightBrace(D)}return St}var Pt={},Ec;function gh(){if(Ec)return Pt;Ec=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.BreakStatement=T,Pt.CatchClause=X,Pt.ContinueStatement=F,Pt.DebuggerStatement=M,Pt.DoWhileStatement=N,Pt.ForOfStatement=Pt.ForInStatement=void 0,Pt.ForStatement=E,Pt.IfStatement=w,Pt.LabeledStatement=S,Pt.ReturnStatement=V,Pt.SwitchCase=ee,Pt.SwitchStatement=W,Pt.ThrowStatement=k,Pt.TryStatement=G,Pt.VariableDeclaration=I,Pt.VariableDeclarator=U,Pt.WhileStatement=C,Pt.WithStatement=p;var s=at();const{isFor:l,isForStatement:u,isIfStatement:o,isStatement:f}=s;function p(B){this.word("with"),this.space(),this.tokenChar(40),this.print(B.object),this.tokenChar(41),this.printBlock(B)}function w(B){this.word("if"),this.space(),this.tokenChar(40),this.print(B.test),this.tokenChar(41),this.space();const R=B.alternate&&o(b(B.consequent));R&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(B.consequent),R&&(this.dedent(),this.newline(),this.tokenChar(125)),B.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(B.alternate))}function b(B){const{body:R}=B;return f(R)===!1?B:b(R)}function E(B){this.word("for"),this.space(),this.tokenChar(40);{const R=this.enterForStatementInit();this.print(B.init),R()}this.tokenChar(59),B.test&&(this.space(),this.print(B.test)),this.token(";",!1,1),B.update&&(this.space(),this.print(B.update)),this.tokenChar(41),this.printBlock(B)}function C(B){this.word("while"),this.space(),this.tokenChar(40),this.print(B.test),this.tokenChar(41),this.printBlock(B)}function x(B){this.word("for"),this.space();const R=B.type==="ForOfStatement";R&&B.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const $=this.enterForXStatementInit(R);this.print(B.left),$?.()}this.space(),this.word(R?"of":"in"),this.space(),this.print(B.right),this.tokenChar(41),this.printBlock(B)}Pt.ForInStatement=x,Pt.ForOfStatement=x;function N(B){this.word("do"),this.space(),this.print(B.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(B.test),this.tokenChar(41),this.semicolon()}function P(B,R){R&&(B.space(),B.printTerminatorless(R)),B.semicolon()}function T(B){this.word("break"),P(this,B.label)}function F(B){this.word("continue"),P(this,B.label)}function V(B){this.word("return"),P(this,B.argument)}function k(B){this.word("throw"),P(this,B.argument)}function S(B){this.print(B.label),this.tokenChar(58),this.space(),this.print(B.body)}function G(B){this.word("try"),this.space(),this.print(B.block),this.space(),B.handlers?this.print(B.handlers[0]):this.print(B.handler),B.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(B.finalizer))}function X(B){this.word("catch"),this.space(),B.param&&(this.tokenChar(40),this.print(B.param),this.print(B.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(B.body)}function W(B){this.word("switch"),this.space(),this.tokenChar(40),this.print(B.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(B.cases,!0),this.rightBrace(B)}function ee(B){B.test?(this.word("case"),this.space(),this.print(B.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),B.consequent.length&&(this.newline(),this.printSequence(B.consequent,!0))}function M(){this.word("debugger"),this.semicolon()}function I(B,R){B.declare&&(this.word("declare"),this.space());const{kind:$}=B;$==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word($,$==="using"),this.space();let ae=!1;if(!l(R))for(const ge of B.declarations)ge.init&&(ae=!0);if(this.printList(B.declarations,void 0,void 0,B.declarations.length>1,ae?function(ge){this.token(",",!1,ge),this.newline()}:void 0),l(R)){if(u(R)){if(R.init===B)return}else if(R.left===B)return}this.semicolon()}function U(B){this.print(B.id),B.definite&&this.tokenChar(33),this.print(B.id.typeAnnotation),B.init&&(this.space(),this.tokenChar(61),this.space(),this.print(B.init))}return Pt}var zt={},Pc;function xh(){if(Pc)return zt;Pc=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.ClassAccessorProperty=b,zt.ClassBody=f,zt.ClassExpression=zt.ClassDeclaration=o,zt.ClassMethod=C,zt.ClassPrivateMethod=x,zt.ClassPrivateProperty=E,zt.ClassProperty=w,zt.StaticBlock=P,zt._classMethodHead=N;var s=at();const{isExportDefaultDeclaration:l,isExportNamedDeclaration:u}=s;function o(T,F){(!(l(F)||u(F))||!this._shouldPrintDecoratorsBeforeExport(F))&&this.printJoin(T.decorators),T.declare&&(this.word("declare"),this.space()),T.abstract&&(this.word("abstract"),this.space()),this.word("class"),T.id&&(this.space(),this.print(T.id)),this.print(T.typeParameters),T.superClass&&(this.space(),this.word("extends"),this.space(),this.print(T.superClass),this.print(T.superTypeParameters)),T.implements&&(this.space(),this.word("implements"),this.space(),this.printList(T.implements)),this.space(),this.print(T.body)}function f(T){if(this.tokenChar(123),T.body.length===0)this.tokenChar(125);else{this.newline();const F=p(this,T);F?.(-1);const V=this.enterDelimited();this.printJoin(T.body,!0,!0,F,!0),V(),this.endsWith(10)||this.newline(),this.rightBrace(T)}}function p(T,F){if(!T.tokenMap||F.start==null||F.end==null)return null;const V=T.tokenMap.getIndexes(F);if(!V)return null;let k=1,S=0,G=0;const X=()=>{for(;G<F.body.length&&F.body[G].start==null;)G++};return X(),W=>{G<=W&&(G=W+1,X());const ee=G===F.body.length?F.end:F.body[G].start;let M;for(;k<V.length&&T.tokenMap.matchesOriginal(M=T._tokens[V[k]],";")&&M.start<ee;)T.token(";",void 0,S++),k++}}function w(T){if(this.printJoin(T.decorators),!T.static&&!this.format.preserveFormat){var F;const V=(F=T.key.loc)==null||(F=F.end)==null?void 0:F.line;V&&this.catchUp(V)}this.tsPrintClassMemberModifiers(T),T.computed?(this.tokenChar(91),this.print(T.key),this.tokenChar(93)):(this._variance(T),this.print(T.key)),T.optional&&this.tokenChar(63),T.definite&&this.tokenChar(33),this.print(T.typeAnnotation),T.value&&(this.space(),this.tokenChar(61),this.space(),this.print(T.value)),this.semicolon()}function b(T){var F;this.printJoin(T.decorators);const V=(F=T.key.loc)==null||(F=F.end)==null?void 0:F.line;V&&this.catchUp(V),this.tsPrintClassMemberModifiers(T),this.word("accessor",!0),this.space(),T.computed?(this.tokenChar(91),this.print(T.key),this.tokenChar(93)):(this._variance(T),this.print(T.key)),T.optional&&this.tokenChar(63),T.definite&&this.tokenChar(33),this.print(T.typeAnnotation),T.value&&(this.space(),this.tokenChar(61),this.space(),this.print(T.value)),this.semicolon()}function E(T){this.printJoin(T.decorators),this.tsPrintClassMemberModifiers(T),this.print(T.key),T.optional&&this.tokenChar(63),T.definite&&this.tokenChar(33),this.print(T.typeAnnotation),T.value&&(this.space(),this.tokenChar(61),this.space(),this.print(T.value)),this.semicolon()}function C(T){this._classMethodHead(T),this.space(),this.print(T.body)}function x(T){this._classMethodHead(T),this.space(),this.print(T.body)}function N(T){if(this.printJoin(T.decorators),!this.format.preserveFormat){var F;const V=(F=T.key.loc)==null||(F=F.end)==null?void 0:F.line;V&&this.catchUp(V)}this.tsPrintClassMemberModifiers(T),this._methodHead(T)}function P(T){this.word("static"),this.space(),this.tokenChar(123),T.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(T.body,!0),this.rightBrace(T))}return zt}var $t={},Ac;function bh(){if(Ac)return $t;Ac=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.ArrowFunctionExpression=x,$t.FunctionDeclaration=$t.FunctionExpression=C,$t._functionHead=E,$t._methodHead=w,$t._param=p,$t._parameters=f,$t._params=o,$t._predicate=b,$t._shouldPrintArrowParamsParens=N;var s=at(),l=Bs();const{isIdentifier:u}=s;function o(T,F,V){this.print(T.typeParameters);const k=P.call(this,F,V);k&&this.sourceIdentifierName(k.name,k.pos),this.tokenChar(40),this._parameters(T.params,")");const S=T.type==="ArrowFunctionExpression";this.print(T.returnType,S),this._noLineTerminator=S}function f(T,F){const V=this.enterDelimited(),k=this.shouldPrintTrailingComma(F),S=T.length;for(let G=0;G<S;G++)this._param(T[G]),(k||G<S-1)&&(this.token(",",void 0,G),this.space());this.token(F),V()}function p(T){this.printJoin(T.decorators),this.print(T),T.optional&&this.tokenChar(63),this.print(T.typeAnnotation)}function w(T){const F=T.kind,V=T.key;(F==="get"||F==="set")&&(this.word(F),this.space()),T.async&&(this.word("async",!0),this.space()),(F==="method"||F==="init")&&T.generator&&this.tokenChar(42),T.computed?(this.tokenChar(91),this.print(V),this.tokenChar(93)):this.print(V),T.optional&&this.tokenChar(63),this._params(T,T.computed&&T.key.type!=="StringLiteral"?void 0:T.key)}function b(T,F){T.predicate&&(T.returnType||this.tokenChar(58),this.space(),this.print(T.predicate,F))}function E(T,F){T.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),T.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),T.id&&this.print(T.id),this._params(T,T.id,F),T.type!=="TSDeclareFunction"&&this._predicate(T)}function C(T,F){this._functionHead(T,F),this.space(),this.print(T.body)}function x(T,F){T.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(T)?this._params(T,void 0,F):this.print(T.params[0],!0),this._predicate(T,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=l.TokenContext.arrowBody,this.print(T.body)}function N(T){var F,V;if(T.params.length!==1||T.typeParameters||T.returnType||T.predicate)return!0;const k=T.params[0];if(!u(k)||k.typeAnnotation||k.optional||(F=k.leadingComments)!=null&&F.length||(V=k.trailingComments)!=null&&V.length)return!0;if(this.tokenMap){if(T.loc==null||this.tokenMap.findMatching(T,"(")!==null)return!0;const S=this.tokenMap.findMatching(T,"=>");return S?.loc==null?!0:S.loc.start.line!==T.loc.start.line}return!!this.format.retainLines}function P(T,F){let V=T;if(!V&&F){const ee=F.type;ee==="VariableDeclarator"?V=F.id:ee==="AssignmentExpression"||ee==="AssignmentPattern"?V=F.left:ee==="ObjectProperty"||ee==="ClassProperty"?(!F.computed||F.key.type==="StringLiteral")&&(V=F.key):(ee==="ClassPrivateProperty"||ee==="ClassAccessorProperty")&&(V=F.key)}if(!V)return;let k;if(V.type==="Identifier"){var S,G;k={pos:(S=V.loc)==null?void 0:S.start,name:((G=V.loc)==null?void 0:G.identifierName)||V.name}}else if(V.type==="PrivateName"){var X;k={pos:(X=V.loc)==null?void 0:X.start,name:"#"+V.id.name}}else if(V.type==="StringLiteral"){var W;k={pos:(W=V.loc)==null?void 0:W.start,name:V.value}}return k}return $t}var Mt={},vc;function qp(){if(vc)return Mt;vc=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.ExportAllDeclaration=V,Mt.ExportDefaultDeclaration=G,Mt.ExportDefaultSpecifier=x,Mt.ExportNamedDeclaration=S,Mt.ExportNamespaceSpecifier=P,Mt.ExportSpecifier=N,Mt.ImportAttribute=W,Mt.ImportDeclaration=X,Mt.ImportDefaultSpecifier=C,Mt.ImportExpression=M,Mt.ImportNamespaceSpecifier=ee,Mt.ImportSpecifier=E,Mt._printAttributes=F;var s=at(),l=Bs();const{isClassDeclaration:u,isExportDefaultSpecifier:o,isExportNamespaceSpecifier:f,isImportDefaultSpecifier:p,isImportNamespaceSpecifier:w,isStatement:b}=s;function E(I){(I.importKind==="type"||I.importKind==="typeof")&&(this.word(I.importKind),this.space()),this.print(I.imported),I.local&&I.local.name!==I.imported.name&&(this.space(),this.word("as"),this.space(),this.print(I.local))}function C(I){this.print(I.local)}function x(I){this.print(I.exported)}function N(I){I.exportKind==="type"&&(this.word("type"),this.space()),this.print(I.local),I.exported&&I.local.name!==I.exported.name&&(this.space(),this.word("as"),this.space(),this.print(I.exported))}function P(I){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(I.exported)}let T=!1;function F(I,U){var B;const{importAttributesKeyword:R}=this.format,{attributes:$,assertions:ae}=I;$&&!R&&I.extra&&(I.extra.deprecatedAssertSyntax||I.extra.deprecatedWithLegacySyntax)&&!T&&(T=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const ge=R==="assert"||!R&&ae;if(this.word(ge?"assert":"with"),this.space(),!ge&&(R==="with-legacy"||!R&&(B=I.extra)!=null&&B.deprecatedWithLegacySyntax)){this.printList($||ae);return}const Se=U?1:0;this.token("{",void 0,Se),this.space(),this.printList($||ae,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,Se)}function V(I){var U,B;this.word("export"),this.space(),I.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(U=I.attributes)!=null&&U.length||(B=I.assertions)!=null&&B.length?(this.print(I.source,!0),this.space(),this._printAttributes(I,!1)):this.print(I.source),this.semicolon()}function k(I,U){u(U.declaration)&&I._shouldPrintDecoratorsBeforeExport(U)&&I.printJoin(U.declaration.decorators)}function S(I){if(k(this,I),this.word("export"),this.space(),I.declaration){const R=I.declaration;this.print(R),b(R)||this.semicolon()}else{I.exportKind==="type"&&(this.word("type"),this.space());const R=I.specifiers.slice(0);let $=!1;for(;;){const ge=R[0];if(o(ge)||f(ge))$=!0,this.print(R.shift()),R.length&&(this.tokenChar(44),this.space());else break}let ae=!1;if((R.length||!R.length&&!$)&&(ae=!0,this.tokenChar(123),R.length&&(this.space(),this.printList(R,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),I.source){var U,B;this.space(),this.word("from"),this.space(),(U=I.attributes)!=null&&U.length||(B=I.assertions)!=null&&B.length?(this.print(I.source,!0),this.space(),this._printAttributes(I,ae)):this.print(I.source)}this.semicolon()}}function G(I){k(this,I),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=l.TokenContext.exportDefault;const U=I.declaration;this.print(U),b(U)||this.semicolon()}function X(I){var U,B;this.word("import"),this.space();const R=I.importKind==="type"||I.importKind==="typeof";R?(this.noIndentInnerCommentsHere(),this.word(I.importKind),this.space()):I.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):I.phase&&(this.noIndentInnerCommentsHere(),this.word(I.phase),this.space());const $=I.specifiers.slice(0),ae=!!$.length;for(;ae;){const Se=$[0];if(p(Se)||w(Se))this.print($.shift()),$.length&&(this.tokenChar(44),this.space());else break}let ge=!1;$.length?(ge=!0,this.tokenChar(123),this.space(),this.printList($,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):R&&!ae&&(ge=!0,this.tokenChar(123),this.tokenChar(125)),(ae||R)&&(this.space(),this.word("from"),this.space()),(U=I.attributes)!=null&&U.length||(B=I.assertions)!=null&&B.length?(this.print(I.source,!0),this.space(),this._printAttributes(I,ge)):this.print(I.source),this.semicolon()}function W(I){this.print(I.key),this.tokenChar(58),this.space(),this.print(I.value)}function ee(I){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(I.local)}function M(I){this.word("import"),I.phase&&(this.tokenChar(46),this.word(I.phase)),this.tokenChar(40);const U=this.shouldPrintTrailingComma(")");this.print(I.source),I.options!=null&&(this.tokenChar(44),this.space(),this.print(I.options)),U&&this.tokenChar(44),this.rightParens(I)}return Mt}var bt={},Qo,Cc;function Eh(){if(Cc)return Qo;Cc=1;const s={},l=s.hasOwnProperty,u=(U,B)=>{for(const R in U)l.call(U,R)&&B(R,U[R])},o=(U,B)=>(B&&u(B,(R,$)=>{U[R]=$}),U),f=(U,B)=>{const R=U.length;let $=-1;for(;++$<R;)B(U[$])},p=U=>"\\u"+("0000"+U).slice(-4),w=(U,B)=>{let R=U.toString(16);return B?R:R.toUpperCase()},b=s.toString,E=Array.isArray,C=U=>typeof Buffer=="function"&&Buffer.isBuffer(U),x=U=>b.call(U)=="[object Object]",N=U=>typeof U=="string"||b.call(U)=="[object String]",P=U=>typeof U=="number"||b.call(U)=="[object Number]",T=U=>typeof U=="bigint",F=U=>typeof U=="function",V=U=>b.call(U)=="[object Map]",k=U=>b.call(U)=="[object Set]",S={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},G=/[\\\b\f\n\r\t]/,X=/[0-9]/,W=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ee=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,M=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,I=(U,B)=>{const R=()=>{Z=ne,++B.indentLevel,ne=B.indent.repeat(B.indentLevel)},$={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},ae=B&&B.json;ae&&($.quotes="double",$.wrap=!0),B=o($,B),B.quotes!="single"&&B.quotes!="double"&&B.quotes!="backtick"&&(B.quotes="single");const ge=B.quotes=="double"?'"':B.quotes=="backtick"?"`":"'",Se=B.compact,Ae=B.lowercaseHex;let ne=B.indent.repeat(B.indentLevel),Z="";const D=B.__inline1__,J=B.__inline2__,ie=Se?"":`
|
|
19
|
-
`;let Q,fe=!0;const ue=B.numbers=="binary",Pe=B.numbers=="octal",_e=B.numbers=="decimal",Ke=B.numbers=="hexadecimal";if(ae&&U&&F(U.toJSON)&&(U=U.toJSON()),!N(U)){if(V(U))return U.size==0?"new Map()":(Se||(B.__inline1__=!0,B.__inline2__=!1),"new Map("+I(Array.from(U),B)+")");if(k(U))return U.size==0?"new Set()":"new Set("+I(Array.from(U),B)+")";if(C(U))return U.length==0?"Buffer.from([])":"Buffer.from("+I(Array.from(U),B)+")";if(E(U))return Q=[],B.wrap=!0,D&&(B.__inline1__=!1,B.__inline2__=!0),J||R(),f(U,Ce=>{fe=!1,J&&(B.__inline2__=!1),Q.push((Se||J?"":ne)+I(Ce,B))}),fe?"[]":J?"["+Q.join(", ")+"]":"["+ie+Q.join(","+ie)+ie+(Se?"":Z)+"]";if(P(U)||T(U)){if(ae)return JSON.stringify(Number(U));let Ce;if(_e)Ce=String(U);else if(Ke){let me=U.toString(16);Ae||(me=me.toUpperCase()),Ce="0x"+me}else ue?Ce="0b"+U.toString(2):Pe&&(Ce="0o"+U.toString(8));return T(U)?Ce+"n":Ce}else return T(U)?ae?JSON.stringify(Number(U)):U+"n":x(U)?(Q=[],B.wrap=!0,R(),u(U,(Ce,me)=>{fe=!1,Q.push((Se?"":ne)+I(Ce,B)+":"+(Se?"":" ")+I(me,B))}),fe?"{}":"{"+ie+Q.join(","+ie)+ie+(Se?"":Z)+"}"):ae?JSON.stringify(U)||"null":String(U)}const ve=B.escapeEverything?ee:M;return Q=U.replace(ve,(Ce,me,le,de,qe,$e)=>{if(me){if(B.minimal)return me;const it=me.charCodeAt(0),He=me.charCodeAt(1);if(B.es6){const we=(it-55296)*1024+He-56320+65536;return"\\u{"+w(we,Ae)+"}"}return p(w(it,Ae))+p(w(He,Ae))}if(le)return p(w(le.charCodeAt(0),Ae));if(Ce=="\0"&&!ae&&!X.test($e.charAt(qe+1)))return"\\0";if(de)return de==ge||B.escapeEverything?"\\"+de:de;if(G.test(Ce))return S[Ce];if(B.minimal&&!W.test(Ce))return Ce;const Ze=w(Ce.charCodeAt(0),Ae);return ae||Ze.length>2?p(Ze):"\\x"+("00"+Ze).slice(-2)}),ge=="`"&&(Q=Q.replace(/\$\{/g,"\\${")),B.isScriptContext&&(Q=Q.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,ae?"\\u003C!--":"\\x3C!--")),B.wrap&&(Q=ge+Q+ge),Q};return I.version="3.0.2",Qo=I,Qo}var Ic;function Up(){if(Ic)return bt;Ic=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.ArgumentPlaceholder=E,bt.ArrayPattern=bt.ArrayExpression=T,bt.BigIntLiteral=ee,bt.BooleanLiteral=S,bt.Identifier=b,bt.NullLiteral=G,bt.NumericLiteral=X,bt.ObjectPattern=bt.ObjectExpression=x,bt.ObjectMethod=N,bt.ObjectProperty=P,bt.PipelineBareFunction=B,bt.PipelinePrimaryTopicReference=R,bt.PipelineTopicExpression=U,bt.RecordExpression=F,bt.RegExpLiteral=k,bt.SpreadElement=bt.RestElement=C,bt.StringLiteral=W,bt.TopicReference=I,bt.TupleExpression=V,bt.VoidPattern=$,bt._getRawIdentifier=w;var s=at(),l=Eh();const{isAssignmentPattern:u,isIdentifier:o}=s;let f=null,p="";function w(ae){if(ae===f)return p;f=ae;const{name:ge}=ae,Se=this.tokenMap.find(ae,Ae=>Ae.value===ge);return Se?(p=this._originalCode.slice(Se.start,Se.end),p):p=ae.name}function b(ae){var ge;this.sourceIdentifierName(((ge=ae.loc)==null?void 0:ge.identifierName)||ae.name),this.word(this.tokenMap?this._getRawIdentifier(ae):ae.name)}function E(){this.tokenChar(63)}function C(ae){this.token("..."),this.print(ae.argument)}function x(ae){const ge=ae.properties;if(this.tokenChar(123),ge.length){const Se=this.enterDelimited();this.space(),this.printList(ge,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),Se()}this.sourceWithOffset("end",ae.loc,-1),this.tokenChar(125)}function N(ae){this.printJoin(ae.decorators),this._methodHead(ae),this.space(),this.print(ae.body)}function P(ae){if(this.printJoin(ae.decorators),ae.computed)this.tokenChar(91),this.print(ae.key),this.tokenChar(93);else{if(u(ae.value)&&o(ae.key)&&ae.key.name===ae.value.left.name){this.print(ae.value);return}if(this.print(ae.key),ae.shorthand&&o(ae.key)&&o(ae.value)&&ae.key.name===ae.value.name)return}this.tokenChar(58),this.space(),this.print(ae.value)}function T(ae){const ge=ae.elements,Se=ge.length;this.tokenChar(91);const Ae=this.enterDelimited();for(let ne=0;ne<ge.length;ne++){const Z=ge[ne];Z?(ne>0&&this.space(),this.print(Z),(ne<Se-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,ne)):this.token(",",!1,ne)}Ae(),this.tokenChar(93)}function F(ae){const ge=ae.properties;let Se,Ae;if(this.format.recordAndTupleSyntaxType==="bar")Se="{|",Ae="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);Se="#{",Ae="}"}this.token(Se),ge.length&&(this.space(),this.printList(ge,this.shouldPrintTrailingComma(Ae),!0,!0),this.space()),this.token(Ae)}function V(ae){const ge=ae.elements,Se=ge.length;let Ae,ne;if(this.format.recordAndTupleSyntaxType==="bar")Ae="[|",ne="|]";else if(this.format.recordAndTupleSyntaxType==="hash")Ae="#[",ne="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(Ae);for(let Z=0;Z<ge.length;Z++){const D=ge[Z];D&&(Z>0&&this.space(),this.print(D),(Z<Se-1||this.shouldPrintTrailingComma(ne))&&this.token(",",!1,Z))}this.token(ne)}function k(ae){this.word(`/${ae.pattern}/${ae.flags}`)}function S(ae){this.word(ae.value?"true":"false")}function G(){this.word("null")}function X(ae){const ge=this.getPossibleRaw(ae),Se=this.format.jsescOption,Ae=ae.value,ne=Ae+"";Se.numbers?this.number(l(Ae,Se),Ae):ge==null?this.number(ne,Ae):this.format.minified?this.number(ge.length<ne.length?ge:ne,Ae):this.number(ge,Ae)}function W(ae){const ge=this.getPossibleRaw(ae);if(!this.format.minified&&ge!==void 0){this.token(ge);return}const Se=l(ae.value,this.format.jsescOption);this.token(Se)}function ee(ae){const ge=this.getPossibleRaw(ae);if(!this.format.minified&&ge!==void 0){this.word(ge);return}this.word(ae.value+"n")}const M=new Set(["^^","@@","^","%","#"]);function I(){const{topicToken:ae}=this.format;if(M.has(ae))this.token(ae);else{const ge=JSON.stringify(ae),Se=Array.from(M,Ae=>JSON.stringify(Ae));throw new Error(`The "topicToken" generator option must be one of ${Se.join(", ")} (${ge} received instead).`)}}function U(ae){this.print(ae.expression)}function B(ae){this.print(ae.callee)}function R(){this.tokenChar(35)}function $(){this.word("void")}return bt}var Zo={},wc;function Ph(){return wc||(wc=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.AnyTypeAnnotation=b,s.ArrayTypeAnnotation=E,s.BooleanLiteralTypeAnnotation=x,s.BooleanTypeAnnotation=C,s.DeclareClass=P,s.DeclareExportAllDeclaration=I,s.DeclareExportDeclaration=M,s.DeclareFunction=T,s.DeclareInterface=k,s.DeclareModule=S,s.DeclareModuleExports=G,s.DeclareOpaqueType=W,s.DeclareTypeAlias=X,s.DeclareVariable=ee,s.DeclaredPredicate=V,s.EmptyTypeAnnotation=qe,s.EnumBooleanBody=$,s.EnumBooleanMember=Z,s.EnumDeclaration=U,s.EnumDefaultedMember=Ae,s.EnumNumberBody=ae,s.EnumNumberMember=D,s.EnumStringBody=ge,s.EnumStringMember=J,s.EnumSymbolBody=Se,s.ExistsTypeAnnotation=Q,s.FunctionTypeAnnotation=fe,s.FunctionTypeParam=ue,s.IndexedAccessType=he,s.InferredPredicate=F,s.InterfaceDeclaration=ve,s.GenericTypeAnnotation=s.ClassImplements=s.InterfaceExtends=Pe,s.InterfaceTypeAnnotation=me,s.IntersectionTypeAnnotation=le,s.MixedTypeAnnotation=de,s.NullLiteralTypeAnnotation=N,s.NullableTypeAnnotation=$e,Object.defineProperty(s,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return f.NumericLiteral}}),s.NumberTypeAnnotation=Ze,s.ObjectTypeAnnotation=ht,s.ObjectTypeCallProperty=Ue,s.ObjectTypeIndexer=Be,s.ObjectTypeInternalSlot=Te,s.ObjectTypeProperty=pe,s.ObjectTypeSpreadProperty=j,s.OpaqueType=et,s.OptionalIndexedAccessType=q,s.QualifiedTypeIdentifier=te,Object.defineProperty(s,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return f.StringLiteral}}),s.StringTypeAnnotation=it,s.SymbolTypeAnnotation=ye,s.ThisTypeAnnotation=He,s.TupleTypeAnnotation=we,s.TypeAlias=ke,s.TypeAnnotation=Le,s.TypeCastExpression=Ee,s.TypeParameter=Qe,s.TypeParameterDeclaration=s.TypeParameterInstantiation=Ve,s.TypeofTypeAnnotation=Oe,s.UnionTypeAnnotation=Re,s.Variance=st,s.VoidTypeAnnotation=ot,s._interfaceish=_e,s._variance=Ke;var l=at(),u=qp(),o=Bs(),f=Up();const{isDeclareExportDeclaration:p,isStatement:w}=l;function b(){this.word("any")}function E(_){this.print(_.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function C(){this.word("boolean")}function x(_){this.word(_.value?"true":"false")}function N(){this.word("null")}function P(_,ce){p(ce)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(_)}function T(_,ce){p(ce)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(_.id),this.print(_.id.typeAnnotation.typeAnnotation),_.predicate&&(this.space(),this.print(_.predicate)),this.semicolon()}function F(){this.tokenChar(37),this.word("checks")}function V(_){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(_.value),this.tokenChar(41)}function k(_){this.word("declare"),this.space(),this.InterfaceDeclaration(_)}function S(_){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(_.id),this.space(),this.print(_.body)}function G(_){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(_.typeAnnotation)}function X(_){this.word("declare"),this.space(),this.TypeAlias(_)}function W(_,ce){p(ce)||(this.word("declare"),this.space()),this.OpaqueType(_)}function ee(_,ce){p(ce)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(_.id),this.print(_.id.typeAnnotation),this.semicolon()}function M(_){this.word("declare"),this.space(),this.word("export"),this.space(),_.default&&(this.word("default"),this.space()),ie.call(this,_)}function I(_){this.word("declare"),this.space(),u.ExportAllDeclaration.call(this,_)}function U(_){const{id:ce,body:Ne}=_;this.word("enum"),this.space(),this.print(ce),this.print(Ne)}function B(_,ce,Ne){Ne&&(_.space(),_.word("of"),_.space(),_.word(ce)),_.space()}function R(_,ce){const{members:Ne}=ce;_.token("{"),_.indent(),_.newline();for(const Me of Ne)_.print(Me),_.newline();ce.hasUnknownMembers&&(_.token("..."),_.newline()),_.dedent(),_.token("}")}function $(_){const{explicitType:ce}=_;B(this,"boolean",ce),R(this,_)}function ae(_){const{explicitType:ce}=_;B(this,"number",ce),R(this,_)}function ge(_){const{explicitType:ce}=_;B(this,"string",ce),R(this,_)}function Se(_){B(this,"symbol",!0),R(this,_)}function Ae(_){const{id:ce}=_;this.print(ce),this.tokenChar(44)}function ne(_,ce){_.print(ce.id),_.space(),_.token("="),_.space(),_.print(ce.init),_.token(",")}function Z(_){ne(this,_)}function D(_){ne(this,_)}function J(_){ne(this,_)}function ie(_){if(_.declaration){const ce=_.declaration;this.print(ce),w(ce)||this.semicolon()}else this.tokenChar(123),_.specifiers.length&&(this.space(),this.printList(_.specifiers),this.space()),this.tokenChar(125),_.source&&(this.space(),this.word("from"),this.space(),this.print(_.source)),this.semicolon()}function Q(){this.tokenChar(42)}function fe(_,ce){this.print(_.typeParameters),this.tokenChar(40),_.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(_.this.typeAnnotation),(_.params.length||_.rest)&&(this.tokenChar(44),this.space())),this.printList(_.params),_.rest&&(_.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(_.rest)),this.tokenChar(41);const Ne=ce?.type;Ne!=null&&(Ne==="ObjectTypeCallProperty"||Ne==="ObjectTypeInternalSlot"||Ne==="DeclareFunction"||Ne==="ObjectTypeProperty"&&ce.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(_.returnType)}function ue(_){this.print(_.name),_.optional&&this.tokenChar(63),_.name&&(this.tokenChar(58),this.space()),this.print(_.typeAnnotation)}function Pe(_){this.print(_.id),this.print(_.typeParameters,!0)}function _e(_){var ce;if(this.print(_.id),this.print(_.typeParameters),(ce=_.extends)!=null&&ce.length&&(this.space(),this.word("extends"),this.space(),this.printList(_.extends)),_.type==="DeclareClass"){var Ne,Me;(Ne=_.mixins)!=null&&Ne.length&&(this.space(),this.word("mixins"),this.space(),this.printList(_.mixins)),(Me=_.implements)!=null&&Me.length&&(this.space(),this.word("implements"),this.space(),this.printList(_.implements))}this.space(),this.print(_.body)}function Ke(_){var ce;const Ne=(ce=_.variance)==null?void 0:ce.kind;Ne!=null&&(Ne==="plus"?this.tokenChar(43):Ne==="minus"&&this.tokenChar(45))}function ve(_){this.word("interface"),this.space(),this._interfaceish(_)}function Ce(_){this.space(),this.token("&",!1,_),this.space()}function me(_){var ce;this.word("interface"),(ce=_.extends)!=null&&ce.length&&(this.space(),this.word("extends"),this.space(),this.printList(_.extends)),this.space(),this.print(_.body)}function le(_){this.printJoin(_.types,void 0,void 0,Ce)}function de(){this.word("mixed")}function qe(){this.word("empty")}function $e(_){this.tokenChar(63),this.print(_.typeAnnotation)}function Ze(){this.word("number")}function it(){this.word("string")}function He(){this.word("this")}function we(_){this.tokenChar(91),this.printList(_.types),this.tokenChar(93)}function Oe(_){this.word("typeof"),this.space(),this.print(_.argument)}function ke(_){this.word("type"),this.space(),this.print(_.id),this.print(_.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(_.right),this.semicolon()}function Le(_,ce){this.tokenChar(58),this.space(),ce.type==="ArrowFunctionExpression"?this.tokenContext|=o.TokenContext.arrowFlowReturnType:_.optional&&this.tokenChar(63),this.print(_.typeAnnotation)}function Ve(_){this.tokenChar(60),this.printList(_.params),this.tokenChar(62)}function Qe(_){this._variance(_),this.word(_.name),_.bound&&this.print(_.bound),_.default&&(this.space(),this.tokenChar(61),this.space(),this.print(_.default))}function et(_){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(_.id),this.print(_.typeParameters),_.supertype&&(this.tokenChar(58),this.space(),this.print(_.supertype)),_.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(_.impltype)),this.semicolon()}function ht(_){_.exact?this.token("{|"):this.tokenChar(123);const ce=[..._.properties,..._.callProperties||[],..._.indexers||[],..._.internalSlots||[]];ce.length&&(this.newline(),this.space(),this.printJoin(ce,!0,!0,void 0,void 0,()=>{(ce.length!==1||_.inexact)&&(this.tokenChar(44),this.space())}),this.space()),_.inexact&&(this.indent(),this.token("..."),ce.length&&this.newline(),this.dedent()),_.exact?this.token("|}"):this.tokenChar(125)}function Te(_){_.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(_.id),this.tokenChar(93),this.tokenChar(93),_.optional&&this.tokenChar(63),_.method||(this.tokenChar(58),this.space()),this.print(_.value)}function Ue(_){_.static&&(this.word("static"),this.space()),this.print(_.value)}function Be(_){_.static&&(this.word("static"),this.space()),this._variance(_),this.tokenChar(91),_.id&&(this.print(_.id),this.tokenChar(58),this.space()),this.print(_.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(_.value)}function pe(_){_.proto&&(this.word("proto"),this.space()),_.static&&(this.word("static"),this.space()),(_.kind==="get"||_.kind==="set")&&(this.word(_.kind),this.space()),this._variance(_),this.print(_.key),_.optional&&this.tokenChar(63),_.method||(this.tokenChar(58),this.space()),this.print(_.value)}function j(_){this.token("..."),this.print(_.argument)}function te(_){this.print(_.qualification),this.tokenChar(46),this.print(_.id)}function ye(){this.word("symbol")}function Ie(_){this.space(),this.token("|",!1,_),this.space()}function Re(_){this.printJoin(_.types,void 0,void 0,Ie)}function Ee(_){this.tokenChar(40),this.print(_.expression),this.print(_.typeAnnotation),this.tokenChar(41)}function st(_){_.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function ot(){this.word("void")}function he(_){this.print(_.objectType,!0),this.tokenChar(91),this.print(_.indexType),this.tokenChar(93)}function q(_){this.print(_.objectType),_.optional&&this.token("?."),this.tokenChar(91),this.print(_.indexType),this.tokenChar(93)}})(Zo)),Zo}var Er={},Nc;function Ah(){if(Nc)return Er;Nc=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.BlockStatement=u,Er.Directive=o,Er.DirectiveLiteral=w,Er.File=s,Er.InterpreterDirective=b,Er.Placeholder=E,Er.Program=l;function s(C){C.program&&this.print(C.program.interpreter),this.print(C.program)}function l(C){var x;this.noIndentInnerCommentsHere(),this.printInnerComments();const N=(x=C.directives)==null?void 0:x.length;if(N){var P;const T=C.body.length?2:1;this.printSequence(C.directives,void 0,T),(P=C.directives[N-1].trailingComments)!=null&&P.length||this.newline(T)}this.printSequence(C.body)}function u(C){var x;this.tokenChar(123);const N=this.enterDelimited(),P=(x=C.directives)==null?void 0:x.length;if(P){var T;const F=C.body.length?2:1;this.printSequence(C.directives,!0,F),(T=C.directives[P-1].trailingComments)!=null&&T.length||this.newline(F)}this.printSequence(C.body,!0),N(),this.rightBrace(C)}function o(C){this.print(C.value),this.semicolon()}const f=/(?:^|[^\\])(?:\\\\)*'/,p=/(?:^|[^\\])(?:\\\\)*"/;function w(C){const x=this.getPossibleRaw(C);if(!this.format.minified&&x!==void 0){this.token(x);return}const{value:N}=C;if(!p.test(N))this.token(`"${N}"`);else if(!f.test(N))this.token(`'${N}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function b(C){this.token(`#!${C.value}`),this.newline(1,!0)}function E(C){this.token("%%"),this.print(C.name),this.token("%%"),C.expectedNode==="Statement"&&this.semicolon()}return Er}var kt={},Oc;function vh(){if(Oc)return kt;Oc=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.JSXAttribute=s,kt.JSXClosingElement=N,kt.JSXClosingFragment=V,kt.JSXElement=E,kt.JSXEmptyExpression=P,kt.JSXExpressionContainer=p,kt.JSXFragment=T,kt.JSXIdentifier=l,kt.JSXMemberExpression=o,kt.JSXNamespacedName=u,kt.JSXOpeningElement=x,kt.JSXOpeningFragment=F,kt.JSXSpreadAttribute=f,kt.JSXSpreadChild=w,kt.JSXText=b;function s(k){this.print(k.name),k.value&&(this.tokenChar(61),this.print(k.value))}function l(k){this.word(k.name)}function u(k){this.print(k.namespace),this.tokenChar(58),this.print(k.name)}function o(k){this.print(k.object),this.tokenChar(46),this.print(k.property)}function f(k){this.tokenChar(123),this.token("..."),this.print(k.argument),this.rightBrace(k)}function p(k){this.tokenChar(123),this.print(k.expression),this.rightBrace(k)}function w(k){this.tokenChar(123),this.token("..."),this.print(k.expression),this.rightBrace(k)}function b(k){const S=this.getPossibleRaw(k);S!==void 0?this.token(S,!0):this.token(k.value,!0)}function E(k){const S=k.openingElement;if(this.print(S),!S.selfClosing){this.indent();for(const G of k.children)this.print(G);this.dedent(),this.print(k.closingElement)}}function C(){this.space()}function x(k){this.tokenChar(60),this.print(k.name),k.typeArguments&&this.print(k.typeArguments),this.print(k.typeParameters),k.attributes.length>0&&(this.space(),this.printJoin(k.attributes,void 0,void 0,C)),k.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function N(k){this.tokenChar(60),this.tokenChar(47),this.print(k.name),this.tokenChar(62)}function P(){this.printInnerComments()}function T(k){this.print(k.openingFragment),this.indent();for(const S of k.children)this.print(S);this.dedent(),this.print(k.closingFragment)}function F(){this.tokenChar(60),this.tokenChar(62)}function V(){this.token("</"),this.tokenChar(62)}return kt}var We={},_c;function Ch(){if(_c)return We;_c=1,Object.defineProperty(We,"__esModule",{value:!0}),We.TSAnyKeyword=F,We.TSArrayType=J,We.TSSatisfiesExpression=We.TSAsExpression=Le,We.TSBigIntKeyword=V,We.TSBooleanKeyword=X,We.TSCallSignatureDeclaration=b,We.TSInterfaceHeritage=We.TSClassImplements=He,We.TSConditionalType=ve,We.TSConstructSignatureDeclaration=C,We.TSConstructorType=ge,We.TSDeclareFunction=f,We.TSDeclareMethod=p,We.TSEnumBody=ht,We.TSEnumDeclaration=et,We.TSEnumMember=Te,We.TSExportAssignment=Ie,We.TSExternalModuleReference=te,We.TSFunctionType=ae,We.TSImportEqualsDeclaration=j,We.TSImportType=pe,We.TSIndexSignature=T,We.TSIndexedAccessType=de,We.TSInferType=Ce,We.TSInstantiationExpression=Qe,We.TSInterfaceBody=Oe,We.TSInterfaceDeclaration=we,We.TSIntersectionType=_e,We.TSIntrinsicKeyword=R,We.TSLiteralType=it,We.TSMappedType=qe,We.TSMethodSignature=P,We.TSModuleBlock=Be,We.TSModuleDeclaration=Ue,We.TSNamedTupleMember=ue,We.TSNamespaceExportDeclaration=Re,We.TSNeverKeyword=B,We.TSNonNullExpression=ye,We.TSNullKeyword=U,We.TSNumberKeyword=S,We.TSObjectKeyword=G,We.TSOptionalType=Q,We.TSParameterProperty=o,We.TSParenthesizedType=me,We.TSPropertySignature=x,We.TSQualifiedName=w,We.TSRestType=fe,We.TSStringKeyword=W,We.TSSymbolKeyword=ee,We.TSTemplateLiteralType=Ze,We.TSThisType=$,We.TSTupleType=ie,We.TSTypeAliasDeclaration=ke,We.TSTypeAnnotation=s,We.TSTypeAssertion=Ve,We.TSTypeLiteral=D,We.TSTypeOperator=le,We.TSTypeParameter=u,We.TSTypeParameterDeclaration=We.TSTypeParameterInstantiation=l,We.TSTypePredicate=ne,We.TSTypeQuery=Z,We.TSTypeReference=Ae,We.TSUndefinedKeyword=I,We.TSUnionType=Pe,We.TSUnknownKeyword=k,We.TSVoidKeyword=M,We.tsPrintClassMemberModifiers=st,We.tsPrintFunctionOrConstructorType=Se,We.tsPrintPropertyOrMethodName=N,We.tsPrintSignatureDeclarationBase=Ee;function s(q,_){this.token((_.type==="TSFunctionType"||_.type==="TSConstructorType")&&_.typeAnnotation===q?"=>":":"),this.space(),q.optional&&this.tokenChar(63),this.print(q.typeAnnotation)}function l(q,_){this.tokenChar(60);let ce=_.type==="ArrowFunctionExpression"&&q.params.length===1;this.tokenMap&&q.start!=null&&q.end!=null&&(ce&&(ce=!!this.tokenMap.find(q,Ne=>this.tokenMap.matchesOriginal(Ne,","))),ce||(ce=this.shouldPrintTrailingComma(">"))),this.printList(q.params,ce),this.tokenChar(62)}function u(q){q.const&&(this.word("const"),this.space()),q.in&&(this.word("in"),this.space()),q.out&&(this.word("out"),this.space()),this.word(q.name),q.constraint&&(this.space(),this.word("extends"),this.space(),this.print(q.constraint)),q.default&&(this.space(),this.tokenChar(61),this.space(),this.print(q.default))}function o(q){q.accessibility&&(this.word(q.accessibility),this.space()),q.readonly&&(this.word("readonly"),this.space()),this._param(q.parameter)}function f(q,_){q.declare&&(this.word("declare"),this.space()),this._functionHead(q,_),this.semicolon()}function p(q){this._classMethodHead(q),this.semicolon()}function w(q){this.print(q.left),this.tokenChar(46),this.print(q.right)}function b(q){this.tsPrintSignatureDeclarationBase(q),E(this,q)}function E(q,_){if(!q.tokenMap||!_.start||!_.end){q.semicolon();return}q.tokenMap.endMatches(_,",")?q.token(","):q.tokenMap.endMatches(_,";")&&q.semicolon()}function C(q){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(q),E(this,q)}function x(q){const{readonly:_}=q;_&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(q),this.print(q.typeAnnotation),E(this,q)}function N(q){q.computed&&this.tokenChar(91),this.print(q.key),q.computed&&this.tokenChar(93),q.optional&&this.tokenChar(63)}function P(q){const{kind:_}=q;(_==="set"||_==="get")&&(this.word(_),this.space()),this.tsPrintPropertyOrMethodName(q),this.tsPrintSignatureDeclarationBase(q),E(this,q)}function T(q){const{readonly:_,static:ce}=q;ce&&(this.word("static"),this.space()),_&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(q.parameters,"]"),this.print(q.typeAnnotation),E(this,q)}function F(){this.word("any")}function V(){this.word("bigint")}function k(){this.word("unknown")}function S(){this.word("number")}function G(){this.word("object")}function X(){this.word("boolean")}function W(){this.word("string")}function ee(){this.word("symbol")}function M(){this.word("void")}function I(){this.word("undefined")}function U(){this.word("null")}function B(){this.word("never")}function R(){this.word("intrinsic")}function $(){this.word("this")}function ae(q){this.tsPrintFunctionOrConstructorType(q)}function ge(q){q.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(q)}function Se(q){const{typeParameters:_}=q,ce=q.parameters;this.print(_),this.tokenChar(40),this._parameters(ce,")"),this.space();const Ne=q.typeAnnotation;this.print(Ne)}function Ae(q){const _=q.typeParameters;this.print(q.typeName,!!_),this.print(_)}function ne(q){q.asserts&&(this.word("asserts"),this.space()),this.print(q.parameterName),q.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(q.typeAnnotation.typeAnnotation))}function Z(q){this.word("typeof"),this.space(),this.print(q.exprName);const _=q.typeParameters;_&&this.print(_)}function D(q){ot(this,q,()=>this.printJoin(q.members,!0,!0))}function J(q){this.print(q.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function ie(q){this.tokenChar(91),this.printList(q.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function Q(q){this.print(q.typeAnnotation),this.tokenChar(63)}function fe(q){this.token("..."),this.print(q.typeAnnotation)}function ue(q){this.print(q.label),q.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(q.elementType)}function Pe(q){Ke(this,q,"|")}function _e(q){Ke(this,q,"&")}function Ke(q,_,ce){var Ne;let Me=0;(Ne=q.tokenMap)!=null&&Ne.startMatches(_,ce)&&(Me=1,q.token(ce)),q.printJoin(_.types,void 0,void 0,function(Ge){this.space(),this.token(ce,void 0,Ge+Me),this.space()})}function ve(q){this.print(q.checkType),this.space(),this.word("extends"),this.space(),this.print(q.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(q.trueType),this.space(),this.tokenChar(58),this.space(),this.print(q.falseType)}function Ce(q){this.word("infer"),this.print(q.typeParameter)}function me(q){this.tokenChar(40),this.print(q.typeAnnotation),this.tokenChar(41)}function le(q){this.word(q.operator),this.space(),this.print(q.typeAnnotation)}function de(q){this.print(q.objectType,!0),this.tokenChar(91),this.print(q.indexType),this.tokenChar(93)}function qe(q){const{nameType:_,optional:ce,readonly:Ne,typeAnnotation:Me}=q;this.tokenChar(123);const Ge=this.enterDelimited();this.space(),Ne&&($e(this,Ne),this.word("readonly"),this.space()),this.tokenChar(91),this.word(q.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(q.typeParameter.constraint),_&&(this.space(),this.word("as"),this.space(),this.print(_)),this.tokenChar(93),ce&&($e(this,ce),this.tokenChar(63)),Me&&(this.tokenChar(58),this.space(),this.print(Me)),this.space(),Ge(),this.tokenChar(125)}function $e(q,_){_!==!0&&q.token(_)}function Ze(q){this._printTemplate(q,q.types)}function it(q){this.print(q.literal)}function He(q){this.print(q.expression),this.print(q.typeArguments)}function we(q){const{declare:_,id:ce,typeParameters:Ne,extends:Me,body:Ge}=q;_&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(ce),this.print(Ne),Me!=null&&Me.length&&(this.space(),this.word("extends"),this.space(),this.printList(Me)),this.space(),this.print(Ge)}function Oe(q){ot(this,q,()=>this.printJoin(q.body,!0,!0))}function ke(q){const{declare:_,id:ce,typeParameters:Ne,typeAnnotation:Me}=q;_&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(ce),this.print(Ne),this.space(),this.tokenChar(61),this.space(),this.print(Me),this.semicolon()}function Le(q){const{type:_,expression:ce,typeAnnotation:Ne}=q;this.print(ce,!0),this.space(),this.word(_==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(Ne)}function Ve(q){const{typeAnnotation:_,expression:ce}=q;this.tokenChar(60),this.print(_),this.tokenChar(62),this.space(),this.print(ce)}function Qe(q){this.print(q.expression),this.print(q.typeParameters)}function et(q){const{declare:_,const:ce,id:Ne}=q;_&&(this.word("declare"),this.space()),ce&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(Ne),this.space(),ht.call(this,q)}function ht(q){ot(this,q,()=>{var _;return this.printList(q.members,(_=this.shouldPrintTrailingComma("}"))!=null?_:!0,!0,!0)})}function Te(q){const{id:_,initializer:ce}=q;this.print(_),ce&&(this.space(),this.tokenChar(61),this.space(),this.print(ce))}function Ue(q){const{declare:_,id:ce,kind:Ne}=q;_&&(this.word("declare"),this.space());{if(q.global||(this.word(Ne??(ce.type==="Identifier"?"namespace":"module")),this.space()),this.print(ce),!q.body){this.semicolon();return}let Me=q.body;for(;Me.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(Me.id),Me=Me.body;this.space(),this.print(Me)}}function Be(q){ot(this,q,()=>this.printSequence(q.body,!0))}function pe(q){const{argument:_,qualifier:ce,options:Ne}=q;this.word("import"),this.tokenChar(40),this.print(_),Ne&&(this.tokenChar(44),this.print(Ne)),this.tokenChar(41),ce&&(this.tokenChar(46),this.print(ce));const Me=q.typeParameters;Me&&this.print(Me)}function j(q){const{id:_,moduleReference:ce}=q;q.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(_),this.space(),this.tokenChar(61),this.space(),this.print(ce),this.semicolon()}function te(q){this.token("require("),this.print(q.expression),this.tokenChar(41)}function ye(q){this.print(q.expression),this.tokenChar(33)}function Ie(q){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(q.expression),this.semicolon()}function Re(q){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(q.id),this.semicolon()}function Ee(q){const{typeParameters:_}=q,ce=q.parameters;this.print(_),this.tokenChar(40),this._parameters(ce,")");const Ne=q.typeAnnotation;this.print(Ne)}function st(q){const _=q.type==="ClassPrivateProperty",ce=q.type==="ClassAccessorProperty"||q.type==="ClassProperty";he(this,q,[ce&&q.declare&&"declare",!_&&q.accessibility]),q.static&&(this.word("static"),this.space()),he(this,q,[!_&&q.abstract&&"abstract",!_&&q.override&&"override",(ce||_)&&q.readonly&&"readonly"])}function ot(q,_,ce){q.token("{");const Ne=q.enterDelimited();ce(),Ne(),q.rightBrace(_)}function he(q,_,ce){var Ne;const Me=new Set;for(const Ge of ce)Ge&&Me.add(Ge);(Ne=q.tokenMap)==null||Ne.find(_,Ge=>Me.has(Ge.value)?(q.token(Ge.value),q.space(),Me.delete(Ge.value),Me.size===0):!1);for(const Ge of Me)q.word(Ge),q.space()}return We}var kc;function Ih(){return kc||(kc=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0});var l=Th();Object.keys(l).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===l[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return l[P]}})});var u=Sh();Object.keys(u).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===u[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return u[P]}})});var o=gh();Object.keys(o).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===o[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return o[P]}})});var f=xh();Object.keys(f).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===f[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return f[P]}})});var p=bh();Object.keys(p).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===p[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return p[P]}})});var w=qp();Object.keys(w).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===w[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return w[P]}})});var b=Up();Object.keys(b).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===b[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return b[P]}})});var E=Ph();Object.keys(E).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===E[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return E[P]}})});var C=Ah();Object.keys(C).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===C[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return C[P]}})});var x=vh();Object.keys(x).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===x[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return x[P]}})});var N=Ch();Object.keys(N).forEach(function(P){P==="default"||P==="__esModule"||P in s&&s[P]===N[P]||Object.defineProperty(s,P,{enumerable:!0,get:function(){return N[P]}})})})(Go)),Go}var Va={},Dc;function wh(){if(Dc)return Va;Dc=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.addDeprecatedGenerators=s;function s(l){{const u={Noop(){},TSExpressionWithTypeArguments(o){this.print(o.expression),this.print(o.typeParameters)},DecimalLiteral(o){const f=this.getPossibleRaw(o);if(!this.format.minified&&f!==void 0){this.word(f);return}this.word(o.value+"m")}};Object.assign(l.prototype,u)}}return Va}var Lc;function Nh(){if(Lc)return xn;Lc=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var s=hh(),l=Bs(),u=l,o=at(),f=yh(),p=Ih(),w=wh();const{isExpression:b,isFunction:E,isStatement:C,isClassBody:x,isTSInterfaceBody:N,isTSEnumMember:P}=o,T=/e/i,F=/\.0+$/,V=/[\n\r\u2028\u2029]/,k=/[\n\r\u2028\u2029]|\*\//;function S(ee){return ee.type==="CommentLine"||V.test(ee.value)}const{needsParens:G}=u;class X{constructor(M,I,U=null,B=null){this.tokenContext=l.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=M,this._tokens=U,this._originalCode=B,this._indentRepeat=M.indent.style.length,this._inputMap=I?._inputMap||null,this._buf=new s.default(I,M.indent.style[0])}enterForStatementInit(){return this.tokenContext|=l.TokenContext.forInitHead|l.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=l.TokenContext.normal}enterForXStatementInit(M){return M?(this.tokenContext|=l.TokenContext.forOfHead,null):(this.tokenContext|=l.TokenContext.forInHead|l.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=l.TokenContext.normal)}enterDelimited(){const M=this.tokenContext,I=this._noLineTerminatorAfterNode;return!(M&l.TokenContext.forInOrInitHeadAccumulate)&&I===null?()=>{}:(this._noLineTerminatorAfterNode=null,this.tokenContext=l.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=I,this.tokenContext=M})}generate(M){return this.format.preserveFormat&&(this.tokenMap=new f.TokenMap(M,this._tokens,this._originalCode)),this.print(M),this._maybeAddAuxComment(),this._buf.get()}indent(){const{format:M}=this;M.preserveFormat||M.compact||M.concise||this._indent++}dedent(){const{format:M}=this;M.preserveFormat||M.compact||M.concise||this._indent--}semicolon(M=!1){if(this._maybeAddAuxComment(),M){this._appendChar(59),this._noLineTerminator=!1;return}if(this.tokenMap){const I=this._currentNode;if(I.start!=null&&I.end!=null){if(!this.tokenMap.endMatches(I,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}const U=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[U[U.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(M){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",M.loc,-1),this.tokenChar(125)}rightParens(M){this.sourceWithOffset("end",M.loc,-1),this.tokenChar(41)}space(M=!1){const{format:I}=this;if(!(I.compact||I.preserveFormat)){if(M)this._space();else if(this._buf.hasContent()){const U=this.getLastChar();U!==32&&U!==10&&this._space()}}}word(M,I=!1){this.tokenContext&=l.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(M),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(M),(this._endsWithWord||this._endsWithDiv&&M.charCodeAt(0)===47)&&this._space(),this._append(M,!1),this._endsWithWord=!0,this._noLineTerminator=I}number(M,I){function U(B){if(B.length>2&&B.charCodeAt(0)===48){const R=B.charCodeAt(1);return R===98||R===111||R===120}return!1}this.word(M),this._endsWithInteger=Number.isInteger(I)&&!U(M)&&!T.test(M)&&!F.test(M)&&M.charCodeAt(M.length-1)!==46}token(M,I=!1,U=0){this.tokenContext&=l.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(M,U),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(M,U);const B=this.getLastChar(),R=M.charCodeAt(0);(B===33&&(M==="--"||R===61)||R===43&&B===43||R===45&&B===45||R===46&&this._endsWithInteger)&&this._space(),this._append(M,I),this._noLineTerminator=!1}tokenChar(M){this.tokenContext&=l.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const I=String.fromCharCode(M);this._maybePrintInnerComments(I),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(I);const U=this.getLastChar();(M===43&&U===43||M===45&&U===45||M===46&&this._endsWithInteger)&&this._space(),this._appendChar(M),this._noLineTerminator=!1}newline(M=1,I){if(!(M<=0)){if(!I){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}M>2&&(M=2),M-=this._buf.getNewlineCount();for(let U=0;U<M;U++)this._newline()}}endsWith(M){return this.getLastChar()===M}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(M,I){if(!M){I();return}this._catchUp("start",M),this._buf.exactSource(M,I)}source(M,I){I&&(this._catchUp(M,I),this._buf.source(M,I))}sourceWithOffset(M,I,U){!I||this.format.preserveFormat||(this._catchUp(M,I),this._buf.sourceWithOffset(M,I,U))}sourceIdentifierName(M,I){if(!this._buf._canMarkIdName)return;const U=this._buf._sourcePosition;U.identifierNamePos=I,U.identifierName=M}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(M,I=0){const U=this.tokenMap.findMatching(this._currentNode,M,I);U&&this._catchUpTo(U.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(M,I){this._maybeIndent(M.charCodeAt(0)),this._buf.append(M,I),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(M){this._maybeIndent(M),this._buf.appendChar(M),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(M){this._maybeIndent(M),this._buf.queue(M),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(M){this._indent&&M!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(M){if(this._indent&&M!==10&&this.endsWith(10))return!0}catchUp(M){if(!this.format.retainLines)return;const I=M-this._buf.getCurrentLine();for(let U=0;U<I;U++)this._newline()}_catchUp(M,I){const{format:U}=this;if(!U.preserveFormat){U.retainLines&&I!=null&&I[M]&&this.catchUp(I[M].line);return}const B=I?.[M];B!=null&&this._catchUpTo(B)}_catchUpTo({line:M,column:I,index:U}){const B=M-this._buf.getCurrentLine();if(B>0&&this._noLineTerminator)return;for(let $=0;$<B;$++)this._newline();const R=B>0?I:I-this._buf.getCurrentColumn();if(R>0){const $=this._originalCode?this._originalCode.slice(U-R,U).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(R);this._append($,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(M){this._noLineTerminator=!0,this.print(M)}print(M,I=!1,U){var B,R,$;if(!M)return;this._endsWithInnerRaw=!1;const ae=M.type,ge=this.format,Se=ge.concise;M._compact&&(ge.concise=!0);const Ae=this[ae];if(Ae===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(ae)} with constructor ${JSON.stringify(M.constructor.name)}`);const ne=this._currentNode;this._currentNode=M,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);const Z=this._insideAux;this._insideAux=M.loc==null,this._maybeAddAuxComment(this._insideAux&&!Z);const D=(B=M.extra)==null?void 0:B.parenthesized;let J=D&&ge.preserveFormat||D&&ge.retainFunctionParens&&ae==="FunctionExpression"||G(M,ne,this.tokenContext,ge.preserveFormat?this._boundGetRawIdentifier:void 0);if(!J&&D&&(R=M.leadingComments)!=null&&R.length&&M.leadingComments[0].type==="CommentBlock")switch(ne?.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(ne.callee!==M)break;default:J=!0}let ie=!1;!J&&this._noLineTerminator&&(($=M.leadingComments)!=null&&$.some(S)||this.format.retainLines&&M.loc&&M.loc.start.line>this._buf.getCurrentLine())&&(J=!0,ie=!0);let Q,fe;if(!J&&(I||(I=!!ne&&this._noLineTerminatorAfterNode===ne&&u.isLastChild(ne,M)),I)){var ue;(ue=M.trailingComments)!=null&&ue.some(S)?b(M)&&(J=!0):(Q=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=M)}J&&(this.tokenChar(40),ie&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&l.TokenContext.forInOrInitHeadAccumulate&&(fe=this.tokenContext,this.tokenContext=l.TokenContext.normal),Q=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(M,ne);const Pe=ae==="Program"||ae==="File"?null:M.loc;this.exactSource(Pe,Ae.bind(this,M,ne)),J?(this._printTrailingComments(M,ne),ie&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=I,fe&&(this.tokenContext=fe)):I&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(M,ne)):this._printTrailingComments(M,ne,U),this._currentNode=ne,ge.concise=Se,this._insideAux=Z,Q!==void 0&&(this._noLineTerminatorAfterNode=Q),this._endsWithInnerRaw=!1}_maybeAddAuxComment(M){M&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const M=this.format.auxiliaryCommentBefore;M&&this._printComment({type:"CommentBlock",value:M},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const M=this.format.auxiliaryCommentAfter;M&&this._printComment({type:"CommentBlock",value:M},0)}getPossibleRaw(M){const I=M.extra;if(I?.raw!=null&&I.rawValue!=null&&M.value===I.rawValue)return I.raw}printJoin(M,I,U,B,R,$,ae){if(!(M!=null&&M.length))return;if(U==null&&this.format.retainLines){var ge;const J=(ge=M[0].loc)==null?void 0:ge.start.line;J!=null&&J!==this._buf.getCurrentLine()&&(U=!0)}U&&this.indent();const Se={nextNodeStartLine:0},Ae=B?.bind(this),ne=M.length;for(let J=0;J<ne;J++){const ie=M[J];if(ie&&(I&&this._printNewline(J===0,Se),this.print(ie,void 0,ae||0),$?.(ie,J),Ae!=null&&(J<ne-1?Ae(J,!1):R&&Ae(J,!0)),I)){var Z;if((Z=ie.trailingComments)!=null&&Z.length||(this._lastCommentLine=0),J+1===ne)this.newline(1);else{var D;const Q=M[J+1];Se.nextNodeStartLine=((D=Q.loc)==null?void 0:D.start.line)||0,this._printNewline(!0,Se)}}}U&&this.dedent()}printAndIndentOnComments(M){const I=M.leadingComments&&M.leadingComments.length>0;I&&this.indent(),this.print(M),I&&this.dedent()}printBlock(M){const I=M.body;I.type!=="EmptyStatement"&&this.space(),this.print(I)}_printTrailingComments(M,I,U){const{innerComments:B,trailingComments:R}=M;B!=null&&B.length&&this._printComments(2,B,M,I,U),R!=null&&R.length&&this._printComments(2,R,M,I,U)}_printLeadingComments(M,I){const U=M.leadingComments;U!=null&&U.length&&this._printComments(0,U,M,I)}_maybePrintInnerComments(M,I){if(this._endsWithInnerRaw){var U;this.printInnerComments((U=this.tokenMap)==null?void 0:U.findMatching(this._currentNode,M,I))}this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(M){const I=this._currentNode,U=I.innerComments;if(!(U!=null&&U.length))return;const B=this.endsWith(32),R=this._indentInnerComments,$=this._printedComments.size;R&&this.indent(),this._printComments(1,U,I,void 0,void 0,M),B&&$!==this._printedComments.size&&this.space(),R&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(M,I,U){this.printJoin(M,!0,I??!1,void 0,void 0,void 0,U)}printList(M,I,U,B,R,$){this.printJoin(M,U,B,R??W,I,$)}shouldPrintTrailingComma(M){if(!this.tokenMap)return null;const I=this.tokenMap.findLastIndex(this._currentNode,U=>this.tokenMap.matchesOriginal(U,M));return I<=0?null:this.tokenMap.matchesOriginal(this._tokens[I-1],",")}_printNewline(M,I){const U=this.format;if(U.retainLines||U.compact)return;if(U.concise){this.space();return}if(!M)return;const B=I.nextNodeStartLine,R=this._lastCommentLine;if(B>0&&R>0){const $=B-R;if($>=0){this.newline($||1);return}}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(M,I){if(M.ignore||this._printedComments.has(M))return 0;if(this._noLineTerminator&&k.test(M.value))return 2;if(I&&this.tokenMap){const U=this.tokenMap.find(this._currentNode,B=>B.value===M.value);if(U&&U.start>I.start)return 2}return this._printedComments.add(M),this.format.shouldPrintComment(M.value)?1:0}_printComment(M,I){const U=this._noLineTerminator,B=M.type==="CommentBlock",R=B&&I!==1&&!this._noLineTerminator;R&&this._buf.hasContent()&&I!==2&&this.newline(1);const $=this.getLastChar();$!==91&&$!==123&&$!==40&&this.space();let ae;if(B){if(ae=`/*${M.value}*/`,this.format.indent.adjustMultilineComment){var ge;const Se=(ge=M.loc)==null?void 0:ge.start.column;if(Se){const Ae=new RegExp("\\n\\s{1,"+Se+"}","g");ae=ae.replace(Ae,`
|
|
20
|
-
`)}if(this.format.concise)ae=ae.replace(/\n(?!$)/g,`
|
|
21
|
-
`);else{let Ae=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(Ae+=this._getIndent()),ae=ae.replace(/\n(?!$)/g,`
|
|
22
|
-
${" ".repeat(Ae)}`)}}}else U?ae=`/*${M.value}*/`:ae=`//${M.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:Se,_printSemicolonBeforeNextNode:Ae}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",M.loc),this._append(ae,B),this._printSemicolonBeforeNextNode=Ae,this._printSemicolonBeforeNextToken=Se}else this.source("start",M.loc),this._append(ae,B);!B&&!U&&this.newline(1,!0),R&&I!==3&&this.newline(1)}_printComments(M,I,U,B,R=0,$){const ae=U.loc,ge=I.length;let Se=!!ae;const Ae=Se?ae.start.line:0,ne=Se?ae.end.line:0;let Z=0,D=0;const J=this._noLineTerminator?function(){}:this.newline.bind(this);for(let ie=0;ie<ge;ie++){const Q=I[ie],fe=this._shouldPrintComment(Q,$);if(fe===2){Se=!1;break}if(Se&&Q.loc&&fe===1){const ue=Q.loc.start.line,Pe=Q.loc.end.line;if(M===0){let _e=0;ie===0?this._buf.hasContent()&&(Q.type==="CommentLine"||ue!==Pe)&&(_e=D=1):_e=ue-Z,Z=Pe,J(_e),this._printComment(Q,1),ie+1===ge&&(J(Math.max(Ae-Z,D)),Z=Ae)}else if(M===1){const _e=ue-(ie===0?Ae:Z);Z=Pe,J(_e),this._printComment(Q,1),ie+1===ge&&(J(Math.min(1,ne-Z)),Z=ne)}else{const _e=ue-(ie===0?ne-R:Z);Z=Pe,J(_e),this._printComment(Q,1)}}else{if(Se=!1,fe!==1)continue;if(ge===1){const ue=Q.loc?Q.loc.start.line===Q.loc.end.line:!V.test(Q.value),Pe=ue&&!C(U)&&!x(B)&&!N(B)&&!P(U);M===0?this._printComment(Q,Pe&&U.type!=="ObjectExpression"||ue&&E(B,{body:U})?1:0):Pe&&M===2?this._printComment(Q,1):this._printComment(Q,0)}else M===1&&!(U.type==="ObjectExpression"&&U.properties.length>1)&&U.type!=="ClassBody"&&U.type!=="TSInterfaceBody"?this._printComment(Q,ie===0?2:ie===ge-1?3:0):this._printComment(Q,0)}}M===2&&Se&&Z&&(this._lastCommentLine=Z)}}Object.assign(X.prototype,p),(0,w.addDeprecatedGenerators)(X),xn.default=X;function W(ee,M){this.token(",",!1,ee),M||this.space()}return xn}var Mc;function Oh(){if(Mc)return Cs;Mc=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0,Cs.generate=o;var s=fh(),l=Nh();function u(f,p,w){if(p.experimental_preserveFormat){if(typeof f!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!p.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(p.compact&&p.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(p.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(p.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(w.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}const b={auxiliaryCommentBefore:p.auxiliaryCommentBefore,auxiliaryCommentAfter:p.auxiliaryCommentAfter,shouldPrintComment:p.shouldPrintComment,preserveFormat:p.experimental_preserveFormat,retainLines:p.retainLines,retainFunctionParens:p.retainFunctionParens,comments:p.comments==null||p.comments,compact:p.compact,minified:p.minified,concise:p.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},p.jsescOption),topicToken:p.topicToken,importAttributesKeyword:p.importAttributesKeyword};{var E;b.decoratorsBeforeExport=p.decoratorsBeforeExport,b.jsescOption.json=p.jsonCompatibleStrings,b.recordAndTupleSyntaxType=(E=p.recordAndTupleSyntaxType)!=null?E:"hash"}b.minified?(b.compact=!0,b.shouldPrintComment=b.shouldPrintComment||(()=>b.comments)):b.shouldPrintComment=b.shouldPrintComment||(P=>b.comments||P.includes("@license")||P.includes("@preserve")),b.compact==="auto"&&(b.compact=typeof f=="string"&&f.length>5e5,b.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${p.filename} as it exceeds the max of 500KB.`)),(b.compact||b.preserveFormat)&&(b.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:C,auxiliaryCommentAfter:x,shouldPrintComment:N}=b;return C&&!N(C)&&(b.auxiliaryCommentBefore=void 0),x&&!N(x)&&(b.auxiliaryCommentAfter=void 0),b}Cs.CodeGenerator=class{constructor(p,w={},b){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=p,this._format=u(b,w,p),this._map=w.sourceMaps?new s.default(w,b):null}generate(){return new l.default(this._format,this._map).generate(this._ast)}};function o(f,p={},w){const b=u(w,p,f),E=p.sourceMaps?new s.default(p,w):null;return new l.default(b,E,f.tokens,typeof w=="string"?w:null).generate(f)}return Cs.default=o,Cs}var Gt={},Bc;function _h(){if(Bc)return Gt;Bc=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.find=o,Gt.findParent=u,Gt.getAncestry=E,Gt.getDeepestCommonAncestorFrom=b,Gt.getEarliestCommonAncestorFrom=w,Gt.getFunctionParent=f,Gt.getStatementParent=p,Gt.inType=N,Gt.isAncestor=C,Gt.isDescendant=x;var s=at();const{VISITOR_KEYS:l}=s;function u(P){let T=this;for(;T=T.parentPath;)if(P(T))return T;return null}function o(P){let T=this;do if(P(T))return T;while(T=T.parentPath);return null}function f(){return this.findParent(P=>P.isFunction())}function p(){let P=this;do{if(!P.parentPath||Array.isArray(P.container)&&P.isStatement())break;P=P.parentPath}while(P);if(P&&(P.isProgram()||P.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return P}function w(P){return this.getDeepestCommonAncestorFrom(P,function(T,F,V){let k;const S=l[T.type];for(const G of V){const X=G[F+1];if(!k){k=X;continue}if(X.listKey&&k.listKey===X.listKey&&X.key<k.key){k=X;continue}const W=S.indexOf(k.parentKey),ee=S.indexOf(X.parentKey);W>ee&&(k=X)}return k})}function b(P,T){if(!P.length)return this;if(P.length===1)return P[0];let F=1/0,V,k;const S=P.map(X=>{const W=[];do W.unshift(X);while((X=X.parentPath)&&X!==this);return W.length<F&&(F=W.length),W}),G=S[0];e:for(let X=0;X<F;X++){const W=G[X];for(const ee of S)if(ee[X]!==W)break e;V=X,k=W}if(k)return T?T(k,V,S):k;throw new Error("Couldn't find intersection")}function E(){let P=this;const T=[];do T.push(P);while(P=P.parentPath);return T}function C(P){return P.isDescendant(this)}function x(P){return!!this.findParent(T=>T===P)}function N(...P){let T=this;for(;T;){if(P.includes(T.node.type))return!0;T=T.parentPath}return!1}return Gt}var Mr={},el={},Wa={},Ja={},Fc;function Kp(){if(Fc)return Ja;Fc=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.createUnionType=w;var s=at();const{createFlowUnionType:l,createTSUnionType:u,createUnionTypeAnnotation:o,isFlowType:f,isTSType:p}=s;function w(b){{if(b.every(E=>f(E)))return l?l(b):o(b);if(b.every(E=>p(E))&&u)return u(b)}}return Ja}var Rc;function kh(){if(Rc)return Wa;Rc=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.default=w;var s=at(),l=Kp();const{BOOLEAN_NUMBER_BINARY_OPERATORS:u,createTypeAnnotationBasedOnTypeof:o,numberTypeAnnotation:f,voidTypeAnnotation:p}=s;function w(P){if(!this.isReferenced())return;const T=this.scope.getBinding(P.name);if(T)return T.identifier.typeAnnotation?T.identifier.typeAnnotation:b(T,this,P.name);if(P.name==="undefined")return p();if(P.name==="NaN"||P.name==="Infinity")return f();P.name}function b(P,T,F){const V=[],k=[];let S=E(P,T,k);const G=N(P,T,F);if(G){const X=E(P,G.ifStatement);S=S.filter(W=>!X.includes(W)),V.push(G.typeAnnotation)}if(S.length){S.push(...k);for(const X of S)V.push(X.getTypeAnnotation())}if(V.length)return(0,l.createUnionType)(V)}function E(P,T,F){const V=P.constantViolations.slice();return V.unshift(P.path),V.filter(k=>{k=k.resolve();const S=k._guessExecutionStatusRelativeTo(T);return F&&S==="unknown"&&F.push(k),S==="before"})}function C(P,T){const F=T.node.operator,V=T.get("right").resolve(),k=T.get("left").resolve();let S;if(k.isIdentifier({name:P})?S=V:V.isIdentifier({name:P})&&(S=k),S)return F==="==="?S.getTypeAnnotation():u.includes(F)?f():void 0;if(F!=="==="&&F!=="==")return;let G,X;if(k.isUnaryExpression({operator:"typeof"})?(G=k,X=V):V.isUnaryExpression({operator:"typeof"})&&(G=V,X=k),!G||!G.get("argument").isIdentifier({name:P})||(X=X.resolve(),!X.isLiteral()))return;const W=X.node.value;if(typeof W=="string")return o(W)}function x(P,T,F){let V;for(;V=T.parentPath;){if(V.isIfStatement()||V.isConditionalExpression())return T.key==="test"?void 0:V;if(V.isFunction()&&(F==null||V.parentPath.scope.getBinding(F)!==P))return;T=V}}function N(P,T,F){const V=x(P,T,F);if(!V)return;const S=[V.get("test")],G=[];for(let X=0;X<S.length;X++){const W=S[X];if(W.isLogicalExpression())W.node.operator==="&&"&&(S.push(W.get("left")),S.push(W.get("right")));else if(W.isBinaryExpression()){const ee=C(F,W);ee&&G.push(ee)}}return G.length?{typeAnnotation:(0,l.createUnionType)(G),ifStatement:V}:N(P,V,F)}return Wa}var jc;function Dh(){return jc||(jc=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.ArrayExpression=Ke,s.AssignmentExpression=D,s.BinaryExpression=ge,s.BooleanLiteral=fe,s.CallExpression=$e,s.ConditionalExpression=Ae,s.ClassDeclaration=s.ClassExpression=s.FunctionDeclaration=s.ArrowFunctionExpression=s.FunctionExpression=Ce,Object.defineProperty(s,"Identifier",{enumerable:!0,get:function(){return u.default}}),s.LogicalExpression=Se,s.NewExpression=R,s.NullLiteral=ue,s.NumericLiteral=Q,s.ObjectExpression=_e,s.ParenthesizedExpression=Z,s.RegExpLiteral=Pe,s.RestElement=ve,s.SequenceExpression=ne,s.StringLiteral=ie,s.TSAsExpression=U,s.TSNonNullExpression=B,s.TaggedTemplateExpression=Ze,s.TemplateLiteral=$,s.TypeCastExpression=I,s.UnaryExpression=ae,s.UpdateExpression=J,s.VariableDeclarator=M;var l=at(),u=kh(),o=Kp();const{BOOLEAN_BINARY_OPERATORS:f,BOOLEAN_UNARY_OPERATORS:p,NUMBER_BINARY_OPERATORS:w,NUMBER_UNARY_OPERATORS:b,STRING_UNARY_OPERATORS:E,anyTypeAnnotation:C,arrayTypeAnnotation:x,booleanTypeAnnotation:N,buildMatchMemberExpression:P,genericTypeAnnotation:T,identifier:F,nullLiteralTypeAnnotation:V,numberTypeAnnotation:k,stringTypeAnnotation:S,tupleTypeAnnotation:G,unionTypeAnnotation:X,voidTypeAnnotation:W,isIdentifier:ee}=l;function M(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function I(He){return He.typeAnnotation}I.validParent=!0;function U(He){return He.typeAnnotation}U.validParent=!0;function B(){return this.get("expression").getTypeAnnotation()}function R(He){if(He.callee.type==="Identifier")return T(He.callee)}function $(){return S()}function ae(He){const we=He.operator;if(we==="void")return W();if(b.includes(we))return k();if(E.includes(we))return S();if(p.includes(we))return N()}function ge(He){const we=He.operator;if(w.includes(we))return k();if(f.includes(we))return N();if(we==="+"){const Oe=this.get("right"),ke=this.get("left");return ke.isBaseType("number")&&Oe.isBaseType("number")?k():ke.isBaseType("string")||Oe.isBaseType("string")?S():X([S(),k()])}}function Se(){const He=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,o.createUnionType)(He)}function Ae(){const He=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,o.createUnionType)(He)}function ne(){return this.get("expressions").pop().getTypeAnnotation()}function Z(){return this.get("expression").getTypeAnnotation()}function D(){return this.get("right").getTypeAnnotation()}function J(He){const we=He.operator;if(we==="++"||we==="--")return k()}function ie(){return S()}function Q(){return k()}function fe(){return N()}function ue(){return V()}function Pe(){return T(F("RegExp"))}function _e(){return T(F("Object"))}function Ke(){return T(F("Array"))}function ve(){return Ke()}ve.validParent=!0;function Ce(){return T(F("Function"))}const me=P("Array.from"),le=P("Object.keys"),de=P("Object.values"),qe=P("Object.entries");function $e(){const{callee:He}=this.node;return le(He)?x(S()):me(He)||de(He)||ee(He,{name:"Array"})?x(C()):qe(He)?x(G([S(),C()])):it(this.get("callee"))}function Ze(){return it(this.get("tag"))}function it(He){if(He=He.resolve(),He.isFunction()){const{node:we}=He;if(we.async)return we.generator?T(F("AsyncIterator")):T(F("Promise"));if(we.generator)return T(F("Iterator"));if(He.node.returnType)return He.node.returnType}}})(el)),el}var qc;function Lh(){if(qc)return Mr;qc=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr._getTypeAnnotation=U,Mr.baseTypeStrictlyMatches=ae,Mr.couldBeBaseType=$,Mr.getTypeAnnotation=M,Mr.isBaseType=B,Mr.isGenericType=ge;var s=Dh(),l=at();const{anyTypeAnnotation:u,isAnyTypeAnnotation:o,isArrayTypeAnnotation:f,isBooleanTypeAnnotation:p,isEmptyTypeAnnotation:w,isFlowBaseAnnotation:b,isGenericTypeAnnotation:E,isIdentifier:C,isMixedTypeAnnotation:x,isNumberTypeAnnotation:N,isStringTypeAnnotation:P,isTSArrayType:T,isTSTypeAnnotation:F,isTSTypeReference:V,isTupleTypeAnnotation:k,isTypeAnnotation:S,isUnionTypeAnnotation:G,isVoidTypeAnnotation:X,stringTypeAnnotation:W,voidTypeAnnotation:ee}=l;function M(){let Se=this.getData("typeAnnotation");return Se!=null||(Se=U.call(this)||u(),(S(Se)||F(Se))&&(Se=Se.typeAnnotation),this.setData("typeAnnotation",Se)),Se}const I=new WeakSet;function U(){const Se=this.node;if(!Se)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const ne=this.parentPath.parentPath,Z=ne.parentPath;return ne.key==="left"&&Z.isForInStatement()?W():ne.key==="left"&&Z.isForOfStatement()?u():ee()}else return;if(Se.typeAnnotation)return Se.typeAnnotation;if(!I.has(Se)){I.add(Se);try{var Ae;let ne=s[Se.type];if(ne)return ne.call(this,Se);if(ne=s[this.parentPath.type],(Ae=ne)!=null&&Ae.validParent)return this.parentPath.getTypeAnnotation()}finally{I.delete(Se)}}}function B(Se,Ae){return R(Se,this.getTypeAnnotation(),Ae)}function R(Se,Ae,ne){if(Se==="string")return P(Ae);if(Se==="number")return N(Ae);if(Se==="boolean")return p(Ae);if(Se==="any")return o(Ae);if(Se==="mixed")return x(Ae);if(Se==="empty")return w(Ae);if(Se==="void")return X(Ae);if(ne)return!1;throw new Error(`Unknown base type ${Se}`)}function $(Se){const Ae=this.getTypeAnnotation();if(o(Ae))return!0;if(G(Ae)){for(const ne of Ae.types)if(o(ne)||R(Se,ne,!0))return!0;return!1}else return R(Se,Ae,!0)}function ae(Se){const Ae=this.getTypeAnnotation(),ne=Se.getTypeAnnotation();return!o(Ae)&&b(Ae)?ne.type===Ae.type:!1}function ge(Se){const Ae=this.getTypeAnnotation();return Se==="Array"&&(T(Ae)||f(Ae)||k(Ae))?!0:E(Ae)&&C(Ae.id,{name:Se})||V(Ae)&&C(Ae.typeName,{name:Se})}return Mr}var Br={},ks={},Xa={exports:{}},Uc;function Mh(){if(Uc)return Xa.exports;Uc=1;var s=String,l=function(){return{isColorSupported:!1,reset:s,bold:s,dim:s,italic:s,underline:s,inverse:s,hidden:s,strikethrough:s,black:s,red:s,green:s,yellow:s,blue:s,magenta:s,cyan:s,white:s,gray:s,bgBlack:s,bgRed:s,bgGreen:s,bgYellow:s,bgBlue:s,bgMagenta:s,bgCyan:s,bgWhite:s,blackBright:s,redBright:s,greenBright:s,yellowBright:s,blueBright:s,magentaBright:s,cyanBright:s,whiteBright:s,bgBlackBright:s,bgRedBright:s,bgGreenBright:s,bgYellowBright:s,bgBlueBright:s,bgMagentaBright:s,bgCyanBright:s,bgWhiteBright:s}};return Xa.exports=l(),Xa.exports.createColors=l,Xa.exports}var An={},Kc;function Bh(){return Kc||(Kc=1,Object.defineProperty(An,"__esModule",{value:!0}),An.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,An.matchToToken=function(s){var l={type:"invalid",value:s[0],closed:void 0};return s[1]?(l.type="string",l.closed=!!(s[3]||s[4])):s[5]?l.type="comment":s[6]?(l.type="comment",l.closed=!!s[7]):s[8]?l.type="regex":s[9]?l.type="number":s[10]?l.type="name":s[11]?l.type="punctuator":s[12]&&(l.type="whitespace"),l}),An}var Vc;function Vp(){if(Vc)return ks;Vc=1,Object.defineProperty(ks,"__esModule",{value:!0});var s=Mh(),l=Bh(),u=ro();function o(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:s.isColorSupported}const f=(X,W)=>ee=>X(W(ee));function p(X){return{keyword:X.cyan,capitalized:X.yellow,jsxIdentifier:X.yellow,punctuator:X.yellow,number:X.magenta,string:X.green,regex:X.magenta,comment:X.gray,invalid:f(f(X.white,X.bgRed),X.bold),gutter:X.gray,marker:f(X.red,X.bold),message:f(X.red,X.bold),reset:X.reset}}const w=p(s.createColors(!0)),b=p(s.createColors(!1));function E(X){return X?w:b}const C=new Set(["as","async","from","get","of","set"]),x=/\r\n|[\n\r\u2028\u2029]/,N=/^[()[\]{}]$/;let P;{const X=/^[a-z][\w-]*$/i,W=function(ee,M,I){if(ee.type==="name"){if(u.isKeyword(ee.value)||u.isStrictReservedWord(ee.value,!0)||C.has(ee.value))return"keyword";if(X.test(ee.value)&&(I[M-1]==="<"||I.slice(M-2,M)==="</"))return"jsxIdentifier";if(ee.value[0]!==ee.value[0].toLowerCase())return"capitalized"}return ee.type==="punctuator"&&N.test(ee.value)?"bracket":ee.type==="invalid"&&(ee.value==="@"||ee.value==="#")?"punctuator":ee.type};P=function*(ee){let M;for(;M=l.default.exec(ee);){const I=l.matchToToken(M);yield{type:W(I,M.index,ee),value:I.value}}}}function T(X){if(X==="")return"";const W=E(!0);let ee="";for(const{type:M,value:I}of P(X))M in W?ee+=I.split(x).map(U=>W[M](U)).join(`
|
|
23
|
-
`):ee+=I;return ee}let F=!1;const V=/\r\n|[\n\r\u2028\u2029]/;function k(X,W,ee){const M=Object.assign({column:0,line:-1},X.start),I=Object.assign({},M,X.end),{linesAbove:U=2,linesBelow:B=3}=ee||{},R=M.line,$=M.column,ae=I.line,ge=I.column;let Se=Math.max(R-(U+1),0),Ae=Math.min(W.length,ae+B);R===-1&&(Se=0),ae===-1&&(Ae=W.length);const ne=ae-R,Z={};if(ne)for(let D=0;D<=ne;D++){const J=D+R;if(!$)Z[J]=!0;else if(D===0){const ie=W[J-1].length;Z[J]=[$,ie-$+1]}else if(D===ne)Z[J]=[0,ge];else{const ie=W[J-D].length;Z[J]=[0,ie]}}else $===ge?$?Z[R]=[$,0]:Z[R]=!0:Z[R]=[$,ge-$];return{start:Se,end:Ae,markerLines:Z}}function S(X,W,ee={}){const M=ee.forceColor||o()&&ee.highlightCode,I=E(M),U=X.split(V),{start:B,end:R,markerLines:$}=k(W,U,ee),ae=W.start&&typeof W.start.column=="number",ge=String(R).length;let Ae=(M?T(X):X).split(V,R).slice(B,R).map((ne,Z)=>{const D=B+1+Z,ie=` ${` ${D}`.slice(-ge)} |`,Q=$[D],fe=!$[D+1];if(Q){let ue="";if(Array.isArray(Q)){const Pe=ne.slice(0,Math.max(Q[0]-1,0)).replace(/[^\t]/g," "),_e=Q[1]||1;ue=[`
|
|
24
|
-
`,I.gutter(ie.replace(/\d/g," "))," ",Pe,I.marker("^").repeat(_e)].join(""),fe&&ee.message&&(ue+=" "+I.message(ee.message))}return[I.marker(">"),I.gutter(ie),ne.length>0?` ${ne}`:"",ue].join("")}else return` ${I.gutter(ie)}${ne.length>0?` ${ne}`:""}`}).join(`
|
|
25
|
-
`);return ee.message&&!ae&&(Ae=`${" ".repeat(ge+1)}${ee.message}
|
|
26
|
-
${Ae}`),M?I.reset(Ae):Ae}function G(X,W,ee,M={}){if(!F){F=!0;const U="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(U,"DeprecationWarning");else{const B=new Error(U);B.name="DeprecationWarning",console.warn(new Error(U))}}return ee=Math.max(ee,0),S(X,{start:{column:ee,line:W}},M)}return ks.codeFrameColumns=S,ks.default=G,ks.highlight=T,ks}var Qt={},Fr={},vn={},Wc;function Fh(){return Wc||(Wc=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.hooks=void 0,vn.hooks=[function(s,l){if(s.key==="test"&&(l.isWhile()||l.isSwitchCase())||s.key==="declaration"&&l.isExportDeclaration()||s.key==="body"&&l.isLabeledStatement()||s.listKey==="declarations"&&l.isVariableDeclaration()&&l.node.declarations.length===1||s.key==="expression"&&l.isExpressionStatement())return l.remove(),!0},function(s,l){if(l.isSequenceExpression()&&l.node.expressions.length===1)return l.replaceWith(l.node.expressions[0]),!0},function(s,l){if(l.isBinary())return s.key==="left"?l.replaceWith(l.node.right):l.replaceWith(l.node.left),!0},function(s,l){if(l.isIfStatement()&&s.key==="consequent"||s.key==="body"&&(l.isLoop()||l.isArrowFunctionExpression()))return s.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]),vn}var Jc;function ol(){if(Jc)return Fr;Jc=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr._assertUnremoved=P,Fr._callRemovalHooks=C,Fr._markRemoved=N,Fr._remove=x,Fr._removeFromScope=E,Fr.remove=b;var s=Fh(),l=Ms(),u=Wp(),o=Mi(),f=at(),p=ll(),w=hr();function b(){var T;if(P.call(this),w.resync.call(this),C.call(this)){N.call(this);return}(T=this.opts)!=null&&T.noScope||E.call(this),this.shareCommentsWithSiblings(),x.call(this),N.call(this)}function E(){const T=f.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(T).forEach(F=>this.scope.removeBinding(F))}function C(){if(this.parentPath){for(const T of s.hooks)if(T(this,this.parentPath))return!0}}function x(){Array.isArray(this.container)?(this.container.splice(this.key,1),p.updateSiblingKeys.call(this,this.key,-1)):u._replaceWith.call(this,null)}function N(){if(this._traverseFlags|=o.SHOULD_SKIP|o.REMOVED,this.parent){var T;(T=(0,l.getCachedPaths)(this))==null||T.delete(this.node)}this.node=null}function P(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}return Fr}var Cn={},Xc;function Rh(){if(Xc)return Cn;Xc=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var s=at(),l=s;const{react:u}=s,{cloneNode:o,jsxExpressionContainer:f,variableDeclaration:p,variableDeclarator:w}=l,b={ReferencedIdentifier(C,x){if(C.isJSXIdentifier()&&u.isCompatTag(C.node.name)&&!C.parentPath.isJSXMemberExpression())return;if(C.node.name==="this"){let P=C.scope;do if(P.path.isFunction()&&!P.path.isArrowFunctionExpression())break;while(P=P.parent);P&&x.breakOnScopePaths.push(P.path)}const N=C.scope.getBinding(C.node.name);if(N){for(const P of N.constantViolations)if(P.scope!==N.path.scope){x.mutableBinding=!0,C.stop();return}N===x.scope.getBinding(C.node.name)&&(x.bindings[C.node.name]=N)}}};class E{constructor(x,N){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=N,this.path=x,this.attachAfter=!1}isCompatibleScope(x){for(const N of Object.keys(this.bindings)){const P=this.bindings[N];if(!x.bindingIdentifierEquals(N,P.identifier))return!1}return!0}getCompatibleScopes(){let x=this.path.scope;do{if(this.isCompatibleScope(x))this.scopes.push(x);else break;if(this.breakOnScopePaths.includes(x.path))break}while(x=x.parent)}getAttachmentPath(){let x=this._getAttachmentPath();if(!x)return;let N=x.scope;if(N.path===x&&(N=x.scope.parent),N.path.isProgram()||N.path.isFunction())for(const P of Object.keys(this.bindings)){if(!N.hasOwnBinding(P))continue;const T=this.bindings[P];if(T.kind==="param"||T.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(T.path).key>=x.key){this.attachAfter=!0,x=T.path;for(const V of T.constantViolations)this.getAttachmentParentForPath(V).key>x.key&&(x=V)}}return x}_getAttachmentPath(){const N=this.scopes.pop();if(N){if(N.path.isFunction())if(this.hasOwnParamBindings(N)){if(this.scope===N)return;const P=N.path.get("body").get("body");for(let T=0;T<P.length;T++)if(!P[T].node._blockHoist)return P[T]}else return this.getNextScopeAttachmentParent();else if(N.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){const x=this.scopes.pop();if(x)return this.getAttachmentParentForPath(x.path)}getAttachmentParentForPath(x){do if(!x.parentPath||Array.isArray(x.container)&&x.isStatement())return x;while(x=x.parentPath);return x}hasOwnParamBindings(x){for(const N of Object.keys(this.bindings)){if(!x.hasOwnBinding(N))continue;const P=this.bindings[N];if(P.kind==="param"&&P.constant)return!0}return!1}run(){if(this.path.traverse(b,this),this.mutableBinding)return;this.getCompatibleScopes();const x=this.getAttachmentPath();if(!x||x.getFunctionParent()===this.path.getFunctionParent())return;let N=x.scope.generateUidIdentifier("ref");const P=w(N,this.path.node),T=this.attachAfter?"insertAfter":"insertBefore",[F]=x[T]([x.isVariableDeclarator()?P:p("var",[P])]),V=this.path.parentPath;return V.isJSXElement()&&this.path.container===V.node.children&&(N=f(N)),this.path.replaceWith(o(N)),F.isVariableDeclarator()?F.get("init"):F.get("declarations.0.init")}}return Cn.default=E,Cn}var Yc;function ll(){if(Yc)return Qt;Yc=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt._containerInsert=M,Qt._containerInsertAfter=U,Qt._containerInsertBefore=I,Qt._verifyNodeList=Se,Qt.insertAfter=ae,Qt.insertBefore=ee,Qt.pushContainer=ne,Qt.unshiftContainer=Ae,Qt.updateSiblingKeys=ge;var s=Ms(),l=Mi(),u=hr(),o=ol(),f=at(),p=Rh();const{arrowFunctionExpression:w,assertExpression:b,assignmentExpression:E,blockStatement:C,callExpression:x,cloneNode:N,expressionStatement:P,isAssignmentExpression:T,isCallExpression:F,isExportNamedDeclaration:V,isExpression:k,isIdentifier:S,isSequenceExpression:G,isSuper:X,thisExpression:W}=f;function ee(Z){o._assertUnremoved.call(this);const D=Se.call(this,Z),{parentPath:J,parent:ie}=this;if(J.isExpressionStatement()||J.isLabeledStatement()||V(ie)||J.isExportDefaultDeclaration()&&this.isDeclaration())return J.insertBefore(D);if(this.isNodeType("Expression")&&!this.isJSXElement()||J.isForStatement()&&this.key==="init")return this.node&&D.push(this.node),this.replaceExpressionWithStatements(D);if(Array.isArray(this.container))return I.call(this,D);if(this.isStatementOrBlock()){const Q=this.node,fe=Q&&(!this.isExpressionStatement()||Q.expression!=null),[ue]=this.replaceWith(C(fe?[Q]:[]));return ue.unshiftContainer("body",D)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function M(Z,D){ge.call(this,Z,D.length);const J=[];this.container.splice(Z,0,...D);for(let fe=0;fe<D.length;fe++){var ie;const ue=Z+fe,Pe=this.getSibling(ue);J.push(Pe),(ie=this.context)!=null&&ie.queue&&u.pushContext.call(Pe,this.context)}const Q=u._getQueueContexts.call(this);for(const fe of J){u.setScope.call(fe),fe.debug("Inserted.");for(const ue of Q)ue.maybeQueue(fe,!0)}return J}function I(Z){return M.call(this,this.key,Z)}function U(Z){return M.call(this,this.key+1,Z)}const B=Z=>Z[Z.length-1];function R(Z){return G(Z.parent)&&(B(Z.parent.expressions)!==Z.node||R(Z.parentPath))}function $(Z,D){if(!T(Z)||!S(Z.left))return!1;const J=D.getBlockParent();return J.hasOwnBinding(Z.left.name)&&J.getOwnBinding(Z.left.name).constantViolations.length<=1}function ae(Z){if(o._assertUnremoved.call(this),this.isSequenceExpression())return B(this.get("expressions")).insertAfter(Z);const D=Se.call(this,Z),{parentPath:J,parent:ie}=this;if(J.isExpressionStatement()||J.isLabeledStatement()||V(ie)||J.isExportDefaultDeclaration()&&this.isDeclaration())return J.insertAfter(D.map(Q=>k(Q)?P(Q):Q));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!J.isJSXElement()||J.isForStatement()&&this.key==="init"){const Q=this;if(Q.node){const fe=Q.node;let{scope:ue}=this;if(ue.path.isPattern())return b(fe),Q.replaceWith(x(w([],fe),[])),Q.get("callee.body").insertAfter(D),[Q];if(R(Q))D.unshift(fe);else if(F(fe)&&X(fe.callee))D.unshift(fe),D.push(W());else if($(fe,ue))D.unshift(fe),D.push(N(fe.left));else if(ue.isPure(fe,!0))D.push(fe);else{J.isMethod({computed:!0,key:fe})&&(ue=ue.parent);const Pe=ue.generateDeclaredUidIdentifier();D.unshift(P(E("=",N(Pe),fe))),D.push(P(N(Pe)))}}return this.replaceExpressionWithStatements(D)}else{if(Array.isArray(this.container))return U.call(this,D);if(this.isStatementOrBlock()){const Q=this.node,fe=Q&&(!this.isExpressionStatement()||Q.expression!=null),[ue]=this.replaceWith(C(fe?[Q]:[]));return ue.pushContainer("body",D)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function ge(Z,D){if(!this.parent)return;const J=(0,s.getCachedPaths)(this);if(J)for(const[,ie]of J)typeof ie.key=="number"&&ie.container===this.container&&ie.key>=Z&&(ie.key+=D)}function Se(Z){if(!Z)return[];Array.isArray(Z)||(Z=[Z]);for(let D=0;D<Z.length;D++){const J=Z[D];let ie;if(J?typeof J!="object"?ie="contains a non-object node":J.type?J instanceof l.default&&(ie="has a NodePath when it expected a raw object"):ie="without a type":ie="has falsy node",ie){const Q=Array.isArray(J)?"array":typeof J;throw new Error(`Node list ${ie} with the index of ${D} and type of ${Q}`)}}return Z}function Ae(Z,D){o._assertUnremoved.call(this);const J=Se.call(this,D),ie=this.node[Z],Q=l.default.get({parentPath:this,parent:this.node,container:ie,listKey:Z,key:0}).setContext(this.context);return I.call(Q,J)}function ne(Z,D){o._assertUnremoved.call(this);const J=Se.call(this,D),ie=this.node[Z];return l.default.get({parentPath:this,parent:this.node,container:ie,listKey:Z,key:ie.length}).setContext(this.context).replaceWithMultiple(J)}return Qt.hoist=function(D=this.scope){return new p.default(this,D).run()},Qt}var Hc;function Wp(){if(Hc)return Br;Hc=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br._replaceWith=ue,Br.replaceExpressionWithStatements=Pe,Br.replaceInline=Ke,Br.replaceWith=fe,Br.replaceWithMultiple=ie,Br.replaceWithSourceString=Q;var s=Vp(),l=Dn(),u=Mi(),o=Ms(),f=ll(),p=rl(),w=at(),b=hr();const{FUNCTION_TYPES:E,arrowFunctionExpression:C,assignmentExpression:x,awaitExpression:N,blockStatement:P,buildUndefinedNode:T,callExpression:F,cloneNode:V,conditionalExpression:k,expressionStatement:S,getBindingIdentifiers:G,identifier:X,inheritLeadingComments:W,inheritTrailingComments:ee,inheritsComments:M,isBlockStatement:I,isEmptyStatement:U,isExpression:B,isExpressionStatement:R,isIfStatement:$,isProgram:ae,isStatement:ge,isVariableDeclaration:Se,removeComments:Ae,returnStatement:ne,sequenceExpression:Z,validate:D,yieldExpression:J}=w;function ie(ve){var Ce;b.resync.call(this);const me=f._verifyNodeList.call(this,ve);W(me[0],this.node),ee(me[me.length-1],this.node),(Ce=(0,o.getCachedPaths)(this))==null||Ce.delete(this.node),this.node=this.container[this.key]=null;const le=this.insertAfter(ve);return this.node?this.requeue():this.remove(),le}function Q(ve){b.resync.call(this);let Ce;try{ve=`(${ve})`,Ce=(0,p.parse)(ve)}catch(le){const de=le.loc;throw de&&(le.message+=` - make sure this is an expression.
|
|
27
|
-
`+(0,s.codeFrameColumns)(ve,{start:{line:de.line,column:de.column+1}}),le.code="BABEL_REPLACE_SOURCE_ERROR"),le}const me=Ce.program.body[0].expression;return l.default.removeProperties(me),this.replaceWith(me)}function fe(ve){if(b.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let Ce=ve instanceof u.default?ve.node:ve;if(!Ce)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===Ce)return[this];if(this.isProgram()&&!ae(Ce))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(Ce))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof Ce=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let me="";if(this.isNodeType("Statement")&&B(Ce)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(Ce)&&!this.parentPath.isExportDefaultDeclaration()&&(Ce=S(Ce),me="expression"),this.isNodeType("Expression")&&ge(Ce)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(Ce))return this.replaceExpressionWithStatements([Ce]);const le=this.node;return le&&(M(Ce,le),Ae(le)),ue.call(this,Ce),this.type=Ce.type,b.setScope.call(this),this.requeue(),[me?this.get(me):this]}function ue(ve){var Ce;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?D(this.parent,this.key,[ve]):D(this.parent,this.key,ve),this.debug(`Replace with ${ve?.type}`),(Ce=(0,o.getCachedPaths)(this))==null||Ce.set(ve,this).delete(this.node),this.node=ve,this.container[this.key]=ve}function Pe(ve){b.resync.call(this);const Ce=[],me=_e(ve,Ce);if(me){for(const ke of Ce)this.scope.push({id:ke});return this.replaceWith(me)[0].get("expressions")}const le=this.getFunctionParent(),de=le?.node.async,qe=le?.node.generator,$e=C([],P(ve));this.replaceWith(F($e,[]));const Ze=this.get("callee");Ze.get("body").scope.hoistVariables(ke=>this.scope.push({id:ke}));const it=Ze.getCompletionRecords();for(const ke of it){if(!ke.isExpressionStatement())continue;const Le=ke.findParent(Ve=>Ve.isLoop());if(Le){let Ve=Le.getData("expressionReplacementReturnUid");Ve?Ve=X(Ve.name):(Ve=Ze.scope.generateDeclaredUidIdentifier("ret"),Ze.get("body").pushContainer("body",ne(V(Ve))),Le.setData("expressionReplacementReturnUid",Ve)),ke.get("expression").replaceWith(x("=",V(Ve),ke.node.expression))}else ke.replaceWith(ne(ke.node.expression))}Ze.arrowFunctionToExpression();const He=Ze,we=de&&l.default.hasType(this.get("callee.body").node,"AwaitExpression",E),Oe=qe&&l.default.hasType(this.get("callee.body").node,"YieldExpression",E);return we&&(He.set("async",!0),Oe||this.replaceWith(N(this.node))),Oe&&(He.set("generator",!0),this.replaceWith(J(this.node,!0))),He.get("body.body")}function _e(ve,Ce){const me=[];let le=!0;for(const de of ve)if(U(de)||(le=!1),B(de))me.push(de);else if(R(de))me.push(de.expression);else if(Se(de)){if(de.kind!=="var")return;for(const qe of de.declarations){const $e=G(qe);for(const Ze of Object.keys($e))Ce.push(V($e[Ze]));qe.init&&me.push(x("=",qe.id,qe.init))}le=!0}else if($(de)){const qe=de.consequent?_e([de.consequent],Ce):T(),$e=de.alternate?_e([de.alternate],Ce):T();if(!qe||!$e)return;me.push(k(de.test,qe,$e))}else if(I(de)){const qe=_e(de.body,Ce);if(!qe)return;me.push(qe)}else if(U(de))ve.indexOf(de)===0&&(le=!0);else return;return le&&me.push(T()),me.length===1?me[0]:Z(me)}function Ke(ve){if(b.resync.call(this),Array.isArray(ve))if(Array.isArray(this.container)){ve=f._verifyNodeList.call(this,ve);const Ce=f._containerInsertAfter.call(this,ve);return this.remove(),Ce}else return this.replaceWithMultiple(ve);else return this.replaceWith(ve)}return Br}var In={},zc;function jh(){if(zc)return In;zc=1,Object.defineProperty(In,"__esModule",{value:!0}),In.evaluate=P,In.evaluateTruthy=w;const s=["Number","String","Math"],l=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],u=["random"];function o(T){return s.includes(T)}function f(T){return l.includes(T)}function p(T){return u.includes(T)}function w(){const T=this.evaluate();if(T.confident)return!!T.value}function b(T,F){F.confident&&(F.deoptPath=T,F.confident=!1)}const E=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function C(T,F){const{node:V}=T,{seen:k}=F;if(k.has(V)){const S=k.get(V);if(S.resolved)return S.value;b(T,F);return}else{const S={resolved:!1};k.set(V,S);const G=x(T,F);return F.confident&&(S.resolved=!0,S.value=G),G}}function x(T,F){if(F.confident){if(T.isSequenceExpression()){const k=T.get("expressions");return C(k[k.length-1],F)}if(T.isStringLiteral()||T.isNumericLiteral()||T.isBooleanLiteral())return T.node.value;if(T.isNullLiteral())return null;if(T.isTemplateLiteral())return N(T,T.node.quasis,F);if(T.isTaggedTemplateExpression()&&T.get("tag").isMemberExpression()){const k=T.get("tag.object"),{node:{name:S}}=k,G=T.get("tag.property");if(k.isIdentifier()&&S==="String"&&!T.scope.getBinding(S)&&G.isIdentifier()&&G.node.name==="raw")return N(T,T.node.quasi.quasis,F,!0)}if(T.isConditionalExpression()){const k=C(T.get("test"),F);return F.confident?C(k?T.get("consequent"):T.get("alternate"),F):void 0}if(T.isExpressionWrapper())return C(T.get("expression"),F);if(T.isMemberExpression()&&!T.parentPath.isCallExpression({callee:T.node})){const k=T.get("property"),S=T.get("object");if(S.isLiteral()){const G=S.node.value,X=typeof G;let W=null;if(T.node.computed){if(W=C(k,F),!F.confident)return}else k.isIdentifier()&&(W=k.node.name);if((X==="number"||X==="string")&&W!=null&&(typeof W=="number"||typeof W=="string"))return G[W]}}if(T.isReferencedIdentifier()){const k=T.scope.getBinding(T.node.name);if(k){if(k.constantViolations.length>0||T.node.start<k.path.node.end){b(k.path,F);return}const W=k.path.scope;if(k.kind==="var"&&W!==k.scope){let ee=!W.path.parentPath.isBlockStatement();for(let M=W.parent;M;M=M.parent){var V;if(M===T.scope){if(ee){b(k.path,F);return}break}(V=M.path.parentPath)!=null&&V.isBlockStatement()&&(ee=!0)}}if(k.hasValue)return k.value}const S=T.node.name;if(E.has(S)){if(!k)return E.get(S);b(k.path,F);return}const G=T.resolve();if(G===T){b(T,F);return}const X=C(G,F);if(typeof X=="object"&&X!==null&&k.references>1){b(G,F);return}return X}if(T.isUnaryExpression({prefix:!0})){if(T.node.operator==="void")return;const k=T.get("argument");if(T.node.operator==="typeof"&&(k.isFunction()||k.isClass()))return"function";const S=C(k,F);if(!F.confident)return;switch(T.node.operator){case"!":return!S;case"+":return+S;case"-":return-S;case"~":return~S;case"typeof":return typeof S}}if(T.isArrayExpression()){const k=[],S=T.get("elements");for(const G of S){const X=G.evaluate();if(X.confident)k.push(X.value);else{b(X.deopt,F);return}}return k}if(T.isObjectExpression()){const k={},S=T.get("properties");for(const G of S){if(G.isObjectMethod()||G.isSpreadElement()){b(G,F);return}const X=G.get("key");let W;if(G.node.computed){if(W=X.evaluate(),!W.confident){b(W.deopt,F);return}W=W.value}else X.isIdentifier()?W=X.node.name:W=X.node.value;let M=G.get("value").evaluate();if(!M.confident){b(M.deopt,F);return}M=M.value,k[W]=M}return k}if(T.isLogicalExpression()){const k=F.confident,S=C(T.get("left"),F),G=F.confident;F.confident=k;const X=C(T.get("right"),F),W=F.confident;switch(T.node.operator){case"||":return F.confident=G&&(!!S||W),F.confident?S||X:void 0;case"&&":return F.confident=G&&(!S||W),F.confident?S&&X:void 0;case"??":return F.confident=G&&(S!=null||W),F.confident?S??X:void 0}}if(T.isBinaryExpression()){const k=C(T.get("left"),F);if(!F.confident)return;const S=C(T.get("right"),F);if(!F.confident)return;switch(T.node.operator){case"-":return k-S;case"+":return k+S;case"/":return k/S;case"*":return k*S;case"%":return k%S;case"**":return Math.pow(k,S);case"<":return k<S;case">":return k>S;case"<=":return k<=S;case">=":return k>=S;case"==":return k==S;case"!=":return k!=S;case"===":return k===S;case"!==":return k!==S;case"|":return k|S;case"&":return k&S;case"^":return k^S;case"<<":return k<<S;case">>":return k>>S;case">>>":return k>>>S}}if(T.isCallExpression()){const k=T.get("callee");let S,G;if(k.isIdentifier()&&!T.scope.getBinding(k.node.name)&&(o(k.node.name)||f(k.node.name))&&(G=fl[k.node.name]),k.isMemberExpression()){const X=k.get("object"),W=k.get("property");if(X.isIdentifier()&&W.isIdentifier()&&o(X.node.name)&&!p(W.node.name)){S=fl[X.node.name];const ee=W.node.name;hasOwnProperty.call(S,ee)&&(G=S[ee])}if(X.isLiteral()&&W.isIdentifier()){const ee=typeof X.node.value;(ee==="string"||ee==="number")&&(S=X.node.value,G=S[W.node.name])}}if(G){const X=T.get("arguments").map(W=>C(W,F));return F.confident?G.apply(S,X):void 0}}b(T,F)}}function N(T,F,V,k=!1){let S="",G=0;const X=T.isTemplateLiteral()?T.get("expressions"):T.get("quasi.expressions");for(const W of F){if(!V.confident)break;S+=k?W.value.raw:W.value.cooked;const ee=X[G++];ee&&(S+=String(C(ee,V)))}if(V.confident)return S}function P(){const T={confident:!0,deoptPath:null,seen:new Map};let F=C(this,T);return T.confident||(F=void 0),{confident:T.confident,deopt:T.deoptPath,value:F}}return In}var Pr={},jt={},Zt={},$c;function qh(){if($c)return Zt;$c=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.statements=Zt.statement=Zt.smart=Zt.program=Zt.expression=void 0;var s=at();const{assertExpressionStatement:l}=s;function u(f){return{code:p=>`/* @babel/template */;
|
|
28
|
-
${p}`,validate:()=>{},unwrap:p=>f(p.program.body.slice(1))}}Zt.smart=u(f=>f.length>1?f:f[0]),Zt.statements=u(f=>f),Zt.statement=u(f=>{if(f.length===0)throw new Error("Found nothing to return.");if(f.length>1)throw new Error("Found multiple statements but wanted one");return f[0]});const o=Zt.expression={code:f=>`(
|
|
29
|
-
${f}
|
|
30
|
-
)`,validate:f=>{if(f.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(o.unwrap(f).start===0)throw new Error("Parse result included parens.")},unwrap:({program:f})=>{const[p]=f.body;return l(p),p.expression}};return Zt.program={code:f=>f,validate:()=>{},unwrap:f=>f.program},Zt}var Ya={},Ds={},Gc;function ul(){if(Gc)return Ds;Gc=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.merge=u,Ds.normalizeReplacements=f,Ds.validate=o;const s=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function l(p,w){if(p==null)return{};var b={};for(var E in p)if({}.hasOwnProperty.call(p,E)){if(w.indexOf(E)!==-1)continue;b[E]=p[E]}return b}function u(p,w){const{placeholderWhitelist:b=p.placeholderWhitelist,placeholderPattern:E=p.placeholderPattern,preserveComments:C=p.preserveComments,syntacticPlaceholders:x=p.syntacticPlaceholders}=w;return{parser:Object.assign({},p.parser,w.parser),placeholderWhitelist:b,placeholderPattern:E,preserveComments:C,syntacticPlaceholders:x}}function o(p){if(p!=null&&typeof p!="object")throw new Error("Unknown template options.");const w=p||{},{placeholderWhitelist:b,placeholderPattern:E,preserveComments:C,syntacticPlaceholders:x}=w,N=l(w,s);if(b!=null&&!(b instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(E!=null&&!(E instanceof RegExp)&&E!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(C!=null&&typeof C!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(x!=null&&typeof x!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(x===!0&&(b!=null||E!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:N,placeholderWhitelist:b||void 0,placeholderPattern:E??void 0,preserveComments:C??void 0,syntacticPlaceholders:x??void 0}}function f(p){if(Array.isArray(p))return p.reduce((w,b,E)=>(w["$"+E]=b,w),{});if(typeof p=="object"||p==null)return p||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}return Ds}var Ha={},za={},Qc;function Jp(){if(Qc)return za;Qc=1,Object.defineProperty(za,"__esModule",{value:!0}),za.default=V;var s=at(),l=rl(),u=Vp();const{isCallExpression:o,isExpressionStatement:f,isFunction:p,isIdentifier:w,isJSXIdentifier:b,isNewExpression:E,isPlaceholder:C,isStatement:x,isStringLiteral:N,removePropertiesDeep:P,traverse:T}=s,F=/^[_$A-Z0-9]+$/;function V(X,W,ee){const{placeholderWhitelist:M,placeholderPattern:I,preserveComments:U,syntacticPlaceholders:B}=ee,R=G(W,ee.parser,B);P(R,{preserveComments:U}),X.validate(R);const $={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:M,placeholderPattern:I,syntacticPlaceholders:B};return T(R,k,$),Object.assign({ast:R},$.syntactic.placeholders.length?$.syntactic:$.legacy)}function k(X,W,ee){var M;let I,U=ee.syntactic.placeholders.length>0;if(C(X)){if(ee.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");I=X.name.name,U=!0}else{if(U||ee.syntacticPlaceholders)return;if(w(X)||b(X))I=X.name;else if(N(X))I=X.value;else return}if(U&&(ee.placeholderPattern!=null||ee.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!U&&(ee.placeholderPattern===!1||!(ee.placeholderPattern||F).test(I))&&!((M=ee.placeholderWhitelist)!=null&&M.has(I)))return;W=W.slice();const{node:B,key:R}=W[W.length-1];let $;N(X)||C(X,{expectedNode:"StringLiteral"})?$="string":E(B)&&R==="arguments"||o(B)&&R==="arguments"||p(B)&&R==="params"?$="param":f(B)&&!C(X)?($="statement",W=W.slice(0,-1)):x(X)&&C(X)?$="statement":$="other";const{placeholders:ae,placeholderNames:ge}=U?ee.syntactic:ee.legacy;ae.push({name:I,type:$,resolve:Se=>S(Se,W),isDuplicate:ge.has(I)}),ge.add(I)}function S(X,W){let ee=X;for(let U=0;U<W.length-1;U++){const{key:B,index:R}=W[U];R===void 0?ee=ee[B]:ee=ee[B][R]}const{key:M,index:I}=W[W.length-1];return{parent:ee,key:M,index:I}}function G(X,W,ee){const M=(W.plugins||[]).slice();ee!==!1&&M.push("placeholders"),W=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},W,{plugins:M});try{return(0,l.parse)(X,W)}catch(I){const U=I.loc;throw U&&(I.message+=`
|
|
31
|
-
`+(0,u.codeFrameColumns)(X,{start:U}),I.code="BABEL_TEMPLATE_PARSE_ERROR"),I}}return za}var $a={},Zc;function Xp(){if(Zc)return $a;Zc=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.default=x;var s=at();const{blockStatement:l,cloneNode:u,emptyStatement:o,expressionStatement:f,identifier:p,isStatement:w,isStringLiteral:b,stringLiteral:E,validate:C}=s;function x(P,T){const F=u(P.ast);return T&&(P.placeholders.forEach(V=>{if(!hasOwnProperty.call(T,V.name)){const k=V.name;throw new Error(`Error: No substitution given for "${k}". If this is not meant to be a
|
|
32
|
-
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
33
|
-
- { placeholderPattern: false, placeholderWhitelist: new Set(['${k}'])}
|
|
34
|
-
- { placeholderPattern: /^${k}$/ }`)}}),Object.keys(T).forEach(V=>{if(!P.placeholderNames.has(V))throw new Error(`Unknown substitution "${V}" given`)})),P.placeholders.slice().reverse().forEach(V=>{try{var k;N(V,F,(k=T&&T[V.name])!=null?k:null)}catch(S){throw S.message=`@babel/template placeholder "${V.name}": ${S.message}`,S}}),F}function N(P,T,F){P.isDuplicate&&(Array.isArray(F)?F=F.map(X=>u(X)):typeof F=="object"&&(F=u(F)));const{parent:V,key:k,index:S}=P.resolve(T);if(P.type==="string"){if(typeof F=="string"&&(F=E(F)),!F||!b(F))throw new Error("Expected string substitution")}else if(P.type==="statement")S===void 0?F?Array.isArray(F)?F=l(F):typeof F=="string"?F=f(p(F)):w(F)||(F=f(F)):F=o():F&&!Array.isArray(F)&&(typeof F=="string"&&(F=p(F)),w(F)||(F=f(F)));else if(P.type==="param"){if(typeof F=="string"&&(F=p(F)),S===void 0)throw new Error("Assertion failure.")}else if(typeof F=="string"&&(F=p(F)),Array.isArray(F))throw new Error("Cannot replace single expression with an array.");function G(X,W,ee){const M=X[W];X[W]=ee,(M.type==="Identifier"||M.type==="Placeholder")&&(M.typeAnnotation&&(ee.typeAnnotation=M.typeAnnotation),M.optional&&(ee.optional=M.optional),M.decorators&&(ee.decorators=M.decorators))}if(S===void 0)C(V,k,F),G(V,k,F);else{const X=V[k].slice();P.type==="statement"||P.type==="param"?F==null?X.splice(S,1):Array.isArray(F)?X.splice(S,1,...F):G(X,S,F):G(X,S,F),C(V,k,X),V[k]=X}}return $a}var ep;function Uh(){if(ep)return Ha;ep=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=o;var s=ul(),l=Jp(),u=Xp();function o(f,p,w){p=f.code(p);let b;return E=>{const C=(0,s.normalizeReplacements)(E);return b||(b=(0,l.default)(f,p,w)),f.unwrap((0,u.default)(b,C))}}return Ha}var Ga={},tp;function Kh(){if(tp)return Ga;tp=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.default=o;var s=ul(),l=Jp(),u=Xp();function o(w,b,E){const{metadata:C,names:x}=f(w,b,E);return N=>{const P={};return N.forEach((T,F)=>{P[x[F]]=T}),T=>{const F=(0,s.normalizeReplacements)(T);return F&&Object.keys(F).forEach(V=>{if(hasOwnProperty.call(P,V))throw new Error("Unexpected replacement overlap.")}),w.unwrap((0,u.default)(C,F?Object.assign(F,P):P))}}}function f(w,b,E){let C="BABEL_TPL$";const x=b.join("");do C="$$"+C;while(x.includes(C));const{names:N,code:P}=p(b,C);return{metadata:(0,l.default)(w,w.code(P),{parser:E.parser,placeholderWhitelist:new Set(N.concat(E.placeholderWhitelist?Array.from(E.placeholderWhitelist):[])),placeholderPattern:E.placeholderPattern,preserveComments:E.preserveComments,syntacticPlaceholders:E.syntacticPlaceholders}),names:N}}function p(w,b){const E=[];let C=w[0];for(let x=1;x<w.length;x++){const N=`${b}${x-1}`;E.push(N),C+=N+w[x]}return{names:E,code:C}}return Ga}var rp;function Vh(){if(rp)return Ya;rp=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.default=f;var s=ul(),l=Uh(),u=Kh();const o=(0,s.validate)({placeholderPattern:!1});function f(w,b){const E=new WeakMap,C=new WeakMap,x=b||(0,s.validate)(null);return Object.assign((N,...P)=>{if(typeof N=="string"){if(P.length>1)throw new Error("Unexpected extra params.");return p((0,l.default)(w,N,(0,s.merge)(x,(0,s.validate)(P[0]))))}else if(Array.isArray(N)){let T=E.get(N);return T||(T=(0,u.default)(w,N,x),E.set(N,T)),p(T(P))}else if(typeof N=="object"&&N){if(P.length>0)throw new Error("Unexpected extra params.");return f(w,(0,s.merge)(x,(0,s.validate)(N)))}throw new Error(`Unexpected template param ${typeof N}`)},{ast:(N,...P)=>{if(typeof N=="string"){if(P.length>1)throw new Error("Unexpected extra params.");return(0,l.default)(w,N,(0,s.merge)((0,s.merge)(x,(0,s.validate)(P[0])),o))()}else if(Array.isArray(N)){let T=C.get(N);return T||(T=(0,u.default)(w,N,(0,s.merge)(x,o)),C.set(N,T)),T(P)()}throw new Error(`Unexpected template param ${typeof N}`)}})}function p(w){let b="";try{throw new Error}catch(E){E.stack&&(b=E.stack.split(`
|
|
35
|
-
`).slice(3).join(`
|
|
36
|
-
`))}return E=>{try{return w(E)}catch(C){throw C.stack+=`
|
|
37
|
-
=============
|
|
38
|
-
${b}`,C}}}return Ya}var ip;function Wh(){if(ip)return jt;ip=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.statements=jt.statement=jt.smart=jt.program=jt.expression=jt.default=void 0;var s=qh(),l=Vh();const u=jt.smart=(0,l.default)(s.smart),o=jt.statement=(0,l.default)(s.statement),f=jt.statements=(0,l.default)(s.statements),p=jt.expression=(0,l.default)(s.expression),w=jt.program=(0,l.default)(s.program);return jt.default=Object.assign(u.bind(void 0),{smart:u,statement:o,statements:f,expression:p,program:w,ast:u.ast}),jt}var sp;function Jh(){if(sp)return Pr;sp=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.arrowFunctionToExpression=Ce,Pr.ensureBlock=_e,Pr.ensureFunctionName=et,Pr.splitExportDeclaration=Ve,Pr.toComputedKey=Pe,Pr.unwrapFunctionEnvironment=Ke;var s=at(),l=Wh(),u=no(),o=hr();const{arrowFunctionExpression:f,assignmentExpression:p,binaryExpression:w,blockStatement:b,callExpression:E,conditionalExpression:C,expressionStatement:x,identifier:N,isIdentifier:P,jsxIdentifier:T,logicalExpression:F,LOGICAL_OPERATORS:V,memberExpression:k,metaProperty:S,numericLiteral:G,objectExpression:X,restElement:W,returnStatement:ee,sequenceExpression:M,spreadElement:I,stringLiteral:U,super:B,thisExpression:R,toExpression:$,unaryExpression:ae,toBindingIdentifierName:ge,isFunction:Se,isAssignmentPattern:Ae,isRestElement:ne,getFunctionName:Z,cloneNode:D,variableDeclaration:J,variableDeclarator:ie,exportNamedDeclaration:Q,exportSpecifier:fe,inherits:ue}=s;function Pe(){let Te;if(this.isMemberExpression())Te=this.node.property;else if(this.isProperty()||this.isMethod())Te=this.node.key;else throw new ReferenceError("todo");return this.node.computed||P(Te)&&(Te=U(Te.name)),Te}function _e(){const Te=this.get("body"),Ue=Te.node;if(Array.isArray(Te))throw new Error("Can't convert array path to a block statement");if(!Ue)throw new Error("Can't convert node without a body");if(Te.isBlockStatement())return Ue;const Be=[];let pe="body",j,te;Te.isStatement()?(te="body",j=0,Be.push(Te.node)):(pe+=".body.0",this.isFunction()?(j="argument",Be.push(ee(Te.node))):(j="expression",Be.push(x(Te.node)))),this.node.body=b(Be);const ye=this.get(pe);return o.setup.call(Te,ye,te?ye.node[te]:ye.node,te,j),this.node}Pr.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function Ke(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");le(this)}function ve(Te,Ue){Te.node.type=Ue}function Ce({allowInsertArrow:Te=!0,allowInsertArrowWithRest:Ue=Te,noNewArrows:Be=!(pe=>(pe=arguments[0])==null?void 0:pe.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let pe=this;if(!Be){var j;pe=(j=pe.ensureFunctionName(!1))!=null?j:pe}const{thisBinding:te,fnPath:ye}=le(pe,Be,Te,Ue);if(ye.ensureBlock(),ve(ye,"FunctionExpression"),!Be){const Ie=te?null:ye.scope.generateUidIdentifier("arrowCheckId");return Ie&&ye.parentPath.scope.push({id:Ie,init:X([])}),ye.get("body").unshiftContainer("body",x(E(this.hub.addHelper("newArrowCheck"),[R(),N(Ie?Ie.name:te)]))),ye.replaceWith(E(k(ye.node,N("bind")),[Ie?N(Ie.name):R()])),ye.get("callee.object")}return ye}const me=(0,u.environmentVisitor)({CallExpression(Te,{allSuperCalls:Ue}){Te.get("callee").isSuper()&&Ue.push(Te)}});function le(Te,Ue=!0,Be=!0,pe=!0){let j,te=Te.findParent(q=>q.isArrowFunctionExpression()?(j??(j=q),!1):q.isFunction()||q.isProgram()||q.isClassProperty({static:!1})||q.isClassPrivateProperty({static:!1}));const ye=te.isClassMethod({kind:"constructor"});if(te.isClassProperty()||te.isClassPrivateProperty())if(j)te=j;else if(Be)Te.replaceWith(E(f([],$(Te.node)),[])),te=Te.get("callee"),Te=te.get("body");else throw Te.buildCodeFrameError("Unable to transform arrow inside class property");const{thisPaths:Ie,argumentsPaths:Re,newTargetPaths:Ee,superProps:st,superCalls:ot}=Le(Te);if(ye&&ot.length>0){if(!Be)throw ot[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!pe)throw ot[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const q=[];te.traverse(me,{allSuperCalls:q});const _=He(te);q.forEach(ce=>{const Ne=N(_);Ne.loc=ce.node.callee.loc,ce.get("callee").replaceWith(Ne)})}if(Re.length>0){const q=Oe(te,"arguments",()=>{const _=()=>N("arguments");return te.scope.path.isProgram()?C(w("===",ae("typeof",_()),U("undefined")),te.scope.buildUndefinedNode(),_()):_()});Re.forEach(_=>{const ce=N(q);ce.loc=_.node.loc,_.replaceWith(ce)})}if(Ee.length>0){const q=Oe(te,"newtarget",()=>S(N("new"),N("target")));Ee.forEach(_=>{const ce=N(q);ce.loc=_.node.loc,_.replaceWith(ce)})}if(st.length>0){if(!Be)throw st[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");st.reduce((_,ce)=>_.concat(qe(ce)),[]).forEach(_=>{const ce=_.node.computed?"":_.get("property").node.name,Ne=_.parentPath,Me=Ne.isAssignmentExpression({left:_.node}),Ge=Ne.isCallExpression({callee:_.node}),ut=Ne.isTaggedTemplateExpression({tag:_.node}),rt=we(te,Me,ce),dt=[];if(_.node.computed&&dt.push(_.get("property").node),Me){const gt=Ne.node.right;dt.push(gt)}const yt=E(N(rt),dt);Ge?(Ne.unshiftContainer("arguments",R()),_.replaceWith(k(yt,N("call"))),Ie.push(Ne.get("arguments.0"))):Me?Ne.replaceWith(yt):ut?(_.replaceWith(E(k(yt,N("bind"),!1),[R()])),Ie.push(_.get("arguments.0"))):_.replaceWith(yt)})}let he;return(Ie.length>0||!Ue)&&(he=it(te,ye),(Ue||ye&&$e(te))&&(Ie.forEach(q=>{const _=q.isJSX()?T(he):N(he);_.loc=q.node.loc,q.replaceWith(_)}),Ue||(he=null))),{thisBinding:he,fnPath:Te}}function de(Te){return V.includes(Te)}function qe(Te){if(Te.parentPath.isAssignmentExpression()&&Te.parentPath.node.operator!=="="){const Be=Te.parentPath,pe=Be.node.operator.slice(0,-1),j=Be.node.right,te=de(pe);if(Te.node.computed){const ye=Te.scope.generateDeclaredUidIdentifier("tmp"),{object:Ie,property:Re}=Te.node;Be.get("left").replaceWith(k(Ie,p("=",ye,Re),!0)),Be.get("right").replaceWith(Ue(te?"=":pe,k(Ie,N(ye.name),!0),j))}else{const ye=Te.node.object,Ie=Te.node.property;Be.get("left").replaceWith(k(ye,Ie)),Be.get("right").replaceWith(Ue(te?"=":pe,k(ye,N(Ie.name)),j))}return te?Be.replaceWith(F(pe,Be.node.left,Be.node.right)):Be.node.operator="=",[Be.get("left"),Be.get("right").get("left")]}else if(Te.parentPath.isUpdateExpression()){const Be=Te.parentPath,pe=Te.scope.generateDeclaredUidIdentifier("tmp"),j=Te.node.computed?Te.scope.generateDeclaredUidIdentifier("prop"):null,te=[p("=",pe,k(Te.node.object,j?p("=",j,Te.node.property):Te.node.property,Te.node.computed)),p("=",k(Te.node.object,j?N(j.name):Te.node.property,Te.node.computed),w(Te.parentPath.node.operator[0],N(pe.name),G(1)))];Te.parentPath.node.prefix||te.push(N(pe.name)),Be.replaceWith(M(te));const ye=Be.get("expressions.0.right"),Ie=Be.get("expressions.1.left");return[ye,Ie]}return[Te];function Ue(Be,pe,j){return Be==="="?p("=",pe,j):w(Be,pe,j)}}function $e(Te){return Te.isClassMethod()&&!!Te.parentPath.parentPath.node.superClass}const Ze=(0,u.environmentVisitor)({CallExpression(Te,{supers:Ue,thisBinding:Be}){Te.get("callee").isSuper()&&(Ue.has(Te.node)||(Ue.add(Te.node),Te.replaceWithMultiple([Te.node,p("=",N(Be),N("this"))])))}});function it(Te,Ue){return Oe(Te,"this",Be=>{if(!Ue||!$e(Te))return R();Te.traverse(Ze,{supers:new WeakSet,thisBinding:Be})})}function He(Te){return Oe(Te,"supercall",()=>{const Ue=Te.scope.generateUidIdentifier("args");return f([W(Ue)],E(B(),[I(N(Ue.name))]))})}function we(Te,Ue,Be){return Oe(Te,`superprop_${Ue?"set":"get"}:${Be||""}`,()=>{const j=[];let te;if(Be)te=k(B(),N(Be));else{const ye=Te.scope.generateUidIdentifier("prop");j.unshift(ye),te=k(B(),N(ye.name),!0)}if(Ue){const ye=Te.scope.generateUidIdentifier("value");j.push(ye),te=p("=",te,N(ye.name))}return f(j,te)})}function Oe(Te,Ue,Be){const pe="binding:"+Ue;let j=Te.getData(pe);if(!j){const te=Te.scope.generateUidIdentifier(Ue);j=te.name,Te.setData(pe,j),Te.scope.push({id:te,init:Be(j)})}return j}const ke=(0,u.environmentVisitor)({ThisExpression(Te,{thisPaths:Ue}){Ue.push(Te)},JSXIdentifier(Te,{thisPaths:Ue}){Te.node.name==="this"&&(!Te.parentPath.isJSXMemberExpression({object:Te.node})&&!Te.parentPath.isJSXOpeningElement({name:Te.node})||Ue.push(Te))},CallExpression(Te,{superCalls:Ue}){Te.get("callee").isSuper()&&Ue.push(Te)},MemberExpression(Te,{superProps:Ue}){Te.get("object").isSuper()&&Ue.push(Te)},Identifier(Te,{argumentsPaths:Ue}){if(!Te.isReferencedIdentifier({name:"arguments"}))return;let Be=Te.scope;do{if(Be.hasOwnBinding("arguments")){Be.rename("arguments");return}if(Be.path.isFunction()&&!Be.path.isArrowFunctionExpression())break}while(Be=Be.parent);Ue.push(Te)},MetaProperty(Te,{newTargetPaths:Ue}){Te.get("meta").isIdentifier({name:"new"})&&Te.get("property").isIdentifier({name:"target"})&&Ue.push(Te)}});function Le(Te){const Ue=[],Be=[],pe=[],j=[],te=[];return Te.traverse(ke,{thisPaths:Ue,argumentsPaths:Be,newTargetPaths:pe,superProps:j,superCalls:te}),{thisPaths:Ue,argumentsPaths:Be,newTargetPaths:pe,superProps:j,superCalls:te}}function Ve(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const Te=this.get("declaration");if(this.isExportDefaultDeclaration()){const j=Te.isFunctionDeclaration()||Te.isClassDeclaration(),te=Te.isFunctionExpression()||Te.isClassExpression(),ye=Te.isScope()?Te.scope.parent:Te.scope;let Ie=Te.node.id,Re=!1;Ie?te&&ye.hasBinding(Ie.name)&&(Re=!0,Ie=ye.generateUidIdentifier(Ie.name)):(Re=!0,Ie=ye.generateUidIdentifier("default"),(j||te)&&(Te.node.id=D(Ie)));const Ee=j?Te.node:J("var",[ie(D(Ie),Te.node)]),st=Q(null,[fe(D(Ie),N("default"))]);return this.insertAfter(st),this.replaceWith(Ee),Re&&ye.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const Ue=Te.getOuterBindingIdentifiers(),Be=Object.keys(Ue).map(j=>fe(N(j),N(j))),pe=Q(null,Be);return this.insertAfter(pe),this.replaceWith(Te.node),this}const Qe={"ReferencedIdentifier|BindingIdentifier"(Te,Ue){Te.node.name===Ue.name&&(Ue.needsRename=!0,Te.stop())},Scope(Te,Ue){Te.scope.hasOwnBinding(Ue.name)&&Te.skip()}};function et(Te){if(this.node.id)return this;const Ue=Z(this.node,this.parent);if(Ue==null)return this;let{name:Be}=Ue;if(!Te&&/[\uD800-\uDFFF]/.test(Be)||Be.startsWith("get ")||Be.startsWith("set "))return null;Be=ge(Be.replace(/[/ ]/g,"_"));const pe=N(Be);ue(pe,Ue.originalNode);const j={needsRename:!1,name:Be},{scope:te}=this,ye=te.getOwnBinding(Be);if(ye?ye.kind==="param"&&(j.needsRename=!0):(te.parent.hasBinding(Be)||te.hasGlobal(Be))&&this.traverse(Qe,j),!j.needsRename)return this.node.id=pe,te.getProgramParent().references[pe.name]=!0,this;if(te.hasBinding(pe.name)&&!te.hasGlobal(pe.name))return te.rename(pe.name),this.node.id=pe,te.getProgramParent().references[pe.name]=!0,this;if(!Se(this.node))return null;const Ie=te.generateUidIdentifier(pe.name),Re=[];for(let st=0,ot=ht(this.node);st<ot;st++)Re.push(te.generateUidIdentifier("x"));const Ee=l.default.expression.ast`
|
|
39
|
-
(function (${Ie}) {
|
|
40
|
-
function ${pe}(${Re}) {
|
|
41
|
-
return ${D(Ie)}.apply(this, arguments);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
${D(pe)}.toString = function () {
|
|
45
|
-
return ${D(Ie)}.toString();
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return ${D(pe)};
|
|
49
|
-
})(${$(this.node)})
|
|
50
|
-
`;return this.replaceWith(Ee)[0].get("arguments.0")}function ht(Te){const Ue=Te.params.findIndex(Be=>Ae(Be)||ne(Be));return Ue===-1?Te.params.length:Ue}return Pr}var tl={},np;function Xh(){return np||(np=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s._guessExecutionStatusRelativeTo=B,s._resolve=Se,s.canHaveVariableDeclarationOrExpression=F,s.canSwapBetweenExpressionAndStatement=V,s.getSource=X,s.isCompletionRecord=k,s.isConstantExpression=Ae,s.isInStrictMode=ne,s.isNodeType=T,s.isStatementOrBlock=S,s.isStatic=P,s.matchesPattern=N,s.referencesImport=G,s.resolve=ge,s.willIMaybeExecuteBefore=W;var l=at();const{STATEMENT_OR_BLOCK_KEYS:u,VISITOR_KEYS:o,isBlockStatement:f,isExpression:p,isIdentifier:w,isLiteral:b,isStringLiteral:E,isType:C,matchesPattern:x}=l;function N(Z,D){return x(this.node,Z,D)}s.has=function(D){var J;const ie=(J=this.node)==null?void 0:J[D];return ie&&Array.isArray(ie)?!!ie.length:!!ie};function P(){return this.scope.isStatic(this.node)}s.is=s.has,s.isnt=function(D){return!this.has(D)},s.equals=function(D,J){return this.node[D]===J};function T(Z){return C(this.type,Z)}function F(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function V(Z){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?f(Z):this.isBlockStatement()?p(Z):!1}function k(Z){let D=this,J=!0;do{const{type:ie,container:Q}=D;if(!J&&(D.isFunction()||ie==="StaticBlock"))return!!Z;if(J=!1,Array.isArray(Q)&&D.key!==Q.length-1)return!1}while((D=D.parentPath)&&!D.isProgram()&&!D.isDoExpression());return!0}function S(){return this.parentPath.isLabeledStatement()||f(this.container)?!1:u.includes(this.key)}function G(Z,D){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===D||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?E(this.node.property,{value:D}):this.node.property.name===D)){const fe=this.get("object");return fe.isReferencedIdentifier()&&fe.referencesImport(Z,"*")}return!1}const J=this.scope.getBinding(this.node.name);if(!J||J.kind!=="module")return!1;const ie=J.path,Q=ie.parentPath;if(!Q.isImportDeclaration())return!1;if(Q.node.source.value===Z){if(!D)return!0}else return!1;return!!(ie.isImportDefaultSpecifier()&&D==="default"||ie.isImportNamespaceSpecifier()&&D==="*"||ie.isImportSpecifier()&&w(ie.node.imported,{name:D}))}function X(){const Z=this.node;if(Z.end){const D=this.hub.getCode();if(D)return D.slice(Z.start,Z.end)}return""}function W(Z){return this._guessExecutionStatusRelativeTo(Z)!=="after"}function ee(Z){return Z.isProgram()?Z:(Z.parentPath.scope.getFunctionParent()||Z.parentPath.scope.getProgramParent()).path}function M(Z,D){switch(Z){case"LogicalExpression":return D==="right";case"ConditionalExpression":case"IfStatement":return D==="consequent"||D==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return D==="body";case"ForStatement":return D==="body"||D==="update";case"SwitchStatement":return D==="cases";case"TryStatement":return D==="handler";case"AssignmentPattern":return D==="right";case"OptionalMemberExpression":return D==="property";case"OptionalCallExpression":return D==="arguments";default:return!1}}function I(Z,D){for(let J=0;J<D;J++){const ie=Z[J];if(M(ie.parent.type,ie.parentKey))return!0}return!1}const U=Symbol();function B(Z){return R(this,Z,new Map)}function R(Z,D,J){const ie={this:ee(Z),target:ee(D)};if(ie.target.node!==ie.this.node)return ae(Z,ie.target,J);const Q={target:D.getAncestry(),this:Z.getAncestry()};if(Q.target.includes(Z))return"after";if(Q.this.includes(D))return"before";let fe;const ue={target:0,this:0};for(;!fe&&ue.this<Q.this.length;){const ve=Q.this[ue.this];ue.target=Q.target.indexOf(ve),ue.target>=0?fe=ve:ue.this++}if(!fe)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(I(Q.this,ue.this-1)||I(Q.target,ue.target-1))return"unknown";const Pe={this:Q.this[ue.this-1],target:Q.target[ue.target-1]};if(Pe.target.listKey&&Pe.this.listKey&&Pe.target.container===Pe.this.container)return Pe.target.key>Pe.this.key?"before":"after";const _e=o[fe.type],Ke={this:_e.indexOf(Pe.this.parentKey),target:_e.indexOf(Pe.target.parentKey)};return Ke.target>Ke.this?"before":"after"}function $(Z,D,J){if(D.isFunctionDeclaration()){if(D.parentPath.isExportDeclaration())return"unknown"}else return R(Z,D,J)==="before"?"before":"unknown";const ie=D.scope.getBinding(D.node.id.name);if(!ie.references)return"before";const Q=ie.referencePaths;let fe;for(const ue of Q){if(!!ue.find(Ke=>Ke.node===D.node))continue;if(ue.key!=="callee"||!ue.parentPath.isCallExpression())return"unknown";const _e=R(Z,ue,J);if(fe&&fe!==_e)return"unknown";fe=_e}return fe}function ae(Z,D,J){let ie=J.get(Z.node),Q;if(!ie)J.set(Z.node,ie=new Map);else if(Q=ie.get(D.node))return Q===U?"unknown":Q;ie.set(D.node,U);const fe=$(Z,D,J);return ie.set(D.node,fe),fe}function ge(Z,D){return Se.call(this,Z,D)||this}function Se(Z,D){var J;if(!((J=D)!=null&&J.includes(this)))if(D=D||[],D.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(Z,D)}else if(this.isReferencedIdentifier()){const ie=this.scope.getBinding(this.node.name);if(!ie||!ie.constant||ie.kind==="module")return;if(ie.path!==this){const Q=ie.path.resolve(Z,D);return this.find(fe=>fe.node===Q.node)?void 0:Q}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(Z,D);if(Z&&this.isMemberExpression()){const ie=this.toComputedKey();if(!b(ie))return;const Q=ie.value,fe=this.get("object").resolve(Z,D);if(fe.isObjectExpression()){const ue=fe.get("properties");for(const Pe of ue){if(!Pe.isProperty())continue;const _e=Pe.get("key");let Ke=Pe.isnt("computed")&&_e.isIdentifier({name:Q});if(Ke=Ke||_e.isLiteral({value:Q}),Ke)return Pe.get("value").resolve(Z,D)}}else if(fe.isArrayExpression()&&!isNaN(+Q)){const Pe=fe.get("elements")[Q];if(Pe)return Pe.resolve(Z,D)}}}}function Ae(){if(this.isIdentifier()){const Z=this.scope.getBinding(this.node.name);return Z?Z.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(Z=>Z.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:Z}=this.node;return Z!=="in"&&Z!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function ne(){return!!(this.isProgram()?this:this.parentPath).find(J=>{if(J.isProgram({sourceType:"module"})||J.isClass())return!0;if(J.isArrowFunctionExpression()&&!J.get("body").isBlockStatement())return!1;let ie;if(J.isFunction())ie=J.node.body;else if(J.isProgram())ie=J.node;else return!1;for(const Q of ie.directives)if(Q.value.value==="use strict")return!0;return!1})}})(tl)),tl}var Dt={},ap;function Yh(){if(ap)return Dt;ap=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt._getKey=B,Dt._getPattern=R,Dt.get=U,Dt.getAllNextSiblings=M,Dt.getAllPrevSiblings=I,Dt.getAssignmentIdentifiers=$,Dt.getBindingIdentifierPaths=Se,Dt.getBindingIdentifiers=ae,Dt.getCompletionRecords=G,Dt.getNextSibling=ee,Dt.getOpposite=N,Dt.getOuterBindingIdentifierPaths=Ae,Dt.getOuterBindingIdentifiers=ge,Dt.getPrevSibling=W,Dt.getSibling=X;var s=Mi(),l=at();const{getAssignmentIdentifiers:u,getBindingIdentifiers:o,getOuterBindingIdentifiers:f,numericLiteral:p,unaryExpression:w}=l,b=0,E=1;function C(ne){return{type:b,path:ne}}function x(ne){return{type:E,path:ne}}function N(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function P(ne,Z,D){return ne&&Z.push(...S(ne,D)),Z}function T(ne,Z,D){let J=[];for(let ie=0;ie<ne.length;ie++){const Q=ne[ie],fe=S(Q,D),ue=[],Pe=[];for(const _e of fe)_e.type===b&&ue.push(_e),_e.type===E&&Pe.push(_e);ue.length&&(J=ue),Z.push(...Pe)}return Z.push(...J),Z}function F(ne){ne.forEach(Z=>{Z.type=E})}function V(ne,Z){ne.forEach(D=>{D.path.isBreakStatement({label:null})&&(Z?D.path.replaceWith(w("void",p(0))):D.path.remove())})}function k(ne,Z){const D=[];if(Z.canHaveBreak){let J=[];for(let ie=0;ie<ne.length;ie++){const Q=ne[ie],fe=Object.assign({},Z,{inCaseClause:!1});Q.isBlockStatement()&&(Z.inCaseClause||Z.shouldPopulateBreak)?fe.shouldPopulateBreak=!0:fe.shouldPopulateBreak=!1;const ue=S(Q,fe);if(ue.length>0&&ue.every(Pe=>Pe.type===E)){J.length>0&&ue.every(Pe=>Pe.path.isBreakStatement({label:null}))?(F(J),D.push(...J),J.some(Pe=>Pe.path.isDeclaration())&&(D.push(...ue),Z.shouldPreserveBreak||V(ue,!0)),Z.shouldPreserveBreak||V(ue,!1)):(D.push(...ue),!Z.shouldPopulateBreak&&!Z.shouldPreserveBreak&&V(ue,!0));break}if(ie===ne.length-1)D.push(...ue);else{J=[];for(let Pe=0;Pe<ue.length;Pe++){const _e=ue[Pe];_e.type===E&&D.push(_e),_e.type===b&&J.push(_e)}}}}else if(ne.length)for(let J=ne.length-1;J>=0;J--){const ie=S(ne[J],Z);if(ie.length>1||ie.length===1&&!ie[0].path.isVariableDeclaration()&&!ie[0].path.isEmptyStatement()){D.push(...ie);break}}return D}function S(ne,Z){let D=[];if(ne.isIfStatement())D=P(ne.get("consequent"),D,Z),D=P(ne.get("alternate"),D,Z);else{if(ne.isDoExpression()||ne.isFor()||ne.isWhile()||ne.isLabeledStatement())return P(ne.get("body"),D,Z);if(ne.isProgram()||ne.isBlockStatement())return k(ne.get("body"),Z);if(ne.isFunction())return S(ne.get("body"),Z);if(ne.isTryStatement())D=P(ne.get("block"),D,Z),D=P(ne.get("handler"),D,Z);else{if(ne.isCatchClause())return P(ne.get("body"),D,Z);if(ne.isSwitchStatement())return T(ne.get("cases"),D,Z);if(ne.isSwitchCase())return k(ne.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:Z.shouldPreserveBreak});ne.isBreakStatement()?D.push(x(ne)):D.push(C(ne))}}return D}function G(ne=!1){return S(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:ne}).map(D=>D.path)}function X(ne){return s.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:ne}).setContext(this.context)}function W(){return this.getSibling(this.key-1)}function ee(){return this.getSibling(this.key+1)}function M(){let ne=this.key,Z=this.getSibling(++ne);const D=[];for(;Z.node;)D.push(Z),Z=this.getSibling(++ne);return D}function I(){let ne=this.key,Z=this.getSibling(--ne);const D=[];for(;Z.node;)D.push(Z),Z=this.getSibling(--ne);return D}function U(ne,Z=!0){Z===!0&&(Z=this.context);const D=ne.split(".");return D.length===1?B.call(this,ne,Z):R.call(this,D,Z)}function B(ne,Z){const D=this.node,J=D[ne];return Array.isArray(J)?J.map((ie,Q)=>s.default.get({listKey:ne,parentPath:this,parent:D,container:J,key:Q}).setContext(Z)):s.default.get({parentPath:this,parent:D,container:D,key:ne}).setContext(Z)}function R(ne,Z){let D=this;for(const J of ne)J==="."?D=D.parentPath:Array.isArray(D)?D=D[J]:D=D.get(J,Z);return D}function $(){return u(this.node)}function ae(ne){return o(this.node,ne)}function ge(ne){return f(this.node,ne)}function Se(ne=!1,Z=!1){const J=[this],ie=Object.create(null);for(;J.length;){const Q=J.shift();if(!Q||!Q.node)continue;const fe=o.keys[Q.node.type];if(Q.isIdentifier()){ne?(ie[Q.node.name]=ie[Q.node.name]||[]).push(Q):ie[Q.node.name]=Q;continue}if(Q.isExportDeclaration()){const ue=Q.get("declaration");ue.isDeclaration()&&J.push(ue);continue}if(Z){if(Q.isFunctionDeclaration()){J.push(Q.get("id"));continue}if(Q.isFunctionExpression())continue}if(fe)for(let ue=0;ue<fe.length;ue++){const Pe=fe[ue],_e=Q.get(Pe);Array.isArray(_e)?J.push(..._e):_e.node&&J.push(_e)}}return ie}function Ae(ne=!1){return this.getBindingIdentifierPaths(ne,!0)}return Dt}var Ls={},op;function Hh(){if(op)return Ls;op=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.addComment=p,Ls.addComments=w,Ls.shareCommentsWithSiblings=o;var s=at();const{addComment:l,addComments:u}=s;function o(){if(typeof this.key=="string")return;const b=this.node;if(!b)return;const E=b.trailingComments,C=b.leadingComments;if(!E&&!C)return;const x=this.getSibling(this.key-1),N=this.getSibling(this.key+1),P=!!x.node,T=!!N.node;P&&(C&&x.addComments("trailing",f(C,x.node.trailingComments)),E&&!T&&x.addComments("trailing",E)),T&&(E&&N.addComments("leading",f(E,N.node.leadingComments)),C&&!P&&N.addComments("leading",C))}function f(b,E){if(!(E!=null&&E.length))return b;const C=new Set(E);return b.filter(x=>!C.has(x))}function p(b,E,C){l(this.node,b,E,C)}function w(b,E){u(this.node,b,E)}return Ls}var lp;function Mi(){if(lp)return pr;lp=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=pr.SHOULD_STOP=pr.SHOULD_SKIP=pr.REMOVED=void 0;var s=yp(),l=tf(),u=Dn(),o=Fp(),f=at(),p=f,w=Ms(),b=Oh(),E=_h(),C=Lh(),x=Wp(),N=jh(),P=Jh(),T=Xh(),F=hr(),V=F,k=ol(),S=ll(),G=Yh(),X=Hh(),W=Bp();const{validate:ee}=f,M=l("babel");pr.REMOVED=1,pr.SHOULD_STOP=2,pr.SHOULD_SKIP=4;const I=pr.default=class Yp{constructor(R,$){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=$,this.hub=R,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(R){R?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(R){R?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(R){R?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:R,parentPath:$,parent:ae,container:ge,listKey:Se,key:Ae}){if(!R&&$&&(R=$.hub),!ae)throw new Error("To get a node path the parent needs to exist");const ne=ge[Ae],Z=w.getOrCreateCachedPaths(ae,$);let D=Z.get(ne);return D||(D=new Yp(R,ae),ne&&Z.set(ne,D)),F.setup.call(D,$,ge,Se,Ae),D}getScope(R){return this.isScope()?new o.default(this):R}setData(R,$){return this.data==null&&(this.data=Object.create(null)),this.data[R]=$}getData(R,$){this.data==null&&(this.data=Object.create(null));let ae=this.data[R];return ae===void 0&&$!==void 0&&(ae=this.data[R]=$),ae}hasNode(){return this.node!=null}buildCodeFrameError(R,$=SyntaxError){return this.hub.buildError(this.node,R,$)}traverse(R,$){(0,u.default)(this.node,R,this.scope,$,this)}set(R,$){ee(this.node,R,$),this.node[R]=$}getPathLocation(){const R=[];let $=this;do{let ae=$.key;$.inList&&(ae=`${$.listKey}[${ae}]`),R.unshift(ae)}while($=$.parentPath);return R.join(".")}debug(R){M.enabled&&M(`${this.getPathLocation()} ${this.type}: ${R}`)}toString(){return(0,b.default)(this.node).code}get inList(){return!!this.listKey}set inList(R){R||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},U={findParent:E.findParent,find:E.find,getFunctionParent:E.getFunctionParent,getStatementParent:E.getStatementParent,getEarliestCommonAncestorFrom:E.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:E.getDeepestCommonAncestorFrom,getAncestry:E.getAncestry,isAncestor:E.isAncestor,isDescendant:E.isDescendant,inType:E.inType,getTypeAnnotation:C.getTypeAnnotation,isBaseType:C.isBaseType,couldBeBaseType:C.couldBeBaseType,baseTypeStrictlyMatches:C.baseTypeStrictlyMatches,isGenericType:C.isGenericType,replaceWithMultiple:x.replaceWithMultiple,replaceWithSourceString:x.replaceWithSourceString,replaceWith:x.replaceWith,replaceExpressionWithStatements:x.replaceExpressionWithStatements,replaceInline:x.replaceInline,evaluateTruthy:N.evaluateTruthy,evaluate:N.evaluate,toComputedKey:P.toComputedKey,ensureBlock:P.ensureBlock,unwrapFunctionEnvironment:P.unwrapFunctionEnvironment,arrowFunctionToExpression:P.arrowFunctionToExpression,splitExportDeclaration:P.splitExportDeclaration,ensureFunctionName:P.ensureFunctionName,matchesPattern:T.matchesPattern,isStatic:T.isStatic,isNodeType:T.isNodeType,canHaveVariableDeclarationOrExpression:T.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:T.canSwapBetweenExpressionAndStatement,isCompletionRecord:T.isCompletionRecord,isStatementOrBlock:T.isStatementOrBlock,referencesImport:T.referencesImport,getSource:T.getSource,willIMaybeExecuteBefore:T.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:T._guessExecutionStatusRelativeTo,resolve:T.resolve,isConstantExpression:T.isConstantExpression,isInStrictMode:T.isInStrictMode,isDenylisted:V.isDenylisted,visit:V.visit,skip:V.skip,skipKey:V.skipKey,stop:V.stop,setContext:V.setContext,requeue:V.requeue,requeueComputedKeyAndDecorators:V.requeueComputedKeyAndDecorators,remove:k.remove,insertBefore:S.insertBefore,insertAfter:S.insertAfter,unshiftContainer:S.unshiftContainer,pushContainer:S.pushContainer,getOpposite:G.getOpposite,getCompletionRecords:G.getCompletionRecords,getSibling:G.getSibling,getPrevSibling:G.getPrevSibling,getNextSibling:G.getNextSibling,getAllNextSiblings:G.getAllNextSiblings,getAllPrevSiblings:G.getAllPrevSiblings,get:G.get,getAssignmentIdentifiers:G.getAssignmentIdentifiers,getBindingIdentifiers:G.getBindingIdentifiers,getOuterBindingIdentifiers:G.getOuterBindingIdentifiers,getBindingIdentifierPaths:G.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:G.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:X.shareCommentsWithSiblings,addComment:X.addComment,addComments:X.addComments};Object.assign(I.prototype,U),I.prototype.arrowFunctionToShadowed=P.arrowFunctionToShadowed,Object.assign(I.prototype,{has:T.has,is:T.is,isnt:T.isnt,equals:T.equals,hoist:S.hoist,updateSiblingKeys:S.updateSiblingKeys,call:V.call,isBlacklisted:V.isBlacklisted,setScope:V.setScope,resync:V.resync,popContext:V.popContext,pushContext:V.pushContext,setup:V.setup,setKey:V.setKey}),I.prototype._guessExecutionStatusRelativeToDifferentFunctions=T._guessExecutionStatusRelativeTo,I.prototype._guessExecutionStatusRelativeToDifferentFunctions=T._guessExecutionStatusRelativeTo,Object.assign(I.prototype,{_getTypeAnnotation:C._getTypeAnnotation,_replaceWith:x._replaceWith,_resolve:T._resolve,_call:V._call,_resyncParent:V._resyncParent,_resyncKey:V._resyncKey,_resyncList:V._resyncList,_resyncRemoved:V._resyncRemoved,_getQueueContexts:V._getQueueContexts,_removeFromScope:k._removeFromScope,_callRemovalHooks:k._callRemovalHooks,_remove:k._remove,_markRemoved:k._markRemoved,_assertUnremoved:k._assertUnremoved,_containerInsert:S._containerInsert,_containerInsertBefore:S._containerInsertBefore,_containerInsertAfter:S._containerInsertAfter,_verifyNodeList:S._verifyNodeList,_getKey:G._getKey,_getPattern:G._getPattern});for(const B of p.TYPES){const R=`is${B}`,$=p[R];I.prototype[R]=function(ae){return $(this.node,ae)},I.prototype[`assert${B}`]=function(ae){if(!$(this.node,ae))throw new TypeError(`Expected node path of type ${B}`)}}Object.assign(I.prototype,W);for(const B of Object.keys(s))B[0]!=="_"&&(p.TYPES.includes(B)||p.TYPES.push(B));return pr}var up;function zh(){if(up)return ln;up=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=void 0;var s=Mi(),l=at(),u=hr();const{VISITOR_KEYS:o}=l;class f{constructor(w,b,E,C){this.queue=null,this.priorityQueue=null,this.parentPath=C,this.scope=w,this.state=E,this.opts=b}shouldVisit(w){const b=this.opts;if(b.enter||b.exit||b[w.type])return!0;const E=o[w.type];if(!(E!=null&&E.length))return!1;for(const C of E)if(w[C])return!0;return!1}create(w,b,E,C){return s.default.get({parentPath:this.parentPath,parent:w,container:b,key:E,listKey:C})}maybeQueue(w,b){this.queue&&(b?this.queue.push(w):this.priorityQueue.push(w))}visitMultiple(w,b,E){if(w.length===0)return!1;const C=[];for(let x=0;x<w.length;x++){const N=w[x];N&&this.shouldVisit(N)&&C.push(this.create(b,w,x,E))}return this.visitQueue(C)}visitSingle(w,b){return this.shouldVisit(w[b])?this.visitQueue([this.create(w,w,b)]):!1}visitQueue(w){this.queue=w,this.priorityQueue=[];const b=new WeakSet;let E=!1,C=0;for(;C<w.length;){const x=w[C];if(C++,u.resync.call(x),(x.contexts.length===0||x.contexts[x.contexts.length-1]!==this)&&u.pushContext.call(x,this),x.key===null)continue;const{node:N}=x;if(!b.has(N)){if(N&&b.add(N),x.visit()){E=!0;break}if(this.priorityQueue.length&&(E=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=w,E))break}}for(let x=0;x<C;x++)u.popContext.call(w[x]);return this.queue=null,E}visit(w,b){const E=w[b];return E?Array.isArray(E)?this.visitMultiple(E,w,b):this.visitSingle(w,b):!1}}return ln.default=f,ln}var cp;function cl(){if(cp)return Mn;cp=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.traverseNode=o;var s=zh();Mi();var l=at();hr();const{VISITOR_KEYS:u}=l;function o(f,p,w,b,E,C,x){const N=u[f.type];if(!N)return!1;const P=new s.default(w,p,b,E);if(x)return C!=null&&C[E.parentKey]?!1:P.visitQueue([E]);for(const T of N)if(!(C!=null&&C[T])&&P.visit(f,T))return!0;return!1}return Mn}var pp;function hr(){if(pp)return Et;pp=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et._call=p,Et._getQueueContexts=B,Et._resyncKey=k,Et._resyncList=S,Et._resyncParent=V,Et._resyncRemoved=G,Et.call=f,Et.isDenylisted=w,Et.popContext=X,Et.pushContext=W,Et.requeue=I,Et.requeueComputedKeyAndDecorators=U,Et.resync=F,Et.setContext=T,Et.setKey=M,Et.setScope=P,Et.setup=ee,Et.skip=C,Et.skipKey=x,Et.stop=N,Et.visit=E;var s=cl(),l=Mi(),u=ol(),o=at();function f(R){const $=this.opts;if(this.debug(R),this.node&&p.call(this,$[R]))return!0;if(this.node){var ae;return p.call(this,(ae=$[this.node.type])==null?void 0:ae[R])}return!1}function p(R){if(!R)return!1;for(const $ of R){if(!$)continue;const ae=this.node;if(!ae)return!0;const ge=$.call(this.state,this,this.state);if(ge&&typeof ge=="object"&&typeof ge.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(ge)throw new Error(`Unexpected return value from visitor method ${$}`);if(this.node!==ae||this._traverseFlags>0)return!0}return!1}function w(){var R;const $=(R=this.opts.denylist)!=null?R:this.opts.blacklist;return $?.includes(this.node.type)}Et.isBlacklisted=w;function b(R,$){R.context!==$&&(R.context=$,R.state=$.state,R.opts=$.opts)}function E(){var R,$;if(!this.node||this.isDenylisted()||(R=($=this.opts).shouldSkip)!=null&&R.call($,this))return!1;const ae=this.context;return this.shouldSkip||f.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(b(this,ae),this.debug("Recursing into..."),this.shouldStop=(0,s.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),b(this,ae),f.call(this,"exit"),this.shouldStop)}function C(){this.shouldSkip=!0}function x(R){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[R]=!0}function N(){this._traverseFlags|=l.SHOULD_SKIP|l.SHOULD_STOP}function P(){var R,$;if((R=this.opts)!=null&&R.noScope)return;let ae=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&ae.isMethod()||this.key==="discriminant"&&ae.isSwitchStatement())&&(ae=ae.parentPath);let ge;for(;ae&&!ge;){var Se;if((Se=ae.opts)!=null&&Se.noScope)return;ge=ae.scope,ae=ae.parentPath}this.scope=this.getScope(ge),($=this.scope)==null||$.init()}function T(R){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,R&&(this.context=R,this.state=R.state,this.opts=R.opts),P.call(this),this}function F(){this.removed||(V.call(this),S.call(this),k.call(this))}function V(){this.parentPath&&(this.parent=this.parentPath.node)}function k(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let R=0;R<this.container.length;R++)if(this.container[R]===this.node){M.call(this,R);return}}else for(const R of Object.keys(this.container))if(this.container[R]===this.node){M.call(this,R);return}this.key=null}}function S(){if(!this.parent||!this.inList)return;const R=this.parent[this.listKey];this.container!==R&&(this.container=R||null)}function G(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&u._markRemoved.call(this)}function X(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function W(R){this.contexts.push(R),this.setContext(R)}function ee(R,$,ae,ge){this.listKey=ae,this.container=$,this.parentPath=R||this.parentPath,M.call(this,ge)}function M(R){var $;this.key=R,this.node=this.container[this.key],this.type=($=this.node)==null?void 0:$.type}function I(R=this){if(R.removed)return;const $=this.contexts;for(const ae of $)ae.maybeQueue(R)}function U(){const{context:R,node:$}=this;if(!o.isPrivate($)&&$.computed&&R.maybeQueue(this.get("key")),$.decorators)for(const ae of this.get("decorators"))R.maybeQueue(ae)}function B(){let R=this,$=this.contexts;for(;!$.length&&(R=R.parentPath,!!R);)$=R.contexts;return $}return Et}var wn={},fp;function $h(){if(fp)return wn;fp=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;class s{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(u,o,f=TypeError){return new f(o)}}return wn.default=s,wn}var hp;function Dn(){return hp||(hp=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"Hub",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(s,"NodePath",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(s,"Scope",{enumerable:!0,get:function(){return w.default}}),s.visitors=s.default=void 0,hr();var l=no();s.visitors=l;var u=at(),o=Ms(),f=cl(),p=Mi(),w=Fp(),b=$h();const{VISITOR_KEYS:E,removeProperties:C,traverseFast:x}=u;function N(P,T={},F,V,k,S){if(P){if(!T.noScope&&!F&&P.type!=="Program"&&P.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${P.type} node without passing scope and parentPath.`);if(!k&&S)throw new Error("visitSelf can only be used when providing a NodePath.");E[P.type]&&(l.explode(T),(0,f.traverseNode)(P,T,F,V,k,void 0,S))}}s.default=N,N.visitors=l,N.verify=l.verify,N.explode=l.explode,N.cheap=function(P,T){x(P,T)},N.node=function(P,T,F,V,k,S){(0,f.traverseNode)(P,T,F,V,k,S)},N.clearNode=function(P,T){C(P,T)},N.removeProperties=function(P,T){return x(P,N.clearNode,T),P},N.hasType=function(P,T,F){return F!=null&&F.includes(P.type)?!1:P.type===T?!0:x(P,function(V){if(F!=null&&F.includes(V.type))return x.skip;if(V.type===T)return x.stop})},N.cache=o})(Wo)),Wo}var Gh=Dn();const dp=Gp(Gh);var Bt=at();const Qh={m:["margin"],mt:["marginTop"],mr:["marginRight"],mb:["marginBottom"],ml:["marginLeft"],mx:["marginLeft","marginRight"],my:["marginTop","marginBottom"],p:["padding"],pt:["paddingTop"],pr:["paddingRight"],pb:["paddingBottom"],pl:["paddingLeft"],px:["paddingLeft","paddingRight"],py:["paddingTop","paddingBottom"],bg:["backgroundColor"]},Zh=new Set(["opacity","fontWeight","lineHeight","zIndex","flex","flexGrow","flexShrink","order"]);function ed(s){return s.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`)}function td(s,l){return typeof l=="number"&&!Zh.has(s)?`${l}px`:typeof l=="string"&&l.startsWith("$theme.")?`var(${l.replace("$theme.","--theme-").replace(/\./g,"-")})`:String(l)}function Hp(s,l){let u=`.${l} {`,o="";for(const f in s){const p=s[f];if(f.startsWith("&")||f.startsWith(":")||f.startsWith("@")){const b=f.replace(/&/g,`.${l}`),E=Hp(p,"TEMP_CLASS").replace(".TEMP_CLASS",b);o+=`
|
|
51
|
-
${E}`;continue}(Qh[f]||[f]).forEach(b=>{const E=ed(b),C=td(b,p);u+=`
|
|
52
|
-
${E}: ${C};`})}return u+=`
|
|
53
|
-
}`,u+o}const rd={};function id(s){return rd.createHash("md5").update(s).digest("hex").slice(0,8)}function zp(s){if(Bt.isStringLiteral(s)||Bt.isNumericLiteral(s)||Bt.isBooleanLiteral(s))return s.value;if(Bt.isNullLiteral(s))return null;if(Bt.isUnaryExpression(s)&&s.operator==="-"&&Bt.isNumericLiteral(s.argument))return-s.argument.value;if(Bt.isObjectExpression(s)){const l={};return s.properties.forEach(u=>{if(Bt.isObjectProperty(u)){const o=Bt.isIdentifier(u.key)?u.key.name:Bt.isStringLiteral(u.key)?u.key.value:null;if(!o)throw new Error(`Unsupported key type in zx prop: ${u.key.type}`);l[o]=zp(u.value)}else throw new Error(`Unsupported property type in zx prop: ${u.type}. Only static object properties are allowed.`)}),l}throw new Error(`Dynamic expressions are not allowed in zx prop. Found: ${s.type}. Use 'style' prop for dynamic values.`)}function mp(s,l){if(!s.includes("zx={"))return null;const u=Qp.parse(s,{sourceType:"module",plugins:["typescript","jsx"]}),o=new $p(s);let f=!1,p="";return(dp.default||dp)(u,{JSXOpeningElement(b){const E=b.node.attributes.find(C=>Bt.isJSXAttribute(C)&&C.name.name==="zx");if(E&&(f=!0,Bt.isJSXExpressionContainer(E.value)&&Bt.isObjectExpression(E.value.expression))){let C={};try{C=zp(E.value.expression)}catch(T){throw new Error(`Error parsing zx prop in ${l}: ${T.message}`)}const x=`zx-${id(JSON.stringify(C))}`,N=Hp(C,x);p+=N+`
|
|
54
|
-
`;const P=b.node.attributes.find(T=>Bt.isJSXAttribute(T)&&T.name.name==="className");if(E.start!=null&&E.end!=null&&o.remove(E.start,E.end),P){if(Bt.isStringLiteral(P.value)&&P.value.start&&P.value.end)o.overwrite(P.value.start,P.value.end,`"${P.value.value} ${x}"`);else if(Bt.isJSXExpressionContainer(P.value)&&P.value.expression.start&&P.value.expression.end){const T=s.slice(P.value.expression.start,P.value.expression.end);o.overwrite(P.value.expression.start,P.value.expression.end,`\`\${${T}} ${x}\``)}}else o.appendLeft(E.start,` className="${x}" `)}}}),f?(o.prepend(`import '${l}.style-zx.css';
|
|
55
|
-
`),{code:o.toString(),map:o.generateMap({hires:!0}),css:p,hasZx:!0}):null}function sd(){const s=new Map;return{name:"vite-plugin-style-zx",enforce:"pre",resolveId(l){return l.endsWith(".style-zx.css")?l:null},load(l){if(l.endsWith(".style-zx.css")){const u=l.replace(".style-zx.css","");return s.get(u)||""}return null},transform(l,u){if(!/\.(t|j)sx?$/.test(u))return null;const o=mp(l,u);return o&&o.hasZx?(s.set(u,o.css),{code:o.code,map:o.map}):null},async handleHotUpdate({file:l,modules:u,read:o,server:f}){if(!/\.(t|j)sx?$/.test(l))return;const p=await o(),w=mp(p,l);if(w&&w.hasZx){s.set(l,w.css);const b=`${l}.style-zx.css`,E=f.moduleGraph.getModuleById(b);if(E)return[...u,E]}}}}module.exports=sd;
|
|
1
|
+
"use strict";const v=require("@babel/parser"),m=require("@babel/traverse"),S=require("@babel/types"),$=require("magic-string"),b=require("crypto");function w(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=w(S),E={m:["margin"],mt:["marginTop"],mr:["marginRight"],mb:["marginBottom"],ml:["marginLeft"],mx:["marginLeft","marginRight"],my:["marginTop","marginBottom"],p:["padding"],pt:["paddingTop"],pr:["paddingRight"],pb:["paddingBottom"],pl:["paddingLeft"],px:["paddingLeft","paddingRight"],py:["paddingTop","paddingBottom"],bg:["backgroundColor"]},L=new Set(["opacity","fontWeight","lineHeight","zIndex","flex","flexGrow","flexShrink","order"]);function z(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function j(e,t){return typeof t=="number"&&!L.has(e)?`${t}px`:typeof t=="string"&&t.startsWith("$theme.")?`var(${t.replace("$theme.","--theme-").replace(/\./g,"-")})`:String(t)}function x(e,t){let r=`.${t} {`,s="";for(const o in e){const c=e[o];if(o.startsWith("&")||o.startsWith(":")||o.startsWith("@")){const l=o.replace(/&/g,`.${t}`),n=x(c,"TEMP_CLASS").replace(".TEMP_CLASS",l);s+=`
|
|
2
|
+
${n}`;continue}(E[o]||[o]).forEach(l=>{const n=z(l),u=j(l,c);r+=`
|
|
3
|
+
${n}: ${u};`})}return r+=`
|
|
4
|
+
}`,r+s}function O(e){return b.createHash("md5").update(e).digest("hex").slice(0,8)}function y(e){if(i.isStringLiteral(e)||i.isNumericLiteral(e)||i.isBooleanLiteral(e))return e.value;if(i.isNullLiteral(e))return null;if(i.isUnaryExpression(e)&&e.operator==="-"&&i.isNumericLiteral(e.argument))return-e.argument.value;if(i.isObjectExpression(e)){const t={};return e.properties.forEach(r=>{if(i.isObjectProperty(r)){const s=i.isIdentifier(r.key)?r.key.name:i.isStringLiteral(r.key)?r.key.value:null;if(!s)throw new Error(`Unsupported key type in zx prop: ${r.key.type}`);t[s]=y(r.value)}else throw new Error(`Unsupported property type in zx prop: ${r.type}. Only static object properties are allowed.`)}),t}throw new Error(`Dynamic expressions are not allowed in zx prop. Found: ${e.type}. Use 'style' prop for dynamic values.`)}function d(e,t){if(!e.includes("zx={"))return null;const r=v.parse(e,{sourceType:"module",plugins:["typescript","jsx"]}),s=new $(e);let o=!1,c="";return(m.default||m)(r,{JSXOpeningElement(l){const n=l.node.attributes.find(u=>i.isJSXAttribute(u)&&u.name.name==="zx");if(n&&(o=!0,i.isJSXExpressionContainer(n.value)&&i.isObjectExpression(n.value.expression))){let u={};try{u=y(n.value.expression)}catch(p){throw new Error(`Error parsing zx prop in ${t}: ${p.message}`)}const g=`zx-${O(JSON.stringify(u))}`,h=x(u,g);c+=h+`
|
|
5
|
+
`;const a=l.node.attributes.find(p=>i.isJSXAttribute(p)&&p.name.name==="className");if(n.start!=null&&n.end!=null&&s.remove(n.start,n.end),a){if(i.isStringLiteral(a.value)&&a.value.start&&a.value.end)s.overwrite(a.value.start,a.value.end,`"${a.value.value} ${g}"`);else if(i.isJSXExpressionContainer(a.value)&&a.value.expression.start&&a.value.expression.end){const p=e.slice(a.value.expression.start,a.value.expression.end);s.overwrite(a.value.expression.start,a.value.expression.end,`\`\${${p}} ${g}\``)}}else s.appendLeft(n.start,` className="${g}" `)}}}),o?(s.prepend(`import '${t}.style-zx.css';
|
|
6
|
+
`),{code:s.toString(),map:s.generateMap({hires:!0}),css:c,hasZx:!0}):null}function k(){const e=new Map;return{name:"vite-plugin-style-zx",enforce:"pre",resolveId(t){return t.endsWith(".style-zx.css")?t:null},load(t){if(t.endsWith(".style-zx.css")){const r=t.replace(".style-zx.css","");return e.get(r)||""}return null},transform(t,r){if(!/\.(t|j)sx?$/.test(r))return null;const s=d(t,r);return s&&s.hasZx?(e.set(r,s.css),{code:s.code,map:s.map}):null},async handleHotUpdate({file:t,modules:r,read:s,server:o}){if(!/\.(t|j)sx?$/.test(t))return;const c=await s(),f=d(c,t);if(f&&f.hasZx){e.set(t,f.css);const l=`${t}.style-zx.css`,n=o.moduleGraph.getModuleById(l);if(n)return[...r,n]}}}}module.exports=k;
|