gemi 0.12.21 → 0.12.23

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.
Files changed (82) hide show
  1. package/dist/app/index.js +2 -2
  2. package/dist/app/index.js.map +1 -1
  3. package/dist/bin/gemi.js +7 -3
  4. package/dist/bin/gemi.js.map +3 -3
  5. package/dist/broadcasting/index.js +1 -1
  6. package/dist/{chunk-wnqewaf3.js → chunk-0mag01bf.js} +2 -2
  7. package/dist/{chunk-wnqewaf3.js.map → chunk-0mag01bf.js.map} +1 -1
  8. package/dist/{chunk-sw1vvw7d.js → chunk-1h2hmb3e.js} +2 -2
  9. package/dist/{chunk-sw1vvw7d.js.map → chunk-1h2hmb3e.js.map} +1 -1
  10. package/dist/{chunk-q15y9qqa.js → chunk-3yzwmzr9.js} +2 -2
  11. package/dist/{chunk-q15y9qqa.js.map → chunk-3yzwmzr9.js.map} +1 -1
  12. package/dist/{chunk-60mzpg9p.js → chunk-47xbr7nj.js} +3 -3
  13. package/dist/{chunk-60mzpg9p.js.map → chunk-47xbr7nj.js.map} +1 -1
  14. package/dist/{chunk-0vwbfnp2.js → chunk-4sc89gbr.js} +3 -3
  15. package/dist/{chunk-0vwbfnp2.js.map → chunk-4sc89gbr.js.map} +1 -1
  16. package/dist/{chunk-hnt81ry1.js → chunk-8ctxajfc.js} +2 -2
  17. package/dist/{chunk-hnt81ry1.js.map → chunk-8ctxajfc.js.map} +1 -1
  18. package/dist/{chunk-jbrbxc5c.js → chunk-afab7r0m.js} +3 -3
  19. package/dist/{chunk-jbrbxc5c.js.map → chunk-afab7r0m.js.map} +1 -1
  20. package/dist/{chunk-5dsh34rz.js → chunk-b6mtp6gt.js} +3 -3
  21. package/dist/{chunk-5dsh34rz.js.map → chunk-b6mtp6gt.js.map} +1 -1
  22. package/dist/{chunk-r6vh3qxg.js → chunk-c3s0zqhy.js} +2 -2
  23. package/dist/{chunk-r6vh3qxg.js.map → chunk-c3s0zqhy.js.map} +1 -1
  24. package/dist/chunk-cn8z1ny9.js +3 -0
  25. package/dist/{chunk-z888cx42.js.map → chunk-cn8z1ny9.js.map} +7 -10
  26. package/dist/{chunk-z3gxz55a.js → chunk-d1qx39yq.js} +2 -2
  27. package/dist/{chunk-z3gxz55a.js.map → chunk-d1qx39yq.js.map} +1 -1
  28. package/dist/{chunk-3mwjtxdv.js → chunk-d45sxeh8.js} +2 -2
  29. package/dist/{chunk-3mwjtxdv.js.map → chunk-d45sxeh8.js.map} +1 -1
  30. package/dist/{chunk-13270da5.js → chunk-ebcx322z.js} +2 -2
  31. package/dist/{chunk-13270da5.js.map → chunk-ebcx322z.js.map} +1 -1
  32. package/dist/{chunk-k82rjye7.js → chunk-g463tdms.js} +2 -2
  33. package/dist/{chunk-k82rjye7.js.map → chunk-g463tdms.js.map} +1 -1
  34. package/dist/{chunk-yk9c40d2.js → chunk-gh5ff38e.js} +3 -3
  35. package/dist/{chunk-yk9c40d2.js.map → chunk-gh5ff38e.js.map} +1 -1
  36. package/dist/chunk-k5ffzes5.js +4 -0
  37. package/dist/{chunk-5m78hjpk.js.map → chunk-k5ffzes5.js.map} +1 -1
  38. package/dist/{chunk-7kba0gp2.js → chunk-kbm8egme.js} +3 -3
  39. package/dist/{chunk-7kba0gp2.js.map → chunk-kbm8egme.js.map} +1 -1
  40. package/dist/{chunk-a4n9wza9.js → chunk-kzn3167x.js} +3 -3
  41. package/dist/{chunk-a4n9wza9.js.map → chunk-kzn3167x.js.map} +1 -1
  42. package/dist/{chunk-0w1jhvjs.js → chunk-npz0sw4q.js} +2 -2
  43. package/dist/{chunk-0w1jhvjs.js.map → chunk-npz0sw4q.js.map} +1 -1
  44. package/dist/{chunk-ecttwpaz.js → chunk-nzcwnc5r.js} +2 -2
  45. package/dist/{chunk-ecttwpaz.js.map → chunk-nzcwnc5r.js.map} +1 -1
  46. package/dist/{chunk-cnbhfxwn.js → chunk-q4w853y1.js} +2 -2
  47. package/dist/{chunk-cnbhfxwn.js.map → chunk-q4w853y1.js.map} +1 -1
  48. package/dist/{chunk-bzvvw9cs.js → chunk-qh65x6ee.js} +2 -2
  49. package/dist/{chunk-bzvvw9cs.js.map → chunk-qh65x6ee.js.map} +1 -1
  50. package/dist/{chunk-fdean9fh.js → chunk-qhj4rggf.js} +4 -4
  51. package/dist/{chunk-fdean9fh.js.map → chunk-qhj4rggf.js.map} +4 -3
  52. package/dist/{chunk-gmdntpw9.js → chunk-qpm7mvjd.js} +3 -3
  53. package/dist/{chunk-gmdntpw9.js.map → chunk-qpm7mvjd.js.map} +1 -1
  54. package/dist/{chunk-syy9apzx.js → chunk-rpt6yb9w.js} +2 -2
  55. package/dist/{chunk-syy9apzx.js.map → chunk-rpt6yb9w.js.map} +1 -1
  56. package/dist/{chunk-g8ypa4y3.js → chunk-sqbdv0jt.js} +3 -3
  57. package/dist/{chunk-g8ypa4y3.js.map → chunk-sqbdv0jt.js.map} +1 -1
  58. package/dist/chunk-w5wk93mf.js +4 -0
  59. package/dist/{chunk-kzy1nms9.js.map → chunk-w5wk93mf.js.map} +5 -5
  60. package/dist/{chunk-18gq20n5.js → chunk-wcbr8bfk.js} +2 -2
  61. package/dist/{chunk-18gq20n5.js.map → chunk-wcbr8bfk.js.map} +1 -1
  62. package/dist/{chunk-1q3tfxj7.js → chunk-xfst9ghn.js} +2 -2
  63. package/dist/{chunk-1q3tfxj7.js.map → chunk-xfst9ghn.js.map} +1 -1
  64. package/dist/{chunk-9p9aawm6.js → chunk-xyts27hr.js} +2 -2
  65. package/dist/{chunk-9p9aawm6.js.map → chunk-xyts27hr.js.map} +1 -1
  66. package/dist/{chunk-zeqcj763.js → chunk-yfskd9a1.js} +2 -2
  67. package/dist/{chunk-zeqcj763.js.map → chunk-yfskd9a1.js.map} +1 -1
  68. package/dist/email/index.js +1 -1
  69. package/dist/facades/index.js +2 -2
  70. package/dist/facades/index.js.map +1 -1
  71. package/dist/http/index.js +2 -2
  72. package/dist/http/index.js.map +1 -1
  73. package/dist/kernel/index.js +2 -2
  74. package/dist/kernel/index.js.map +1 -1
  75. package/dist/server/index.js +3 -3
  76. package/dist/server/index.js.map +3 -3
  77. package/dist/services/index.js +73 -62
  78. package/dist/services/index.js.map +16 -5
  79. package/package.json +1 -1
  80. package/dist/chunk-5m78hjpk.js +0 -4
  81. package/dist/chunk-kzy1nms9.js +0 -4
  82. package/dist/chunk-z888cx42.js +0 -4
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{w as mZ}from"./chunk-r6vh3qxg.js";import{Dc as hZ}from"./chunk-60mzpg9p.js";import{Fc as zJ,Gc as H1}from"./chunk-13270da5.js";var FJ=zJ((xJ)=>{Object.defineProperty(xJ,"__esModule",{value:!0});var fJ=mZ();function cZ(Z){return{sourceType:fJ.getOption(Z,"sourceType","module"),strictMode:fJ.getOption(Z,"strictMode",!1),allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,startLine:1,tokens:!0,plugins:["asyncGenerators","bigInt","classPrivateMethods","classPrivateProperties","classProperties","classStaticBlock","decimal","decorators-legacy","doExpressions","dynamicImport","exportDefaultFrom","exportExtensions","exportNamespaceFrom","functionBind","functionSent","importAssertions","importMeta","nullishCoalescingOperator","numericSeparator","objectRestSpread","optionalCatchBinding","optionalChaining",["pipelineOperator",{proposal:"minimal"}],["recordAndTuple",{syntaxType:"hash"}],"throwExpressions","topLevelAwait","v8intrinsic"]}}xJ.default=cZ});var gZ=zJ((LZ)=>{Object.defineProperty(LZ,"__esModule",{value:!0});function pZ(Z,X){if(Z==null)return{};var J={};for(var Q in Z)if({}.hasOwnProperty.call(Z,Q)){if(X.indexOf(Q)!==-1)continue;J[Q]=Z[Q]}return J}class E{constructor(Z,X,J){this.line=void 0,this.column=void 0,this.index=void 0,this.line=Z,this.column=X,this.index=J}}class QJ{constructor(Z,X){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=Z,this.end=X}}function w(Z,X){let{line:J,column:Q,index:V}=Z;return new E(J,Q+X,V+X)}var yJ="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",iZ={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:yJ},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:yJ}},mJ={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},UJ=(Z)=>Z.type==="UpdateExpression"?mJ.UpdateExpression[`${Z.prefix}`]:mJ[Z.type],dZ={AccessorIsGenerator:({kind:Z})=>`A ${Z}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:Z})=>`Missing initializer in ${Z} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:Z})=>`\`${Z}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:Z})=>`'import.${Z}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:Z,exportName:X})=>`A string literal cannot be used as an exported binding without \`from\`.
2
+ import{w as mZ}from"./chunk-c3s0zqhy.js";import{Ac as hZ}from"./chunk-47xbr7nj.js";import{Cc as zJ,Dc as H1}from"./chunk-ebcx322z.js";var FJ=zJ((xJ)=>{Object.defineProperty(xJ,"__esModule",{value:!0});var fJ=mZ();function cZ(Z){return{sourceType:fJ.getOption(Z,"sourceType","module"),strictMode:fJ.getOption(Z,"strictMode",!1),allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,startLine:1,tokens:!0,plugins:["asyncGenerators","bigInt","classPrivateMethods","classPrivateProperties","classProperties","classStaticBlock","decimal","decorators-legacy","doExpressions","dynamicImport","exportDefaultFrom","exportExtensions","exportNamespaceFrom","functionBind","functionSent","importAssertions","importMeta","nullishCoalescingOperator","numericSeparator","objectRestSpread","optionalCatchBinding","optionalChaining",["pipelineOperator",{proposal:"minimal"}],["recordAndTuple",{syntaxType:"hash"}],"throwExpressions","topLevelAwait","v8intrinsic"]}}xJ.default=cZ});var gZ=zJ((LZ)=>{Object.defineProperty(LZ,"__esModule",{value:!0});function pZ(Z,X){if(Z==null)return{};var J={};for(var Q in Z)if({}.hasOwnProperty.call(Z,Q)){if(X.indexOf(Q)!==-1)continue;J[Q]=Z[Q]}return J}class E{constructor(Z,X,J){this.line=void 0,this.column=void 0,this.index=void 0,this.line=Z,this.column=X,this.index=J}}class QJ{constructor(Z,X){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=Z,this.end=X}}function w(Z,X){let{line:J,column:Q,index:V}=Z;return new E(J,Q+X,V+X)}var yJ="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",iZ={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:yJ},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:yJ}},mJ={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},UJ=(Z)=>Z.type==="UpdateExpression"?mJ.UpdateExpression[`${Z.prefix}`]:mJ[Z.type],dZ={AccessorIsGenerator:({kind:Z})=>`A ${Z}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:Z})=>`Missing initializer in ${Z} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:Z})=>`\`${Z}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:Z})=>`'import.${Z}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:Z,exportName:X})=>`A string literal cannot be used as an exported binding without \`from\`.
3
3
  - Did you mean \`export { '${Z}' as '${X}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:Z})=>`'${Z==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:Z})=>`Unsyntactic ${Z==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:Z})=>`A string literal cannot be used as an imported binding.
4
4
  - Did you mean \`import { "${Z}" 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.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:Z})=>`Expected number in radix ${Z}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:Z})=>`Escape sequence in keyword ${Z}.`,InvalidIdentifier:({identifierName:Z})=>`Invalid identifier ${Z}.`,InvalidLhs:({ancestor:Z})=>`Invalid left-hand side in ${UJ(Z)}.`,InvalidLhsBinding:({ancestor:Z})=>`Binding invalid left-hand side in ${UJ(Z)}.`,InvalidLhsOptionalChaining:({ancestor:Z})=>`Invalid optional chaining in the left-hand side of ${UJ(Z)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:Z})=>`Unexpected character '${Z}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:Z})=>`Private name #${Z} 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:Z})=>`Label '${Z}' 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:Z})=>`This experimental syntax requires enabling the parser plugin: ${Z.map((X)=>JSON.stringify(X)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:Z})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${Z.map((X)=>JSON.stringify(X)).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:Z})=>`Duplicate key "${Z}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:Z})=>`An export name cannot include a lone surrogate, found '\\u${Z.toString(16)}'.`,ModuleExportUndefined:({localName:Z})=>`Export '${Z}' 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:Z})=>`Private names are only allowed in property accesses (\`obj.#${Z}\`) or in \`in\` expressions (\`#${Z} in obj\`).`,PrivateNameRedeclaration:({identifierName:Z})=>`Duplicate private name #${Z}.`,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:Z})=>`Unexpected keyword '${Z}'.`,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:Z})=>`Unexpected reserved word '${Z}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:Z,unexpected:X})=>`Unexpected token${X?` '${X}'.`:""}${Z?`, expected "${Z}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:Z,onlyValidPropertyName:X})=>`The only valid meta property for ${Z} is ${Z}.${X}.`,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:Z})=>`Identifier '${Z}' has already been declared.`,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."},aZ={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:Z})=>`Assigning to '${Z}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:Z})=>`Binding '${Z}' 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."},tZ=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),nZ=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:Z})=>`Invalid topic token ${Z}. In order to use ${Z} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${Z}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:Z})=>`Hack-style pipe body cannot be an unparenthesized ${UJ({type:Z})}; 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.'}),sZ=["message"];function cJ(Z,X,J){Object.defineProperty(Z,X,{enumerable:!1,configurable:!0,value:J})}function rZ({toMessage:Z,code:X,reasonCode:J,syntaxPlugin:Q}){let V=J==="MissingPlugin"||J==="MissingOneOfPlugins";{let Y={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(Y[J])J=Y[J]}return function Y(W,z){let j=new SyntaxError;if(j.code=X,j.reasonCode=J,j.loc=W,j.pos=W.index,j.syntaxPlugin=Q,V)j.missingPlugin=z.missingPlugin;return cJ(j,"clone",function R(q={}){var H;let{line:K,column:$,index:B}=(H=q.loc)!=null?H:W;return Y(new E(K,$,B),Object.assign({},z,q.details))}),cJ(j,"details",z),Object.defineProperty(j,"message",{configurable:!0,get(){let R=`${Z(z)} (${W.line}:${W.column})`;return this.message=R,R},set(R){Object.defineProperty(this,"message",{value:R,writable:!0})}}),j}}function u(Z,X){if(Array.isArray(Z))return(Q)=>u(Q,Z[0]);let J={};for(let Q of Object.keys(Z)){let V=Z[Q],Y=typeof V==="string"?{message:()=>V}:typeof V==="function"?{message:V}:V,{message:W}=Y,z=pZ(Y,sZ),j=typeof W==="string"?()=>W:W;J[Q]=rZ(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:Q,toMessage:j},X?{syntaxPlugin:X}:{},z))}return J}var U=Object.assign({},u(iZ),u(dZ),u(aZ),u`pipelineOperator`(nZ));function oZ(){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:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function eZ(Z){let X=oZ();if(Z==null)return X;if(Z.annexB!=null&&Z.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let J of Object.keys(X))if(Z[J]!=null)X[J]=Z[J];if(X.startLine===1){if(Z.startIndex==null&&X.startColumn>0)X.startIndex=X.startColumn;else if(Z.startColumn==null&&X.startIndex>0)X.startColumn=X.startIndex}else if(Z.startColumn==null||Z.startIndex==null){if(Z.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}return X}var{defineProperty:J0}=Object,lJ=(Z,X)=>{if(Z)J0(Z,X,{enumerable:!1,value:Z[X]})};function n(Z){return lJ(Z.loc.start,"index"),lJ(Z.loc.end,"index"),Z}var Z0=(Z)=>class X extends Z{parse(){let J=n(super.parse());if(this.optionFlags&256)J.tokens=J.tokens.map(n);return J}parseRegExpLiteral({pattern:J,flags:Q}){let V=null;try{V=new RegExp(J,Q)}catch(W){}let Y=this.estreeParseLiteral(V);return Y.regex={pattern:J,flags:Q},Y}parseBigIntLiteral(J){let Q;try{Q=BigInt(J)}catch(Y){Q=null}let V=this.estreeParseLiteral(Q);return V.bigint=String(V.value||J),V}parseDecimalLiteral(J){let V=this.estreeParseLiteral(null);return V.decimal=String(V.value||J),V}estreeParseLiteral(J){return this.parseLiteral(J,"Literal")}parseStringLiteral(J){return this.estreeParseLiteral(J)}parseNumericLiteral(J){return this.estreeParseLiteral(J)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(J){return this.estreeParseLiteral(J)}directiveToStmt(J){let Q=J.value;delete J.value,Q.type="Literal",Q.raw=Q.extra.raw,Q.value=Q.extra.expressionValue;let V=J;return V.type="ExpressionStatement",V.expression=Q,V.directive=Q.extra.rawValue,delete Q.extra,V}initFunction(J,Q){super.initFunction(J,Q),J.expression=!1}checkDeclaration(J){if(J!=null&&this.isObjectProperty(J))this.checkDeclaration(J.value);else super.checkDeclaration(J)}getObjectOrClassMethodParams(J){return J.value.params}isValidDirective(J){var Q;return J.type==="ExpressionStatement"&&J.expression.type==="Literal"&&typeof J.expression.value==="string"&&!((Q=J.expression.extra)!=null&&Q.parenthesized)}parseBlockBody(J,Q,V,Y,W){super.parseBlockBody(J,Q,V,Y,W);let z=J.directives.map((j)=>this.directiveToStmt(j));J.body=z.concat(J.body),delete J.directives}parsePrivateName(){let J=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return J;return this.convertPrivateNameToPrivateIdentifier(J)}convertPrivateNameToPrivateIdentifier(J){let Q=super.getPrivateNameSV(J);return J=J,delete J.id,J.name=Q,J.type="PrivateIdentifier",J}isPrivateName(J){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(J);return J.type==="PrivateIdentifier"}getPrivateNameSV(J){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(J);return J.name}parseLiteral(J,Q){let V=super.parseLiteral(J,Q);return V.raw=V.extra.raw,delete V.extra,V}parseFunctionBody(J,Q,V=!1){super.parseFunctionBody(J,Q,V),J.expression=J.body.type!=="BlockStatement"}parseMethod(J,Q,V,Y,W,z,j=!1){let R=this.startNode();R.kind=J.kind,R=super.parseMethod(R,Q,V,Y,W,z,j),R.type="FunctionExpression",delete R.kind,J.value=R;let{typeParameters:q}=J;if(q)delete J.typeParameters,R.typeParameters=q,this.resetStartLocationFromNode(R,q);if(z==="ClassPrivateMethod")J.computed=!1;return this.finishNode(J,"MethodDefinition")}nameIsConstructor(J){if(J.type==="Literal")return J.value==="constructor";return super.nameIsConstructor(J)}parseClassProperty(...J){let Q=super.parseClassProperty(...J);if(!this.getPluginOption("estree","classFeatures"))return Q;return Q.type="PropertyDefinition",Q}parseClassPrivateProperty(...J){let Q=super.parseClassPrivateProperty(...J);if(!this.getPluginOption("estree","classFeatures"))return Q;return Q.type="PropertyDefinition",Q.computed=!1,Q}parseClassAccessorProperty(J){let Q=super.parseClassAccessorProperty(J);if(!this.getPluginOption("estree","classFeatures"))return Q;return Q.type="AccessorProperty",Q}parseObjectMethod(J,Q,V,Y,W){let z=super.parseObjectMethod(J,Q,V,Y,W);if(z){if(z.type="Property",z.kind==="method")z.kind="init";z.shorthand=!1}return z}parseObjectProperty(J,Q,V,Y){let W=super.parseObjectProperty(J,Q,V,Y);if(W)W.kind="init",W.type="Property";return W}isValidLVal(J,Q,V){return J==="Property"?"value":super.isValidLVal(J,Q,V)}isAssignable(J,Q){if(J!=null&&this.isObjectProperty(J))return this.isAssignable(J.value,Q);return super.isAssignable(J,Q)}toAssignable(J,Q=!1){if(J!=null&&this.isObjectProperty(J)){let{key:V,value:Y}=J;if(this.isPrivateName(V))this.classScope.usePrivateName(this.getPrivateNameSV(V),V.loc.start);this.toAssignable(Y,Q)}else super.toAssignable(J,Q)}toAssignableObjectExpressionProp(J,Q,V){if(J.type==="Property"&&(J.kind==="get"||J.kind==="set"))this.raise(U.PatternHasAccessor,J.key);else if(J.type==="Property"&&J.method)this.raise(U.PatternHasMethod,J.key);else super.toAssignableObjectExpressionProp(J,Q,V)}finishCallExpression(J,Q){let V=super.finishCallExpression(J,Q);if(V.callee.type==="Import"){var Y,W;V.type="ImportExpression",V.source=V.arguments[0],V.options=(Y=V.arguments[1])!=null?Y:null,V.attributes=(W=V.arguments[1])!=null?W:null,delete V.arguments,delete V.callee}return V}toReferencedArguments(J){if(J.type==="ImportExpression")return;super.toReferencedArguments(J)}parseExport(J,Q){let V=this.state.lastTokStartLoc,Y=super.parseExport(J,Q);switch(Y.type){case"ExportAllDeclaration":Y.exported=null;break;case"ExportNamedDeclaration":if(Y.specifiers.length===1&&Y.specifiers[0].type==="ExportNamespaceSpecifier")Y.type="ExportAllDeclaration",Y.exported=Y.specifiers[0].exported,delete Y.specifiers;case"ExportDefaultDeclaration":{var W;let{declaration:z}=Y;if((z==null?void 0:z.type)==="ClassDeclaration"&&((W=z.decorators)==null?void 0:W.length)>0&&z.start===Y.start)this.resetStartLocation(Y,V)}break}return Y}parseSubscript(J,Q,V,Y){let W=super.parseSubscript(J,Q,V,Y);if(Y.optionalChainMember){if(W.type==="OptionalMemberExpression"||W.type==="OptionalCallExpression")W.type=W.type.substring(8);if(Y.stop){let z=this.startNodeAtNode(W);return z.expression=W,this.finishNode(z,"ChainExpression")}}else if(W.type==="MemberExpression"||W.type==="CallExpression")W.optional=!1;return W}isOptionalMemberExpression(J){if(J.type==="ChainExpression")return J.expression.type==="MemberExpression";return super.isOptionalMemberExpression(J)}hasPropertyAsPrivateName(J){if(J.type==="ChainExpression")J=J.expression;return super.hasPropertyAsPrivateName(J)}isObjectProperty(J){return J.type==="Property"&&J.kind==="init"&&!J.method}isObjectMethod(J){return J.type==="Property"&&(J.method||J.kind==="get"||J.kind==="set")}finishNodeAt(J,Q,V){return n(super.finishNodeAt(J,Q,V))}resetStartLocation(J,Q){super.resetStartLocation(J,Q),n(J)}resetEndLocation(J,Q=this.state.lastTokEndLoc){super.resetEndLocation(J,Q),n(J)}};class p{constructor(Z,X){this.token=void 0,this.preserveSpace=void 0,this.token=Z,this.preserveSpace=!!X}}var C={brace:new p("{"),j_oTag:new p("<tag"),j_cTag:new p("</tag"),j_expr:new p("<tag>...</tag>",!0)};C.template=new p("`",!0);var T=!0,G=!0,OJ=!0,s=!0,x=!0,Q0=!0;class NJ{constructor(Z,X={}){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=Z,this.keyword=X.keyword,this.beforeExpr=!!X.beforeExpr,this.startsExpr=!!X.startsExpr,this.rightAssociative=!!X.rightAssociative,this.isLoop=!!X.isLoop,this.isAssign=!!X.isAssign,this.prefix=!!X.prefix,this.postfix=!!X.postfix,this.binop=X.binop!=null?X.binop:null,this.updateContext=null}}var IJ=new Map;function v(Z,X={}){X.keyword=Z;let J=O(Z,X);return IJ.set(Z,J),J}function P(Z,X){return O(Z,{beforeExpr:T,binop:X})}var JJ=-1,h=[],MJ=[],AJ=[],SJ=[],PJ=[],wJ=[];function O(Z,X={}){var J,Q,V,Y;return++JJ,MJ.push(Z),AJ.push((J=X.binop)!=null?J:-1),SJ.push((Q=X.beforeExpr)!=null?Q:!1),PJ.push((V=X.startsExpr)!=null?V:!1),wJ.push((Y=X.prefix)!=null?Y:!1),h.push(new NJ(Z,X)),JJ}function D(Z,X={}){var J,Q,V,Y;return++JJ,IJ.set(Z,JJ),MJ.push(Z),AJ.push((J=X.binop)!=null?J:-1),SJ.push((Q=X.beforeExpr)!=null?Q:!1),PJ.push((V=X.startsExpr)!=null?V:!1),wJ.push((Y=X.prefix)!=null?Y:!1),h.push(new NJ("name",X)),JJ}var X0={bracketL:O("[",{beforeExpr:T,startsExpr:G}),bracketHashL:O("#[",{beforeExpr:T,startsExpr:G}),bracketBarL:O("[|",{beforeExpr:T,startsExpr:G}),bracketR:O("]"),bracketBarR:O("|]"),braceL:O("{",{beforeExpr:T,startsExpr:G}),braceBarL:O("{|",{beforeExpr:T,startsExpr:G}),braceHashL:O("#{",{beforeExpr:T,startsExpr:G}),braceR:O("}"),braceBarR:O("|}"),parenL:O("(",{beforeExpr:T,startsExpr:G}),parenR:O(")"),comma:O(",",{beforeExpr:T}),semi:O(";",{beforeExpr:T}),colon:O(":",{beforeExpr:T}),doubleColon:O("::",{beforeExpr:T}),dot:O("."),question:O("?",{beforeExpr:T}),questionDot:O("?."),arrow:O("=>",{beforeExpr:T}),template:O("template"),ellipsis:O("...",{beforeExpr:T}),backQuote:O("`",{startsExpr:G}),dollarBraceL:O("${",{beforeExpr:T,startsExpr:G}),templateTail:O("...`",{startsExpr:G}),templateNonTail:O("...${",{beforeExpr:T,startsExpr:G}),at:O("@"),hash:O("#",{startsExpr:G}),interpreterDirective:O("#!..."),eq:O("=",{beforeExpr:T,isAssign:s}),assign:O("_=",{beforeExpr:T,isAssign:s}),slashAssign:O("_=",{beforeExpr:T,isAssign:s}),xorAssign:O("_=",{beforeExpr:T,isAssign:s}),moduloAssign:O("_=",{beforeExpr:T,isAssign:s}),incDec:O("++/--",{prefix:x,postfix:Q0,startsExpr:G}),bang:O("!",{beforeExpr:T,prefix:x,startsExpr:G}),tilde:O("~",{beforeExpr:T,prefix:x,startsExpr:G}),doubleCaret:O("^^",{startsExpr:G}),doubleAt:O("@@",{startsExpr:G}),pipeline:P("|>",0),nullishCoalescing:P("??",1),logicalOR:P("||",1),logicalAND:P("&&",2),bitwiseOR:P("|",3),bitwiseXOR:P("^",4),bitwiseAND:P("&",5),equality:P("==/!=/===/!==",6),lt:P("</>/<=/>=",7),gt:P("</>/<=/>=",7),relational:P("</>/<=/>=",7),bitShift:P("<</>>/>>>",8),bitShiftL:P("<</>>/>>>",8),bitShiftR:P("<</>>/>>>",8),plusMin:O("+/-",{beforeExpr:T,binop:9,prefix:x,startsExpr:G}),modulo:O("%",{binop:10,startsExpr:G}),star:O("*",{binop:10}),slash:P("/",10),exponent:O("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:v("in",{beforeExpr:T,binop:7}),_instanceof:v("instanceof",{beforeExpr:T,binop:7}),_break:v("break"),_case:v("case",{beforeExpr:T}),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",{beforeExpr:T}),_else:v("else",{beforeExpr:T}),_finally:v("finally"),_function:v("function",{startsExpr:G}),_if:v("if"),_return:v("return",{beforeExpr:T}),_switch:v("switch"),_throw:v("throw",{beforeExpr:T,prefix:x,startsExpr:G}),_try:v("try"),_var:v("var"),_const:v("const"),_with:v("with"),_new:v("new",{beforeExpr:T,startsExpr:G}),_this:v("this",{startsExpr:G}),_super:v("super",{startsExpr:G}),_class:v("class",{startsExpr:G}),_extends:v("extends",{beforeExpr:T}),_export:v("export"),_import:v("import",{startsExpr:G}),_null:v("null",{startsExpr:G}),_true:v("true",{startsExpr:G}),_false:v("false",{startsExpr:G}),_typeof:v("typeof",{beforeExpr:T,prefix:x,startsExpr:G}),_void:v("void",{beforeExpr:T,prefix:x,startsExpr:G}),_delete:v("delete",{beforeExpr:T,prefix:x,startsExpr:G}),_do:v("do",{isLoop:OJ,beforeExpr:T}),_for:v("for",{isLoop:OJ}),_while:v("while",{isLoop:OJ}),_as:D("as",{startsExpr:G}),_assert:D("assert",{startsExpr:G}),_async:D("async",{startsExpr:G}),_await:D("await",{startsExpr:G}),_defer:D("defer",{startsExpr:G}),_from:D("from",{startsExpr:G}),_get:D("get",{startsExpr:G}),_let:D("let",{startsExpr:G}),_meta:D("meta",{startsExpr:G}),_of:D("of",{startsExpr:G}),_sent:D("sent",{startsExpr:G}),_set:D("set",{startsExpr:G}),_source:D("source",{startsExpr:G}),_static:D("static",{startsExpr:G}),_using:D("using",{startsExpr:G}),_yield:D("yield",{startsExpr:G}),_asserts:D("asserts",{startsExpr:G}),_checks:D("checks",{startsExpr:G}),_exports:D("exports",{startsExpr:G}),_global:D("global",{startsExpr:G}),_implements:D("implements",{startsExpr:G}),_intrinsic:D("intrinsic",{startsExpr:G}),_infer:D("infer",{startsExpr:G}),_is:D("is",{startsExpr:G}),_mixins:D("mixins",{startsExpr:G}),_proto:D("proto",{startsExpr:G}),_require:D("require",{startsExpr:G}),_satisfies:D("satisfies",{startsExpr:G}),_keyof:D("keyof",{startsExpr:G}),_readonly:D("readonly",{startsExpr:G}),_unique:D("unique",{startsExpr:G}),_abstract:D("abstract",{startsExpr:G}),_declare:D("declare",{startsExpr:G}),_enum:D("enum",{startsExpr:G}),_module:D("module",{startsExpr:G}),_namespace:D("namespace",{startsExpr:G}),_interface:D("interface",{startsExpr:G}),_type:D("type",{startsExpr:G}),_opaque:D("opaque",{startsExpr:G}),name:O("name",{startsExpr:G}),placeholder:O("%%",{startsExpr:!0}),string:O("string",{startsExpr:G}),num:O("num",{startsExpr:G}),bigint:O("bigint",{startsExpr:G}),decimal:O("decimal",{startsExpr:G}),regexp:O("regexp",{startsExpr:G}),privateName:O("#name",{startsExpr:G}),eof:O("eof"),jsxName:O("jsxName"),jsxText:O("jsxText",{beforeExpr:!0}),jsxTagStart:O("jsxTagStart",{startsExpr:!0}),jsxTagEnd:O("jsxTagEnd")};function N(Z){return Z>=93&&Z<=133}function V0(Z){return Z<=92}function k(Z){return Z>=58&&Z<=133}function ZZ(Z){return Z>=58&&Z<=137}function Y0(Z){return SJ[Z]}function o(Z){return PJ[Z]}function W0(Z){return Z>=29&&Z<=33}function pJ(Z){return Z>=129&&Z<=131}function z0(Z){return Z>=90&&Z<=92}function kJ(Z){return Z>=58&&Z<=92}function j0(Z){return Z>=39&&Z<=59}function R0(Z){return Z===34}function U0(Z){return wJ[Z]}function q0(Z){return Z>=121&&Z<=123}function H0(Z){return Z>=124&&Z<=130}function m(Z){return MJ[Z]}function qJ(Z){return AJ[Z]}function K0(Z){return Z===57}function KJ(Z){return Z>=24&&Z<=25}function L(Z){return h[Z]}h[8].updateContext=(Z)=>{Z.pop()},h[5].updateContext=h[7].updateContext=h[23].updateContext=(Z)=>{Z.push(C.brace)},h[22].updateContext=(Z)=>{if(Z[Z.length-1]===C.template)Z.pop();else Z.push(C.template)},h[143].updateContext=(Z)=>{Z.push(C.j_expr,C.j_oTag)};var LJ="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",QZ="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",G0=new RegExp("["+LJ+"]"),$0=new RegExp("["+LJ+QZ+"]");LJ=QZ=null;var XZ=[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,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,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,328,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,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],F0=[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,80,3,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,343,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,330,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,726,6,110,6,6,9,4759,9,787719,239];function vJ(Z,X){let J=65536;for(let Q=0,V=X.length;Q<V;Q+=2){if(J+=X[Q],J>Z)return!1;if(J+=X[Q+1],J>=Z)return!0}return!1}function b(Z){if(Z<65)return Z===36;if(Z<=90)return!0;if(Z<97)return Z===95;if(Z<=122)return!0;if(Z<=65535)return Z>=170&&G0.test(String.fromCharCode(Z));return vJ(Z,XZ)}function d(Z){if(Z<48)return Z===36;if(Z<58)return!0;if(Z<65)return!1;if(Z<=90)return!0;if(Z<97)return Z===95;if(Z<=122)return!0;if(Z<=65535)return Z>=170&&$0.test(String.fromCharCode(Z));return vJ(Z,XZ)||vJ(Z,F0)}var gJ={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"]},O0=new Set(gJ.keyword),_0=new Set(gJ.strict),B0=new Set(gJ.strictBind);function VZ(Z,X){return X&&Z==="await"||Z==="enum"}function YZ(Z,X){return VZ(Z,X)||_0.has(Z)}function WZ(Z){return B0.has(Z)}function zZ(Z,X){return YZ(Z,X)||WZ(Z)}function D0(Z){return O0.has(Z)}function T0(Z,X,J){return Z===64&&X===64&&b(J)}var v0=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 C0(Z){return v0.has(Z)}class GJ{constructor(Z){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=Z}}class $J{constructor(Z,X){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=Z,this.inModule=X}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let Z=this.currentThisScopeFlags();return(Z&64)>0&&(Z&2)===0}get inStaticBlock(){for(let Z=this.scopeStack.length-1;;Z--){let{flags:X}=this.scopeStack[Z];if(X&128)return!0;if(X&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(Z){return new GJ(Z)}enter(Z){this.scopeStack.push(this.createScope(Z))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(Z){return!!(Z.flags&130||!this.parser.inModule&&Z.flags&1)}declareName(Z,X,J){let Q=this.currentScope();if(X&8||X&16){this.checkRedeclarationInScope(Q,Z,X,J);let V=Q.names.get(Z)||0;if(X&16)V=V|4;else{if(!Q.firstLexicalName)Q.firstLexicalName=Z;V=V|2}if(Q.names.set(Z,V),X&8)this.maybeExportDefined(Q,Z)}else if(X&4){for(let V=this.scopeStack.length-1;V>=0;--V)if(Q=this.scopeStack[V],this.checkRedeclarationInScope(Q,Z,X,J),Q.names.set(Z,(Q.names.get(Z)||0)|1),this.maybeExportDefined(Q,Z),Q.flags&387)break}if(this.parser.inModule&&Q.flags&1)this.undefinedExports.delete(Z)}maybeExportDefined(Z,X){if(this.parser.inModule&&Z.flags&1)this.undefinedExports.delete(X)}checkRedeclarationInScope(Z,X,J,Q){if(this.isRedeclaredInScope(Z,X,J))this.parser.raise(U.VarRedeclaration,Q,{identifierName:X})}isRedeclaredInScope(Z,X,J){if(!(J&1))return!1;if(J&8)return Z.names.has(X);let Q=Z.names.get(X);if(J&16)return(Q&2)>0||!this.treatFunctionsAsVarInScope(Z)&&(Q&1)>0;return(Q&2)>0&&!(Z.flags&8&&Z.firstLexicalName===X)||!this.treatFunctionsAsVarInScope(Z)&&(Q&4)>0}checkLocalExport(Z){let{name:X}=Z;if(!this.scopeStack[0].names.has(X))this.undefinedExports.set(X,Z.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let Z=this.scopeStack.length-1;;Z--){let{flags:X}=this.scopeStack[Z];if(X&387)return X}}currentThisScopeFlags(){for(let Z=this.scopeStack.length-1;;Z--){let{flags:X}=this.scopeStack[Z];if(X&451&&!(X&4))return X}}}class jZ extends GJ{constructor(...Z){super(...Z);this.declareFunctions=new Set}}class RZ extends $J{createScope(Z){return new jZ(Z)}declareName(Z,X,J){let Q=this.currentScope();if(X&2048){this.checkRedeclarationInScope(Q,Z,X,J),this.maybeExportDefined(Q,Z),Q.declareFunctions.add(Z);return}super.declareName(Z,X,J)}isRedeclaredInScope(Z,X,J){if(super.isRedeclaredInScope(Z,X,J))return!0;if(J&2048&&!Z.declareFunctions.has(X)){let Q=Z.names.get(X);return(Q&4)>0||(Q&2)>0}return!1}checkLocalExport(Z){if(!this.scopeStack[0].declareFunctions.has(Z.name))super.checkLocalExport(Z)}}class UZ{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(Z){return Z+this.startIndex}offsetToSourcePos(Z){return Z-this.startIndex}hasPlugin(Z){if(typeof Z==="string")return this.plugins.has(Z);else{let[X,J]=Z;if(!this.hasPlugin(X))return!1;let Q=this.plugins.get(X);for(let V of Object.keys(J))if((Q==null?void 0:Q[V])!==J[V])return!1;return!0}}getPluginOption(Z,X){var J;return(J=this.plugins.get(Z))==null?void 0:J[X]}}function qZ(Z,X){if(Z.trailingComments===void 0)Z.trailingComments=X;else Z.trailingComments.unshift(...X)}function N0(Z,X){if(Z.leadingComments===void 0)Z.leadingComments=X;else Z.leadingComments.unshift(...X)}function XJ(Z,X){if(Z.innerComments===void 0)Z.innerComments=X;else Z.innerComments.unshift(...X)}function c(Z,X,J){let Q=null,V=X.length;while(Q===null&&V>0)Q=X[--V];if(Q===null||Q.start>J.start)XJ(Z,J.comments);else qZ(Q,J.comments)}class HZ extends UZ{addComment(Z){if(this.filename)Z.loc.filename=this.filename;let{commentsLen:X}=this.state;if(this.comments.length!==X)this.comments.length=X;this.comments.push(Z),this.state.commentsLen++}processComment(Z){let{commentStack:X}=this.state,J=X.length;if(J===0)return;let Q=J-1,V=X[Q];if(V.start===Z.end)V.leadingNode=Z,Q--;let{start:Y}=Z;for(;Q>=0;Q--){let W=X[Q],z=W.end;if(z>Y)W.containingNode=Z,this.finalizeComment(W),X.splice(Q,1);else{if(z===Y)W.trailingNode=Z;break}}}finalizeComment(Z){let{comments:X}=Z;if(Z.leadingNode!==null||Z.trailingNode!==null){if(Z.leadingNode!==null)qZ(Z.leadingNode,X);if(Z.trailingNode!==null)N0(Z.trailingNode,X)}else{let{containingNode:J,start:Q}=Z;if(this.input.charCodeAt(this.offsetToSourcePos(Q)-1)===44)switch(J.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":c(J,J.properties,Z);break;case"CallExpression":case"OptionalCallExpression":c(J,J.arguments,Z);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":c(J,J.params,Z);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":c(J,J.elements,Z);break;case"ExportNamedDeclaration":case"ImportDeclaration":c(J,J.specifiers,Z);break;case"TSEnumDeclaration":c(J,J.members,Z);break;case"TSEnumBody":c(J,J.members,Z);break;default:XJ(J,X)}else XJ(J,X)}}finalizeRemainingComments(){let{commentStack:Z}=this.state;for(let X=Z.length-1;X>=0;X--)this.finalizeComment(Z[X]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(Z){let{commentStack:X}=this.state,{length:J}=X;if(J===0)return;let Q=X[J-1];if(Q.leadingNode===Z)Q.leadingNode=null}resetPreviousIdentifierLeadingComments(Z){let{commentStack:X}=this.state,{length:J}=X;if(J===0)return;if(X[J-1].trailingNode===Z)X[J-1].trailingNode=null;else if(J>=2&&X[J-2].trailingNode===Z)X[J-2].trailingNode=null}takeSurroundingComments(Z,X,J){let{commentStack:Q}=this.state,V=Q.length;if(V===0)return;let Y=V-1;for(;Y>=0;Y--){let W=Q[Y],z=W.end;if(W.start===J)W.leadingNode=Z;else if(z===X)W.trailingNode=Z;else if(z<X)break}}}var I0=/\r\n|[\r\n\u2028\u2029]/,jJ=new RegExp(I0.source,"g");function a(Z){switch(Z){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function iJ(Z,X,J){for(let Q=X;Q<J;Q++)if(a(Z.charCodeAt(Q)))return!0;return!1}var _J=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,BJ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function M0(Z){switch(Z){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}}class hJ{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=[C.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(Z){if(Z)this.flags|=1;else this.flags&=-2}init({strictMode:Z,sourceType:X,startIndex:J,startLine:Q,startColumn:V}){this.strict=Z===!1?!1:Z===!0?!0:X==="module",this.startIndex=J,this.curLine=Q,this.lineStart=-V,this.startLoc=this.endLoc=new E(Q,V,J)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(Z){if(Z)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(Z){if(Z)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(Z){if(Z)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(Z){if(Z)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(Z){if(Z)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(Z){if(Z)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(Z){if(Z)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(Z){if(Z)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(Z){if(Z)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(Z){if(Z)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(Z){if(Z)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(Z){if(Z)this.flags|=4096;else this.flags&=-4097}curPosition(){return new E(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let Z=new hJ;return Z.flags=this.flags,Z.startIndex=this.startIndex,Z.curLine=this.curLine,Z.lineStart=this.lineStart,Z.startLoc=this.startLoc,Z.endLoc=this.endLoc,Z.errors=this.errors.slice(),Z.potentialArrowAt=this.potentialArrowAt,Z.noArrowAt=this.noArrowAt.slice(),Z.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),Z.topicContext=this.topicContext,Z.labels=this.labels.slice(),Z.commentsLen=this.commentsLen,Z.commentStack=this.commentStack.slice(),Z.pos=this.pos,Z.type=this.type,Z.value=this.value,Z.start=this.start,Z.end=this.end,Z.lastTokEndLoc=this.lastTokEndLoc,Z.lastTokStartLoc=this.lastTokStartLoc,Z.context=this.context.slice(),Z.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,Z.strictErrors=this.strictErrors,Z.tokensLength=this.tokensLength,Z}}var A0=function Z(X){return X>=48&&X<=57},dJ={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},RJ={bin:(Z)=>Z===48||Z===49,oct:(Z)=>Z>=48&&Z<=55,dec:(Z)=>Z>=48&&Z<=57,hex:(Z)=>Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102};function aJ(Z,X,J,Q,V,Y){let W=J,z=Q,j=V,R="",q=null,H=J,{length:K}=X;for(;;){if(J>=K){Y.unterminated(W,z,j),R+=X.slice(H,J);break}let $=X.charCodeAt(J);if(S0(Z,$,X,J)){R+=X.slice(H,J);break}if($===92){R+=X.slice(H,J);let B=P0(X,J,Q,V,Z==="template",Y);if(B.ch===null&&!q)q={pos:J,lineStart:Q,curLine:V};else R+=B.ch;({pos:J,lineStart:Q,curLine:V}=B),H=J}else if($===8232||$===8233)++J,++V,Q=J;else if($===10||$===13)if(Z==="template"){if(R+=X.slice(H,J)+`
5
5
  `,++J,$===13&&X.charCodeAt(J)===10)++J;++V,H=Q=J}else Y.unterminated(W,z,j);else++J}return{pos:J,str:R,firstInvalidLoc:q,lineStart:Q,curLine:V,containsInvalid:!!q}}function S0(Z,X,J,Q){if(Z==="template")return X===96||X===36&&J.charCodeAt(Q+1)===123;return X===(Z==="double"?34:39)}function P0(Z,X,J,Q,V,Y){let W=!V;X++;let z=(R)=>({pos:X,ch:R,lineStart:J,curLine:Q}),j=Z.charCodeAt(X++);switch(j){case 110:return z(`
@@ -8,4 +8,4 @@ import{w as mZ}from"./chunk-r6vh3qxg.js";import{Dc as hZ}from"./chunk-60mzpg9p.j
8
8
  `;else V=String.fromCharCode(Q);return++this.state.curLine,this.state.lineStart=this.state.pos,V}jsxReadString(J){let Q="",V=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(U.UnterminatedString,this.state.startLoc);let Y=this.input.charCodeAt(this.state.pos);if(Y===J)break;if(Y===38)Q+=this.input.slice(V,this.state.pos),Q+=this.jsxReadEntity(),V=this.state.pos;else if(a(Y))Q+=this.input.slice(V,this.state.pos),Q+=this.jsxReadNewLine(!1),V=this.state.pos;else++this.state.pos}Q+=this.input.slice(V,this.state.pos++),this.finishToken(134,Q)}jsxReadEntity(){let J=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Q=10;if(this.codePointAtPos(this.state.pos)===120)Q=16,++this.state.pos;let V=this.readInt(Q,void 0,!1,"bail");if(V!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(V)}else{let Q=0,V=!1;while(Q++<10&&this.state.pos<this.length&&!(V=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(V){let Y=this.input.slice(J,this.state.pos),W=c0[Y];if(++this.state.pos,W)return W}}return this.state.pos=J,"&"}jsxReadWord(){let J,Q=this.state.pos;do J=this.input.charCodeAt(++this.state.pos);while(d(J)||J===45);this.finishToken(141,this.input.slice(Q,this.state.pos))}jsxParseIdentifier(){let J=this.startNode();if(this.match(141))J.name=this.state.value;else if(kJ(this.state.type))J.name=m(this.state.type);else this.unexpected();return this.next(),this.finishNode(J,"JSXIdentifier")}jsxParseNamespacedName(){let J=this.state.startLoc,Q=this.jsxParseIdentifier();if(!this.eat(14))return Q;let V=this.startNodeAt(J);return V.namespace=Q,V.name=this.jsxParseIdentifier(),this.finishNode(V,"JSXNamespacedName")}jsxParseElementName(){let J=this.state.startLoc,Q=this.jsxParseNamespacedName();if(Q.type==="JSXNamespacedName")return Q;while(this.eat(16)){let V=this.startNodeAt(J);V.object=Q,V.property=this.jsxParseIdentifier(),Q=this.finishNode(V,"JSXMemberExpression")}return Q}jsxParseAttributeValue(){let J;switch(this.state.type){case 5:if(J=this.startNode(),this.setContext(C.brace),this.next(),J=this.jsxParseExpressionContainer(J,C.j_oTag),J.expression.type==="JSXEmptyExpression")this.raise(l.AttributeIsEmpty,J);return J;case 143:case 134:return this.parseExprAtom();default:throw this.raise(l.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let J=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(J,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(J){return this.next(),J.expression=this.parseExpression(),this.setContext(C.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXSpreadChild")}jsxParseExpressionContainer(J,Q){if(this.match(8))J.expression=this.jsxParseEmptyExpression();else{let V=this.parseExpression();J.expression=V}return this.setContext(Q),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXExpressionContainer")}jsxParseAttribute(){let J=this.startNode();if(this.match(5))return this.setContext(C.brace),this.next(),this.expect(21),J.argument=this.parseMaybeAssignAllowIn(),this.setContext(C.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXSpreadAttribute");return J.name=this.jsxParseNamespacedName(),J.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(J,"JSXAttribute")}jsxParseOpeningElementAt(J){let Q=this.startNodeAt(J);if(this.eat(144))return this.finishNode(Q,"JSXOpeningFragment");return Q.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Q)}jsxParseOpeningElementAfterName(J){let Q=[];while(!this.match(56)&&!this.match(144))Q.push(this.jsxParseAttribute());return J.attributes=Q,J.selfClosing=this.eat(56),this.expect(144),this.finishNode(J,"JSXOpeningElement")}jsxParseClosingElementAt(J){let Q=this.startNodeAt(J);if(this.eat(144))return this.finishNode(Q,"JSXClosingFragment");return Q.name=this.jsxParseElementName(),this.expect(144),this.finishNode(Q,"JSXClosingElement")}jsxParseElementAt(J){let Q=this.startNodeAt(J),V=[],Y=this.jsxParseOpeningElementAt(J),W=null;if(!Y.selfClosing){J:for(;;)switch(this.state.type){case 143:if(J=this.state.startLoc,this.next(),this.eat(56)){W=this.jsxParseClosingElementAt(J);break J}V.push(this.jsxParseElementAt(J));break;case 142:V.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let z=this.startNode();if(this.setContext(C.brace),this.next(),this.match(21))V.push(this.jsxParseSpreadChild(z));else V.push(this.jsxParseExpressionContainer(z,C.j_expr));break}default:this.unexpected()}if(y(Y)&&!y(W)&&W!==null)this.raise(l.MissingClosingTagFragment,W);else if(!y(Y)&&y(W))this.raise(l.MissingClosingTagElement,W,{openingTagName:i(Y.name)});else if(!y(Y)&&!y(W)){if(i(W.name)!==i(Y.name))this.raise(l.MissingClosingTagElement,W,{openingTagName:i(Y.name)})}}if(y(Y))Q.openingFragment=Y,Q.closingFragment=W;else Q.openingElement=Y,Q.closingElement=W;if(Q.children=V,this.match(47))throw this.raise(l.UnwrappedAdjacentJSXElements,this.state.startLoc);return y(Y)?this.finishNode(Q,"JSXFragment"):this.finishNode(Q,"JSXElement")}jsxParseElement(){let J=this.state.startLoc;return this.next(),this.jsxParseElementAt(J)}setContext(J){let{context:Q}=this.state;Q[Q.length-1]=J}parseExprAtom(J){if(this.match(143))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(143),this.jsxParseElement();else return super.parseExprAtom(J)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(J){let Q=this.curContext();if(Q===C.j_expr){this.jsxReadToken();return}if(Q===C.j_oTag||Q===C.j_cTag){if(b(J)){this.jsxReadWord();return}if(J===62){++this.state.pos,this.finishToken(144);return}if((J===34||J===39)&&Q===C.j_oTag){this.jsxReadString(J);return}}if(J===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(J)}updateContext(J){let{context:Q,type:V}=this.state;if(V===56&&J===143)Q.splice(-2,2,C.j_cTag),this.state.canStartJSXElement=!1;else if(V===143)Q.push(C.j_oTag);else if(V===144){let Y=Q[Q.length-1];if(Y===C.j_oTag&&J===56||Y===C.j_cTag)Q.pop(),this.state.canStartJSXElement=Q[Q.length-1]===C.j_expr;else this.setContext(C.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=Y0(V)}};class CZ extends GJ{constructor(...Z){super(...Z);this.tsNames=new Map}}class NZ extends $J{constructor(...Z){super(...Z);this.importsStack=[]}createScope(Z){return this.importsStack.push(new Set),new CZ(Z)}enter(Z){if(Z===256)this.importsStack.push(new Set);super.enter(Z)}exit(){let Z=super.exit();if(Z===256)this.importsStack.pop();return Z}hasImport(Z,X){let J=this.importsStack.length;if(this.importsStack[J-1].has(Z))return!0;if(!X&&J>1){for(let Q=0;Q<J-1;Q++)if(this.importsStack[Q].has(Z))return!0}return!1}declareName(Z,X,J){if(X&4096){if(this.hasImport(Z,!0))this.parser.raise(U.VarRedeclaration,J,{identifierName:Z});this.importsStack[this.importsStack.length-1].add(Z);return}let Q=this.currentScope(),V=Q.tsNames.get(Z)||0;if(X&1024){this.maybeExportDefined(Q,Z),Q.tsNames.set(Z,V|16);return}if(super.declareName(Z,X,J),X&2){if(!(X&1))this.checkRedeclarationInScope(Q,Z,X,J),this.maybeExportDefined(Q,Z);V=V|1}if(X&256)V=V|2;if(X&512)V=V|4;if(X&128)V=V|8;if(V)Q.tsNames.set(Z,V)}isRedeclaredInScope(Z,X,J){let Q=Z.tsNames.get(X);if((Q&2)>0){if(J&256){let V=!!(J&512),Y=(Q&4)>0;return V!==Y}return!0}if(J&128&&(Q&8)>0)if(Z.names.get(X)&2)return!!(J&1);else return!1;if(J&2&&(Q&1)>0)return!0;return super.isRedeclaredInScope(Z,X,J)}checkLocalExport(Z){let{name:X}=Z;if(this.hasImport(X))return;let J=this.scopeStack.length;for(let Q=J-1;Q>=0;Q--){let Y=this.scopeStack[Q].tsNames.get(X);if((Y&1)>0||(Y&16)>0)return}super.checkLocalExport(Z)}}var IZ=(Z)=>{return Z.type==="ParenthesizedExpression"?IZ(Z.expression):Z};class MZ extends vZ{toAssignable(Z,X=!1){var J,Q;let V=void 0;if(Z.type==="ParenthesizedExpression"||(J=Z.extra)!=null&&J.parenthesized)if(V=IZ(Z),X){if(V.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(U.InvalidParenthesizedAssignment,Z);else if(V.type!=="MemberExpression"&&!this.isOptionalMemberExpression(V))this.raise(U.InvalidParenthesizedAssignment,Z)}else this.raise(U.InvalidParenthesizedAssignment,Z);switch(Z.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":Z.type="ObjectPattern";for(let W=0,z=Z.properties.length,j=z-1;W<z;W++){var Y;let R=Z.properties[W],q=W===j;if(this.toAssignableObjectExpressionProp(R,q,X),q&&R.type==="RestElement"&&(Y=Z.extra)!=null&&Y.trailingCommaLoc)this.raise(U.RestTrailingComma,Z.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:W,value:z}=Z;if(this.isPrivateName(W))this.classScope.usePrivateName(this.getPrivateNameSV(W),W.loc.start);this.toAssignable(z,X);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":Z.type="ArrayPattern",this.toAssignableList(Z.elements,(Q=Z.extra)==null?void 0:Q.trailingCommaLoc,X);break;case"AssignmentExpression":if(Z.operator!=="=")this.raise(U.MissingEqInAssignment,Z.left.loc.end);Z.type="AssignmentPattern",delete Z.operator,this.toAssignable(Z.left,X);break;case"ParenthesizedExpression":this.toAssignable(V,X);break}}toAssignableObjectExpressionProp(Z,X,J){if(Z.type==="ObjectMethod")this.raise(Z.kind==="get"||Z.kind==="set"?U.PatternHasAccessor:U.PatternHasMethod,Z.key);else if(Z.type==="SpreadElement"){Z.type="RestElement";let Q=Z.argument;if(this.checkToRestConversion(Q,!1),this.toAssignable(Q,J),!X)this.raise(U.RestTrailingComma,Z)}else this.toAssignable(Z,J)}toAssignableList(Z,X,J){let Q=Z.length-1;for(let V=0;V<=Q;V++){let Y=Z[V];if(!Y)continue;if(this.toAssignableListItem(Z,V,J),Y.type==="RestElement"){if(V<Q)this.raise(U.RestTrailingComma,Y);else if(X)this.raise(U.RestTrailingComma,X)}}}toAssignableListItem(Z,X,J){let Q=Z[X];if(Q.type==="SpreadElement"){Q.type="RestElement";let V=Q.argument;this.checkToRestConversion(V,!0),this.toAssignable(V,J)}else this.toAssignable(Q,J)}isAssignable(Z,X){switch(Z.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let J=Z.properties.length-1;return Z.properties.every((Q,V)=>{return Q.type!=="ObjectMethod"&&(V===J||Q.type!=="SpreadElement")&&this.isAssignable(Q)})}case"ObjectProperty":return this.isAssignable(Z.value);case"SpreadElement":return this.isAssignable(Z.argument);case"ArrayExpression":return Z.elements.every((J)=>J===null||this.isAssignable(J));case"AssignmentExpression":return Z.operator==="=";case"ParenthesizedExpression":return this.isAssignable(Z.expression);case"MemberExpression":case"OptionalMemberExpression":return!X;default:return!1}}toReferencedList(Z,X){return Z}toReferencedListDeep(Z,X){this.toReferencedList(Z,X);for(let J of Z)if((J==null?void 0:J.type)==="ArrayExpression")this.toReferencedListDeep(J.elements)}parseSpread(Z){let X=this.startNode();return this.next(),X.argument=this.parseMaybeAssignAllowIn(Z,void 0),this.finishNode(X,"SpreadElement")}parseRestBinding(){let Z=this.startNode();return this.next(),Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(3,93,1),this.finishNode(Z,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(Z,X,J){let Q=J&1,V=[],Y=!0;while(!this.eat(Z)){if(Y)Y=!1;else this.expect(12);if(Q&&this.match(12))V.push(null);else if(this.eat(Z))break;else if(this.match(21)){let W=this.parseRestBinding();if(this.hasPlugin("flow")||J&2)W=this.parseFunctionParamType(W);if(V.push(W),!this.checkCommaAfterRest(X)){this.expect(Z);break}}else{let W=[];if(J&2){if(this.match(26)&&this.hasPlugin("decorators"))this.raise(U.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))W.push(this.parseDecorator())}V.push(this.parseBindingElement(J,W))}}return V}parseBindingRestProperty(Z){return this.next(),Z.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(Z,"RestElement")}parseBindingProperty(){let{type:Z,startLoc:X}=this.state;if(Z===21)return this.parseBindingRestProperty(this.startNode());let J=this.startNode();if(Z===139)this.expectPlugin("destructuringPrivate",X),this.classScope.usePrivateName(this.state.value,X),J.key=this.parsePrivateName();else this.parsePropertyName(J);return J.method=!1,this.parseObjPropValue(J,X,!1,!1,!0,!1)}parseBindingElement(Z,X){let J=this.parseMaybeDefault();if(this.hasPlugin("flow")||Z&2)this.parseFunctionParamType(J);let Q=this.parseMaybeDefault(J.loc.start,J);if(X.length)J.decorators=X;return Q}parseFunctionParamType(Z){return Z}parseMaybeDefault(Z,X){if(Z!=null||(Z=this.state.startLoc),X=X!=null?X:this.parseBindingAtom(),!this.eat(29))return X;let J=this.startNodeAt(Z);return J.left=X,J.right=this.parseMaybeAssignAllowIn(),this.finishNode(J,"AssignmentPattern")}isValidLVal(Z,X,J){switch(Z){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(Z){return Z.type==="OptionalMemberExpression"}checkLVal(Z,X,J=64,Q=!1,V=!1,Y=!1){var W;let z=Z.type;if(this.isObjectMethod(Z))return;let j=this.isOptionalMemberExpression(Z);if(j||z==="MemberExpression"){if(j){if(this.expectPlugin("optionalChainingAssign",Z.loc.start),X.type!=="AssignmentExpression")this.raise(U.InvalidLhsOptionalChaining,Z,{ancestor:X})}if(J!==64)this.raise(U.InvalidPropertyBindingPattern,Z);return}if(z==="Identifier"){this.checkIdentifier(Z,J,V);let{name:B}=Z;if(Q)if(Q.has(B))this.raise(U.ParamDupe,Z);else Q.add(B);return}let R=this.isValidLVal(z,!(Y||(W=Z.extra)!=null&&W.parenthesized)&&X.type==="AssignmentExpression",J);if(R===!0)return;if(R===!1){let B=J===64?U.InvalidLhs:U.InvalidLhsBinding;this.raise(B,Z,{ancestor:X});return}let q,H;if(typeof R==="string")q=R,H=z==="ParenthesizedExpression";else[q,H]=R;let K=z==="ArrayPattern"||z==="ObjectPattern"?{type:z}:X,$=Z[q];if(Array.isArray($)){for(let B of $)if(B)this.checkLVal(B,K,J,Q,V,H)}else if($)this.checkLVal($,K,J,Q,V,H)}checkIdentifier(Z,X,J=!1){if(this.state.strict&&(J?zZ(Z.name,this.inModule):WZ(Z.name)))if(X===64)this.raise(U.StrictEvalArguments,Z,{referenceName:Z.name});else this.raise(U.StrictEvalArgumentsBinding,Z,{bindingName:Z.name});if(X&8192&&Z.name==="let")this.raise(U.LetInLexicalBinding,Z);if(!(X&64))this.declareNameFromIdentifier(Z,X)}declareNameFromIdentifier(Z,X){this.scope.declareName(Z.name,X,Z.loc.start)}checkToRestConversion(Z,X){switch(Z.type){case"ParenthesizedExpression":this.checkToRestConversion(Z.expression,X);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(X)break;default:this.raise(U.InvalidRestAssignmentPattern,Z)}}checkCommaAfterRest(Z){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===Z?U.RestTrailingComma:U.ElementAfterRest,this.state.startLoc),!0}}function p0(Z){if(Z==null)throw new Error(`Unexpected ${Z} value.`);return Z}function nJ(Z){if(!Z)throw new Error("Assert fail")}var F=u`typescript`({AbstractMethodHasImplementation:({methodName:Z})=>`Method '${Z}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:Z})=>`Property '${Z}' 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:Z})=>`'declare' is not allowed in ${Z}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:Z})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:Z})=>`Duplicate modifier: '${Z}'.`,EmptyHeritageClauseType:({token:Z})=>`'${Z}' 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:Z})=>`'${Z[0]}' modifier cannot be used with '${Z[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:Z})=>`Index signatures cannot have an accessibility modifier ('${Z}').`,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:Z})=>`'${Z}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnTypeMember:({modifier:Z})=>`'${Z}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:Z})=>`'${Z}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:Z})=>`'${Z}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:Z})=>`'${Z[0]}' modifier must precede '${Z[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:Z})=>`Private elements cannot have an accessibility modifier ('${Z}').`,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:Z})=>`Single type parameter ${Z} should have a trailing comma. Example usage: <${Z},>.`,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:Z})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${Z}.`});function i0(Z){switch(Z){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 sJ(Z){return Z==="private"||Z==="public"||Z==="protected"}function d0(Z){return Z==="in"||Z==="out"}var a0=(Z)=>class X extends Z{constructor(...J){super(...J);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:F.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:F.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:F.InvalidModifierOnTypeParameter})}getScopeHandler(){return NZ}tsIsIdentifier(){return N(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(J,Q){if(!N(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let V=this.state.value;if(J.includes(V)){if(Q&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return V}return}tsParseModifiers({allowedModifiers:J,disallowedModifiers:Q,stopOnStartOfClassStaticBlock:V,errorTemplate:Y=F.InvalidModifierOnTypeMember},W){let z=(R,q,H,K)=>{if(q===H&&W[K])this.raise(F.InvalidModifiersOrder,R,{orderedModifiers:[H,K]})},j=(R,q,H,K)=>{if(W[H]&&q===K||W[K]&&q===H)this.raise(F.IncompatibleModifiers,R,{modifiers:[H,K]})};for(;;){let{startLoc:R}=this.state,q=this.tsParseModifier(J.concat(Q!=null?Q:[]),V);if(!q)break;if(sJ(q))if(W.accessibility)this.raise(F.DuplicateAccessibilityModifier,R,{modifier:q});else z(R,q,q,"override"),z(R,q,q,"static"),z(R,q,q,"readonly"),W.accessibility=q;else if(d0(q)){if(W[q])this.raise(F.DuplicateModifier,R,{modifier:q});W[q]=!0,z(R,q,"in","out")}else{if(hasOwnProperty.call(W,q))this.raise(F.DuplicateModifier,R,{modifier:q});else z(R,q,"static","readonly"),z(R,q,"static","override"),z(R,q,"override","readonly"),z(R,q,"abstract","override"),j(R,q,"declare","override"),j(R,q,"static","abstract");W[q]=!0}if(Q!=null&&Q.includes(q))this.raise(Y,R,{modifier:q})}}tsIsListTerminator(J){switch(J){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(J,Q){let V=[];while(!this.tsIsListTerminator(J))V.push(Q());return V}tsParseDelimitedList(J,Q,V){return p0(this.tsParseDelimitedListWorker(J,Q,!0,V))}tsParseDelimitedListWorker(J,Q,V,Y){let W=[],z=-1;for(;;){if(this.tsIsListTerminator(J))break;z=-1;let j=Q();if(j==null)return;if(W.push(j),this.eat(12)){z=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(J))break;if(V)this.expect(12);return}if(Y)Y.value=z;return W}tsParseBracketedList(J,Q,V,Y,W){if(!Y)if(V)this.expect(0);else this.expect(47);let z=this.tsParseDelimitedList(J,Q,W);if(V)this.expect(3);else this.expect(48);return z}tsParseImportType(){let J=this.startNode();if(this.expect(83),this.expect(10),!this.match(134))this.raise(F.UnsupportedImportTypeArgument,this.state.startLoc),J.argument=super.parseExprAtom();else J.argument=this.parseStringLiteral(this.state.value);if(this.eat(12)&&!this.match(11))J.options=super.parseMaybeAssignAllowIn(),this.eat(12);else J.options=null;if(this.expect(11),this.eat(16))J.qualifier=this.tsParseEntityName(3);if(this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSImportType")}tsParseEntityName(J){let Q;if(J&1&&this.match(78))if(J&2)Q=this.parseIdentifier(!0);else{let V=this.startNode();this.next(),Q=this.finishNode(V,"ThisExpression")}else Q=this.parseIdentifier(!!(J&1));while(this.eat(16)){let V=this.startNodeAtNode(Q);V.left=Q,V.right=this.parseIdentifier(!!(J&1)),Q=this.finishNode(V,"TSQualifiedName")}return Q}tsParseTypeReference(){let J=this.startNode();if(J.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeReference")}tsParseThisTypePredicate(J){this.next();let Q=this.startNodeAtNode(J);return Q.parameterName=J,Q.typeAnnotation=this.tsParseTypeAnnotation(!1),Q.asserts=!1,this.finishNode(Q,"TSTypePredicate")}tsParseThisTypeNode(){let J=this.startNode();return this.next(),this.finishNode(J,"TSThisType")}tsParseTypeQuery(){let J=this.startNode();if(this.expect(87),this.match(83))J.exprName=this.tsParseImportType();else J.exprName=this.tsParseEntityName(3);if(!this.hasPrecedingLineBreak()&&this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeQuery")}tsParseTypeParameter(J){let Q=this.startNode();return J(Q),Q.name=this.tsParseTypeParameterName(),Q.constraint=this.tsEatThenParseType(81),Q.default=this.tsEatThenParseType(29),this.finishNode(Q,"TSTypeParameter")}tsTryParseTypeParameters(J){if(this.match(47))return this.tsParseTypeParameters(J)}tsParseTypeParameters(J){let Q=this.startNode();if(this.match(47)||this.match(143))this.next();else this.unexpected();let V={value:-1};if(Q.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,J),!1,!0,V),Q.params.length===0)this.raise(F.EmptyTypeParameters,Q);if(V.value!==-1)this.addExtra(Q,"trailingComma",V.value);return this.finishNode(Q,"TSTypeParameterDeclaration")}tsFillSignature(J,Q){let V=J===19,Y="parameters",W="typeAnnotation";if(Q.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),Q.parameters=this.tsParseBindingListForSignature(),V)Q.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J);else if(this.match(J))Q.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J)}tsParseBindingListForSignature(){let J=super.parseBindingList(11,41,2);for(let Q of J){let{type:V}=Q;if(V==="AssignmentPattern"||V==="TSParameterProperty")this.raise(F.UnsupportedSignatureParameterKind,Q,{type:V})}return J}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(J,Q){return this.tsFillSignature(14,Q),this.tsParseTypeMemberSemicolon(),this.finishNode(Q,J)}tsIsUnambiguouslyIndexSignature(){if(this.next(),N(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(J){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let Q=this.parseIdentifier();Q.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(Q),this.expect(3),J.parameters=[Q];let V=this.tsTryParseTypeAnnotation();if(V)J.typeAnnotation=V;return this.tsParseTypeMemberSemicolon(),this.finishNode(J,"TSIndexSignature")}tsParsePropertyOrMethodSignature(J,Q){if(this.eat(17))J.optional=!0;let V=J;if(this.match(10)||this.match(47)){if(Q)this.raise(F.ReadonlyForMethodSignature,J);let Y=V;if(Y.kind&&this.match(47))this.raise(F.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,Y),this.tsParseTypeMemberSemicolon();let W="parameters",z="typeAnnotation";if(Y.kind==="get"){if(Y[W].length>0){if(this.raise(U.BadGetterArity,this.state.curPosition()),this.isThisParam(Y[W][0]))this.raise(F.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(Y.kind==="set"){if(Y[W].length!==1)this.raise(U.BadSetterArity,this.state.curPosition());else{let j=Y[W][0];if(this.isThisParam(j))this.raise(F.AccessorCannotDeclareThisParameter,this.state.curPosition());if(j.type==="Identifier"&&j.optional)this.raise(F.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(j.type==="RestElement")this.raise(F.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(Y[z])this.raise(F.SetAccessorCannotHaveReturnType,Y[z])}else Y.kind="method";return this.finishNode(Y,"TSMethodSignature")}else{let Y=V;if(Q)Y.readonly=!0;let W=this.tsTryParseTypeAnnotation();if(W)Y.typeAnnotation=W;return this.tsParseTypeMemberSemicolon(),this.finishNode(Y,"TSPropertySignature")}}tsParseTypeMember(){let J=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",J);if(this.match(77)){let V=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",J);else return J.key=this.createIdentifier(V,"new"),this.tsParsePropertyOrMethodSignature(J,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},J);let Q=this.tsTryParseIndexSignature(J);if(Q)return Q;if(super.parsePropertyName(J),!J.computed&&J.key.type==="Identifier"&&(J.key.name==="get"||J.key.name==="set")&&this.tsTokenCanFollowModifier())J.kind=J.key.name,super.parsePropertyName(J);return this.tsParsePropertyOrMethodSignature(J,!!J.readonly)}tsParseTypeLiteral(){let J=this.startNode();return J.members=this.tsParseObjectTypeMembers(),this.finishNode(J,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let J=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),J}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){let J=this.startNode();if(this.expect(5),this.match(53))J.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))J.readonly=!0;this.expect(0);{let Q=this.startNode();Q.name=this.tsParseTypeParameterName(),Q.constraint=this.tsExpectThenParseType(58),J.typeParameter=this.finishNode(Q,"TSTypeParameter")}if(J.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))J.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))J.optional=!0;return J.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(J,"TSMappedType")}tsParseTupleType(){let J=this.startNode();J.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let Q=!1;return J.elementTypes.forEach((V)=>{let{type:Y}=V;if(Q&&Y!=="TSRestType"&&Y!=="TSOptionalType"&&!(Y==="TSNamedTupleMember"&&V.optional))this.raise(F.OptionalTypeBeforeRequired,V);Q||(Q=Y==="TSNamedTupleMember"&&V.optional||Y==="TSOptionalType")}),this.finishNode(J,"TSTupleType")}tsParseTupleElementType(){let J=this.state.startLoc,Q=this.eat(21),{startLoc:V}=this.state,Y,W,z,j,q=k(this.state.type)?this.lookaheadCharCode():null;if(q===58)Y=!0,z=!1,W=this.parseIdentifier(!0),this.expect(14),j=this.tsParseType();else if(q===63){z=!0;let H=this.state.value,K=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)Y=!0,W=this.createIdentifier(this.startNodeAt(V),H),this.expect(17),this.expect(14),j=this.tsParseType();else Y=!1,j=K,this.expect(17)}else j=this.tsParseType(),z=this.eat(17),Y=this.eat(14);if(Y){let H;if(W){if(H=this.startNodeAt(V),H.optional=z,H.label=W,H.elementType=j,this.eat(17))H.optional=!0,this.raise(F.TupleOptionalAfterType,this.state.lastTokStartLoc)}else H=this.startNodeAt(V),H.optional=z,this.raise(F.InvalidTupleMemberLabel,j),H.label=j,H.elementType=this.tsParseType();j=this.finishNode(H,"TSNamedTupleMember")}else if(z){let H=this.startNodeAt(V);H.typeAnnotation=j,j=this.finishNode(H,"TSOptionalType")}if(Q){let H=this.startNodeAt(J);H.typeAnnotation=j,j=this.finishNode(H,"TSRestType")}return j}tsParseParenthesizedType(){let J=this.startNode();return this.expect(10),J.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(J,"TSParenthesizedType")}tsParseFunctionOrConstructorType(J,Q){let V=this.startNode();if(J==="TSConstructorType"){if(V.abstract=!!Q,Q)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,V)),this.finishNode(V,J)}tsParseLiteralTypeNode(){let J=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:J.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(J,"TSLiteralType")}tsParseTemplateLiteralType(){{let J=this.startNode();return J.literal=super.parseTemplate(!1),this.finishNode(J,"TSLiteralType")}}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let J=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(J);else return J}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let J=this.startNode(),Q=this.lookahead();if(Q.type!==135&&Q.type!==136)this.unexpected();return J.literal=this.parseMaybeUnary(),this.finishNode(J,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:J}=this.state;if(N(J)||J===88||J===84){let Q=J===88?"TSVoidKeyword":J===84?"TSNullKeyword":i0(this.state.value);if(Q!==void 0&&this.lookaheadCharCode()!==46){let V=this.startNode();return this.next(),this.finishNode(V,Q)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:J}=this.state,Q=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let V=this.startNodeAt(J);V.elementType=Q,this.expect(3),Q=this.finishNode(V,"TSArrayType")}else{let V=this.startNodeAt(J);V.objectType=Q,V.indexType=this.tsParseType(),this.expect(3),Q=this.finishNode(V,"TSIndexedAccessType")}return Q}tsParseTypeOperator(){let J=this.startNode(),Q=this.state.value;if(this.next(),J.operator=Q,J.typeAnnotation=this.tsParseTypeOperatorOrHigher(),Q==="readonly")this.tsCheckTypeAnnotationForReadOnly(J);return this.finishNode(J,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(J){switch(J.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(F.UnexpectedReadonly,J)}}tsParseInferType(){let J=this.startNode();this.expectContextual(115);let Q=this.startNode();return Q.name=this.tsParseTypeParameterName(),Q.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),J.typeParameter=this.finishNode(Q,"TSTypeParameter"),this.finishNode(J,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let J=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return J}}tsParseTypeOperatorOrHigher(){return q0(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(J,Q,V){let Y=this.startNode(),W=this.eat(V),z=[];do z.push(Q());while(this.eat(V));if(z.length===1&&!W)return z[0];return Y.types=z,this.finishNode(Y,J)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(N(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:J}=this.state,Q=J.length;try{return this.parseObjectLike(8,!0),J.length===Q}catch(V){return!1}}if(this.match(0)){this.next();let{errors:J}=this.state,Q=J.length;try{return super.parseBindingList(3,93,1),J.length===Q}catch(V){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(J){return this.tsInType(()=>{let Q=this.startNode();this.expect(J);let V=this.startNode(),Y=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(Y&&this.match(78)){let j=this.tsParseThisTypeOrThisTypePredicate();if(j.type==="TSThisType")V.parameterName=j,V.asserts=!0,V.typeAnnotation=null,j=this.finishNode(V,"TSTypePredicate");else this.resetStartLocationFromNode(j,V),j.asserts=!0;return Q.typeAnnotation=j,this.finishNode(Q,"TSTypeAnnotation")}let W=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!W){if(!Y)return this.tsParseTypeAnnotation(!1,Q);return V.parameterName=this.parseIdentifier(),V.asserts=Y,V.typeAnnotation=null,Q.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(Q,"TSTypeAnnotation")}let z=this.tsParseTypeAnnotation(!1);return V.parameterName=W,V.typeAnnotation=z,V.asserts=Y,Q.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(Q,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let J=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),J}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let J=this.state.containsEsc;if(this.next(),!N(this.state.type)&&!this.match(78))return!1;if(J)this.raise(U.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(J=!0,Q=this.startNode()){return this.tsInType(()=>{if(J)this.expect(14);Q.typeAnnotation=this.tsParseType()}),this.finishNode(Q,"TSTypeAnnotation")}tsParseType(){nJ(this.state.inType);let J=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return J;let Q=this.startNodeAtNode(J);return Q.checkType=J,Q.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),Q.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),Q.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(Q,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(F.ReservedTypeAssertion,this.state.startLoc);let J=this.startNode();return J.typeAnnotation=this.tsInType(()=>{return this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()}),this.expect(48),J.expression=this.parseMaybeUnary(),this.finishNode(J,"TSTypeAssertion")}tsParseHeritageClause(J){let Q=this.state.startLoc,V=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let Y=this.startNode();if(Y.expression=this.tsParseEntityName(3),this.match(47))Y.typeParameters=this.tsParseTypeArguments();return this.finishNode(Y,"TSExpressionWithTypeArguments")}});if(!V.length)this.raise(F.EmptyHeritageClauseType,Q,{token:J});return V}tsParseInterfaceDeclaration(J,Q={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),Q.declare)J.declare=!0;if(N(this.state.type))J.id=this.parseIdentifier(),this.checkIdentifier(J.id,130);else J.id=null,this.raise(F.MissingInterfaceName,this.state.startLoc);if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))J.extends=this.tsParseHeritageClause("extends");let V=this.startNode();return V.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),J.body=this.finishNode(V,"TSInterfaceBody"),this.finishNode(J,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(J){return J.id=this.parseIdentifier(),this.checkIdentifier(J.id,2),J.typeAnnotation=this.tsInType(()=>{if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let Q=this.startNode();return this.next(),this.finishNode(Q,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(J,"TSTypeAliasDeclaration")}tsInTopLevelContext(J){if(this.curContext()!==C.brace){let Q=this.state.context;this.state.context=[Q[0]];try{return J()}finally{this.state.context=Q}}else return J()}tsInType(J){let Q=this.state.inType;this.state.inType=!0;try{return J()}finally{this.state.inType=Q}}tsInDisallowConditionalTypesContext(J){let Q=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return J()}finally{this.state.inDisallowConditionalTypesContext=Q}}tsInAllowConditionalTypesContext(J){let Q=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return J()}finally{this.state.inDisallowConditionalTypesContext=Q}}tsEatThenParseType(J){if(this.match(J))return this.tsNextThenParseType()}tsExpectThenParseType(J){return this.tsInType(()=>{return this.expect(J),this.tsParseType()})}tsNextThenParseType(){return this.tsInType(()=>{return this.next(),this.tsParseType()})}tsParseEnumMember(){let J=this.startNode();if(J.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))J.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(J,"TSEnumMember")}tsParseEnumDeclaration(J,Q={}){if(Q.const)J.const=!0;if(Q.declare)J.declare=!0;return this.expectContextual(126),J.id=this.parseIdentifier(),this.checkIdentifier(J.id,J.const?8971:8459),this.expect(5),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(J,"TSEnumDeclaration")}tsParseEnumBody(){let J=this.startNode();return this.expect(5),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(J,"TSEnumBody")}tsParseModuleBlock(){let J=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(J.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(J,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(J,Q=!1){if(J.id=this.parseIdentifier(),!Q)this.checkIdentifier(J.id,1024);if(this.eat(16)){let V=this.startNode();this.tsParseModuleOrNamespaceDeclaration(V,!0),J.body=V}else this.scope.enter(256),this.prodParam.enter(0),J.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(J,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(J){if(this.isContextual(112))J.kind="global",J.global=!0,J.id=this.parseIdentifier();else if(this.match(134))J.kind="module",J.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(256),this.prodParam.enter(0),J.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(J,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(J,Q,V){J.isExport=V||!1,J.id=Q||this.parseIdentifier(),this.checkIdentifier(J.id,4096),this.expect(29);let Y=this.tsParseModuleReference();if(J.importKind==="type"&&Y.type!=="TSExternalModuleReference")this.raise(F.ImportAliasHasImportType,Y);return J.moduleReference=Y,this.semicolon(),this.finishNode(J,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let J=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(134))this.unexpected();return J.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(J,"TSExternalModuleReference")}tsLookAhead(J){let Q=this.state.clone(),V=J();return this.state=Q,V}tsTryParseAndCatch(J){let Q=this.tryParse((V)=>J()||V());if(Q.aborted||!Q.node)return;if(Q.error)this.state=Q.failState;return Q.node}tsTryParse(J){let Q=this.state.clone(),V=J();if(V!==void 0&&V!==!1)return V;this.state=Q}tsTryParseDeclare(J){if(this.isLineTerminator())return;let Q=this.state.type,V;if(this.isContextual(100))Q=74,V="let";return this.tsInAmbientContext(()=>{switch(Q){case 68:return J.declare=!0,super.parseFunctionStatement(J,!1,!1);case 80:return J.declare=!0,this.parseClass(J,!0,!1);case 126:return this.tsParseEnumDeclaration(J,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(J);case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return J.declare=!0,this.parseVarStatement(J,V||this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(J,{const:!0,declare:!0});case 129:{let Y=this.tsParseInterfaceDeclaration(J,{declare:!0});if(Y)return Y}default:if(N(Q))return this.tsParseDeclaration(J,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(J,Q,V){switch(Q.name){case"declare":{let Y=this.tsTryParseDeclare(J);if(Y)Y.declare=!0;return Y}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let Y=J;return Y.kind="global",J.global=!0,Y.id=Q,Y.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(Y,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(J,Q.name,!1,V)}}tsParseDeclaration(J,Q,V,Y){switch(Q){case"abstract":if(this.tsCheckLineTerminator(V)&&(this.match(80)||N(this.state.type)))return this.tsParseAbstractDeclaration(J,Y);break;case"module":if(this.tsCheckLineTerminator(V)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(J);else if(N(this.state.type))return J.kind="module",this.tsParseModuleOrNamespaceDeclaration(J)}break;case"namespace":if(this.tsCheckLineTerminator(V)&&N(this.state.type))return J.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(J);break;case"type":if(this.tsCheckLineTerminator(V)&&N(this.state.type))return this.tsParseTypeAliasDeclaration(J);break}}tsCheckLineTerminator(J){if(J){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(J){if(!this.match(47))return;let Q=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let V=this.tsTryParseAndCatch(()=>{let Y=this.startNodeAt(J);return Y.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(Y),Y.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),Y});if(this.state.maybeInArrowParameters=Q,!V)return;return super.parseArrowExpression(V,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let J=this.startNode();if(J.params=this.tsInType(()=>this.tsInTopLevelContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),J.params.length===0)this.raise(F.EmptyTypeArguments,J);else if(!this.state.inType&&this.curContext()===C.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(J,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return H0(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseBindingElement(J,Q){let V=this.state.startLoc,Y={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},Y);let{accessibility:W,override:z,readonly:j}=Y;if(!(J&4)&&(W||j||z))this.raise(F.UnexpectedParameterModifier,V);let R=this.parseMaybeDefault();if(J&2)this.parseFunctionParamType(R);let q=this.parseMaybeDefault(R.loc.start,R);if(W||j||z){let H=this.startNodeAt(V);if(Q.length)H.decorators=Q;if(W)H.accessibility=W;if(j)H.readonly=j;if(z)H.override=z;if(q.type!=="Identifier"&&q.type!=="AssignmentPattern")this.raise(F.UnsupportedParameterPropertyKind,H);return H.parameter=q,this.finishNode(H,"TSParameterProperty")}if(Q.length)R.decorators=Q;return q}isSimpleParameter(J){return J.type==="TSParameterProperty"&&super.isSimpleParameter(J.parameter)||super.isSimpleParameter(J)}tsDisallowOptionalPattern(J){for(let Q of J.params)if(Q.type!=="Identifier"&&Q.optional&&!this.state.isAmbientContext)this.raise(F.PatternIsOptional,Q)}setArrowFunctionParameters(J,Q,V){super.setArrowFunctionParameters(J,Q,V),this.tsDisallowOptionalPattern(J)}parseFunctionBodyAndFinish(J,Q,V=!1){if(this.match(14))J.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let Y=Q==="FunctionDeclaration"?"TSDeclareFunction":Q==="ClassMethod"||Q==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(Y&&!this.match(5)&&this.isLineTerminator())return this.finishNode(J,Y);if(Y==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(F.DeclareFunctionHasImplementation,J),J.declare)return super.parseFunctionBodyAndFinish(J,Y,V)}return this.tsDisallowOptionalPattern(J),super.parseFunctionBodyAndFinish(J,Q,V)}registerFunctionStatementId(J){if(!J.body&&J.id)this.checkIdentifier(J.id,1024);else super.registerFunctionStatementId(J)}tsCheckForInvalidTypeCasts(J){J.forEach((Q)=>{if((Q==null?void 0:Q.type)==="TSTypeCastExpression")this.raise(F.UnexpectedTypeAnnotation,Q.typeAnnotation)})}toReferencedList(J,Q){return this.tsCheckForInvalidTypeCasts(J),J}parseArrayLike(J,Q,V,Y){let W=super.parseArrayLike(J,Q,V,Y);if(W.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(W.elements);return W}parseSubscript(J,Q,V,Y){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let z=this.startNodeAt(Q);return z.expression=J,this.finishNode(z,"TSNonNullExpression")}let W=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(V)return Y.stop=!0,J;Y.optionalChainMember=W=!0,this.next()}if(this.match(47)||this.match(51)){let z,j=this.tsTryParseAndCatch(()=>{if(!V&&this.atPossibleAsyncArrow(J)){let K=this.tsTryParseGenericAsyncArrowFunction(Q);if(K)return K}let R=this.tsParseTypeArgumentsInExpression();if(!R)return;if(W&&!this.match(10)){z=this.state.curPosition();return}if(KJ(this.state.type)){let K=super.parseTaggedTemplateExpression(J,Q,Y);return K.typeParameters=R,K}if(!V&&this.eat(10)){let K=this.startNodeAt(Q);if(K.callee=J,K.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(K.arguments),K.typeParameters=R,Y.optionalChainMember)K.optional=W;return this.finishCallExpression(K,Y.optionalChainMember)}let q=this.state.type;if(q===48||q===52||q!==10&&o(q)&&!this.hasPrecedingLineBreak())return;let H=this.startNodeAt(Q);return H.expression=J,H.typeParameters=R,this.finishNode(H,"TSInstantiationExpression")});if(z)this.unexpected(z,10);if(j){if(j.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40))this.raise(F.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);return j}}return super.parseSubscript(J,Q,V,Y)}parseNewCallee(J){var Q;super.parseNewCallee(J);let{callee:V}=J;if(V.type==="TSInstantiationExpression"&&!((Q=V.extra)!=null&&Q.parenthesized))J.typeParameters=V.typeParameters,J.callee=V.expression}parseExprOp(J,Q,V){let Y;if(qJ(58)>V&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(Y=this.isContextual(120)))){let W=this.startNodeAt(Q);return W.expression=J,W.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(Y)this.raise(U.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(W,Y?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(W,Q,V)}return super.parseExprOp(J,Q,V)}checkReservedWord(J,Q,V,Y){if(!this.state.isAmbientContext)super.checkReservedWord(J,Q,V,Y)}checkImportReflection(J){if(super.checkImportReflection(J),J.module&&J.importKind!=="value")this.raise(F.ImportReflectionHasImportType,J.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(J){if(super.isPotentialImportPhase(J))return!0;if(this.isContextual(130)){let Q=this.lookaheadCharCode();return J?Q===123||Q===42:Q!==61}return!J&&this.isContextual(87)}applyImportPhase(J,Q,V,Y){if(super.applyImportPhase(J,Q,V,Y),Q)J.exportKind=V==="type"?"type":"value";else J.importKind=V==="type"||V==="typeof"?V:"value"}parseImport(J){if(this.match(134))return J.importKind="value",super.parseImport(J);let Q;if(N(this.state.type)&&this.lookaheadCharCode()===61)return J.importKind="value",this.tsParseImportEqualsDeclaration(J);else if(this.isContextual(130)){let V=this.parseMaybeImportPhase(J,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(J,V);else Q=super.parseImportSpecifiersAndAfter(J,V)}else Q=super.parseImport(J);if(Q.importKind==="type"&&Q.specifiers.length>1&&Q.specifiers[0].type==="ImportDefaultSpecifier")this.raise(F.TypeImportCannotSpecifyDefaultAndNamed,Q);return Q}parseExport(J,Q){if(this.match(83)){let V=J;this.next();let Y=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))Y=this.parseMaybeImportPhase(V,!1);else V.importKind="value";return this.tsParseImportEqualsDeclaration(V,Y,!0)}else if(this.eat(29)){let V=J;return V.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(V,"TSExportAssignment")}else if(this.eatContextual(93)){let V=J;return this.expectContextual(128),V.id=this.parseIdentifier(),this.semicolon(),this.finishNode(V,"TSNamespaceExportDeclaration")}else return super.parseExport(J,Q)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let J=this.startNode();return this.next(),J.abstract=!0,this.parseClass(J,!0,!0)}if(this.match(129)){let J=this.tsParseInterfaceDeclaration(this.startNode());if(J)return J}return super.parseExportDefaultExpression()}parseVarStatement(J,Q,V=!1){let{isAmbientContext:Y}=this.state,W=super.parseVarStatement(J,Q,V||Y);if(!Y)return W;for(let{id:z,init:j}of W.declarations){if(!j)continue;if(Q!=="const"||!!z.typeAnnotation)this.raise(F.InitializerNotAllowedInAmbientContext,j);else if(!n0(j,this.hasPlugin("estree")))this.raise(F.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,j)}return W}parseStatementContent(J,Q){if(this.match(75)&&this.isLookaheadContextual("enum")){let V=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(V,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let V=this.tsParseInterfaceDeclaration(this.startNode());if(V)return V}return super.parseStatementContent(J,Q)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(J,Q){return Q.some((V)=>{if(sJ(V))return J.accessibility===V;return!!J[V]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(J,Q,V){let Y=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:Y,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:F.InvalidModifierOnTypeParameterPositions},Q);let W=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(Q,Y))this.raise(F.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(J,Q)}else this.parseClassMemberWithIsStatic(J,Q,V,!!Q.static)};if(Q.declare)this.tsInAmbientContext(W);else W()}parseClassMemberWithIsStatic(J,Q,V,Y){let W=this.tsTryParseIndexSignature(Q);if(W){if(J.body.push(W),Q.abstract)this.raise(F.IndexSignatureHasAbstract,Q);if(Q.accessibility)this.raise(F.IndexSignatureHasAccessibility,Q,{modifier:Q.accessibility});if(Q.declare)this.raise(F.IndexSignatureHasDeclare,Q);if(Q.override)this.raise(F.IndexSignatureHasOverride,Q);return}if(!this.state.inAbstractClass&&Q.abstract)this.raise(F.NonAbstractClassHasAbstractMethod,Q);if(Q.override){if(!V.hadSuperClass)this.raise(F.OverrideNotInSubClass,Q)}super.parseClassMemberWithIsStatic(J,Q,V,Y)}parsePostMemberNameModifiers(J){if(this.eat(17))J.optional=!0;if(J.readonly&&this.match(10))this.raise(F.ClassMethodHasReadonly,J);if(J.declare&&this.match(10))this.raise(F.ClassMethodHasDeclare,J)}parseExpressionStatement(J,Q,V){return(Q.type==="Identifier"?this.tsParseExpressionStatement(J,Q,V):void 0)||super.parseExpressionStatement(J,Q,V)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(J,Q,V){if(!this.match(17))return J;if(this.state.maybeInArrowParameters){let Y=this.lookaheadCharCode();if(Y===44||Y===61||Y===58||Y===41)return this.setOptionalParametersError(V),J}return super.parseConditional(J,Q,V)}parseParenItem(J,Q){let V=super.parseParenItem(J,Q);if(this.eat(17))V.optional=!0,this.resetEndLocation(J);if(this.match(14)){let Y=this.startNodeAt(Q);return Y.expression=J,Y.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(Y,"TSTypeCastExpression")}return J}parseExportDeclaration(J){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(J));let Q=this.state.startLoc,V=this.eatContextual(125);if(V&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(F.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let W=N(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(J);if(!W)return null;if(W.type==="TSInterfaceDeclaration"||W.type==="TSTypeAliasDeclaration"||V)J.exportKind="type";if(V&&W.type!=="TSImportEqualsDeclaration")this.resetStartLocation(W,Q),W.declare=!0;return W}parseClassId(J,Q,V,Y){if((!Q||V)&&this.isContextual(113))return;super.parseClassId(J,Q,V,J.declare?1024:8331);let W=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(W)J.typeParameters=W}parseClassPropertyAnnotation(J){if(!J.optional){if(this.eat(35))J.definite=!0;else if(this.eat(17))J.optional=!0}let Q=this.tsTryParseTypeAnnotation();if(Q)J.typeAnnotation=Q}parseClassProperty(J){if(this.parseClassPropertyAnnotation(J),this.state.isAmbientContext&&!(J.readonly&&!J.typeAnnotation)&&this.match(29))this.raise(F.DeclareClassFieldHasInitializer,this.state.startLoc);if(J.abstract&&this.match(29)){let{key:Q}=J;this.raise(F.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:Q.type==="Identifier"&&!J.computed?Q.name:`[${this.input.slice(this.offsetToSourcePos(Q.start),this.offsetToSourcePos(Q.end))}]`})}return super.parseClassProperty(J)}parseClassPrivateProperty(J){if(J.abstract)this.raise(F.PrivateElementHasAbstract,J);if(J.accessibility)this.raise(F.PrivateElementHasAccessibility,J,{modifier:J.accessibility});return this.parseClassPropertyAnnotation(J),super.parseClassPrivateProperty(J)}parseClassAccessorProperty(J){if(this.parseClassPropertyAnnotation(J),J.optional)this.raise(F.AccessorCannotBeOptional,J);return super.parseClassAccessorProperty(J)}pushClassMethod(J,Q,V,Y,W,z){let j=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(j&&W)this.raise(F.ConstructorHasTypeParameters,j);let{declare:R=!1,kind:q}=Q;if(R&&(q==="get"||q==="set"))this.raise(F.DeclareAccessor,Q,{kind:q});if(j)Q.typeParameters=j;super.pushClassMethod(J,Q,V,Y,W,z)}pushClassPrivateMethod(J,Q,V,Y){let W=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(W)Q.typeParameters=W;super.pushClassPrivateMethod(J,Q,V,Y)}declareClassPrivateMethodInScope(J,Q){if(J.type==="TSDeclareMethod")return;if(J.type==="MethodDefinition"&&!hasOwnProperty.call(J.value,"body"))return;super.declareClassPrivateMethodInScope(J,Q)}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass&&(this.match(47)||this.match(51)))J.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual(113))J.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(J,Q,V,Y,W,z,j){let R=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(R)J.typeParameters=R;return super.parseObjPropValue(J,Q,V,Y,W,z,j)}parseFunctionParams(J,Q){let V=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(V)J.typeParameters=V;super.parseFunctionParams(J,Q)}parseVarId(J,Q){if(super.parseVarId(J,Q),J.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))J.definite=!0;let V=this.tsTryParseTypeAnnotation();if(V)J.id.typeAnnotation=V,this.resetEndLocation(J.id)}parseAsyncArrowFromCallExpression(J,Q){if(this.match(14))J.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(J,Q)}parseMaybeAssign(J,Q){var V,Y,W,z,j;let R,q,H;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(R=this.state.clone(),q=this.tryParse(()=>super.parseMaybeAssign(J,Q),R),!q.error)return q.node;let{context:B}=this.state,A=B[B.length-1];if(A===C.j_oTag||A===C.j_expr)B.pop()}if(!((V=q)!=null&&V.error)&&!this.match(47))return super.parseMaybeAssign(J,Q);if(!R||R===this.state)R=this.state.clone();let K,$=this.tryParse((B)=>{var A,I;K=this.tsParseTypeParameters(this.tsParseConstModifier);let M=super.parseMaybeAssign(J,Q);if(M.type!=="ArrowFunctionExpression"||(A=M.extra)!=null&&A.parenthesized)B();if(((I=K)==null?void 0:I.params.length)!==0)this.resetStartLocationFromNode(M,K);return M.typeParameters=K,M},R);if(!$.error&&!$.aborted){if(K)this.reportReservedArrowTypeParam(K);return $.node}if(!q){if(nJ(!this.hasPlugin("jsx")),H=this.tryParse(()=>super.parseMaybeAssign(J,Q),R),!H.error)return H.node}if((Y=q)!=null&&Y.node)return this.state=q.failState,q.node;if($.node){if(this.state=$.failState,K)this.reportReservedArrowTypeParam(K);return $.node}if((W=H)!=null&&W.node)return this.state=H.failState,H.node;throw((z=q)==null?void 0:z.error)||$.error||((j=H)==null?void 0:j.error)}reportReservedArrowTypeParam(J){var Q;if(J.params.length===1&&!J.params[0].constraint&&!((Q=J.extra)!=null&&Q.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(F.ReservedArrowTypeParam,J)}parseMaybeUnary(J,Q){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(J,Q)}parseArrow(J){if(this.match(14)){let Q=this.tryParse((V)=>{let Y=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))V();return Y});if(Q.aborted)return;if(!Q.thrown){if(Q.error)this.state=Q.failState;J.returnType=Q.node}}return super.parseArrow(J)}parseFunctionParamType(J){if(this.eat(17))J.optional=!0;let Q=this.tsTryParseTypeAnnotation();if(Q)J.typeAnnotation=Q;return this.resetEndLocation(J),J}isAssignable(J,Q){switch(J.type){case"TSTypeCastExpression":return this.isAssignable(J.expression,Q);case"TSParameterProperty":return!0;default:return super.isAssignable(J,Q)}}toAssignable(J,Q=!1){switch(J.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(J,Q);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(Q)this.expressionScope.recordArrowParameterBindingError(F.UnexpectedTypeCastInParameter,J);else this.raise(F.UnexpectedTypeCastInParameter,J);this.toAssignable(J.expression,Q);break;case"AssignmentExpression":if(!Q&&J.left.type==="TSTypeCastExpression")J.left=this.typeCastToParameter(J.left);default:super.toAssignable(J,Q)}}toAssignableParenthesizedExpression(J,Q){switch(J.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(J.expression,Q);break;default:super.toAssignable(J,Q)}}checkToRestConversion(J,Q){switch(J.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(J.expression,!1);break;default:super.checkToRestConversion(J,Q)}}isValidLVal(J,Q,V){switch(J){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(V!==64||!Q)&&["expression",!0];default:return super.isValidLVal(J,Q,V)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(J,Q){if(this.match(47)||this.match(51)){let V=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let Y=super.parseMaybeDecoratorArguments(J,Q);return Y.typeParameters=V,Y}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(J,Q)}checkCommaAfterRest(J){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===J)return this.next(),!1;return super.checkCommaAfterRest(J)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(J,Q){let V=super.parseMaybeDefault(J,Q);if(V.type==="AssignmentPattern"&&V.typeAnnotation&&V.right.start<V.typeAnnotation.start)this.raise(F.TypeAnnotationAfterAssign,V.typeAnnotation);return V}getTokenFromCode(J){if(this.state.inType){if(J===62){this.finishOp(48,1);return}if(J===60){this.finishOp(47,1);return}}super.getTokenFromCode(J)}reScan_lt_gt(){let{type:J}=this.state;if(J===47)this.state.pos-=1,this.readToken_lt();else if(J===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:J}=this.state;if(J===51)return this.state.pos-=2,this.finishOp(47,1),47;return J}toAssignableListItem(J,Q,V){let Y=J[Q];if(Y.type==="TSTypeCastExpression")J[Q]=this.typeCastToParameter(Y);super.toAssignableListItem(J,Q,V)}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.loc.end),J.expression}shouldParseArrow(J){if(this.match(14))return J.every((Q)=>this.isAssignable(Q,!0));return super.shouldParseArrow(J)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(J){if(this.match(47)||this.match(51)){let Q=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(Q)J.typeParameters=Q}return super.jsxParseOpeningElementAfterName(J)}getGetterSetterExpectedParamCount(J){let Q=super.getGetterSetterExpectedParamCount(J),Y=this.getObjectOrClassMethodParams(J)[0];return Y&&this.isThisParam(Y)?Q+1:Q}parseCatchClauseParam(){let J=super.parseCatchClauseParam(),Q=this.tsTryParseTypeAnnotation();if(Q)J.typeAnnotation=Q,this.resetEndLocation(J);return J}tsInAmbientContext(J){let{isAmbientContext:Q,strict:V}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return J()}finally{this.state.isAmbientContext=Q,this.state.strict=V}}parseClass(J,Q,V){let Y=this.state.inAbstractClass;this.state.inAbstractClass=!!J.abstract;try{return super.parseClass(J,Q,V)}finally{this.state.inAbstractClass=Y}}tsParseAbstractDeclaration(J,Q){if(this.match(80))return J.abstract=!0,this.maybeTakeDecorators(Q,this.parseClass(J,!0,!1));else if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return J.abstract=!0,this.raise(F.NonClassMethodPropertyHasAbstractModifer,J),this.tsParseInterfaceDeclaration(J)}else this.unexpected(null,80)}parseMethod(J,Q,V,Y,W,z,j){let R=super.parseMethod(J,Q,V,Y,W,z,j);if(R.abstract){if((this.hasPlugin("estree")?R.value:R).body){let{key:K}=R;this.raise(F.AbstractMethodHasImplementation,R,{methodName:K.type==="Identifier"&&!R.computed?K.name:`[${this.input.slice(this.offsetToSourcePos(K.start),this.offsetToSourcePos(K.end))}]`})}}return R}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(J,Q,V,Y){if(!Q&&Y)return this.parseTypeOnlyImportExportSpecifier(J,!1,V),this.finishNode(J,"ExportSpecifier");return J.exportKind="value",super.parseExportSpecifier(J,Q,V,Y)}parseImportSpecifier(J,Q,V,Y,W){if(!Q&&Y)return this.parseTypeOnlyImportExportSpecifier(J,!0,V),this.finishNode(J,"ImportSpecifier");return J.importKind="value",super.parseImportSpecifier(J,Q,V,Y,V?4098:4096)}parseTypeOnlyImportExportSpecifier(J,Q,V){let Y=Q?"imported":"local",W=Q?"local":"exported",z=J[Y],j,R=!1,q=!0,H=z.loc.start;if(this.isContextual(93)){let $=this.parseIdentifier();if(this.isContextual(93)){let B=this.parseIdentifier();if(k(this.state.type))R=!0,z=$,j=Q?this.parseIdentifier():this.parseModuleExportName(),q=!1;else j=B,q=!1}else if(k(this.state.type))q=!1,j=Q?this.parseIdentifier():this.parseModuleExportName();else R=!0,z=$}else if(k(this.state.type))if(R=!0,Q){if(z=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(z.name,z.loc.start,!0,!0)}else z=this.parseModuleExportName();if(R&&V)this.raise(Q?F.TypeModifierIsUsedInTypeImports:F.TypeModifierIsUsedInTypeExports,H);J[Y]=z,J[W]=j;let K=Q?"importKind":"exportKind";if(J[K]=R?"type":"value",q&&this.eatContextual(93))J[W]=Q?this.parseIdentifier():this.parseModuleExportName();if(!J[W])J[W]=f(J[Y]);if(Q)this.checkIdentifier(J[W],R?4098:4096)}};function t0(Z){if(Z.type!=="MemberExpression")return!1;let{computed:X,property:J}=Z;if(X&&J.type!=="StringLiteral"&&(J.type!=="TemplateLiteral"||J.expressions.length>0))return!1;return SZ(Z.object)}function n0(Z,X){var J;let{type:Q}=Z;if((J=Z.extra)!=null&&J.parenthesized)return!1;if(X){if(Q==="Literal"){let{value:V}=Z;if(typeof V==="string"||typeof V==="boolean")return!0}}else if(Q==="StringLiteral"||Q==="BooleanLiteral")return!0;if(AZ(Z,X)||s0(Z,X))return!0;if(Q==="TemplateLiteral"&&Z.expressions.length===0)return!0;if(t0(Z))return!0;return!1}function AZ(Z,X){if(X)return Z.type==="Literal"&&(typeof Z.value==="number"||("bigint"in Z));return Z.type==="NumericLiteral"||Z.type==="BigIntLiteral"}function s0(Z,X){if(Z.type==="UnaryExpression"){let{operator:J,argument:Q}=Z;if(J==="-"&&AZ(Q,X))return!0}return!1}function SZ(Z){if(Z.type==="Identifier")return!0;if(Z.type!=="MemberExpression"||Z.computed)return!1;return SZ(Z.object)}var rJ=u`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),r0=(Z)=>class X extends Z{parsePlaceholder(J){if(this.match(133)){let Q=this.startNode();return this.next(),this.assertNoSpace(),Q.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(Q,J)}}finishPlaceholder(J,Q){let V=J;if(!V.expectedNode||!V.type)V=this.finishNode(V,"Placeholder");return V.expectedNode=Q,V}getTokenFromCode(J){if(J===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(133,2);else super.getTokenFromCode(J)}parseExprAtom(J){return this.parsePlaceholder("Expression")||super.parseExprAtom(J)}parseIdentifier(J){return this.parsePlaceholder("Identifier")||super.parseIdentifier(J)}checkReservedWord(J,Q,V,Y){if(J!==void 0)super.checkReservedWord(J,Q,V,Y)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(J,Q,V){return J==="Placeholder"||super.isValidLVal(J,Q,V)}toAssignable(J,Q){if(J&&J.type==="Placeholder"&&J.expectedNode==="Expression")J.expectedNode="Pattern";else super.toAssignable(J,Q)}chStartsBindingIdentifier(J,Q){if(super.chStartsBindingIdentifier(J,Q))return!0;if(this.lookahead().type===133)return!0;return!1}verifyBreakContinue(J,Q){if(J.label&&J.label.type==="Placeholder")return;super.verifyBreakContinue(J,Q)}parseExpressionStatement(J,Q){var V;if(Q.type!=="Placeholder"||(V=Q.extra)!=null&&V.parenthesized)return super.parseExpressionStatement(J,Q);if(this.match(14)){let W=J;return W.label=this.finishPlaceholder(Q,"Identifier"),this.next(),W.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(W,"LabeledStatement")}this.semicolon();let Y=J;return Y.name=Q.name,this.finishPlaceholder(Y,"Statement")}parseBlock(J,Q,V){return this.parsePlaceholder("BlockStatement")||super.parseBlock(J,Q,V)}parseFunctionId(J){return this.parsePlaceholder("Identifier")||super.parseFunctionId(J)}parseClass(J,Q,V){let Y=Q?"ClassDeclaration":"ClassExpression";this.next();let W=this.state.strict,z=this.parsePlaceholder("Identifier");if(z)if(this.match(81)||this.match(133)||this.match(5))J.id=z;else if(V||!Q)return J.id=null,J.body=this.finishPlaceholder(z,"ClassBody"),this.finishNode(J,Y);else throw this.raise(rJ.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(J,Q,V);return super.parseClassSuper(J),J.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!J.superClass,W),this.finishNode(J,Y)}parseExport(J,Q){let V=this.parsePlaceholder("Identifier");if(!V)return super.parseExport(J,Q);let Y=J;if(!this.isContextual(98)&&!this.match(12))return Y.specifiers=[],Y.source=null,Y.declaration=this.finishPlaceholder(V,"Declaration"),this.finishNode(Y,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let W=this.startNode();return W.exported=V,Y.specifiers=[this.finishNode(W,"ExportDefaultSpecifier")],super.parseExport(Y,Q)}isExportDefaultSpecifier(){if(this.match(65)){let J=this.nextTokenStart();if(this.isUnparsedContextual(J,"from")){if(this.input.startsWith(m(133),this.nextTokenStartSince(J+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(J,Q){var V;if((V=J.specifiers)!=null&&V.length)return!0;return super.maybeParseExportDefaultSpecifier(J,Q)}checkExport(J){let{specifiers:Q}=J;if(Q!=null&&Q.length)J.specifiers=Q.filter((V)=>V.exported.type==="Placeholder");super.checkExport(J),J.specifiers=Q}parseImport(J){let Q=this.parsePlaceholder("Identifier");if(!Q)return super.parseImport(J);if(J.specifiers=[],!this.isContextual(98)&&!this.match(12))return J.source=this.finishPlaceholder(Q,"StringLiteral"),this.semicolon(),this.finishNode(J,"ImportDeclaration");let V=this.startNodeAtNode(Q);if(V.local=Q,J.specifiers.push(this.finishNode(V,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(J))this.parseNamedImportSpecifiers(J)}return this.expectContextual(98),J.source=this.parseImportSource(),this.semicolon(),this.finishNode(J,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index))this.raise(rJ.UnexpectedSpace,this.state.lastTokEndLoc)}},o0=(Z)=>class X extends Z{parseV8Intrinsic(){if(this.match(54)){let J=this.state.startLoc,Q=this.startNode();if(this.next(),N(this.state.type)){let V=this.parseIdentifierName(),Y=this.createIdentifier(Q,V);if(Y.type="V8IntrinsicIdentifier",this.match(10))return Y}this.unexpected(J)}}parseExprAtom(J){return this.parseV8Intrinsic()||super.parseExprAtom(J)}},oJ=["minimal","fsharp","hack","smart"],eJ=["^^","@@","^","%","#"];function e0(Z){if(Z.has("decorators")){if(Z.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let J=Z.get("decorators").decoratorsBeforeExport;if(J!=null&&typeof J!=="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let Q=Z.get("decorators").allowCallParenthesized;if(Q!=null&&typeof Q!=="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(Z.has("flow")&&Z.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Z.has("placeholders")&&Z.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Z.has("pipelineOperator")){var X;let J=Z.get("pipelineOperator").proposal;if(!oJ.includes(J)){let V=oJ.map((Y)=>`"${Y}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${V}.`)}let Q=((X=Z.get("recordAndTuple"))==null?void 0:X.syntaxType)==="hash";if(J==="hack"){if(Z.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Z.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let V=Z.get("pipelineOperator").topicToken;if(!eJ.includes(V)){let Y=eJ.map((W)=>`"${W}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${Y}.`)}if(V==="#"&&Q)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",Z.get("recordAndTuple")])}\`.`)}else if(J==="smart"&&Q)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",Z.get("recordAndTuple")])}\`.`)}if(Z.has("moduleAttributes")){if(Z.has("deprecatedImportAssert")||Z.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(Z.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(Z.has("importAssertions")){if(Z.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}if(!Z.has("deprecatedImportAssert")&&Z.has("importAttributes")&&Z.get("importAttributes").deprecatedAssertSyntax)Z.set("deprecatedImportAssert",{});if(Z.has("recordAndTuple")){let J=Z.get("recordAndTuple").syntaxType;if(J!=null){let Q=["hash","bar"];if(!Q.includes(J))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Q.map((V)=>`'${V}'`).join(", "))}}if(Z.has("asyncDoExpressions")&&!Z.has("doExpressions")){let J=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw J.missingPlugins="doExpressions",J}if(Z.has("optionalChainingAssign")&&Z.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'.")}var PZ={estree:Z0,jsx:l0,flow:m0,typescript:a0,v8intrinsic:o0,placeholders:r0},J1=Object.keys(PZ);class wZ extends MZ{checkProto(Z,X,J,Q){if(Z.type==="SpreadElement"||this.isObjectMethod(Z)||Z.computed||Z.shorthand)return J;let V=Z.key;if((V.type==="Identifier"?V.name:V.value)==="__proto__"){if(X)return this.raise(U.RecordNoProto,V),!0;if(J)if(Q){if(Q.doubleProtoLoc===null)Q.doubleProtoLoc=V.loc.start}else this.raise(U.DuplicateProto,V);return!0}return J}shouldExitDescending(Z,X){return Z.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(Z.start)===X}getExpression(){this.enterInitialScopes(),this.nextToken();let Z=this.parseExpression();if(!this.match(140))this.unexpected();if(this.finalizeRemainingComments(),Z.comments=this.comments,Z.errors=this.state.errors,this.optionFlags&256)Z.tokens=this.tokens;return Z}parseExpression(Z,X){if(Z)return this.disallowInAnd(()=>this.parseExpressionBase(X));return this.allowInAnd(()=>this.parseExpressionBase(X))}parseExpressionBase(Z){let X=this.state.startLoc,J=this.parseMaybeAssign(Z);if(this.match(12)){let Q=this.startNodeAt(X);Q.expressions=[J];while(this.eat(12))Q.expressions.push(this.parseMaybeAssign(Z));return this.toReferencedList(Q.expressions),this.finishNode(Q,"SequenceExpression")}return J}parseMaybeAssignDisallowIn(Z,X){return this.disallowInAnd(()=>this.parseMaybeAssign(Z,X))}parseMaybeAssignAllowIn(Z,X){return this.allowInAnd(()=>this.parseMaybeAssign(Z,X))}setOptionalParametersError(Z){Z.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(Z,X){let J=this.state.startLoc,Q=this.isContextual(108);if(Q){if(this.prodParam.hasYield){this.next();let z=this.parseYield(J);if(X)z=X.call(this,z,J);return z}}let V;if(Z)V=!1;else Z=new ZJ,V=!0;let{type:Y}=this.state;if(Y===10||N(Y))this.state.potentialArrowAt=this.state.start;let W=this.parseMaybeConditional(Z);if(X)W=X.call(this,W,J);if(W0(this.state.type)){let z=this.startNodeAt(J),j=this.state.value;if(z.operator=j,this.match(29)){this.toAssignable(W,!0),z.left=W;let R=J.index;if(Z.doubleProtoLoc!=null&&Z.doubleProtoLoc.index>=R)Z.doubleProtoLoc=null;if(Z.shorthandAssignLoc!=null&&Z.shorthandAssignLoc.index>=R)Z.shorthandAssignLoc=null;if(Z.privateKeyLoc!=null&&Z.privateKeyLoc.index>=R)this.checkDestructuringPrivate(Z),Z.privateKeyLoc=null}else z.left=W;return this.next(),z.right=this.parseMaybeAssign(),this.checkLVal(W,this.finishNode(z,"AssignmentExpression")),z}else if(V)this.checkExpressionErrors(Z,!0);if(Q){let{type:z}=this.state;if((this.hasPlugin("v8intrinsic")?o(z):o(z)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(U.YieldNotInGeneratorFunction,J),this.parseYield(J)}return W}parseMaybeConditional(Z){let X=this.state.startLoc,J=this.state.potentialArrowAt,Q=this.parseExprOps(Z);if(this.shouldExitDescending(Q,J))return Q;return this.parseConditional(Q,X,Z)}parseConditional(Z,X,J){if(this.eat(17)){let Q=this.startNodeAt(X);return Q.test=Z,Q.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),Q.alternate=this.parseMaybeAssign(),this.finishNode(Q,"ConditionalExpression")}return Z}parseMaybeUnaryOrPrivate(Z){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(Z)}parseExprOps(Z){let X=this.state.startLoc,J=this.state.potentialArrowAt,Q=this.parseMaybeUnaryOrPrivate(Z);if(this.shouldExitDescending(Q,J))return Q;return this.parseExprOp(Q,X,-1)}parseExprOp(Z,X,J){if(this.isPrivateName(Z)){let V=this.getPrivateNameSV(Z);if(J>=qJ(58)||!this.prodParam.hasIn||!this.match(58))this.raise(U.PrivateInExpectedIn,Z,{identifierName:V});this.classScope.usePrivateName(V,Z.loc.start)}let Q=this.state.type;if(j0(Q)&&(this.prodParam.hasIn||!this.match(58))){let V=qJ(Q);if(V>J){if(Q===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return Z;this.checkPipelineAtInfixOperator(Z,X)}let Y=this.startNodeAt(X);Y.left=Z,Y.operator=this.state.value;let W=Q===41||Q===42,z=Q===40;if(z)V=qJ(42);if(this.next(),Q===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(U.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}Y.right=this.parseExprOpRightExpr(Q,V);let j=this.finishNode(Y,W||z?"LogicalExpression":"BinaryExpression"),R=this.state.type;if(z&&(R===41||R===42)||W&&R===40)throw this.raise(U.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(j,X,J)}}return Z}parseExprOpRightExpr(Z,X){let J=this.state.startLoc;switch(Z){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody(X)})}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(U.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(Z,X),J)});default:return this.parseExprOpBaseRightExpr(Z,X)}}parseExprOpBaseRightExpr(Z,X){let J=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),J,K0(Z)?X-1:X)}parseHackPipeBody(){var Z;let{startLoc:X}=this.state,J=this.parseMaybeAssign();if(tZ.has(J.type)&&!((Z=J.extra)!=null&&Z.parenthesized))this.raise(U.PipeUnparenthesizedBody,X,{type:J.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(U.PipeTopicUnused,X);return J}checkExponentialAfterUnary(Z){if(this.match(57))this.raise(U.UnexpectedTokenUnaryExponentiation,Z.argument)}parseMaybeUnary(Z,X){let J=this.state.startLoc,Q=this.isContextual(96);if(Q&&this.recordAwaitIfAllowed()){this.next();let z=this.parseAwait(J);if(!X)this.checkExponentialAfterUnary(z);return z}let V=this.match(34),Y=this.startNode();if(U0(this.state.type)){if(Y.operator=this.state.value,Y.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let z=this.match(89);if(this.next(),Y.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(Z,!0),this.state.strict&&z){let j=Y.argument;if(j.type==="Identifier")this.raise(U.StrictDelete,Y);else if(this.hasPropertyAsPrivateName(j))this.raise(U.DeletePrivateField,Y)}if(!V){if(!X)this.checkExponentialAfterUnary(Y);return this.finishNode(Y,"UnaryExpression")}}let W=this.parseUpdate(Y,V,Z);if(Q){let{type:z}=this.state;if((this.hasPlugin("v8intrinsic")?o(z):o(z)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(U.AwaitNotInAsyncContext,J),this.parseAwait(J)}return W}parseUpdate(Z,X,J){if(X){let Y=Z;return this.checkLVal(Y.argument,this.finishNode(Y,"UpdateExpression")),Z}let Q=this.state.startLoc,V=this.parseExprSubscripts(J);if(this.checkExpressionErrors(J,!1))return V;while(R0(this.state.type)&&!this.canInsertSemicolon()){let Y=this.startNodeAt(Q);Y.operator=this.state.value,Y.prefix=!1,Y.argument=V,this.next(),this.checkLVal(V,V=this.finishNode(Y,"UpdateExpression"))}return V}parseExprSubscripts(Z){let X=this.state.startLoc,J=this.state.potentialArrowAt,Q=this.parseExprAtom(Z);if(this.shouldExitDescending(Q,J))return Q;return this.parseSubscripts(Q,X)}parseSubscripts(Z,X,J){let Q={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(Z),stop:!1};do Z=this.parseSubscript(Z,X,J,Q),Q.maybeAsyncArrow=!1;while(!Q.stop);return Z}parseSubscript(Z,X,J,Q){let{type:V}=this.state;if(!J&&V===15)return this.parseBind(Z,X,J,Q);else if(KJ(V))return this.parseTaggedTemplateExpression(Z,X,Q);let Y=!1;if(V===18){if(J){if(this.raise(U.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return Q.stop=!0,Z}Q.optionalChainMember=Y=!0,this.next()}if(!J&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(Z,X,Q,Y);else{let W=this.eat(0);if(W||Y||this.eat(16))return this.parseMember(Z,X,Q,W,Y);else return Q.stop=!0,Z}}parseMember(Z,X,J,Q,V){let Y=this.startNodeAt(X);if(Y.object=Z,Y.computed=Q,Q)Y.property=this.parseExpression(),this.expect(3);else if(this.match(139)){if(Z.type==="Super")this.raise(U.SuperPrivateField,X);this.classScope.usePrivateName(this.state.value,this.state.startLoc),Y.property=this.parsePrivateName()}else Y.property=this.parseIdentifier(!0);if(J.optionalChainMember)return Y.optional=V,this.finishNode(Y,"OptionalMemberExpression");else return this.finishNode(Y,"MemberExpression")}parseBind(Z,X,J,Q){let V=this.startNodeAt(X);return V.object=Z,this.next(),V.callee=this.parseNoCallExpr(),Q.stop=!0,this.parseSubscripts(this.finishNode(V,"BindExpression"),X,J)}parseCoverCallAndAsyncArrowHead(Z,X,J,Q){let V=this.state.maybeInArrowParameters,Y=null;this.state.maybeInArrowParameters=!0,this.next();let W=this.startNodeAt(X);W.callee=Z;let{maybeAsyncArrow:z,optionalChainMember:j}=J;if(z)this.expressionScope.enter(g0()),Y=new ZJ;if(j)W.optional=Q;if(Q)W.arguments=this.parseCallExpressionArguments(11);else W.arguments=this.parseCallExpressionArguments(11,Z.type!=="Super",W,Y);let R=this.finishCallExpression(W,j);if(z&&this.shouldParseAsyncArrow()&&!Q)J.stop=!0,this.checkDestructuringPrivate(Y),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),R=this.parseAsyncArrowFromCallExpression(this.startNodeAt(X),R);else{if(z)this.checkExpressionErrors(Y,!0),this.expressionScope.exit();this.toReferencedArguments(R)}return this.state.maybeInArrowParameters=V,R}toReferencedArguments(Z,X){this.toReferencedListDeep(Z.arguments,X)}parseTaggedTemplateExpression(Z,X,J){let Q=this.startNodeAt(X);if(Q.tag=Z,Q.quasi=this.parseTemplate(!0),J.optionalChainMember)this.raise(U.OptionalChainingNoTemplate,X);return this.finishNode(Q,"TaggedTemplateExpression")}atPossibleAsyncArrow(Z){return Z.type==="Identifier"&&Z.name==="async"&&this.state.lastTokEndLoc.index===Z.end&&!this.canInsertSemicolon()&&Z.end-Z.start===5&&this.offsetToSourcePos(Z.start)===this.state.potentialArrowAt}finishCallExpression(Z,X){if(Z.callee.type==="Import"){if(Z.arguments.length===0||Z.arguments.length>2)this.raise(U.ImportCallArity,Z);else for(let J of Z.arguments)if(J.type==="SpreadElement")this.raise(U.ImportCallSpreadArgument,J)}return this.finishNode(Z,X?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(Z,X,J,Q){let V=[],Y=!0,W=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(Z)){if(Y)Y=!1;else if(this.expect(12),this.match(Z)){if(J)this.addTrailingCommaExtraToNode(J);this.next();break}V.push(this.parseExprListItem(!1,Q,X))}return this.state.inFSharpPipelineDirectBody=W,V}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(Z,X){var J;if(this.resetPreviousNodeTrailingComments(X),this.expect(19),this.parseArrowExpression(Z,X.arguments,!0,(J=X.extra)==null?void 0:J.trailingCommaLoc),X.innerComments)XJ(Z,X.innerComments);if(X.callee.trailingComments)XJ(Z,X.callee.trailingComments);return Z}parseNoCallExpr(){let Z=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),Z,!0)}parseExprAtom(Z){let X,J=null,{type:Q}=this.state;switch(Q){case 79:return this.parseSuper();case 83:if(X=this.startNode(),this.next(),this.match(16))return this.parseImportMetaProperty(X);if(this.match(10))if(this.optionFlags&512)return this.parseImportCall(X);else return this.finishNode(X,"Import");else return this.raise(U.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(X,"Import");case 78:return X=this.startNode(),this.next(),this.finishNode(X,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let V=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(V)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,Z);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,Z);case 68:return this.parseFunctionOrFunctionSent();case 26:J=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(J,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{X=this.startNode(),this.next(),X.object=null;let V=X.callee=this.parseNoCallExpr();if(V.type==="MemberExpression")return this.finishNode(X,"BindExpression");else throw this.raise(U.UnsupportedBind,V)}case 139:return this.raise(U.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let V=this.getPluginOption("pipelineOperator","proposal");if(V)return this.parseTopicReference(V);this.unexpected();break}case 47:{let V=this.input.codePointAt(this.nextTokenStart());if(b(V)||V===62)this.expectOnePlugin(["jsx","flow","typescript"]);else this.unexpected();break}default:if(Q===137)return this.parseDecimalLiteral(this.state.value);if(N(Q)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let V=this.state.potentialArrowAt===this.state.start,Y=this.state.containsEsc,W=this.parseIdentifier();if(!Y&&W.name==="async"&&!this.canInsertSemicolon()){let{type:z}=this.state;if(z===68)return this.resetPreviousNodeTrailingComments(W),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(W));else if(N(z))if(this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(W));else return W;else if(z===90)return this.resetPreviousNodeTrailingComments(W),this.parseDo(this.startNodeAtNode(W),!0)}if(V&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(W),[W],!1);return W}else this.unexpected()}}parseTopicReferenceThenEqualsSign(Z,X){let J=this.getPluginOption("pipelineOperator","proposal");if(J)return this.state.type=Z,this.state.value=X,this.state.pos--,this.state.end--,this.state.endLoc=w(this.state.endLoc,-1),this.parseTopicReference(J);else this.unexpected()}parseTopicReference(Z){let X=this.startNode(),J=this.state.startLoc,Q=this.state.type;return this.next(),this.finishTopicReference(X,J,Z,Q)}finishTopicReference(Z,X,J,Q){if(this.testTopicReferenceConfiguration(J,X,Q))if(J==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(U.PipeTopicUnbound,X);return this.registerTopicReference(),this.finishNode(Z,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(U.PrimaryTopicNotAllowed,X);return this.registerTopicReference(),this.finishNode(Z,"PipelinePrimaryTopicReference")}else throw this.raise(U.PipeTopicUnconfiguredToken,X,{token:m(Q)})}testTopicReferenceConfiguration(Z,X,J){switch(Z){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:m(J)}]);case"smart":return J===27;default:throw this.raise(U.PipeTopicRequiresHackPipes,X)}}parseAsyncArrowUnaryFunction(Z){this.prodParam.enter(HJ(!0,this.prodParam.hasYield));let X=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(U.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(Z,X,!0)}parseDo(Z,X){if(this.expectPlugin("doExpressions"),X)this.expectPlugin("asyncDoExpressions");Z.async=X,this.next();let J=this.state.labels;if(this.state.labels=[],X)this.prodParam.enter(2),Z.body=this.parseBlock(),this.prodParam.exit();else Z.body=this.parseBlock();return this.state.labels=J,this.finishNode(Z,"DoExpression")}parseSuper(){let Z=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16))this.raise(U.SuperNotAllowed,Z);else if(!this.scope.allowSuper&&!(this.optionFlags&16))this.raise(U.UnexpectedSuper,Z);if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(U.UnsupportedSuper,Z);return this.finishNode(Z,"Super")}parsePrivateName(){let Z=this.startNode(),X=this.startNodeAt(w(this.state.startLoc,1)),J=this.state.value;return this.next(),Z.id=this.createIdentifier(X,J),this.finishNode(Z,"PrivateName")}parseFunctionOrFunctionSent(){let Z=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let X=this.createIdentifier(this.startNodeAtNode(Z),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(Z,X,"sent")}return this.parseFunction(Z)}parseMetaProperty(Z,X,J){Z.meta=X;let Q=this.state.containsEsc;if(Z.property=this.parseIdentifier(!0),Z.property.name!==J||Q)this.raise(U.UnsupportedMetaProperty,Z.property,{target:X.name,onlyValidPropertyName:J});return this.finishNode(Z,"MetaProperty")}parseImportMetaProperty(Z){let X=this.createIdentifier(this.startNodeAtNode(Z),"import");if(this.next(),this.isContextual(101)){if(!this.inModule)this.raise(U.ImportMetaOutsideModule,X);this.sawUnambiguousESM=!0}else if(this.isContextual(105)||this.isContextual(97)){let J=this.isContextual(105);if(this.expectPlugin(J?"sourcePhaseImports":"deferredImportEvaluation"),!(this.optionFlags&512))throw this.raise(U.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),Z.phase=J?"source":"defer",this.parseImportCall(Z)}return this.parseMetaProperty(Z,X,"meta")}parseLiteralAtNode(Z,X,J){return this.addExtra(J,"rawValue",Z),this.addExtra(J,"raw",this.input.slice(this.offsetToSourcePos(J.start),this.state.end)),J.value=Z,this.next(),this.finishNode(J,X)}parseLiteral(Z,X){let J=this.startNode();return this.parseLiteralAtNode(Z,X,J)}parseStringLiteral(Z){return this.parseLiteral(Z,"StringLiteral")}parseNumericLiteral(Z){return this.parseLiteral(Z,"NumericLiteral")}parseBigIntLiteral(Z){return this.parseLiteral(Z,"BigIntLiteral")}parseDecimalLiteral(Z){return this.parseLiteral(Z,"DecimalLiteral")}parseRegExpLiteral(Z){let X=this.startNode();return this.addExtra(X,"raw",this.input.slice(this.offsetToSourcePos(X.start),this.state.end)),X.pattern=Z.pattern,X.flags=Z.flags,this.next(),this.finishNode(X,"RegExpLiteral")}parseBooleanLiteral(Z){let X=this.startNode();return X.value=Z,this.next(),this.finishNode(X,"BooleanLiteral")}parseNullLiteral(){let Z=this.startNode();return this.next(),this.finishNode(Z,"NullLiteral")}parseParenAndDistinguishExpression(Z){let X=this.state.startLoc,J;this.next(),this.expressionScope.enter(L0());let Q=this.state.maybeInArrowParameters,V=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let Y=this.state.startLoc,W=[],z=new ZJ,j=!0,R,q;while(!this.match(11)){if(j)j=!1;else if(this.expect(12,z.optionalParametersLoc===null?null:z.optionalParametersLoc),this.match(11)){q=this.state.startLoc;break}if(this.match(21)){let $=this.state.startLoc;if(R=this.state.startLoc,W.push(this.parseParenItem(this.parseRestBinding(),$)),!this.checkCommaAfterRest(41))break}else W.push(this.parseMaybeAssignAllowIn(z,this.parseParenItem))}let H=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=Q,this.state.inFSharpPipelineDirectBody=V;let K=this.startNodeAt(X);if(Z&&this.shouldParseArrow(W)&&(K=this.parseArrow(K)))return this.checkDestructuringPrivate(z),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(K,W,!1),K;if(this.expressionScope.exit(),!W.length)this.unexpected(this.state.lastTokStartLoc);if(q)this.unexpected(q);if(R)this.unexpected(R);if(this.checkExpressionErrors(z,!0),this.toReferencedListDeep(W,!0),W.length>1)J=this.startNodeAt(Y),J.expressions=W,this.finishNode(J,"SequenceExpression"),this.resetEndLocation(J,H);else J=W[0];return this.wrapParenthesis(X,J)}wrapParenthesis(Z,X){if(!(this.optionFlags&1024))return this.addExtra(X,"parenthesized",!0),this.addExtra(X,"parenStart",Z.index),this.takeSurroundingComments(X,Z.index,this.state.lastTokEndLoc.index),X;let J=this.startNodeAt(Z);return J.expression=X,this.finishNode(J,"ParenthesizedExpression")}shouldParseArrow(Z){return!this.canInsertSemicolon()}parseArrow(Z){if(this.eat(19))return Z}parseParenItem(Z,X){return Z}parseNewOrNewTarget(){let Z=this.startNode();if(this.next(),this.match(16)){let X=this.createIdentifier(this.startNodeAtNode(Z),"new");this.next();let J=this.parseMetaProperty(Z,X,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass&&!(this.optionFlags&4))this.raise(U.UnexpectedNewTarget,J);return J}return this.parseNew(Z)}parseNew(Z){if(this.parseNewCallee(Z),this.eat(10)){let X=this.parseExprList(11);this.toReferencedList(X),Z.arguments=X}else Z.arguments=[];return this.finishNode(Z,"NewExpression")}parseNewCallee(Z){let X=this.match(83),J=this.parseNoCallExpr();if(Z.callee=J,X&&(J.type==="Import"||J.type==="ImportExpression"))this.raise(U.ImportCallNotNewExpression,J)}parseTemplateElement(Z){let{start:X,startLoc:J,end:Q,value:V}=this.state,Y=X+1,W=this.startNodeAt(w(J,1));if(V===null){if(!Z)this.raise(U.InvalidEscapeSequenceTemplate,w(this.state.firstInvalidTemplateEscapePos,1))}let z=this.match(24),j=z?-1:-2,R=Q+j;W.value={raw:this.input.slice(Y,R).replace(/\r\n?/g,`
9
9
  `),cooked:V===null?null:V.slice(1,j)},W.tail=z,this.next();let q=this.finishNode(W,"TemplateElement");return this.resetEndLocation(q,w(this.state.lastTokEndLoc,j)),q}parseTemplate(Z){let X=this.startNode(),J=this.parseTemplateElement(Z),Q=[J],V=[];while(!J.tail)V.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),Q.push(J=this.parseTemplateElement(Z));return X.expressions=V,X.quasis=Q,this.finishNode(X,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(Z,X,J,Q){if(J)this.expectPlugin("recordAndTuple");let V=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Y=!1,W=!0,z=this.startNode();z.properties=[],this.next();while(!this.match(Z)){if(W)W=!1;else if(this.expect(12),this.match(Z)){this.addTrailingCommaExtraToNode(z);break}let R;if(X)R=this.parseBindingProperty();else R=this.parsePropertyDefinition(Q),Y=this.checkProto(R,J,Y,Q);if(J&&!this.isObjectProperty(R)&&R.type!=="SpreadElement")this.raise(U.InvalidRecordProperty,R);if(R.shorthand)this.addExtra(R,"shorthand",!0);z.properties.push(R)}this.next(),this.state.inFSharpPipelineDirectBody=V;let j="ObjectExpression";if(X)j="ObjectPattern";else if(J)j="RecordExpression";return this.finishNode(z,j)}addTrailingCommaExtraToNode(Z){this.addExtra(Z,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(Z,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(Z){return!Z.computed&&Z.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(Z){let X=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(U.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))X.push(this.parseDecorator())}let J=this.startNode(),Q=!1,V=!1,Y;if(this.match(21)){if(X.length)this.unexpected();return this.parseSpread()}if(X.length)J.decorators=X,X=[];if(J.method=!1,Z)Y=this.state.startLoc;let W=this.eat(55);this.parsePropertyNamePrefixOperator(J);let z=this.state.containsEsc;if(this.parsePropertyName(J,Z),!W&&!z&&this.maybeAsyncOrAccessorProp(J)){let{key:j}=J,R=j.name;if(R==="async"&&!this.hasPrecedingLineBreak())Q=!0,this.resetPreviousNodeTrailingComments(j),W=this.eat(55),this.parsePropertyName(J);if(R==="get"||R==="set"){if(V=!0,this.resetPreviousNodeTrailingComments(j),J.kind=R,this.match(55))W=!0,this.raise(U.AccessorIsGenerator,this.state.curPosition(),{kind:R}),this.next();this.parsePropertyName(J)}}return this.parseObjPropValue(J,Y,W,Q,!1,V,Z)}getGetterSetterExpectedParamCount(Z){return Z.kind==="get"?0:1}getObjectOrClassMethodParams(Z){return Z.params}checkGetterSetterParams(Z){var X;let J=this.getGetterSetterExpectedParamCount(Z),Q=this.getObjectOrClassMethodParams(Z);if(Q.length!==J)this.raise(Z.kind==="get"?U.BadGetterArity:U.BadSetterArity,Z);if(Z.kind==="set"&&((X=Q[Q.length-1])==null?void 0:X.type)==="RestElement")this.raise(U.BadSetterRestParameter,Z)}parseObjectMethod(Z,X,J,Q,V){if(V){let Y=this.parseMethod(Z,X,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(Y),Y}if(J||X||this.match(10)){if(Q)this.unexpected();return Z.kind="method",Z.method=!0,this.parseMethod(Z,X,J,!1,!1,"ObjectMethod")}}parseObjectProperty(Z,X,J,Q){if(Z.shorthand=!1,this.eat(14))return Z.value=J?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(Q),this.finishNode(Z,"ObjectProperty");if(!Z.computed&&Z.key.type==="Identifier"){if(this.checkReservedWord(Z.key.name,Z.key.loc.start,!0,!1),J)Z.value=this.parseMaybeDefault(X,f(Z.key));else if(this.match(29)){let V=this.state.startLoc;if(Q!=null){if(Q.shorthandAssignLoc===null)Q.shorthandAssignLoc=V}else this.raise(U.InvalidCoverInitializedName,V);Z.value=this.parseMaybeDefault(X,f(Z.key))}else Z.value=f(Z.key);return Z.shorthand=!0,this.finishNode(Z,"ObjectProperty")}}parseObjPropValue(Z,X,J,Q,V,Y,W){let z=this.parseObjectMethod(Z,J,Q,V,Y)||this.parseObjectProperty(Z,X,V,W);if(!z)this.unexpected();return z}parsePropertyName(Z,X){if(this.eat(0))Z.computed=!0,Z.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:J,value:Q}=this.state,V;if(k(J))V=this.parseIdentifier(!0);else switch(J){case 135:V=this.parseNumericLiteral(Q);break;case 134:V=this.parseStringLiteral(Q);break;case 136:V=this.parseBigIntLiteral(Q);break;case 139:{let Y=this.state.startLoc;if(X!=null){if(X.privateKeyLoc===null)X.privateKeyLoc=Y}else this.raise(U.UnexpectedPrivateField,Y);V=this.parsePrivateName();break}default:if(J===137){V=this.parseDecimalLiteral(Q);break}this.unexpected()}if(Z.key=V,J!==139)Z.computed=!1}}initFunction(Z,X){Z.id=null,Z.generator=!1,Z.async=X}parseMethod(Z,X,J,Q,V,Y,W=!1){this.initFunction(Z,J),Z.generator=X,this.scope.enter(18|(W?64:0)|(V?32:0)),this.prodParam.enter(HJ(J,Z.generator)),this.parseFunctionParams(Z,Q);let z=this.parseFunctionBodyAndFinish(Z,Y,!0);return this.prodParam.exit(),this.scope.exit(),z}parseArrayLike(Z,X,J,Q){if(J)this.expectPlugin("recordAndTuple");let V=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Y=this.startNode();return this.next(),Y.elements=this.parseExprList(Z,!J,Q,Y),this.state.inFSharpPipelineDirectBody=V,this.finishNode(Y,J?"TupleExpression":"ArrayExpression")}parseArrowExpression(Z,X,J,Q){this.scope.enter(6);let V=HJ(J,!1);if(!this.match(5)&&this.prodParam.hasIn)V|=8;this.prodParam.enter(V),this.initFunction(Z,J);let Y=this.state.maybeInArrowParameters;if(X)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(Z,X,Q);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(Z,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=Y,this.finishNode(Z,"ArrowFunctionExpression")}setArrowFunctionParameters(Z,X,J){this.toAssignableList(X,J,!1),Z.params=X}parseFunctionBodyAndFinish(Z,X,J=!1){return this.parseFunctionBody(Z,!1,J),this.finishNode(Z,X)}parseFunctionBody(Z,X,J=!1){let Q=X&&!this.match(5);if(this.expressionScope.enter(BZ()),Q)Z.body=this.parseMaybeAssign(),this.checkParams(Z,!1,X,!1);else{let V=this.state.strict,Y=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),Z.body=this.parseBlock(!0,!1,(W)=>{let z=!this.isSimpleParamList(Z.params);if(W&&z)this.raise(U.IllegalLanguageModeDirective,(Z.kind==="method"||Z.kind==="constructor")&&!!Z.key?Z.key.loc.end:Z);let j=!V&&this.state.strict;if(this.checkParams(Z,!this.state.strict&&!X&&!J&&!z,X,j),this.state.strict&&Z.id)this.checkIdentifier(Z.id,65,j)}),this.prodParam.exit(),this.state.labels=Y}this.expressionScope.exit()}isSimpleParameter(Z){return Z.type==="Identifier"}isSimpleParamList(Z){for(let X=0,J=Z.length;X<J;X++)if(!this.isSimpleParameter(Z[X]))return!1;return!0}checkParams(Z,X,J,Q=!0){let V=!X&&new Set,Y={type:"FormalParameters"};for(let W of Z.params)this.checkLVal(W,Y,5,V,Q)}parseExprList(Z,X,J,Q){let V=[],Y=!0;while(!this.eat(Z)){if(Y)Y=!1;else if(this.expect(12),this.match(Z)){if(Q)this.addTrailingCommaExtraToNode(Q);this.next();break}V.push(this.parseExprListItem(X,J))}return V}parseExprListItem(Z,X,J){let Q;if(this.match(12)){if(!Z)this.raise(U.UnexpectedToken,this.state.curPosition(),{unexpected:","});Q=null}else if(this.match(21)){let V=this.state.startLoc;Q=this.parseParenItem(this.parseSpread(X),V)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!J)this.raise(U.UnexpectedArgumentPlaceholder,this.state.startLoc);let V=this.startNode();this.next(),Q=this.finishNode(V,"ArgumentPlaceholder")}else Q=this.parseMaybeAssignAllowIn(X,this.parseParenItem);return Q}parseIdentifier(Z){let X=this.startNode(),J=this.parseIdentifierName(Z);return this.createIdentifier(X,J)}createIdentifier(Z,X){return Z.name=X,Z.loc.identifierName=X,this.finishNode(Z,"Identifier")}parseIdentifierName(Z){let X,{startLoc:J,type:Q}=this.state;if(k(Q))X=this.state.value;else this.unexpected();let V=V0(Q);if(Z){if(V)this.replaceToken(132)}else this.checkReservedWord(X,J,V,!1);return this.next(),X}checkReservedWord(Z,X,J,Q){if(Z.length>10)return;if(!C0(Z))return;if(J&&D0(Z)){this.raise(U.UnexpectedKeyword,X,{keyword:Z});return}if((!this.state.strict?VZ:Q?zZ:YZ)(Z,this.inModule)){this.raise(U.UnexpectedReservedWord,X,{reservedWord:Z});return}else if(Z==="yield"){if(this.prodParam.hasYield){this.raise(U.YieldBindingIdentifier,X);return}}else if(Z==="await"){if(this.prodParam.hasAwait){this.raise(U.AwaitBindingIdentifier,X);return}if(this.scope.inStaticBlock){this.raise(U.AwaitBindingIdentifierInStaticBlock,X);return}this.expressionScope.recordAsyncArrowParametersError(X)}else if(Z==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(U.ArgumentsInClass,X);return}}}recordAwaitIfAllowed(){let Z=this.prodParam.hasAwait||this.optionFlags&1&&!this.scope.inFunction;if(Z&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return Z}parseAwait(Z){let X=this.startNodeAt(Z);if(this.expressionScope.recordParameterInitializerError(U.AwaitExpressionFormalParameter,X),this.eat(55))this.raise(U.ObsoleteAwaitStar,X);if(!this.scope.inFunction&&!(this.optionFlags&1))if(this.isAmbiguousPrefixOrIdentifier())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)X.argument=this.parseMaybeUnary(null,!0);return this.finishNode(X,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:Z}=this.state;return Z===53||Z===10||Z===0||KJ(Z)||Z===102&&!this.state.containsEsc||Z===138||Z===56||this.hasPlugin("v8intrinsic")&&Z===54}parseYield(Z){let X=this.startNodeAt(Z);this.expressionScope.recordParameterInitializerError(U.YieldInParameter,X);let J=!1,Q=null;if(!this.hasPrecedingLineBreak())switch(J=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!J)break;default:Q=this.parseMaybeAssign()}return X.delegate=J,X.argument=Q,this.finishNode(X,"YieldExpression")}parseImportCall(Z){if(this.next(),Z.source=this.parseMaybeAssignAllowIn(),Z.options=null,this.eat(12)){if(!this.match(11)){if(Z.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11)){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(U.ImportCallArity,Z)}}}return this.expect(11),this.finishNode(Z,"ImportExpression")}checkPipelineAtInfixOperator(Z,X){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(Z.type==="SequenceExpression")this.raise(U.PipelineHeadSequenceExpression,X)}}parseSmartPipelineBodyInStyle(Z,X){if(this.isSimpleReference(Z)){let J=this.startNodeAt(X);return J.callee=Z,this.finishNode(J,"PipelineBareFunction")}else{let J=this.startNodeAt(X);return this.checkSmartPipeTopicBodyEarlyErrors(X),J.expression=Z,this.finishNode(J,"PipelineTopicExpression")}}isSimpleReference(Z){switch(Z.type){case"MemberExpression":return!Z.computed&&this.isSimpleReference(Z.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(Z){if(this.match(19))throw this.raise(U.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(U.PipelineTopicUnused,Z)}withTopicBindingContext(Z){let X=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return Z()}finally{this.state.topicContext=X}}withSmartMixTopicForbiddingContext(Z){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let X=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return Z()}finally{this.state.topicContext=X}}else return Z()}withSoloAwaitPermittingContext(Z){let X=this.state.soloAwait;this.state.soloAwait=!0;try{return Z()}finally{this.state.soloAwait=X}}allowInAnd(Z){let X=this.prodParam.currentFlags();if(8&~X){this.prodParam.enter(X|8);try{return Z()}finally{this.prodParam.exit()}}return Z()}disallowInAnd(Z){let X=this.prodParam.currentFlags();if(8&X){this.prodParam.enter(X&-9);try{return Z()}finally{this.prodParam.exit()}}return Z()}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(Z){let X=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let J=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let Q=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),X,Z);return this.state.inFSharpPipelineDirectBody=J,Q}parseModuleExpression(){this.expectPlugin("moduleBlocks");let Z=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);let X=this.startNodeAt(this.state.endLoc);this.next();let J=this.initializeScopes(!0);this.enterInitialScopes();try{Z.body=this.parseProgram(X,8,"module")}finally{J()}return this.finishNode(Z,"ModuleExpression")}parsePropertyNamePrefixOperator(Z){}}var DJ={kind:1},Z1={kind:2},Q1=/[\uD800-\uDFFF]/u,TJ=/in(?:stanceof)?/y;function X1(Z,X,J){for(let Q=0;Q<Z.length;Q++){let V=Z[Q],{type:Y}=V;if(typeof Y==="number"){{if(Y===139){let{loc:W,start:z,value:j,end:R}=V,q=z+1,H=w(W.start,1);Z.splice(Q,1,new g({type:L(27),value:"#",start:z,end:q,startLoc:W.start,endLoc:H}),new g({type:L(132),value:j,start:q,end:R,startLoc:H,endLoc:W.end})),Q++;continue}if(KJ(Y)){let{loc:W,start:z,value:j,end:R}=V,q=z+1,H=w(W.start,1),K;if(X.charCodeAt(z-J)===96)K=new g({type:L(22),value:"`",start:z,end:q,startLoc:W.start,endLoc:H});else K=new g({type:L(8),value:"}",start:z,end:q,startLoc:W.start,endLoc:H});let $,B,A,I;if(Y===24)B=R-1,A=w(W.end,-1),$=j===null?null:j.slice(1,-1),I=new g({type:L(22),value:"`",start:B,end:R,startLoc:A,endLoc:W.end});else B=R-2,A=w(W.end,-2),$=j===null?null:j.slice(1,-2),I=new g({type:L(23),value:"${",start:B,end:R,startLoc:A,endLoc:W.end});Z.splice(Q,1,K,new g({type:L(20),value:$,start:q,end:B,startLoc:H,endLoc:A}),I),Q+=2;continue}}V.type=L(Y)}}return Z}class kZ extends wZ{parseTopLevel(Z,X){if(Z.program=this.parseProgram(X),Z.comments=this.comments,this.optionFlags&256)Z.tokens=X1(this.tokens,this.input,this.startIndex);return this.finishNode(Z,"File")}parseProgram(Z,X=140,J=this.options.sourceType){if(Z.sourceType=J,Z.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(Z,!0,!0,X),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[V,Y]of Array.from(this.scope.undefinedExports))this.raise(U.ModuleExportUndefined,Y,{localName:V});this.addExtra(Z,"topLevelAwait",this.state.hasTopLevelAwait)}let Q;if(X===140)Q=this.finishNode(Z,"Program");else Q=this.finishNodeAt(Z,"Program",w(this.state.startLoc,-1));return Q}stmtToDirective(Z){let X=Z;X.type="Directive",X.value=X.expression,delete X.expression;let J=X.value,Q=J.value,V=this.input.slice(this.offsetToSourcePos(J.start),this.offsetToSourcePos(J.end)),Y=J.value=V.slice(1,-1);return this.addExtra(J,"raw",V),this.addExtra(J,"rawValue",Y),this.addExtra(J,"expressionValue",Q),J.type="DirectiveLiteral",X}parseInterpreterDirective(){if(!this.match(28))return null;let Z=this.startNode();return Z.value=this.state.value,this.next(),this.finishNode(Z,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}chStartsBindingIdentifier(Z,X){if(b(Z)){if(TJ.lastIndex=X,TJ.test(this.input)){let J=this.codePointAtPos(TJ.lastIndex);if(!d(J)&&J!==92)return!1}return!0}else if(Z===92)return!0;else return!1}chStartsBindingPattern(Z){return Z===91||Z===123}hasFollowingBindingAtom(){let Z=this.nextTokenStart(),X=this.codePointAtPos(Z);return this.chStartsBindingPattern(X)||this.chStartsBindingIdentifier(X,Z)}hasInLineFollowingBindingIdentifierOrBrace(){let Z=this.nextTokenInLineStart(),X=this.codePointAtPos(Z);return X===123||this.chStartsBindingIdentifier(X,Z)}startsUsingForOf(){let{type:Z,containsEsc:X}=this.lookahead();if(Z===102&&!X)return!1;else if(N(Z)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let Z=this.nextTokenInLineStart();if(this.isUnparsedContextual(Z,"using")){Z=this.nextTokenInLineStartSince(Z+5);let X=this.codePointAtPos(Z);if(this.chStartsBindingIdentifier(X,Z))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(Z=!1){let X=0;if(this.options.annexB&&!this.state.strict){if(X|=4,Z)X|=8}return this.parseStatementLike(X)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(Z){let X=null;if(this.match(26))X=this.parseDecorators(!0);return this.parseStatementContent(Z,X)}parseStatementContent(Z,X){let J=this.state.type,Q=this.startNode(),V=!!(Z&2),Y=!!(Z&4),W=Z&1;switch(J){case 60:return this.parseBreakContinueStatement(Q,!0);case 63:return this.parseBreakContinueStatement(Q,!1);case 64:return this.parseDebuggerStatement(Q);case 90:return this.parseDoWhileStatement(Q);case 91:return this.parseForStatement(Q);case 68:if(this.lookaheadCharCode()===46)break;if(!Y)this.raise(this.state.strict?U.StrictFunction:this.options.annexB?U.SloppyFunctionAnnexB:U.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(Q,!1,!V&&Y);case 80:if(!V)this.unexpected();return this.parseClass(this.maybeTakeDecorators(X,Q),!0);case 69:return this.parseIfStatement(Q);case 70:return this.parseReturnStatement(Q);case 71:return this.parseSwitchStatement(Q);case 72:return this.parseThrowStatement(Q);case 73:return this.parseTryStatement(Q);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing()){if(!this.recordAwaitIfAllowed())this.raise(U.AwaitUsingNotInAsyncContext,Q);else if(!V)this.raise(U.UnexpectedLexicalDeclaration,Q);return this.next(),this.parseVarStatement(Q,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel)this.raise(U.UnexpectedUsingDeclaration,this.state.startLoc);else if(!V)this.raise(U.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(Q,"using");case 100:{if(this.state.containsEsc)break;let R=this.nextTokenStart(),q=this.codePointAtPos(R);if(q!==91){if(!V&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(q,R)&&q!==123)break}}case 75:if(!V)this.raise(U.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let R=this.state.value;return this.parseVarStatement(Q,R)}case 92:return this.parseWhileStatement(Q);case 76:return this.parseWithStatement(Q);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(Q);case 83:{let R=this.lookaheadCharCode();if(R===40||R===46)break}case 82:{if(!(this.optionFlags&8)&&!W)this.raise(U.UnexpectedImportExport,this.state.startLoc);this.next();let R;if(J===83)R=this.parseImport(Q);else R=this.parseExport(Q,X);return this.assertModuleNodeAllowed(R),R}default:if(this.isAsyncFunction()){if(!V)this.raise(U.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(Q,!0,!V&&Y)}}let z=this.state.value,j=this.parseExpression();if(N(J)&&j.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(Q,z,j,Z);else return this.parseExpressionStatement(Q,j,X)}assertModuleNodeAllowed(Z){if(!(this.optionFlags&8)&&!this.inModule)this.raise(U.ImportOutsideModule,Z)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(Z,X,J){if(Z){var Q;if((Q=X.decorators)!=null&&Q.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(U.DecoratorsBeforeAfterExport,X.decorators[0]);X.decorators.unshift(...Z)}else X.decorators=Z;if(this.resetStartLocationFromNode(X,Z[0]),J)this.resetStartLocationFromNode(J,X)}return X}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(Z){let X=[];do X.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!Z)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(U.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(U.UnexpectedLeadingDecorator,this.state.startLoc);return X}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let Z=this.startNode();if(this.next(),this.hasPlugin("decorators")){let X=this.state.startLoc,J;if(this.match(10)){let Q=this.state.startLoc;this.next(),J=this.parseExpression(),this.expect(11),J=this.wrapParenthesis(Q,J);let V=this.state.startLoc;if(Z.expression=this.parseMaybeDecoratorArguments(J,Q),this.getPluginOption("decorators","allowCallParenthesized")===!1&&Z.expression!==J)this.raise(U.DecoratorArgumentsOutsideParentheses,V)}else{J=this.parseIdentifier(!1);while(this.eat(16)){let Q=this.startNodeAt(X);if(Q.object=J,this.match(139))this.classScope.usePrivateName(this.state.value,this.state.startLoc),Q.property=this.parsePrivateName();else Q.property=this.parseIdentifier(!0);Q.computed=!1,J=this.finishNode(Q,"MemberExpression")}Z.expression=this.parseMaybeDecoratorArguments(J,X)}}else Z.expression=this.parseExprSubscripts();return this.finishNode(Z,"Decorator")}parseMaybeDecoratorArguments(Z,X){if(this.eat(10)){let J=this.startNodeAt(X);return J.callee=Z,J.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(J.arguments),this.finishNode(J,"CallExpression")}return Z}parseBreakContinueStatement(Z,X){if(this.next(),this.isLineTerminator())Z.label=null;else Z.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(Z,X),this.finishNode(Z,X?"BreakStatement":"ContinueStatement")}verifyBreakContinue(Z,X){let J;for(J=0;J<this.state.labels.length;++J){let Q=this.state.labels[J];if(Z.label==null||Q.name===Z.label.name){if(Q.kind!=null&&(X||Q.kind===1))break;if(Z.label&&X)break}}if(J===this.state.labels.length){let Q=X?"BreakStatement":"ContinueStatement";this.raise(U.IllegalBreakContinue,Z,{type:Q})}}parseDebuggerStatement(Z){return this.next(),this.semicolon(),this.finishNode(Z,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let Z=this.parseExpression();return this.expect(11),Z}parseDoWhileStatement(Z){return this.next(),this.state.labels.push(DJ),Z.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),Z.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(Z,"DoWhileStatement")}parseForStatement(Z){this.next(),this.state.labels.push(DJ);let X=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())X=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if(X!==null)this.unexpected(X);return this.parseFor(Z,null)}let J=this.isContextual(100);{let z=this.isContextual(96)&&this.startsAwaitUsing(),j=z||this.isContextual(107)&&this.startsUsingForOf(),R=J&&this.hasFollowingBindingAtom()||j;if(this.match(74)||this.match(75)||R){let q=this.startNode(),H;if(z){if(H="await using",!this.recordAwaitIfAllowed())this.raise(U.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else H=this.state.value;this.next(),this.parseVar(q,!0,H);let K=this.finishNode(q,"VariableDeclaration"),$=this.match(58);if($&&j)this.raise(U.ForInUsing,K);if(($||this.isContextual(102))&&K.declarations.length===1)return this.parseForIn(Z,K,X);if(X!==null)this.unexpected(X);return this.parseFor(Z,K)}}let Q=this.isContextual(95),V=new ZJ,Y=this.parseExpression(!0,V),W=this.isContextual(102);if(W){if(J)this.raise(U.ForOfLet,Y);if(X===null&&Q&&Y.type==="Identifier")this.raise(U.ForOfAsync,Y)}if(W||this.match(58)){this.checkDestructuringPrivate(V),this.toAssignable(Y,!0);let z=W?"ForOfStatement":"ForInStatement";return this.checkLVal(Y,{type:z}),this.parseForIn(Z,Y,X)}else this.checkExpressionErrors(V,!0);if(X!==null)this.unexpected(X);return this.parseFor(Z,Y)}parseFunctionStatement(Z,X,J){return this.next(),this.parseFunction(Z,1|(J?2:0)|(X?8:0))}parseIfStatement(Z){return this.next(),Z.test=this.parseHeaderExpression(),Z.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),Z.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(Z,"IfStatement")}parseReturnStatement(Z){if(!this.prodParam.hasReturn&&!(this.optionFlags&2))this.raise(U.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())Z.argument=null;else Z.argument=this.parseExpression(),this.semicolon();return this.finishNode(Z,"ReturnStatement")}parseSwitchStatement(Z){this.next(),Z.discriminant=this.parseHeaderExpression();let X=Z.cases=[];this.expect(5),this.state.labels.push(Z1),this.scope.enter(0);let J;for(let Q;!this.match(8);)if(this.match(61)||this.match(65)){let V=this.match(61);if(J)this.finishNode(J,"SwitchCase");if(X.push(J=this.startNode()),J.consequent=[],this.next(),V)J.test=this.parseExpression();else{if(Q)this.raise(U.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);Q=!0,J.test=null}this.expect(14)}else if(J)J.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),J)this.finishNode(J,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(Z,"SwitchStatement")}parseThrowStatement(Z){if(this.next(),this.hasPrecedingLineBreak())this.raise(U.NewlineAfterThrow,this.state.lastTokEndLoc);return Z.argument=this.parseExpression(),this.semicolon(),this.finishNode(Z,"ThrowStatement")}parseCatchClauseParam(){let Z=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&Z.type==="Identifier"?8:0),this.checkLVal(Z,{type:"CatchClause"},9),Z}parseTryStatement(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.match(62)){let X=this.startNode();if(this.next(),this.match(10))this.expect(10),X.param=this.parseCatchClauseParam(),this.expect(11);else X.param=null,this.scope.enter(0);X.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),Z.handler=this.finishNode(X,"CatchClause")}if(Z.finalizer=this.eat(67)?this.parseBlock():null,!Z.handler&&!Z.finalizer)this.raise(U.NoCatchOrFinally,Z);return this.finishNode(Z,"TryStatement")}parseVarStatement(Z,X,J=!1){return this.next(),this.parseVar(Z,!1,X,J),this.semicolon(),this.finishNode(Z,"VariableDeclaration")}parseWhileStatement(Z){return this.next(),Z.test=this.parseHeaderExpression(),this.state.labels.push(DJ),Z.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(Z,"WhileStatement")}parseWithStatement(Z){if(this.state.strict)this.raise(U.StrictWith,this.state.startLoc);return this.next(),Z.object=this.parseHeaderExpression(),Z.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(Z,"WithStatement")}parseEmptyStatement(Z){return this.next(),this.finishNode(Z,"EmptyStatement")}parseLabeledStatement(Z,X,J,Q){for(let Y of this.state.labels)if(Y.name===X)this.raise(U.LabelRedeclaration,J,{labelName:X});let V=z0(this.state.type)?1:this.match(71)?2:null;for(let Y=this.state.labels.length-1;Y>=0;Y--){let W=this.state.labels[Y];if(W.statementStart===Z.start)W.statementStart=this.sourceToOffsetPos(this.state.start),W.kind=V;else break}return this.state.labels.push({name:X,kind:V,statementStart:this.sourceToOffsetPos(this.state.start)}),Z.body=Q&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),Z.label=J,this.finishNode(Z,"LabeledStatement")}parseExpressionStatement(Z,X,J){return Z.expression=X,this.semicolon(),this.finishNode(Z,"ExpressionStatement")}parseBlock(Z=!1,X=!0,J){let Q=this.startNode();if(Z)this.state.strictErrors.clear();if(this.expect(5),X)this.scope.enter(0);if(this.parseBlockBody(Q,Z,!1,8,J),X)this.scope.exit();return this.finishNode(Q,"BlockStatement")}isValidDirective(Z){return Z.type==="ExpressionStatement"&&Z.expression.type==="StringLiteral"&&!Z.expression.extra.parenthesized}parseBlockBody(Z,X,J,Q,V){let Y=Z.body=[],W=Z.directives=[];this.parseBlockOrModuleBlockBody(Y,X?W:void 0,J,Q,V)}parseBlockOrModuleBlockBody(Z,X,J,Q,V){let Y=this.state.strict,W=!1,z=!1;while(!this.match(Q)){let j=J?this.parseModuleItem():this.parseStatementListItem();if(X&&!z){if(this.isValidDirective(j)){let R=this.stmtToDirective(j);if(X.push(R),!W&&R.value.value==="use strict")W=!0,this.setStrict(!0);continue}z=!0,this.state.strictErrors.clear()}Z.push(j)}if(V==null||V.call(this,W),!Y)this.setStrict(!1);this.next()}parseFor(Z,X){return Z.init=X,this.semicolon(!1),Z.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),Z.update=this.match(11)?null:this.parseExpression(),this.expect(11),Z.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(Z,"ForStatement")}parseForIn(Z,X,J){let Q=this.match(58);if(this.next(),Q){if(J!==null)this.unexpected(J)}else Z.await=J!==null;if(X.type==="VariableDeclaration"&&X.declarations[0].init!=null&&(!Q||!this.options.annexB||this.state.strict||X.kind!=="var"||X.declarations[0].id.type!=="Identifier"))this.raise(U.ForInOfLoopInitializer,X,{type:Q?"ForInStatement":"ForOfStatement"});if(X.type==="AssignmentPattern")this.raise(U.InvalidLhs,X,{ancestor:{type:"ForStatement"}});return Z.left=X,Z.right=Q?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),Z.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(Z,Q?"ForInStatement":"ForOfStatement")}parseVar(Z,X,J,Q=!1){let V=Z.declarations=[];Z.kind=J;for(;;){let Y=this.startNode();if(this.parseVarId(Y,J),Y.init=!this.eat(29)?null:X?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),Y.init===null&&!Q){if(Y.id.type!=="Identifier"&&!(X&&(this.match(58)||this.isContextual(102))))this.raise(U.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((J==="const"||J==="using"||J==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(U.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:J})}if(V.push(this.finishNode(Y,"VariableDeclarator")),!this.eat(12))break}return Z}parseVarId(Z,X){let J=this.parseBindingAtom();if(X==="using"||X==="await using"){if(J.type==="ArrayPattern"||J.type==="ObjectPattern")this.raise(U.UsingDeclarationHasBindingPattern,J.loc.start)}this.checkLVal(J,{type:"VariableDeclarator"},X==="var"?5:8201),Z.id=J}parseAsyncFunctionExpression(Z){return this.parseFunction(Z,8)}parseFunction(Z,X=0){let J=X&2,Q=!!(X&1),V=Q&&!(X&4),Y=!!(X&8);if(this.initFunction(Z,Y),this.match(55)){if(J)this.raise(U.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),Z.generator=!0}if(Q)Z.id=this.parseFunctionId(V);let W=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(HJ(Y,Z.generator)),!Q)Z.id=this.parseFunctionId();if(this.parseFunctionParams(Z,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(Z,Q?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),Q&&!J)this.registerFunctionStatementId(Z);return this.state.maybeInArrowParameters=W,Z}parseFunctionId(Z){return Z||N(this.state.type)?this.parseIdentifier():null}parseFunctionParams(Z,X){this.expect(10),this.expressionScope.enter(k0()),Z.params=this.parseBindingList(11,41,2|(X?4:0)),this.expressionScope.exit()}registerFunctionStatementId(Z){if(!Z.id)return;this.scope.declareName(Z.id.name,!this.options.annexB||this.state.strict||Z.generator||Z.async?this.scope.treatFunctionsAsVar?5:8201:17,Z.id.loc.start)}parseClass(Z,X,J){this.next();let Q=this.state.strict;return this.state.strict=!0,this.parseClassId(Z,X,J),this.parseClassSuper(Z),Z.body=this.parseClassBody(!!Z.superClass,Q),this.finishNode(Z,X?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(Z){return Z.type==="Identifier"&&Z.name==="constructor"||Z.type==="StringLiteral"&&Z.value==="constructor"}isNonstaticConstructor(Z){return!Z.computed&&!Z.static&&this.nameIsConstructor(Z.key)}parseClassBody(Z,X){this.classScope.enter();let J={hadConstructor:!1,hadSuperClass:Z},Q=[],V=this.startNode();if(V.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(Q.length>0)throw this.raise(U.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){Q.push(this.parseDecorator());continue}let Y=this.startNode();if(Q.length)Y.decorators=Q,this.resetStartLocationFromNode(Y,Q[0]),Q=[];if(this.parseClassMember(V,Y,J),Y.kind==="constructor"&&Y.decorators&&Y.decorators.length>0)this.raise(U.DecoratorConstructor,Y)}}),this.state.strict=X,this.next(),Q.length)throw this.raise(U.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(V,"ClassBody")}parseClassMemberFromModifier(Z,X){let J=this.parseIdentifier(!0);if(this.isClassMethod()){let Q=X;return Q.kind="method",Q.computed=!1,Q.key=J,Q.static=!1,this.pushClassMethod(Z,Q,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let Q=X;return Q.computed=!1,Q.key=J,Q.static=!1,Z.body.push(this.parseClassProperty(Q)),!0}return this.resetPreviousNodeTrailingComments(J),!1}parseClassMember(Z,X,J){let Q=this.isContextual(106);if(Q){if(this.parseClassMemberFromModifier(Z,X))return;if(this.eat(5)){this.parseClassStaticBlock(Z,X);return}}this.parseClassMemberWithIsStatic(Z,X,J,Q)}parseClassMemberWithIsStatic(Z,X,J,Q){let V=X,Y=X,W=X,z=X,j=X,R=V,q=V;if(X.static=Q,this.parsePropertyNamePrefixOperator(X),this.eat(55)){R.kind="method";let I=this.match(139);if(this.parseClassElementName(R),I){this.pushClassPrivateMethod(Z,Y,!0,!1);return}if(this.isNonstaticConstructor(V))this.raise(U.ConstructorIsGenerator,V.key);this.pushClassMethod(Z,V,!0,!1,!1,!1);return}let H=!this.state.containsEsc&&N(this.state.type),K=this.parseClassElementName(X),$=H?K.name:null,B=this.isPrivateName(K),A=this.state.startLoc;if(this.parsePostMemberNameModifiers(q),this.isClassMethod()){if(R.kind="method",B){this.pushClassPrivateMethod(Z,Y,!1,!1);return}let I=this.isNonstaticConstructor(V),M=!1;if(I){if(V.kind="constructor",J.hadConstructor&&!this.hasPlugin("typescript"))this.raise(U.DuplicateConstructor,K);if(I&&this.hasPlugin("typescript")&&X.override)this.raise(U.OverrideOnConstructor,K);J.hadConstructor=!0,M=J.hadSuperClass}this.pushClassMethod(Z,V,!1,!1,I,M)}else if(this.isClassProperty())if(B)this.pushClassPrivateProperty(Z,z);else this.pushClassProperty(Z,W);else if($==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(K);let I=this.eat(55);if(q.optional)this.unexpected(A);R.kind="method";let M=this.match(139);if(this.parseClassElementName(R),this.parsePostMemberNameModifiers(q),M)this.pushClassPrivateMethod(Z,Y,I,!0);else{if(this.isNonstaticConstructor(V))this.raise(U.ConstructorIsAsync,V.key);this.pushClassMethod(Z,V,I,!0,!1,!1)}}else if(($==="get"||$==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(K),R.kind=$;let I=this.match(139);if(this.parseClassElementName(V),I)this.pushClassPrivateMethod(Z,Y,!1,!1);else{if(this.isNonstaticConstructor(V))this.raise(U.ConstructorIsAccessor,V.key);this.pushClassMethod(Z,V,!1,!1,!1,!1)}this.checkGetterSetterParams(V)}else if($==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(K);let I=this.match(139);this.parseClassElementName(W),this.pushClassAccessorProperty(Z,j,I)}else if(this.isLineTerminator())if(B)this.pushClassPrivateProperty(Z,z);else this.pushClassProperty(Z,W);else this.unexpected()}parseClassElementName(Z){let{type:X,value:J}=this.state;if((X===132||X===134)&&Z.static&&J==="prototype")this.raise(U.StaticPrototype,this.state.startLoc);if(X===139){if(J==="constructor")this.raise(U.ConstructorClassPrivateField,this.state.startLoc);let Q=this.parsePrivateName();return Z.key=Q,Q}return this.parsePropertyName(Z),Z.key}parseClassStaticBlock(Z,X){var J;this.scope.enter(208);let Q=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let V=X.body=[];if(this.parseBlockOrModuleBlockBody(V,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=Q,Z.body.push(this.finishNode(X,"StaticBlock")),(J=X.decorators)!=null&&J.length)this.raise(U.DecoratorStaticBlock,X)}pushClassProperty(Z,X){if(!X.computed&&this.nameIsConstructor(X.key))this.raise(U.ConstructorClassField,X.key);Z.body.push(this.parseClassProperty(X))}pushClassPrivateProperty(Z,X){let J=this.parseClassPrivateProperty(X);Z.body.push(J),this.classScope.declarePrivateName(this.getPrivateNameSV(J.key),0,J.key.loc.start)}pushClassAccessorProperty(Z,X,J){if(!J&&!X.computed&&this.nameIsConstructor(X.key))this.raise(U.ConstructorClassField,X.key);let Q=this.parseClassAccessorProperty(X);if(Z.body.push(Q),J)this.classScope.declarePrivateName(this.getPrivateNameSV(Q.key),0,Q.key.loc.start)}pushClassMethod(Z,X,J,Q,V,Y){Z.body.push(this.parseMethod(X,J,Q,V,Y,"ClassMethod",!0))}pushClassPrivateMethod(Z,X,J,Q){let V=this.parseMethod(X,J,Q,!1,!1,"ClassPrivateMethod",!0);Z.body.push(V);let Y=V.kind==="get"?V.static?6:2:V.kind==="set"?V.static?5:1:0;this.declareClassPrivateMethodInScope(V,Y)}declareClassPrivateMethodInScope(Z,X){this.classScope.declarePrivateName(this.getPrivateNameSV(Z.key),X,Z.key.loc.start)}parsePostMemberNameModifiers(Z){}parseClassPrivateProperty(Z){return this.parseInitializer(Z),this.semicolon(),this.finishNode(Z,"ClassPrivateProperty")}parseClassProperty(Z){return this.parseInitializer(Z),this.semicolon(),this.finishNode(Z,"ClassProperty")}parseClassAccessorProperty(Z){return this.parseInitializer(Z),this.semicolon(),this.finishNode(Z,"ClassAccessorProperty")}parseInitializer(Z){this.scope.enter(80),this.expressionScope.enter(BZ()),this.prodParam.enter(0),Z.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(Z,X,J,Q=8331){if(N(this.state.type)){if(Z.id=this.parseIdentifier(),X)this.declareNameFromIdentifier(Z.id,Q)}else if(J||!X)Z.id=null;else throw this.raise(U.MissingClassName,this.state.startLoc)}parseClassSuper(Z){Z.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(Z,X){let J=this.parseMaybeImportPhase(Z,!0),Q=this.maybeParseExportDefaultSpecifier(Z,J),V=!Q||this.eat(12),Y=V&&this.eatExportStar(Z),W=Y&&this.maybeParseExportNamespaceSpecifier(Z),z=V&&(!W||this.eat(12)),j=Q||Y;if(Y&&!W){if(Q)this.unexpected();if(X)throw this.raise(U.UnsupportedDecoratorExport,Z);return this.parseExportFrom(Z,!0),this.sawUnambiguousESM=!0,this.finishNode(Z,"ExportAllDeclaration")}let R=this.maybeParseExportNamedSpecifiers(Z);if(Q&&V&&!Y&&!R)this.unexpected(null,5);if(W&&z)this.unexpected(null,98);let q;if(j||R){if(q=!1,X)throw this.raise(U.UnsupportedDecoratorExport,Z);this.parseExportFrom(Z,j)}else q=this.maybeParseExportDeclaration(Z);if(j||R||q){var H;let K=Z;if(this.checkExport(K,!0,!1,!!K.source),((H=K.declaration)==null?void 0:H.type)==="ClassDeclaration")this.maybeTakeDecorators(X,K.declaration,K);else if(X)throw this.raise(U.UnsupportedDecoratorExport,Z);return this.sawUnambiguousESM=!0,this.finishNode(K,"ExportNamedDeclaration")}if(this.eat(65)){let K=Z,$=this.parseExportDefaultExpression();if(K.declaration=$,$.type==="ClassDeclaration")this.maybeTakeDecorators(X,$,K);else if(X)throw this.raise(U.UnsupportedDecoratorExport,Z);return this.checkExport(K,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(K,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(Z){return this.eat(55)}maybeParseExportDefaultSpecifier(Z,X){if(X||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",X==null?void 0:X.loc.start);let J=X||this.parseIdentifier(!0),Q=this.startNodeAtNode(J);return Q.exported=J,Z.specifiers=[this.finishNode(Q,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(Z){if(this.isContextual(93)){var X,J;(J=(X=Z).specifiers)!=null||(X.specifiers=[]);let Q=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),Q.exported=this.parseModuleExportName(),Z.specifiers.push(this.finishNode(Q,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(Z){if(this.match(5)){let X=Z;if(!X.specifiers)X.specifiers=[];let J=X.exportKind==="type";if(X.specifiers.push(...this.parseExportSpecifiers(J)),X.source=null,this.hasPlugin("importAssertions"))X.assertions=[];else X.attributes=[];return X.declaration=null,!0}return!1}maybeParseExportDeclaration(Z){if(this.shouldParseExportDeclaration()){if(Z.specifiers=[],Z.source=null,this.hasPlugin("importAssertions"))Z.assertions=[];else Z.attributes=[];return Z.declaration=this.parseExportDeclaration(Z),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let Z=this.nextTokenInLineStart();return this.isUnparsedContextual(Z,"function")}parseExportDefaultExpression(){let Z=this.startNode();if(this.match(68))return this.next(),this.parseFunction(Z,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(Z,13);if(this.match(80))return this.parseClass(Z,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(U.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet())throw this.raise(U.UnsupportedDefaultExport,this.state.startLoc);let X=this.parseMaybeAssignAllowIn();return this.semicolon(),X}parseExportDeclaration(Z){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:Z}=this.state;if(N(Z)){if(Z===95&&!this.state.containsEsc||Z===100)return!1;if((Z===130||Z===129)&&!this.state.containsEsc){let{type:Q}=this.lookahead();if(N(Q)&&Q!==98||Q===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let X=this.nextTokenStart(),J=this.isUnparsedContextual(X,"from");if(this.input.charCodeAt(X)===44||N(this.state.type)&&J)return!0;if(this.match(65)&&J){let Q=this.input.charCodeAt(this.nextTokenStartSince(X+4));return Q===34||Q===39}return!1}parseExportFrom(Z,X){if(this.eatContextual(98))Z.source=this.parseImportSource(),this.checkExport(Z),this.maybeParseImportAttributes(Z),this.checkJSONModuleImport(Z);else if(X)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:Z}=this.state;if(Z===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(U.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isContextual(107))return this.raise(U.UsingDeclarationExport,this.state.startLoc),!0;if(this.isContextual(96)&&this.startsAwaitUsing())return this.raise(U.UsingDeclarationExport,this.state.startLoc),!0;return Z===74||Z===75||Z===68||Z===80||this.isLet()||this.isAsyncFunction()}checkExport(Z,X,J,Q){if(X){var V;if(J){if(this.checkDuplicateExports(Z,"default"),this.hasPlugin("exportDefaultFrom")){var Y;let W=Z.declaration;if(W.type==="Identifier"&&W.name==="from"&&W.end-W.start===4&&!((Y=W.extra)!=null&&Y.parenthesized))this.raise(U.ExportDefaultFromAsIdentifier,W)}}else if((V=Z.specifiers)!=null&&V.length)for(let W of Z.specifiers){let{exported:z}=W,j=z.type==="Identifier"?z.name:z.value;if(this.checkDuplicateExports(W,j),!Q&&W.local){let{local:R}=W;if(R.type!=="Identifier")this.raise(U.ExportBindingIsString,W,{localName:R.value,exportName:j});else this.checkReservedWord(R.name,R.loc.start,!0,!1),this.scope.checkLocalExport(R)}}else if(Z.declaration){let W=Z.declaration;if(W.type==="FunctionDeclaration"||W.type==="ClassDeclaration"){let{id:z}=W;if(!z)throw new Error("Assertion failure");this.checkDuplicateExports(Z,z.name)}else if(W.type==="VariableDeclaration")for(let z of W.declarations)this.checkDeclaration(z.id)}}}checkDeclaration(Z){if(Z.type==="Identifier")this.checkDuplicateExports(Z,Z.name);else if(Z.type==="ObjectPattern")for(let X of Z.properties)this.checkDeclaration(X);else if(Z.type==="ArrayPattern"){for(let X of Z.elements)if(X)this.checkDeclaration(X)}else if(Z.type==="ObjectProperty")this.checkDeclaration(Z.value);else if(Z.type==="RestElement")this.checkDeclaration(Z.argument);else if(Z.type==="AssignmentPattern")this.checkDeclaration(Z.left)}checkDuplicateExports(Z,X){if(this.exportedIdentifiers.has(X))if(X==="default")this.raise(U.DuplicateDefaultExport,Z);else this.raise(U.DuplicateExport,Z,{exportName:X});this.exportedIdentifiers.add(X)}parseExportSpecifiers(Z){let X=[],J=!0;this.expect(5);while(!this.eat(8)){if(J)J=!1;else if(this.expect(12),this.eat(8))break;let Q=this.isContextual(130),V=this.match(134),Y=this.startNode();Y.local=this.parseModuleExportName(),X.push(this.parseExportSpecifier(Y,V,Z,Q))}return X}parseExportSpecifier(Z,X,J,Q){if(this.eatContextual(93))Z.exported=this.parseModuleExportName();else if(X)Z.exported=b0(Z.local);else if(!Z.exported)Z.exported=f(Z.local);return this.finishNode(Z,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let Z=this.parseStringLiteral(this.state.value),X=Q1.exec(Z.value);if(X)this.raise(U.ModuleExportNameHasLoneSurrogate,Z,{surrogateCharCode:X[0].charCodeAt(0)});return Z}return this.parseIdentifier(!0)}isJSONModuleImport(Z){if(Z.assertions!=null)return Z.assertions.some(({key:X,value:J})=>{return J.value==="json"&&(X.type==="Identifier"?X.name==="type":X.value==="type")});return!1}checkImportReflection(Z){let{specifiers:X}=Z,J=X.length===1?X[0].type:null;if(Z.phase==="source"){if(J!=="ImportDefaultSpecifier")this.raise(U.SourcePhaseImportRequiresDefault,X[0].loc.start)}else if(Z.phase==="defer"){if(J!=="ImportNamespaceSpecifier")this.raise(U.DeferImportRequiresNamespace,X[0].loc.start)}else if(Z.module){var Q;if(J!=="ImportDefaultSpecifier")this.raise(U.ImportReflectionNotBinding,X[0].loc.start);if(((Q=Z.assertions)==null?void 0:Q.length)>0)this.raise(U.ImportReflectionHasAssertion,X[0].loc.start)}}checkJSONModuleImport(Z){if(this.isJSONModuleImport(Z)&&Z.type!=="ExportAllDeclaration"){let{specifiers:X}=Z;if(X!=null){let J=X.find((Q)=>{let V;if(Q.type==="ExportSpecifier")V=Q.local;else if(Q.type==="ImportSpecifier")V=Q.imported;if(V!==void 0)return V.type==="Identifier"?V.name!=="default":V.value!=="default"});if(J!==void 0)this.raise(U.ImportJSONBindingNotDefault,J.loc.start)}}}isPotentialImportPhase(Z){if(Z)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(Z,X,J,Q){if(X)return;if(J==="module")this.expectPlugin("importReflection",Q),Z.module=!0;else if(this.hasPlugin("importReflection"))Z.module=!1;if(J==="source")this.expectPlugin("sourcePhaseImports",Q),Z.phase="source";else if(J==="defer")this.expectPlugin("deferredImportEvaluation",Q),Z.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))Z.phase=null}parseMaybeImportPhase(Z,X){if(!this.isPotentialImportPhase(X))return this.applyImportPhase(Z,X,null),null;let J=this.parseIdentifier(!0),{type:Q}=this.state;if(k(Q)?Q!==98||this.lookaheadCharCode()===102:Q!==12)return this.resetPreviousIdentifierLeadingComments(J),this.applyImportPhase(Z,X,J.name,J.loc.start),null;else return this.applyImportPhase(Z,X,null),J}isPrecedingIdImportPhase(Z){let{type:X}=this.state;return N(X)?X!==98||this.lookaheadCharCode()===102:X!==12}parseImport(Z){if(this.match(134))return this.parseImportSourceAndAttributes(Z);return this.parseImportSpecifiersAndAfter(Z,this.parseMaybeImportPhase(Z,!1))}parseImportSpecifiersAndAfter(Z,X){Z.specifiers=[];let Q=!this.maybeParseDefaultImportSpecifier(Z,X)||this.eat(12),V=Q&&this.maybeParseStarImportSpecifier(Z);if(Q&&!V)this.parseNamedImportSpecifiers(Z);return this.expectContextual(98),this.parseImportSourceAndAttributes(Z)}parseImportSourceAndAttributes(Z){var X;return(X=Z.specifiers)!=null||(Z.specifiers=[]),Z.source=this.parseImportSource(),this.maybeParseImportAttributes(Z),this.checkImportReflection(Z),this.checkJSONModuleImport(Z),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Z,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(Z,X,J){X.local=this.parseIdentifier(),Z.specifiers.push(this.finishImportSpecifier(X,J))}finishImportSpecifier(Z,X,J=8201){return this.checkLVal(Z.local,{type:X},J),this.finishNode(Z,X)}parseImportAttributes(){this.expect(5);let Z=[],X=new Set;do{if(this.match(8))break;let J=this.startNode(),Q=this.state.value;if(X.has(Q))this.raise(U.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:Q});if(X.add(Q),this.match(134))J.key=this.parseStringLiteral(Q);else J.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(134))throw this.raise(U.ModuleAttributeInvalidValue,this.state.startLoc);J.value=this.parseStringLiteral(this.state.value),Z.push(this.finishNode(J,"ImportAttribute"))}while(this.eat(12));return this.expect(8),Z}parseModuleAttributes(){let Z=[],X=new Set;do{let J=this.startNode();if(J.key=this.parseIdentifier(!0),J.key.name!=="type")this.raise(U.ModuleAttributeDifferentFromType,J.key);if(X.has(J.key.name))this.raise(U.ModuleAttributesWithDuplicateKeys,J.key,{key:J.key.name});if(X.add(J.key.name),this.expect(14),!this.match(134))throw this.raise(U.ModuleAttributeInvalidValue,this.state.startLoc);J.value=this.parseStringLiteral(this.state.value),Z.push(this.finishNode(J,"ImportAttribute"))}while(this.eat(12));return Z}maybeParseImportAttributes(Z){let X;var J=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))X=this.parseModuleAttributes(),this.addExtra(Z,"deprecatedWithLegacySyntax",!0);else X=this.parseImportAttributes();J=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions"))this.raise(U.ImportAttributesUseAssert,this.state.startLoc);if(!this.hasPlugin("importAssertions"))this.addExtra(Z,"deprecatedAssertSyntax",!0);this.next(),X=this.parseImportAttributes()}else X=[];if(!J&&this.hasPlugin("importAssertions"))Z.assertions=X;else Z.attributes=X}maybeParseDefaultImportSpecifier(Z,X){if(X){let J=this.startNodeAtNode(X);return J.local=X,Z.specifiers.push(this.finishImportSpecifier(J,"ImportDefaultSpecifier")),!0}else if(k(this.state.type))return this.parseImportSpecifierLocal(Z,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(Z){if(this.match(55)){let X=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(Z,X,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(Z){let X=!0;this.expect(5);while(!this.eat(8)){if(X)X=!1;else{if(this.eat(14))throw this.raise(U.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let J=this.startNode(),Q=this.match(134),V=this.isContextual(130);J.imported=this.parseModuleExportName();let Y=this.parseImportSpecifier(J,Q,Z.importKind==="type"||Z.importKind==="typeof",V,void 0);Z.specifiers.push(Y)}}parseImportSpecifier(Z,X,J,Q,V){if(this.eatContextual(93))Z.local=this.parseIdentifier();else{let{imported:Y}=Z;if(X)throw this.raise(U.ImportBindingIsString,Z,{importName:Y.value});if(this.checkReservedWord(Y.name,Z.loc.start,!0,!0),!Z.local)Z.local=f(Y)}return this.finishImportSpecifier(Z,"ImportSpecifier",V)}isThisParam(Z){return Z.type==="Identifier"&&Z.name==="this"}}class EJ extends kZ{constructor(Z,X,J){Z=eZ(Z);super(Z,X);this.options=Z,this.initializeScopes(),this.plugins=J,this.filename=Z.sourceFilename,this.startIndex=Z.startIndex;let Q=0;if(Z.allowAwaitOutsideFunction)Q|=1;if(Z.allowReturnOutsideFunction)Q|=2;if(Z.allowImportExportEverywhere)Q|=8;if(Z.allowSuperOutsideMethod)Q|=16;if(Z.allowUndeclaredExports)Q|=64;if(Z.allowNewTargetOutsideFunction)Q|=4;if(Z.allowYieldOutsideFunction)Q|=32;if(Z.ranges)Q|=128;if(Z.tokens)Q|=256;if(Z.createImportExpressions)Q|=512;if(Z.createParenthesizedExpressions)Q|=1024;if(Z.errorRecovery)Q|=2048;if(Z.attachComment)Q|=4096;if(Z.annexB)Q|=8192;this.optionFlags=Q}getScopeHandler(){return $J}parse(){this.enterInitialScopes();let Z=this.startNode(),X=this.startNode();return this.nextToken(),Z.errors=null,this.parseTopLevel(Z,X),Z.errors=this.state.errors,Z.comments.length=this.state.commentsLen,Z}}function V1(Z,X){var J;if(((J=X)==null?void 0:J.sourceType)==="unambiguous"){X=Object.assign({},X);try{X.sourceType="module";let Q=e(X,Z),V=Q.parse();if(Q.sawUnambiguousESM)return V;if(Q.ambiguousScriptDifferentAst)try{return X.sourceType="script",e(X,Z).parse()}catch(Y){}else V.program.sourceType="script";return V}catch(Q){try{return X.sourceType="script",e(X,Z).parse()}catch(V){}throw Q}}else return e(X,Z).parse()}function Y1(Z,X){let J=e(X,Z);if(J.options.strictMode)J.state.strict=!0;return J.getExpression()}function W1(Z){let X={};for(let J of Object.keys(Z))X[J]=L(Z[J]);return X}var z1=W1(X0);function e(Z,X){let J=EJ,Q=new Map;if(Z!=null&&Z.plugins){for(let V of Z.plugins){let Y,W;if(typeof V==="string")Y=V;else[Y,W]=V;if(!Q.has(Y))Q.set(Y,W||{})}e0(Q),J=j1(Q)}return new J(Z,X,Q)}var JZ=new Map;function j1(Z){let X=[];for(let V of J1)if(Z.has(V))X.push(V);let J=X.join("|"),Q=JZ.get(J);if(!Q){Q=EJ;for(let V of X)Q=PZ[V](Q);JZ.set(J,Q)}return Q}LZ.parse=V1;LZ.parseExpression=Y1;LZ.tokTypes=z1});var fZ=zJ((bZ)=>{Object.defineProperty(bZ,"__esModule",{value:!0});bZ.parse=bZ.parser=void 0;var K1=hZ(),G1=K1.__importDefault(FJ());bZ.parser=function(){try{return gZ()}catch(Z){try{return (()=>{throw new Error("Cannot require module "+"babylon");})()}catch(X){throw new Error("Install @babel/parser to use the `typescript`, `flow`, or `babel` parsers")}}}();function $1(Z,X){var J=G1.default(X);return J.plugins.push("jsx","flow","decoratorAutoAccessors"),bZ.parser.parse(Z,J)}bZ.parse=$1});var D1=zJ((xZ)=>{Object.defineProperty(xZ,"__esModule",{value:!0});xZ.parse=void 0;var F1=hZ(),O1=fZ(),_1=F1.__importDefault(FJ());function B1(Z,X){var J=_1.default(X);return J.plugins.push("typescript"),O1.parser.parse(Z,J)}xZ.parse=B1});export default D1();
10
10
 
11
- //# debugId=5B80B705F2C3EFD964756E2164756E21
11
+ //# debugId=FF7046687929AC4364756E2164756E21